Add command line options --mdate-from --mdate-until
Thanks for developing this software. I appreciate it a lot.
This is a feature request, which should be possible to be implement easily.
Add command line options
- --mdate-after
- --mdate-before
- --cdate-after
- --cdate-before
- --timezone "UTC"/"CET"/"UTC+x"...
that take a date stamp in format [yyyy-mm-dd][T][HH:MM:SS.SSS]. Default day is today, default time is 00:00:00.000. T is only regarded, if date and time are given. Otherwise simply ignored.
Giving these arguments syncs only files, that had been changed before/after a certain make/change date. All given options are combined via logical AND. Logical OR is reflected by two (or more) runs of rsync.
I stumbled across this, when I wanted to sync my phone to the PC. It can also accelerate the process a lot, if I have some extra information about my system.
No need to implement this in rsync - you can use find piping results to rsync:
find . -mmin -30 -mmin +10 -print0 | rsync -av --files-from=/dev/stdin -0 $SRC $DST