Date: Fri, 04 Jan 2002 07:31:28 -0600 From: jacks@sage-american.com To: "Seamus.Venasse" <Seamus.Venasse@polaris.ca>, "'Scott Gerhardt'" <scott@gerhardt-it.com>, "'FreeBSD'" <freebsd-questions@FreeBSD.ORG> Subject: RE: Backup using TAR Message-ID: <3.0.5.32.20020104073128.01946370@mail.sage-american.com> In-Reply-To: <005101c194e0$c719b360$8b7b7ed8@tornado> References: <KPEMLBLEMPMHGLJOCDEGMEDMDGAA.scott@gerhardt-it.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I thought the tar "-p" option maintained the "permissions" (ownership) ************************************************************* -p --same-permissions --preserve-permissions Extract all protection information. --preserve Has the effect of -p -s. ************************************************************* At 09:29 PM 1.3.2002 -0800, Seamus.Venasse wrote: >> -----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 > > Best regards, Jack L. Stone, Server Admin Sage-American http://www.sage-american.com jacks@sage-american.com 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?3.0.5.32.20020104073128.01946370>