Quick Remote Encrypted Backups for Linux
Some folks will shake thier heads at the idea of doing a dump on a
live file system, but it does work in most cases. Further you can then
copy that file over the network using dd if you like. Below is an
#dump both partitions hda1 and hda2 to the backup server.
# time /sbin/dump -0 -j -f – /dev/hda1 | ssh email@example.com dd
/sbin/dump -0 -j -f – /dev/hda2 | ssh username@backupserver dd
Keep in mind this is using an ssh encrypted session with installed
keys for the user “username”, and the users who runs it has privs for
The simple manual version of this is:
# /sbin/dump -0 -j -f – /dev/hda1 | ssh firstname.lastname@example.org dd
The above will dump just hda1 to the remote host, and not give any
time data, or keep a log like the previous cron example will.