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.
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.
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.
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.
Compatibility
Mc2Discord
If enabled in the configuration simplebackups-common.toml
, all backup notifications will also be sent to Discord.
Configuration
Configuration | Description | Default | Note/Examples |
---|---|---|---|
onlyModified | Whether to back up only changed files. | false | Useful for large worlds, but requires old backups for a complete restoration. |
backupsToKeep | Maximum number of backup files to retain. | 10 | ❌ |
timer | Interval between two backups (in minutes). | 120 | 5 for every 5 minutes, 60 for every hour, 1440 for daily backups. |
sendMessages | Whether to send messages when a backup is performed. | true | ❌ |
maxDiskSize | Maximum disk space available for backups. Old files are deleted when exceeded. | 25 GB | Accepts formats like 10 MB , 50 GB . |
outputPath | Directory path where backups are stored. | simplebackups | ❌ |
mc2discord | Whether to send backup notifications to Discord using the Mc2Discord mod. | true | ❌ |