Simple Backups
Loading data...
This mod is designed to create and manage backups for your Minecraft server. You can specify the number of backups to keep and set a maximum storage limit. Older backups are automatically deleted to free up space.
Automatic Backup Creation
The mod automatically creates backups during server operation under the following conditions:
- Backup Trigger: A backup is created if:
- There is at least one player online.
- No players are online, but someone has just logged out.
- Player Logouts: If the last player logs out, a backup will be made when the server next checks.
- When no players are online: Up to
noPlayerBackupCountbackups (default:1) are created usingnoPlayerBackupTimeras the interval (0= usetimer). Once that limit is reached, no further backups are created until a player joins (unlessnoPlayerBackupsistrue; see Configuration). - Player joins reset the count: Any join resets the no-player counter. If the regular
timerhas already elapsed, a backup is triggered immediately upon joining.
This ensures that your world is backed up regularly and reliably, even during player logouts. The backup timer is based on real-time, so a lagging server will not extend the interval.
You can use the JVM argument -Dsimplebackups.disableBackups=true to disable automatic backups completely.
The file biomancy.spatial.db from the Biomancy mod is not backed up. For more
information, see this GitHub issue.
A backup will be aborted if there is less than 128 MB of free space left on the disk.
Commands
Manual Backup
The /simplebackups backup start <quiet (true/false)> command starts a backup manually. Optionally, you can use the
quiet parameter to suppress in-game chat messages.
Pause Backups
The /simplebackups backup pause and /simplebackups backup unpause commands allow you to temporarily pause and
resume automatic backups.
There's a small Paused indicator on the screen while backups are paused.
/simplebackups backup pause: Stops automatic backups temporarily until resumed.
Automatic backups will remain disabled until you explicitly re-enable them.
/simplebackups backup unpause: Resumes paused automatic backups.
This command restores automatic backups to their normal schedule.
These commands are useful for temporarily suspending backups during server maintenance, events, or other situations where backups need to be halted.
Merge Incremental Backups
The /simplebackups mergeBackups command merges all incremental backups located in the output directory, which is
defined by the outputPath configuration setting. By default, this is the simplebackups directory, but it can be
changed according to user preference.