Date: Thu, 3 Jan 2002 21:29:27 -0800 From: "Seamus.Venasse" <Seamus.Venasse@polaris.ca> To: "'Scott Gerhardt'" <scott@gerhardt-it.com>, "'FreeBSD'" <freebsd-questions@FreeBSD.ORG> Subject: RE: Backup using TAR Message-ID: <005101c194e0$c719b360$8b7b7ed8@tornado> In-Reply-To: <KPEMLBLEMPMHGLJOCDEGMEDMDGAA.scott@gerhardt-it.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of > Scott Gerhardt > Sent: January 2, 2002 12:27 PM > To: FreeBSD > Subject: Backup using TAR > > > I am experimenting with tar as a mechanism to do a full > backup of my system. I would like to backup the entire system > to file which will later be copied to cd (roughly 450MB). > > Here is the command I'm using: > > tar cpf /usr/archive/full-backup-`date '+%d-%B-%Y'`.tar > --directory / --exclude=/usr/ports --exclude=/mnt > --exclude=/usr/archive --exclude=/proc . > > What other directories should I exclude? > Are there any other recommended parameters? > > I've looked at the tar manpage but it is a little overwhelming. Your exclusions look fine, but I would suggest looking at gnutar (/usr/ports/archivers/gtar) if you want a "complete" backup. In that, I mean the version of tar that comes with FreeBSD, v1.11.2, does not have the capability of backing up the numeric values of the user/group field. Extracting a file using the stock tar command will result in the files being owned by the user extracting the archive if the user/group specified in the tar file does not exist on in the passwd/group files. I use the gnutar command to perform my backups for offsite storage, and I ensure that the files are owned by the proper users/groups by backing up the numeric values. At least have a look at gnutar... You can always uninstall it. :) Seamus 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?005101c194e0$c719b360$8b7b7ed8>