From owner-freebsd-questions Thu Jan 3 21:29:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.polaris.ca (pris.polaris.ca [199.247.156.218]) by hub.freebsd.org (Postfix) with SMTP id D941D37B41D for ; Thu, 3 Jan 2002 21:29:35 -0800 (PST) Received: (qmail 33298 invoked by uid 85); 4 Jan 2002 05:25:22 -0000 Received: from unknown (HELO tornado) (216.126.123.139) by 0 with SMTP; 4 Jan 2002 05:25:20 -0000 From: "Seamus.Venasse" To: "'Scott Gerhardt'" , "'FreeBSD'" Subject: RE: Backup using TAR Date: Thu, 3 Jan 2002 21:29:27 -0800 Message-ID: <005101c194e0$c719b360$8b7b7ed8@tornado> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Scanned: by AMaViS perl-11 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 > -----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