From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 20:07:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E487106566B for ; Fri, 4 Apr 2008 20:07:57 +0000 (UTC) (envelope-from mackie@sdf-eu.org) Received: from sdf-eu.org (sdf-eu.ORG [192.94.73.35]) by mx1.freebsd.org (Postfix) with ESMTP id 14A708FC0C for ; Fri, 4 Apr 2008 20:07:57 +0000 (UTC) (envelope-from mackie@sdf-eu.org) Received: from sdf-eu.org (mackie@droog.sdf-eu.org [192.94.73.35]) by sdf-eu.org (8.14.2/8.13.8) with ESMTP id m34JsVkf009552 for ; Fri, 4 Apr 2008 19:54:31 GMT Received: (from mackie@localhost) by sdf-eu.org (8.14.2/8.12.8/Submit) id m34JsVVi001168 for freebsd-questions@freebsd.org; Fri, 4 Apr 2008 20:54:31 +0100 (BST) Date: Fri, 4 Apr 2008 20:54:31 +0100 From: Stuart Mackie To: freebsd-questions@freebsd.org Message-ID: <20080404195431.GB23813@droog.sdf-eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://mackie.sdf-eu.org/PUBLIC-KEY.txt Subject: Re: Remote backups using ssh and dump X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 20:07:57 -0000 >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 --