From owner-freebsd-questions Tue Sep 18 5:40: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.ms-agentur.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 5FE7037B401 for ; Tue, 18 Sep 2001 05:39:58 -0700 (PDT) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.ms-agentur.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id OAA13140; Tue, 18 Sep 2001 14:49:22 +0200 Message-ID: <3BA74099.9040709@i-clue.de> Date: Tue, 18 Sep 2001 14:39:53 +0200 From: Christoph Sold User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.4+) Gecko/20010916 X-Accept-Language: de, en MIME-Version: 1.0 To: jacks@sage-american.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FS backup to Hard Disk References: <3.0.5.32.20010917211717.06b79c98@mail.sage-american.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jacks@sage-american.com wrote: >I would like to do nitely cron backup everything for full restore to a >second hard disk: >/mnt/fat32/backupdir > >I gather I need to use "tar" to do this, but not exactly sure of the >precise command and switches. Don't want to mess up on this. Here's my fstab: > >Filesystem 1K-blocks Used Avail Capacity Mounted on >/dev/ad0s2a 99183 29641 61608 32% / >/dev/ad0s2f 8835083 673328 7454949 8% /usr >/dev/ad0s2e 19815 2317 15913 13% /var >procfs 4 4 0 100% /proc >/dev/ad1s1 13264736 3086024 10178712 23% /mnt/fat32 > >Guidance on exact tar line command would be appreciated.... thanks in >advance. > Well, man tar should give you plenty of help. A short version would be tar clf /mnt/fat32/root.tar / tar clf /mnt/fat32/usr.tar /usr tar clf /mnt/fat32/var.tar /var which does a basic backiup of all your partitions, given the backup user has read access to all files to be backed up. OTOH, a backup within the very same box is no backup. Read on at www.backupcentral.com for reasonable backup strategies. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message