Two Questions on for Rsync - rsync by date and by file name

Posted by paulj3000 on Stack Overflow See other posts from Stack Overflow or by paulj3000
Published on 2010-04-28T17:11:28Z Indexed on 2010/04/28 17:13 UTC
Read the original article Hit count: 569

Filed under:
|

Hi,

I have two questions with respect to rsync:

1: I have a bunch of files which are incremented by day of the year. Ex: file.txt.81, file.txt.82, etc. Now, these files are in different directories:

data1/file.txt.81 data1/file.txt.82 data2/file2.txt.81 data2/file2.txt.82

How can I have rsync get only the *.82 files and not even touch the other files

2: Now I have a similar data directory structure as above. How can I rsync all files that have been modified on or after a specific day?

Thanks

© Stack Overflow or respective owner

Related posts about rsync

Related posts about linux