I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.
find . -mtime -7
I don't want to delete the files on Server B.
Answer
This should get you underway in a solid way
rsync -RDa0P \
--files-from=<(find sourcedir/./ -mtime -7 -print0) \
. user@B:targetdir/
This copies device nodes, permissions, timestamps. I'm pretty sure the -H option won't be accurate with --files-from
No comments:
Post a Comment