Skip to content
Joshua Hertlein edited this page Jan 10, 2015 · 4 revisions

Overview

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.

Important Files

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.

Backup Strategies

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.

Cron jobs

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.

Incremental Backups

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.

Clone this wiki locally