June 15, 2016
I just needed to find files that aren’t older than 30 days and sync them. While I was thinking for combining find, rsync and the xargs commands, it turned out that all of the operation can be done from within rsync itself.
rsync -avzP –files-from<(find . -type f -mtime -30) ./ [email protected]:/path/
The beauty of the Linux command line is always amazing.