-
Notifications
You must be signed in to change notification settings - Fork 3
Backups
Backups are important. Why? Because things happen, and no, RAID is not a backup. This article will detail where important files are kept in MCTowns, and what you can do on a regular basis to back them up.
All MCTowns files are located in .../plugins/MCTowns/. If you want, just back up this folder, and you're set. However, here is a list of some important files and what they do, if you want to back them up individually:
-
MCTowns/saves/- All town data is saved here. -
MCTowns/saves/.meta.yml- This file holds a list of all town names and all regions. Without this, no towns or regions will load. -
MCTowns/config.yml- This file holds the configuration for the plugin.
These will vary from system to system, and I have no experience with this sort of thing on Windows. However, I will detail a few backup strategies for GNU/Linux systems. These should all be cross-distribution as long as you install the right packages.
Use crontab -e to create a cron job, running your favorite backup script. Since MCTowns uses plaintext files for everything, they should also compress quite well. Just a little zip -r "MCTowns-$(date).zip" $myServer/plugins/MCTowns and off you go.
Making a full backup, as described above, is not always the best way to go- why keep saving the same info twice, if it barely changes? I'd recommend creating incremental backups instead, though this is a more involved process. However, searching your favorite search engine for tar incremental backups or zip incremental backups should lead to guides that can provide far more detail than I can provide here.