AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

*Tar script to tar ONLY modified files in given list*

  • 1.  *Tar script to tar ONLY modified files in given list*

    Posted Mon June 16, 2008 03:10 PM

    Originally posted by: Sam_k


    Folks need help !

    I'd want to create a tarball of list of N files provided in a BACKUP-FILE_list and those files should be modified in last 24 hours.

    Trying to work w/ both of the following w/ AND statement:

    tar cvf BACKUP-FILE.tar `find . -mtime n`

    AND

    tar -cvf BACKUP-FILE.tar -L BACKUP-FILE_list
    Thoughts??

    -S.

    -S.


  • 2.  Re: *Tar script to tar ONLY modified files in given list*

    Posted Tue June 17, 2008 06:37 AM

    Originally posted by: KarlM


    try

    tar cvf BACKUP-FILE.tar $(find $(cat BACKUP-FILE_list) -mtime n)