Talk:Saving/@comment-27385288-20151212064902

I wrote a little shell script to automatically backup a copy of the save files at a regular interval so you don't have to make the backup manually yourself. Code is below. It will run on Linux, Mac (via Terminal using Bash), or in Windows if you install cygwin. Cheers.

1. Go to the save dir as described in this wiki

2. cd ..

3. copy paste the code into a file, name it whatever, like autosave.sh

4. run the file. easiest way is to just type `sh autosave.sh` Third line, duration=X you can change X to whatever interval you want it to autosave, in seconds. 300=5min  60=1min ... backups are saved under the backup dir, labeled by date stamp. If it prints just one line with the date and "Yawn" and etc then it is working. If you get an error it may not be working so paste the output here and I can help. 5. To restore, rename the existing `save` dir to anything else. copy the backup save_YYYY-MM-DD__HH:MM:SS folder to where the existing `save` dir was, and rename it to `save`.

Hope you enjoy! Reply here if you have any questions.