Rsync syntax help
I need to rsync only .bin files younger than 1 day from folders beginning name with 14. and 11. but also containing sub-folders with different names.
I tried with: Code:
rsync -Rarv `find /mnt/NFS_SERVER/ftp/etv/ -type f -mtime -1` --prune-empty-dirs --include "14.*/" --include="*.bin" --exclude="*" "/mnt/NFS_SERVER/ftp/abc/" "/home/ftp/abc/" |
Have you tried with find?
find <options> | xargs <command to operate on find's output> sort of thing? |
Quote:
rsync -dPt --ignore-existing --files-from=/tmp/files.txt /mnt/IP/ftp/source /home/ftp/destination |
Glad you're sorted. I'm not sure if you have to be that specific with rsync, as it transfers nothing if the files are identical and it's very quick. It would only be sensible if yoiu had an awful lot of files.
|
All times are GMT -5. The time now is 06:39 AM. |