From owner-freebsd-questions Wed Jan 16 1:40:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 9F70637B419 for ; Wed, 16 Jan 2002 01:40:30 -0800 (PST) Received: from dialup-209.245.128.158.dial1.sanjose1.level3.net ([209.245.128.158] helo=blossom.cjclark.org) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16QmYV-0005dn-00; Wed, 16 Jan 2002 01:40:29 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g0G9dYW34503; Wed, 16 Jan 2002 01:39:34 -0800 (PST) (envelope-from cjc) Date: Wed, 16 Jan 2002 01:39:34 -0800 From: "Crist J . Clark" To: Philip Pereira Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Tar archive Message-ID: <20020116013934.M31328@blossom.cjclark.org> References: <005301c19e70$8b6eba60$b09401d4@wintellect.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <005301c19e70$8b6eba60$b09401d4@wintellect.com>; from info@wintellect.co.uk on Wed, Jan 16, 2002 at 09:31:06AM -0000 X-URL: http://people.freebsd.org/~cjc/ 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 Wed, Jan 16, 2002 at 09:31:06AM -0000, Philip Pereira wrote: > Hey "smart-ones-of-FreeBSD" > > I have a question regarding the "tar" command. > > I am able to archive all files within a folder and create a resultant tar file on my hard disk. However, how do I create a tar file which stores all files in a folder, including sub-folders, That's how tar works. > For example, how would I create a tar archive for the entire "/usr" folder, including sub-folders and files - so that restoration of that archive would restore all files in the /usr folder in their correct location or sub-folder. # cd /usr; tar cf /var/tmp/usr.tar . -- "It's always funny until someone gets hurt. Then it's hilarious." Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message