rsync files based on age (only new files)

0

Scenario: I have a windows machine with Cygwin running and basic rsync appears to work to a rpi. I want to sync only a portion of media files (newest) from the windows large DAS to the much smaller rpi microSD.

Started by trying as suggested in

rsync files newer than 1 week

On a rasbian running the following works:

pi@raspberrypi:~ $ rsync -arvn brian@10.10.3.10:/cygdrive/d/Tones                                                                 
receiving incremental file list
d---rwx---              0 2019/03/20 21:46:34 Tones
----rwx---         58,047 2015/05/05 03:24:09 Tones/EAS.m4r
-rwxrwx---              0 2019/03/20 21:46:34 Tones/New Text Document.txt
----rwx---         11,499 2014/06/17 06:41:38 Tones/Post_Beep_Short.m4r
----rwx---      1,077,186 2014/10/28 05:36:27 Tones/The Office Theme Song.m4r
----rwx---         73,848 2013/12/20 18:51:40 Tones/Two Tone.m4r
----rwx---         16,789 2015/10/25 23:19:02 Tones/UhOh.m4r
----rwx---        470,080 2014/09/10 07:00:39 Tones/justified.m4r

sent 25 bytes  received 336 bytes  240.67 bytes/sec
total size is 1,707,449  speedup is 4,729.78 (DRY RUN)

The following does not:

pi@raspberrypi:~ $ rsync -avn --files-from=<(ssh brian@10.10.3.10 'find 
/cygdrive/d/Tones/ -mtime -7 -type f -exec basename {} \;') 
brian@10.10.3.10:/cygdrive/d/Tones/
rsync  version 3.1.2  protocol version 31
Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
####(truncated for reading pleasure)
Use "rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
See http://rsync.samba.org/ for updates, bug reports, and answers
rsync error: syntax or usage error (code 1) at options.c(2341) [client=3.1.2]

Brian Ellis

Posted 2019-03-20T22:35:18.893

Reputation: 1

No answers