Hi all,
suppose I have a source
and target
folder, I’d like to do this:
- Sync new items in
source
totarget
- Sync deleted items in
source
totarget
- Do not sync deleted items in
target
tosource
: deleted fromtarget
make no changes tosource
- However, do not sync deleted items in
target
fromsource
again (keep a history of what have been synced)
Steps 1-3 we can do with send only from source
and receive only in target
.
Step 4, however, I don’t know an easy way to do - apart from using rsync like:
- sync them the 1st time
- create list of current files from
source
, saylast_synced.log
withfind
- saved the list of file
The second time onwards
- sync the folders using
rsync
's--exclude-from=last_synced.log
- repeat steps 2-3
My use case is syncing Mac’s Photos
's originals files to my home server. This is because deleting photos on disk won’t reflect on Mac Photos
.
Thanks