From owner-freebsd-questions Mon Oct 29 14:21:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 8C59337B406 for ; Mon, 29 Oct 2001 14:21:50 -0800 (PST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.6/8.11.4) id f9TMLK976156; Mon, 29 Oct 2001 23:21:20 +0100 (CET) (envelope-from stijn) Date: Mon, 29 Oct 2001 23:21:20 +0100 From: Stijn Hoop To: smorton@acm.org Cc: Lucas Bergman , Alson van der Meulen , lists@natserv.com, FreeBSD Questions List Subject: Re: Archiving large number of files Message-ID: <20011029232120.C75666@pcwin002.win.tue.nl> References: <20011029151306.D53339-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> <20011029151557.Y51329-100000@zoraida.natserv.net> <20011029212551.G30280@md2.mediadesign.nl> <15325.52042.88160.224542@apu.five.sight> <20011029223601.A75666@pcwin002.win.tue.nl> <3BDDD302.2040109@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BDDD302.2040109@verizon.net>; from simon.morton@verizon.net on Mon, Oct 29, 2001 at 05:06:58PM -0500 X-Bright-Idea: Let's abolish HTML mail! 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 On Mon, Oct 29, 2001 at 05:06:58PM -0500, Simon Morton wrote: > > > > $ rm tarball.tar ; find . -print0 | xargs -0 tar rf tarball.tar > > > > > would probably do the trick then. > > > > --Stijn > > > > > Wouldn't > > > tar cf tarball.tar . > > or > > tar cf tarball.tar dir1 dir2 dir3 > > be the simplest way to do it? I agree that this is a simpler way to tar up a single directory, or a few directories; I believe the original poster had to specify a lot of things to backup. That's when the find | xargs answer came up. Of course, if all files are located under a single directory you're better off using your method. --Stijn -- I really hate this damned machine I wish that they would sell it. It never does quite what I want But only what I tell it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message