I wrote a Python script that takes as many files as you want as arguments. Then it finds out which is the file that was modified more recently and copies it over the rest of files. It's useful to me because I'm only interested in synchronising the changes of a certain addon.
Code:
import os
import shutil
import sys
most_recent_ts = 0
most_recent_file = None
for file in sys.argv[1:]:
if os.path.getmtime(file) > most_recent_ts:
most_recent_ts = os.path.getmtime(file)
most_recent_file = file
for file in sys.argv[1:]:
if file != most_recent_file and most_recent_ts > os.path.getmtime(file):
print('Copying %s over %s' % (most_recent_file, file))
shutil.copyfile(most_recent_file, file)
Then I launch wow with a .cmd file:
Code:
python sync.py WTF\Account\ACCOUNT1\SavedVariables\aux-addon.lua WTF\Account\ACCOUNT2\SavedVariables\aux-addon.lua WTF\Account\ACCOUNT3\SavedVariables\aux-addon.lua WTF\Account\ACCOUNT4\SavedVariables\aux-addon.lua WTF\Account\ACCOUNT5\SavedVariables\aux-addon.lua
start /max /high wow.exe
Also I configured Windows' File History to make constant backups of my WTF folder to avoid the usual poo-poos.