[Wolves] Tar without directory structure

chris procter chris-procter at talk21.com
Fri Mar 4 15:11:33 GMT 2005


cd /home/test/campics/;tar -cf
/home/test/campics/images.tar
/home/test/campics/*.jpeg

(all on one line) should work or

tar -cf home/test/campics/images.tar -C
/home/test/campics/ -- `ls /home/test/campics/ | grep
.jpeg`

should also work, try em out see which one you prefer.

chris


 --- Wayne Morris <wayne at machx.co.uk> wrote: 
> Hi,
> 
> I'm using tar in a cron job to archive security cam
> pics
> but when I use tar -cf /home/test/campics/images.tar
> 
> /home/test/campics/*.jpeg
> 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?
> 
> Cheers
> 
> Wayne
> 
> _______________________________________________
> Wolves LUG mailing list
> Homepage: http://www.wolveslug.org.uk/
> Mailing list: Wolves at mailman.lug.org.uk
> Mailing list home:
> http://mailman.lug.org.uk/mailman/listinfo/wolves
>  

Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the Wolves mailing list