Date: Fri, 4 Apr 2008 20:54:31 +0100 From: Stuart Mackie <mackie@droog.sdf-eu.org> To: freebsd-questions@freebsd.org Subject: Re: Remote backups using ssh and dump Message-ID: <20080404195431.GB23813@droog.sdf-eu.org>
next in thread | raw e-mail | index | archive | help
>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@droog.sdf-eu.org 'tar cvf - html/* | gzip - > html.tgz' $ ssh mackie@droog.sdf-eu.org 'tar cvf - gopher/* | gzip - > gopher.tgz' $ rsync -avz -e ssh mackie@droog.sdf-eu.org:/arpa/m/mackie /home/mackie/SDF Backup home dir (to sdf) ------------------------ (dump) # dump -0f - /home | ssh -o 'EscapeChar none' mackie@droog.sdf-eu.org "cat > home.fs" (restore) # cd /home && rcp mackie@droog.sdf-eu.org:home.fs home.fs && cat home.fs | restore -rf - HTH, Stuart --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080404195431.GB23813>