I have a remote server with an rsync share and I need to pull just the most recent 7 days of files.
I can SEND files based on date by using:
find /path -mtime 7 ... -exec rsync -a
but I can't just login to the server and send the files to my local machine so I need a way to use rsync to get all the files that are less than 7 days old and grab them.
I cannot simply sync everything as the total data on the server exceeds 100TB and I don't have access to the remote server other than the rsync module.
touch
dummy files locally and use--ignore-existing
to not overwrite those files.)ssh
-access when using rsync, so you could usessh backup@host "find <dir> <options>" > temp_file_list
and then use this list forrsync
.