ubuntu:backups:backup_using_dd_and_ssh
Differences
This shows you the differences between two versions of the page.
ubuntu:backups:backup_using_dd_and_ssh [2022/07/06 08:23] – created 91.230.225.92 | ubuntu:backups:backup_using_dd_and_ssh [2022/07/06 08:28] (current) – 91.230.225.92 | ||
---|---|---|---|
Line 4: | Line 4: | ||
dd if=/dev/sda | ssh backups@192.168.1.123 "dd of=backup.img" | dd if=/dev/sda | ssh backups@192.168.1.123 "dd of=backup.img" | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Run from remote computer ===== | ||
+ | |||
+ | < | ||
+ | dd if=/dev/sda | gzip -1 - | ssh user@local dd of=image.gz | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Run from local computer ===== | ||
+ | |||
+ | <code bash> | ||
+ | ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ |
ubuntu/backups/backup_using_dd_and_ssh.1657095834.txt.gz · Last modified: 2022/07/06 08:23 by 91.230.225.92