Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 01:39:34 -0800
From:      "Crist J . Clark" <cjc@FreeBSD.ORG>
To:        Philip Pereira <info@wintellect.co.uk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Tar archive
Message-ID:  <20020116013934.M31328@blossom.cjclark.org>
In-Reply-To: <005301c19e70$8b6eba60$b09401d4@wintellect.com>; from info@wintellect.co.uk on Wed, Jan 16, 2002 at 09:31:06AM -0000
References:  <005301c19e70$8b6eba60$b09401d4@wintellect.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020116013934.M31328>