On Thu, 19 May 2005 10:38 pm, Voytek wrote:
> <quote who="[EMAIL PROTECTED]">
>
> > tar jcf filename.tar.bz2 file1 file2...fileN
>
> thanks, Amos, that works good,
> what the correct way to reconstitute with full path ?

cd /base/of/target/tree
tar jxf filename.tar.bz2

man tar
tar c == create tar
tar x == extract tar
tar j == use bzip2 compression (tar z == gzip compression)
tar f == target to archive/unpack is a file

So,
tar jcf foo.tar.bz2 file1 file2
will create a tar file called "foo.tar.bz2" which is compressed with bzip2 
compression, and conmtains file1 and file2.

Substitue "c" with "x" to eXtract the archive.  Have a read of the tar man 
page.  Once you get up to speed on things, you might want to try weird stuff 
like:
tar cf - /path/to/dir | ssh [EMAIL PROTECTED] "gzip - > 
/some/remote/dir/backup.tgz"

Try to see if you can figure out what all that does and, more importantly, 
WHY :)  (You'll need to read the ssh man page too probably).

Have fun,

James
-- 
"Luke, I'm yer father, eh.  Come over to the dark side, you hoser."
-- Dave Thomas, "Strange Brew"
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to