-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cron job to backup save files #39
Comments
also a cron job to periodically restart would be a nice addition if you are keeping backups x far back. |
Open PR #86 to create backups with a single command |
I added a cronjob for the backup command added in #86 by adding
then added this to echo "*/5 * * * * root /usr/local/bin/backup > /proc/1/fd/1 2>&1" > /etc/cron.d/backup
service cron start this runs the backup command every 5 minutes see my fork (ignore the other file changes ._.) |
I don't think automatic backup requires as much attention to the timing of the trigger as an automatic restart service does. If I were you, I would choose the following docker-compose configuration to implement the backup function, as it is obviously simpler:
of course, this is just my own opinion. |
Solved by #194. |
considering how unstable the game is, automatic backups every hour or so (keeping the last X backups) would be helpful if someone needs to roll back to recover after a bug or crash.
The text was updated successfully, but these errors were encountered: