1828006 Members
2370 Online
109973 Solutions
New Discussion

archiving

 
Amir Fadaghi
Advisor

archiving

Has anybody used find with xargs and tar to find the files that have been modified within last 7 days. Appreciate the help.

thanks
reach and touch someone
2 REPLIES 2
Laurent Paumier
Trusted Contributor

Re: archiving

find /path -mtime -7 | xargs tar cf archive.tar
Vincenzo Restuccia
Honored Contributor

Re: archiving

#find / -atime -7 -exec tar cvf /tmp/arch.tar {} \;