From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 06:17:05 2007 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 62F3216A417 for ; Fri, 24 Aug 2007 06:17:05 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 843CA13C457 for ; Fri, 24 Aug 2007 06:17:03 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id l7O6GusP080586; Fri, 24 Aug 2007 08:16:56 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id l7O6Gs1x080559; Fri, 24 Aug 2007 08:16:56 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 24 Aug 2007 08:16:53 +0200 (CEST) From: Wojciech Puchar To: Patrick Baldwin In-Reply-To: <46CDFD6F.6070502@studsvik.com> Message-ID: <20070824080818.W73687@wojtek.tensor.gdynia.pl> References: <46CDB649.8060102@studsvik.com> <20070823205805.B25633@wojtek.tensor.gdynia.pl> <46CDFD6F.6070502@studsvik.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD USB disks - booting and backups 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, 24 Aug 2007 06:17:05 -0000 >> >> i'm doing this with my notebook. > > Great. What kind of drive? And have you actually > had to do a restore? > some used 80GB 3.5" drive (Seagate) + noname USB-IDE jack (true noname, nothing written on it). the latter costed 6$ new, including disk power supply. works very well. i don't make any partitions on it, just dd if=/dev/zero of=/dev/da0 bs=1m count=1 to clear things up newfs -m 0 -O1 -i 16384 -b 4096 -f 512 -U /dev/da0 options for max of space, not performance, as i backup 120GB notebook drive. then to make a copy i do: mount -o noatime /dev/da0 /root/copy cd /root/copy rsync -avrlHpogDtS --delete --force --exclude-from=/root/copy.exclude / . umount /root/copy my copy.exclude file looks like that (change to your needs: /OLD /root/copy/* /dev/* /usr/ports /proc/* swap /tmp/* /var/tmp/* /usr/compat/linux/proc/* /usr/obj the /OLD file are on copy drive, not master, just to be able to have many generations done by cp -lpR after copying first time you have to bsdlabel -B da0 WARNING: when booting from copy, get to single user and fix fstab to have /dev/da0 as root. other remarks: keep the copy plugged only when copying, then store in safe place :)