Old School Ops

Backups

What to copy, how often, and how to prove a backup works before you need it.

Every game · updated 2026-09-11

A server holds two things worth keeping: the databases and the settings file. Everything else comes back out of a release archive.

What to Copy

PathHoldsLosing it means
db/Accounts, characters, everything players didStarting over
settings.cfgDatabase credentials, ports, keysReconfiguring by hand
logs/Nothing you needNothing
server/, tools/, client/Program filesRe-download the release

On MySQL the databases are not in db/. Back them up with mysqldump instead:

mysqldump --single-transaction --databases gommo_accounts gommo_<game> > backup.sql

--single-transaction is what makes the dump consistent without locking players out.

How Often

Once a day is enough for most servers. A backup is worth what you would lose between it and the failure, so a busy server wants more.

Keep more than one. A backup taken after the corruption is a copy of the corruption.

Prove It Works

An untested backup is a guess. Restore one into a scratch directory and start the server against it:

  1. Copy the backup somewhere else.
  2. Point a second copy of settings.cfg at it, on a different port.
  3. Start the server and sign in.

Do this once when you set backups up, and again whenever you change the database backend. Most backup failures are discovered during the restore that was supposed to fix something else.

Before an Upgrade

Take one. A release can change the schema, and the change is not reversible by downgrading.

Something here wrong?

Out of date, incomplete, or assuming something it should not. Documentation errors are bugs, and this one arrives tagged and pointed at this page.

Loading…
Open the full search page