Remote backups using ssh and dump

Stuart Mackie mackie at droog.sdf-eu.org
Fri Apr 4 20:07:57 UTC 2008


>Has anyone done this?

>I'm presently using rsync over ssh, but I think dump would be better if it will 
>work.  I've been reading the man page, but I'm wondering if anyone is doing 
>this successfully and would like to share their cmdline.

Hi,

[ from gopher://sdf-eu.org/00/users/mackie/Unix-Notes/_sdf-user-stuff.txt ]

Backup home dir (from sdf)
--------------------------
$ ssh mackie at droog.sdf-eu.org 'tar cvf - html/* | gzip - > html.tgz'
$ ssh mackie at droog.sdf-eu.org 'tar cvf - gopher/* | gzip - > gopher.tgz'
$ rsync -avz -e ssh mackie at droog.sdf-eu.org:/arpa/m/mackie /home/mackie/SDF

Backup home dir (to sdf)
------------------------
(dump)
# dump -0f - /home | ssh -o 'EscapeChar none' mackie at droog.sdf-eu.org "cat > home.fs"

(restore)
# cd /home && rcp mackie at droog.sdf-eu.org:home.fs home.fs && cat home.fs | restore -rf -


HTH,

Stuart
-- 


More information about the freebsd-questions mailing list