rsync: only backup recently modified files
hello
I run rsync on Windows machines in order to back them up to backup servers. My questions is: is there a way that I can tell rsync only to backup files which have been modified on the Windows machine within, say, the last month? For that matter, how could I do this in if I were rsync-ing from Linux? Thanks Hamish |
Find allows you to do things based on age. For example:
#Delete files that haven't been modified for 90 days with the following command find /mnt/backup -type f \( -name '*.gz' -o -name '*.log' \) \ -mtime +90 -exec rm {} \; rsync already does move changed files, that saves it from having to do every file. More options with man find |
hey
yeah I have now got it working with a find > list_of_files and then using list_of_files as the include list for rsync Cheers Hamish |
Quote:
|
All times are GMT -5. The time now is 09:24 PM. |