World Backup
Simple, reliable world backups at the press of a key — or the tip of a command.
Ever had your world corrupted by a rogue mod, a power outage, or just a bad decision with WorldEdit? World Backup lets you create instant, compressed zip backups of your entire world folder with a single command. Backups run asynchronously so your server never freezes, and automatic rotation keeps your disk from filling up.
✨ Features
- Instant backups — Create a full
.zipbackup of your world with/backup <name> - Non-blocking — Backups run on a separate thread; your server stays responsive
- Automatic rotation — Old backups are pruned automatically based on a configurable limit
- Configurable — Set your backup limit via command or JSON config file
- Safe by default — Name validation prevents path traversal attacks
- Conflict-friendly — Copies your world to a temp directory first, then zips from the clean copy. Files locked by other mods (Sable, etc.) are retried automatically with increasing backoff.
- Server-wide broadcast — All players see backup progress and completion messages
📋 Commands
| Command | Description |
|---|---|
/backup <name> |
Creates a timestamped zip backup with the given name |
/backuplimit <number> |
Sets the maximum number of backups to keep (1–1000) |
Examples:
/backup before-portal → before-portal_2025-06-03_21-30-00.zip
/backup vanilla-test → vanilla-test_2025-06-03_21-31-15.zip
/backuplimit 25 → Sets the rotation limit to 25 backups
All players can use these commands by default — no operator permissions required.
⚙️ Configuration
The backup limit is stored in backup/backup_config.json inside your server directory. It is created automatically on first use and can be edited directly:
{
"backupLimit": 10
}
The limit can also be changed in-game with /backuplimit <number>.
📁 Where are backups stored?
Backups are saved to the backup/ folder inside your server directory (next to your world folders). Each backup is a compressed .zip file named in the format:
<name>_<YYYY-MM-DD_HH-mm-ss>.zip
🔄 Compatibility
World Backup is designed to coexist peacefully with other mods:
- Sable — Fully compatible. World files are copied to a temporary directory before zipping, so Sable's file locks don't interfere. Retried up to 5 times with increasing backoff.
- Ice and Fire, Dread Land, and other dimension mods — All sub-levels and custom dimensions are backed up.
- Any file-locking mod — The copy-first strategy combined with retry logic handles files locked by other mods without skipping data.
- Any world type — Works with vanilla, modded, and custom world formats.
🛠 Technical Details
- Copy-first strategy — World folder is copied to a temp directory using
Files.copy(path-to-path), which on Windows uses theCopyFileExAPI to handle locked files - Backups flush all chunks to disk before copying (
saveAllChunks) - Asynchronous execution via
CompletableFuture— no server tick lag - Automatic retry with backoff (up to 5 attempts) for temporarily locked files
- Temp directory is cleaned up automatically after backup completes (even on failure)
- Backup rotation deletes the oldest files first by modification time
- Safe filename validation: only letters, numbers, hyphens, and underscores allowed
📦 Installation
- Install NeoForge for Minecraft 1.21.1+
- Drop
worldbackup-1.0.0.jarinto yourmods/folder - Start the server — backups are ready to go
No configuration needed to get started. Just /backup my-backup and you're set.
How to Install Fast Async Backups (Mod)
Fast Async Backups by abhinavkumarmauryax is verified for Neoforge across Minecraft versions 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6 (latest release: 1.0.0, file size: 16 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded Fast Async Backups file into your Minecraft
.minecraft/modsfolder and launch the game.
__New approach — copy first, then zip:__
1. __
saveAllChunks__ — Flush all chunks to disk (unchanged)2. __
copyDirectory__ — Recursively copy the entire world folder to a temp directory using Files.copy(source, target, REPLACE_EXISTING, COPY_ATTRIBUTES) — this path-to-path copy on Windows uses the CopyFileEx API which can read locked files (unlike stream-based Files.newInputStream)3. __
copyFileWithRetries__ — If a file is still locked, retries up to 5 times with increasing backoff (500ms, 1000ms, 1500ms, 2000ms, 2500ms)4. __
zipDirectory__ — Zip from the temp copy (no file locks since it's our own copy)5. __
deleteDirectory__ — Clean up the temp directory in the finally blockThis ensures the backup captures the __complete world__ including files that are locked by Sable or other mods, because the path-to-path copy operates at the filesystem level where Windows can handle shared locks. The zip step then works from our own clean copy with zero lock conflicts.