I have 5 servers and I'm going to be mirroring a repo of ~30000 files across them. I want people to be able to add/delete/rename files on their local server and have the changes synced nightly. I'm expecting about 200 changes/day.
I have everything set up and it's working nicely until we get to file deletions. I can't seem to come up with a configuration where deletions (and also renames obviously) get propagated properly.
Right now I have a master repo that no one writes to but me. Every night I pull changes from each server to master:
File only on remote: copy to master
File only on master: delete from master
File conflict: newer file overwrites older
File case/attr changed: copy to master (overwrite)
Ignore any files that were created in the last hour
And then push everything back out:
File only on remote: ignore
File only on master: copy to remote
File conflict: copy to remote (overwrite)
File case/attr changed: copy to remote (overwrite)
So, server 1 deletes a file. I pull from server 1, it deletes the file from master. I pull from server 2, it adds the file back.
I've played around with different configurations for most of the day today. Does anyone know a way to make this work?
Statistics: Posted by psykil — Wed Apr 08, 2015 10:20 pm