Linux-Noob Forums
tar - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Compressed Files (https://www.linux-noob.com/forums/forum-30.html)
+---- Thread: tar (/thread-3108.html)



tar - Guest - 2004-10-20


if i have a directory with many *.conf files, and i also in the same directory have other files that end with *.tar and *.gz. And i want to compress all files in that directory execpt the allready compresed files like *.tar and *.gz

 

tar cf funnet.tar * except ?

 

 

also how can i find files that have not been modified in like 1 year ? i know there is atime fuction, but what should i use when we speak of years.. ?

 

 

-knut




tar - deraj - 2004-10-20


man find!

 

 

;)




tar - Guest - 2004-10-20


well i have tried, can you show me then :)

 

knut




tar - z0ny - 2004-10-20


Why don't you just use 'tar -cf funnet.tar --exclude '*.tar' --exclude '*.gz' *' and 'find /directory ! -mtime -365 -print' (assuming the year has 365 days)? :)

 

z0ny