I have strange rsync behaviour. I need to copy all files youngest than 2 days from one folder to another.
So i've mixed rsync with files-from argument and find utility in a script to do what i need to do.
#!/bin/bash
cd /mnt/smb/online/
find . -mtime -2 -print > /tmp/rsynclist
rsync -av --ignore-existing --size-only --files-from=/tmp/rsynclist /mnt/smb/online /mnt/backup/
File /tmp/rsynclist is ok, and have only files that i need (all files not older than 2 days). But rsync seems to ignore that 'files-from' argument and continuing to copy all files from source older.
Where i am mistaking?