From owner-freebsd-questions Sat Jan 12 5:48:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-201-166.mmcable.com [65.31.201.166]) by hub.freebsd.org (Postfix) with SMTP id 457AF37B41B for ; Sat, 12 Jan 2002 05:48:40 -0800 (PST) Received: (qmail 63332 invoked by uid 100); 12 Jan 2002 13:48:39 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15424.16055.50801.150619@guru.mired.org> Date: Sat, 12 Jan 2002 07:48:39 -0600 To: "Scott Gerhardt" Cc: questions@freebsd.org Subject: Re: Backup using TAR In-Reply-To: <10574740@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.43 (Python 2.2; freebsd-4.4-STABLE-i386) 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 Scott Gerhardt types: > 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? /dev. FreeBSD device numbers are bigger than the tar formats device number slots. > Are there any other recommended parameters? Yeah - replace "tar" with "dump". Tar was designed to be a tool archiving and sharing data in unixoid file trees. Dump was designed to back up and restore FreeBSD's file systems. The similarity in the requirements for the two tasks ends not far past "copy the data in the files to the media". Even if you don't do that, you might consider adding --compress and changing the file extension to .tar.gz. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message