Quote:
Originally Posted by Lihaässä
Code:
#!/bin/bash
rsync -a /home/dom/dominions3/savedgames/ /home/dom/dominions3/backup/
|
I see a couple of problems here:
- You copy all games every time any game hosts. Which clobbers the backups of all games other than the one about to be hosted.
- You only maintain a backup of the latest turn. This will cause trouble when the game manages to **** itself up so that it crashes at next hosting, because by the time you notice it crashing, you've clobbered the backup from before it broke.
(Yes, this can happen. Guess what made me think it was a good thing I was already backing up all truns?)
If you look approximately halfway up the thread, I've posted a backup script that has neither of those particular issues.