Overview
The backup system creates compressed ZIP archives of your entire server directory, making it easy to:- Protect against data loss
- Roll back after failed updates
- Test changes safely
- Migrate servers
- Maintain version history
Configuration
Configure backup retention inmd_config.yml:
When you create a new backup and reach the limit, the oldest backup is automatically deleted to make room.
Backup Storage Structure
Backups are stored in the.mdbackups directory:
.mdbackups.
Creating Backups
Ensure Server is Stopped
The backup system requires the process to be stopped before creating a backup.If the server is running, you’ll see:Stop your server first:
Backup Process Details
When creating a backup, McDis-RCON:- Verify process is stopped
- Find existing backups
- Delete backups exceeding configured limit
- Rename existing backups (1→2, 2→3, etc.)
- Create timestamp log
- Compress server directory to ZIP
- Remove timestamp log
A temporary
backup_log.txt file is created during backup to record the exact time the backup was made. This file is included in the ZIP but removed from the live server.Restoring Backups
Create Current Backup
Before restoring, create a backup of your current state:This gives you a way to revert if the restoration goes wrong.
Select Backup
Choose the backup version you want to restore from the dropdown:
<server> 1.zip- Most recent<server> 2.zip- Second most recent- etc.
Wait for Extraction
The backup will be extracted to the server directory. This may take a while for large backups.
Restoration Process
- Delete entire server directory
- Create empty server directory
- Extract backup ZIP to server directory
- Restoration complete
Backup Rotation
McDis-RCON uses a simple rotation system:Example with Backups: 3
Initial state:
Backups are numbered from 1 (newest) to configured limit (oldest). When the limit is reached, the oldest backup is deleted automatically.
Backup Best Practices
Schedule Regular Backups
Create backups on a regular schedule (daily, weekly) depending on server activity.
Before Major Changes
Always backup before:
- Server updates
- Plugin installations
- World edits
- Configuration changes
Test Restorations
Periodically test restoring backups to ensure they’re valid and complete.
External Backups
Download important backups to external storage (cloud, NAS) for disaster recovery.
Backup Size Considerations
Typical Backup Sizes
- Vanilla server (new world): 50-100 MB
- Vanilla server (established): 200-500 MB
- Modded server: 500 MB - 2 GB+
- Long-running server: 1-5 GB+
Reducing Backup Size
To reduce backup sizes:-
Clean up logs before backup:
-
Remove old world backups:
-
Exclude crash reports:
-
Increase backup retention interval (fewer backups kept)
Backup Automation
While McDis-RCON doesn’t have built-in scheduled backups, you can automate them using plugins:Example Backup Plugin
See Plugins & Addons for more information on creating custom automation.
Downloading Backups
To download backups to your local machine:Small Backups (< 5MB)
Large Backups (> 5MB)
Configure Flask links as “Single Use” and “Temporary” for security when downloading sensitive backups.
Uploading Backups
To upload a backup created elsewhere:Troubleshooting
Backup creation fails
Backup creation fails
Possible causes:
- Server is still running
- Insufficient disk space
- Permission errors
- Path too long (Windows)
- Ensure server is fully stopped
- Check disk space:
df -h(Linux) or File Explorer (Windows) - Verify write permissions on
.mdbackups/ - Shorten server name or move McDis to shorter path
Backup restoration fails
Backup restoration fails
Possible causes:
- Corrupted backup file
- Insufficient disk space
- Permission errors
- Server is running
- Try a different backup version
- Free up disk space
- Check permissions
- Ensure server is stopped
Backup size is huge
Backup size is huge
Possible causes:
- Large world size
- Many mods/plugins
- Lots of player data
- Log files included
- Clean up logs before backup
- Remove old crash reports
- Prune world chunks
- Consider reducing
Backupssetting
Can't find backup folder
Can't find backup folder
Solution:
Navigate to
.mdbackups in the file manager. This folder is hidden in some file browsers due to the leading dot.The folder structure is:Advanced: Manual Backup Management
You can also manage backups manually via file manager terminal or SSH:Create Manual Backup
List Backups
Extract Backup Manually
Backup vs. Version Control
For configuration files and plugin code, consider using Git:Related Features
File Manager
Navigate and manage server files
Process Control
Stop servers before creating backups
Configuration
Configure backup retention policy
Discord Panel
Access backup tools through the panel
