Setting up automatic backups of your game is important. In the unlikely event that disaster strikes, you’ll have a backup copy of your game’s database and files. This article describes how to restore the game from a backup.
Table of Contents
If you elected to use Digital Ocean’s backup feature, see DO’s backups tutorial for help restoring.
You can restore game configuration files, uploads, and everything else in the
aresmush/game folder just by using a FTP client to upload files from your backup copy. After the upload, run
load config in-game to reload the configuration settings.
To restore the database:
sudo service redis-server stop.
dump.rdbfile from your back copy into the database data path. Typically this is
/var/lib/redis/dump.rdb. If you get a permission error, run
sudo chmod g+rwx /var/lib/redis/dump.rdbfrom the server shell. Sometimes redis resets the file permissions.
sudo service redis-server startin the server shell.
If you use GitHub to store your code, you can use the
git commands to clone a stable version of the code from your repository.
If you don’t use GitHub, you’ll need to manually restore the
ares-webportal folders, typically using FTP.