Modscraper Modscraper Minecraft
ConfigGuard logo

ConfigGuard

Mod

Automatic snapshots of your config folder with a line-by-line diff and one-click restore. Undo any config change, on the client or on a server.

Type

Mod

Modrinth Downloads

751

Modrinth ID

NJzJexqm

Last Updated

Nov 24, 2026

Description

ConfigGuard

Broke your configs? Roll them back in two clicks.

ConfigGuard keeps automatic snapshots of your config files and shows exactly what changed between them. Any file, or the whole folder, can be restored from a snapshot. It is made for players who tweak modpacks, pack makers who test updates and server owners who edit configs by hand.

Finding a config change

Run /configguard history 1 config/example.toml to see when one file was added, edited or removed. Select [diff] beside a change to inspect the two saved versions. Use /configguard find 1 Before tweaking to search labels, snapshot IDs and reasons.

Features

  • Automatic snapshots when the game starts (on Fabric, before other mods load and rewrite their files) and when it closes. You can also take a snapshot by hand and give it a label.
  • Change detection: if config files changed while the game was closed (a modpack update, manual editing, another launcher), a notification tells you how many files changed.
  • Visual diff: a snapshot list → the files that changed since then (new, changed, deleted) → a line-by-line diff with removed lines in red and added lines in green.
  • Restore one file or everything. Before restoring, ConfigGuard saves the current state as another snapshot, so every restore can be undone.
  • Pinned snapshots are never removed automatically. Old unpinned snapshots are cleaned up once the limit is reached.
  • Compact storage: files are stored by their SHA-256 hash in the configguard/ folder, so a file that did not change is never stored twice.

Opening the screen

  • Fabric: Mod Menu → ConfigGuard → config button (Mod Menu is optional).
  • NeoForge: Mods → ConfigGuard → Config.
  • Any loader: set a key for Open ConfigGuard snapshots in Controls → Key Binds (unbound by default).

Server commands

For operators (permission level 4), on dedicated servers and in single player with cheats enabled:

Command What it does
/configguard snapshot [label] Take a snapshot now
/configguard list List snapshots, newest first (click an id to see its changes)
/configguard changes <id> Files that changed since the snapshot
/configguard diff <id> <path> Line diff of one file in chat
/configguard restore <id> [path] Restore one file or all changed files
/configguard pin <id> / unpin <id> Keep a snapshot forever, or release it

Snapshot ids and file paths are suggested with Tab. Restart the game or server after a restore so mods read the restored files.

Settings

config/configguard.json (created on first launch):

Key Default What it does
trackedPaths config, defaultconfigs, options.txt, server.properties Files and folders in the game folder that are captured
excludedGlobs **.log, **.tmp, **.bak, **.lock, **.old Files that are skipped
maxFileSizeKb 1024 Larger files are skipped
maxSnapshots 40 How many unpinned snapshots are kept
snapshotOnStartup true Snapshot when the game starts
snapshotOnShutdown true Snapshot when the game closes
notifyExternalChanges true Notify about changes made while the game was closed

Compatibility

  • Works on the client, on a dedicated server, or on both. It does not need to be installed on the other side.
  • Fabric and Quilt: require Fabric API; Mod Menu is optional. Forge and NeoForge: no extra dependencies.
  • Works with any mod that keeps its settings in the config folder: TOML, JSON, JSON5, properties and other text formats get a line diff; binary files are listed with their size.

New in 1.1

Use /configguard list <page> to browse older snapshots, ten per page.

Compare two saved snapshots with /configguard compare <from> <to>. Select a changed path for its historical line diff, including additions and removals. This reads both states from the archive.

License

MIT. You are welcome to include ConfigGuard in modpacks.

Export a saved snapshot with /configguard export <id>. The server writes a portable ZIP under configguard/exports and verifies each archived file against its stored SHA-256 before replacing an earlier export.

Compatibility

Mod Loaders

Fabric Forge Neoforge Quilt

Game Versions

1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 +23 more

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Screenshots

Similar Mods

External Resources