[Wolves] Tar without directory structure
james at turnersoft.co.uk
Fri Mar 4 12:52:45 GMT 2005
On Friday 04 Mar 2005 01:05, Wayne Morris wrote:
> I'm using tar in a cron job to archive security cam pics
> but when I use tar -cf /home/test/campics/images.tar
> I get images correctly tarred, but nested inside folders corresponding
> to the path.
> How do i get just the images directly inside images.tar without the
> directory structure?
Use command line option "-C <directory>" (or "--directory <directory>") to
change to the /home/test/campics directory.
See "man tar" for further information :) :)
More information about the Wolves