ModsFinder

Backup Scripts

by electroluxv2

Servers that save their worlds on a timer can run custom shell scripts at each save with Backup Scripts, a Fabric mod by electroluxv2.

FabricServer-side onlyCreative Commons Attribution 4.01.20.1 – 1.21

What it does

The mod hooks itself into the built-in save system, so a script runs each time the server saves. By default the script is executed with bin/bash, and its contents can be edited in the file mods/backup-scripts/shell. Because the scripts run on the server, the mod has no effect on a player's client.

Each run passes server details to the script: the player count, whether the server is running, the average tick time as a float, and the total number of level names. The script can also handle several levels at once, using the level name of each one to find its directory. Backup Scripts requires Fabric API, and files are published for Fabric only, across 1.20.1, 1.20.4 and 1.21, under the Creative Commons Attribution 4.0 license, which is not open source. The latest file, 1.3.0, targets 1.21 and dates from 2024-07-22.

Key features

  1. Scripts on save

    Scripts execute whenever the server's built-in save system runs, so backups follow the save schedule.

  2. Shell editing

    The default script runs under bin/bash and is edited in a plain shell file inside the mod's folder.

  3. Server status values

    Player count, average tick time and whether the server is running are available to the script.

  4. Multiple levels

    The script can process several level names in one run, mapping each name to its directory.

Compatibility

Latest build for each game version and loader.

1.211.3.0
1.20.41.2.1
1.20.11.2.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Scheduled world copies

A server owner can copy the world folder or push it to other storage each time the server saves.

Logging server health

The script can record player count and tick time at every save to track how a server performs over time.

Who it’s for: Server owners who want to run their own shell commands alongside the save system, and who are comfortable editing a bash script.

How it compares

Full comparison

Tempus is server-side only and open source under the Apache License 2.0, with files for 1.21.4. Easy backups is also server-side only and uses the Apache License 2.0, but it is not open source and targets 1.21.10. Backup Scripts reaches 1.21 with a scripting approach, not a fixed backup routine.

ModLoadersGame versionsEnvironmentUpdated
Backup ScriptsFabric1.20.1 – 1.21Server-side only2024-07-22
TempusFabric1.21.4Server-side only2025-02-01
Easy backupsFabric1.21.10Server-side only2025-12-28

Questions

Does Backup Scripts need Fabric API?

Yes. Fabric API is a required dependency, so it must be installed next to Backup Scripts on the server.

Does Backup Scripts have to be installed on player clients?

No. Players join without it, since only the server has to run the mod.

Which game versions does Backup Scripts support?

Files exist for 1.20.1, 1.20.4 and 1.21, and the latest Fabric file, 1.3.0, is for 1.21.

In the catalog

Backup Scripts is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 15,770 mods support Minecraft 1.21.

More from electroluxv2

All projects

Similar mods

What the author says

Each script is executed in server root directory (next to.jar file) with the following arguments: - 1 - player count - 2 - average tick time (float) - 3 - server running ("true" or "false") - 4 - total level names - 5+ - level name #n (server may run multiple levels at once, level name is equal to directory name)…
electroluxv2, on the Modrinth page

Official listing

Owner
electroluxv2
Published
2023-08-10
Updated on Modrinth
2024-07-22
Facts verified
2026-10-15

Tags