Given folders named Drive1/Folder1 and /Drive2/Folder2 I want to have a folder /Drive3/folder3 that contains the synced merged contents of both the source folders, but does not contain any files or directories that have been removed from the source folders.
/Drive1/Dolder1/File1
File2
/Drive2/Folder2/File6
File7
File8
/Drive3/Folder1/File1
File2
File6
File7
When File7 is deleted, the next sync removes it from the target Drive3 directory while leaving all the other files behind.
The only solution I can think of that could work is to create a /tmp/folder3 folder and then make hard links in that folder and rsync that folder with --delete, but that won’t work because /Drive1 an /Drive2 are not the same volume.
I thought I could do this with rsync. but everything I try either removes all of the Drive1 files or the Drive2 files each time.