I'm trying to get Unison to sync between two folders, but on one side, if I don't have the existing folder, it tries to delete the other side (the folder with everything in it). So if I have
/folderA/fileA
/folderA/fileB
/folderB/
If I delete folderB
, and then run unison -auto -batch -prefer newer folderA folderB
, it will try and delete folderA
instead of creating folderB
and copying the contents of folderA
over to folderB
.
Is this possible? It may sound like a weird request, but it's because I'm creating syncing scripts where new systems won't have folderB
sometimes, and I don't want the computer to think that means folderA
needs to be deleted.