I have a rsync command which scans to find freshly created files and then syncs it with the remote PC. Both PC's have had the same file structure until recently.
find /mnt/movies -type f -ctime -1 -print0 | rsync -0Prvuz --log-file=/home/daisy/rsync/movies.log -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --files-from=- --from0 / email@example.com:/
In this case newly created movies from
/mnt/movies/ are sent to the destination in the same location (
Now I need to send them to
/mnt/drive/movies/ which is a change, but for the life of me I cannot work out how to do this.
I understand the
--files-from=- --from0 causes rsync to place the output of find into the
/ directory of the destination, changing the
/mnt/drive/ causes rsync to create the directory
/mnt/movies/... inside the
/mnt/drive folder. What I would like to see is
Hope someone can help me with this :/