Date: Tue, 18 Sep 2001 14:39:53 +0200 From: Christoph Sold <so@i-clue.de> To: jacks@sage-american.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FS backup to Hard Disk Message-ID: <3BA74099.9040709@i-clue.de> References: <3.0.5.32.20010917211717.06b79c98@mail.sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA74099.9040709>