From owner-freebsd-questions Wed Feb 19 19:26:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA11661 for questions-outgoing; Wed, 19 Feb 1997 19:26:25 -0800 (PST) Received: from xmission.xmission.com (softweyr@xmission.xmission.com [198.60.22.2]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA11656 for ; Wed, 19 Feb 1997 19:26:23 -0800 (PST) Received: (from softweyr@localhost) by xmission.xmission.com (8.8.5/8.7.5) id UAA04291; Wed, 19 Feb 1997 20:25:38 -0700 (MST) From: Softweyr LLC Message-Id: <199702200325.UAA04291@xmission.xmission.com> Subject: Re: Backup questions? To: burton@vip.best.com (Burton Sampley) Date: Wed, 19 Feb 1997 20:25:37 -0700 (MST) Cc: questions@freebsd.org In-Reply-To: from "Burton Sampley" at Feb 19, 97 11:46:08 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Burton Sampley asked, w.r.t. backup to a hard drive: > Here's the output from df -k: > > bash$ df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0a 31775 17068 12165 58% / > /dev/wd0s1f 1411583 957399 341258 74% /usr > /dev/wd2s1e 2435758 1 2240897 0% /usr2 > /dev/wd0s1e 63567 2522 55960 4% /var > procfs 4 4 0 100% /proc > /dev/wcd0c 640690 640690 0 100% /cdrom > bash$ > > 1. The second hard drive is wd2 mounted with the /usr2 file system. Will > the tar command above store /, /var and /usr on the /usr2 fs? Do I need > to do something different to accomplish what I want? If so, then what > command should I use? For tar, you would want to name a file on the /usr2 filesystem, i.e. tar cvzf /usr2/backup.tar.gz / /var /usr Note that the filesystem support will reduce the amount of storage you can use on your second disk. > 2. If not, then do I need to un-mount wd2 and then give the above tar > command? Yup. If you want to use the disk like it is a tape drive, don't mount it. You don't even need to put a partition table on it if it's going to hold nothing but your backup. > 3. How would I restore the first drive if, I accidently 'toasted' it? It should be possible to boot from a floppy, restore the partitions to their original state, and just restore the backup. You'd probably be better off using dump/restore if you want to have this ability. Dump has the ability to dump a filesystem such that you can restore the filesystem to its original state, not just re-write the files. > 4. Using the above tar command can I store more than 1 'generation' on > the 2nd drive, space permitting? I know I'll have t give each copy a > different name to do this, but will it work? You'd have to partition the disk in chunks and write the backups to the various partitions. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com