Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2003 14:36:11 +0100
From:      Ruben de Groot <mail25@bzerk.org>
To:        Matthew Emmerton <matt@gsicomp.on.ca>
Cc:        FreeBSD-questions <questions@freebsd.org>
Subject:   Re: tar question...
Message-ID:  <20031030133611.GA9706@ei.bzerk.org>
In-Reply-To: <00a201c39edd$0ae6e150$1200a8c0@gsicomp.on.ca>
References:  <001501c39e99$dafacbc0$0801a8c0@bloodlust> <00a201c39edd$0ae6e150$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 30, 2003 at 06:57:35AM -0500, Matthew Emmerton typed:
> > Hi list, the question is: can I tar a hole directory without include the
> > tree ??? I mean when I tar all files in a /dir1/dir2/dir3 path, the tar
> file
> > includes me the path too and I want to tar only the filenames in dir3: I'm
> > using the syntax tar -czf /path/to/store/myfile.tgz
> > /the/path/where/are/the/files, any clue ???? Thanksssss...
> 
> cd /the/path/where/are/the/files
> tar -czf /path/to/store/myfile.tgz .

Or in 1 command:

tar czf /path/to/store/myfile.tgz -C /the/path/where/are/the/files .

cheers
Ruben

> 
> --
> Matt Emmerton
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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