I've read the manpage for rsync and I don't believe this capability exists, but I wanted to confirm with someone who has extensive experience with rsync to make sure I'm not missing something (I'm on the initial setup of rsync).
Here is the situation: I two servers (A and B). I am going to setup a cron job that moves files from a directory on A to a directory on B. I have that working as expected. However, once those files are synced to directory B, I am going to moving those files to multiple other directories after renaming them.
From what I understand, rsync determines what to sync by comparing source and destination directories (timestamps, sizes, etc.). Are there any flags to use with rsync where it somehow uses a log of synced files so it knows that it already synced that file, even if it isn't there on the destination anymore?
I have an inclination this is not within rsync capabilities, but I wanted to ask. Thank you!
EDIT: I know somewhere in the manpage it specifies that you output runs to log file. Could that be referenced somehow?
mv
ing the file from B, you would instead create an additional link in the new location. The original name in directory B prevents rsync from sending it again. The hard link in the new directory means that no additional space on disk is required.