3.1.0
Compatibility
Required content
Changes
Mochi Backup — Changelog
🍡 v3.1.0 — Bugfix Release
27 correctness, safety and security bugs fixed across backup, restore, integrity checking and permissions. The build is clean and the integrity/parsing logic was verified with a standalone verification program (19/19 checks).
Fixed
- ZIP backups failed on single-core machines or when TMPFS was disabled — each entry was closed twice, so every sequential ZIP backup aborted
- Backup deadlock — a file that disappeared mid-backup blocked the backup queue forever
- Zip Slip / Tar Slip — a crafted archive could write files outside the world folder
- Restore could destroy the world — the integrity result was ignored and the world was deleted before the replacement was verified, with no rollback. Restore now verifies, renames the old world aside and rolls back on failure
- Inverted date check made integrity validation useless
- Retention never ran for automatic backups — cleanup targeted the wrong directory
- The safety backup froze the server — it ran on the tick thread with a fixed 10-second stall
- Permission check failed open — an invalid permission level exposed
/mochi restoreand/mochi deleteto every player - Config migration lost all settings when upgrading from v1/v2
- Unsafe deserialisation of the integrity status blob taken from the archive
- Restore no longer races a running backup; server-thread waits are bounded; partial backups are always deleted; same-second backups get unique names; Windows file-blacklist matching; Discord embed metadata; legacy
mochi_<epoch>backup names; and several smaller fixes
Behaviour changes
- Strict integrity mode now actually blocks restores of corrupt archives (set Integrity Mode to Permissible to override)
- Backups are paused while a restore is pending
- Cloth Config is now a required dependency
Cleanup
- Removed 4 unused classes and 6 dead members
- New primary mod icon
- README and Modrinth description corrected to match the real behaviour
👤 Credits
- Developer: LeafSpeak
Optional dependencies
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:YTqaBEA4:hpLHhjww"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:YTqaBEA4:hpLHhjww"
}

