From owner-freebsd-questions Fri Mar 8 17:40:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 9AEE337B41C for ; Fri, 8 Mar 2002 17:40:35 -0800 (PST) Received: (qmail 8105 invoked by uid 100); 9 Mar 2002 01:40:32 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15497.26639.998605.154151@guru.mired.org> Date: Fri, 8 Mar 2002 19:40:31 -0600 To: "Scott Gerhardt" Cc: questions@freebsd.org Subject: Re: Tar Backup In-Reply-To: <75790501@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.48 (Python 2.2 on freebsd4) 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'm using tar to do a full system backup using the following command: Bad idea. > tar -zcvpf /usr/archive/full-backup-`date '+%d-%B-%Y'`.tar.gz \ > --directory / --exclude=mnt --exclude=proc --exclude=cdrom \ > --exclude=usr/ports --exclude /usr/archive . > > What other directories should I exclude? /dev. Tar can't handle the entries in it. It's also going to lose any flags that may be set anywhere on the system. > My goal is to do a system dump which can be moved off the machine and > burned to CD. Total including /usr/src is about 450MB. If you're planning on restoring the system from this CD, you'll want to use something other than tar. If you're using it to create a bootable CD for recovery, then I thought I saw a reasonable solution go buy. 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