It’s important to make backups of your game database and code. There are many ways to do this, a few of which are discussed here.
The Redis database already periodically dumps your database to a file on the server. You can manually FTP that file, along with everything in your aresmush code directory, for a simple backup.
If you’re using Digital Ocean, it will prompt you with the location of your dump file when you log into the Server Shell.
For example, it will tell you:
Data dir: /var/lib/redis/1234
If you’re not using Digital Ocean, you probably installed redis yourself so hopefully you know where you installed it!
If you followed the standard setup, it should be in
If you are using a Digital Ocean droplet, you can use their Automatic Backup feature to create a weekly backup of your entire server. This includes the database, the code - everything. There is a modest fee for this service.
AresMUSH can automatically perform daily backups to Amazon’s S3 storage service.
Important: Setting up anything with AWS can be tricky. AWS is not recommended for those without prior server admin experience. Make sure you’re familiar with their cost tiers. Most games will fit comfortably into their ‘free tier’, but you’ll want to make sure you know what you’re getting into.
To set up automatic backups, you’ll need:
Important: Even if you use S3 for other things, create a separate bucket just for your AresMUSH backups. Ares will delete older files to make room for new backups, and you don’t want it to accidentally delete anything important!
Once you have an S3 account, you’ll need to configure the game to use it.
You’ll need your AWS access key, bucket name and the code for the region your bucket is in. You can find the AWS region codes here.
There are many moving parts in the backup process. Once you have it all set up, we recommend that you test it once using the manual
dbbackup command. Make sure that the database file ends up in your S3 bucket successfully before relying on the automatic daily backups.
There are a few other backup preferences you can configure.
You can configure the number of backups the game keeps. By default this is 5. Older backups are automatically deleted.
You can also configure when backups are done. By default it’s early morning, after peak MU* times. See the Cron Job Tutorial for help if you want to change this.
If you performed a custom installation, you may also need to configure a different path for where the database dump file lives.