From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 14:34:03 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C2E51065670 for ; Fri, 16 Oct 2009 14:34:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 2C48F8FC08 for ; Fri, 16 Oct 2009 14:34:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n9GEY2Bg082763; Fri, 16 Oct 2009 08:34:02 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n9GEY2pP082760; Fri, 16 Oct 2009 08:34:02 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 16 Oct 2009 08:34:02 -0600 (MDT) From: Warren Block To: Nerius Landys In-Reply-To: <560f92640910160012k6877b82ah5899405418f7c0e7@mail.gmail.com> Message-ID: References: <560f92640910142042tc46f1e3lb81ac1e4528a44ab@mail.gmail.com> <20091015143947.GB54613@gizmo.acns.msu.edu> <560f92640910151742h33393131j9974c23db37602b8@mail.gmail.com> <560f92640910160012k6877b82ah5899405418f7c0e7@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-208905312-1255703642=:82691" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (wonkity.com [127.0.0.1]); Fri, 16 Oct 2009 08:34:02 -0600 (MDT) Cc: Jerry McAllister , questions@freebsd.org Subject: Re: Best procedure for full backup of live system 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, 16 Oct 2009 14:34:03 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---902635197-208905312-1255703642=:82691 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 16 Oct 2009, Nerius Landys wrote: > Thanks again guys.  My final series of steps to take full backups: > > bsdlabel ad4s1 | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/bsdlabel_ad4s1 > dmesg -a | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/dmesg > dd if=/dev/ad4 bs=512 count=1 | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/MBR > cat /etc/fstab | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/fstab > dump -0Lan -f - / | gzip | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/dump0-root.gz > dump -0Lan -f - /tmp | gzip | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/dump0-tmp.gz > dump -0Lan -f - /var | gzip | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/dump0-var.gz > dump -0Lan -f - /usr | gzip | ssh -p 22222 nlandys@localhost dd > of=/home/nlandys/backup/dump0-usr.gz > > ... where port 22222 on localhost is a pipe to my remote desktop with > the 500 GB harddrive. If I missed anything important please let me > know. The dump man page recommends always using -C with snapshot dumps. The Handbook has an example of dump over ssh that shows a couple of speed optimizations: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html#AEN25817 gzip -2 and bluefish instead of 3des should be faster than the default. -Warren Block * Rapid City, South Dakota USA ---902635197-208905312-1255703642=:82691--