Zum Inhalt springen
SoulFire LogoSoulFire

Back up and restore a server

Create a consistent backup and verify it before relying on recovery.

Diese Anleitung gibt es nur auf Englisch.

This procedure uses a Docker Compose deployment with a host directory mounted at /soulfire/data. For a named volume or Java deployment, use the same stop-copy-restore sequence with that deployment's paths.

Before you start

Locate your Compose file, data directory, plugin files, and current image tag or digest. Choose a backup destination outside the deployment directory. Do not copy soulfire.sqlite while the SoulFire server runs, because the copy can be inconsistent. Back up the complete data directory, not only the database.

Create a stopped backup

  1. Pause scripts and cancel work that must not resume later.
  2. Stop all bots and check the Minecraft player list.
  3. Stop the SoulFire server cleanly from its deployment directory:
docker compose stop
  1. Copy the complete data directory to your backup destination.
  2. Copy the Compose file, environment file, installed plugins, and launch configuration.
  3. Record the SoulFire version, image digest, date, and file ownership.
  4. Start the SoulFire server with the original deployment:
docker compose start

Check authenticated client access and the saved project list. The backup contains account credentials and the token signing key. Protect it like a password:

  • Encrypt the backup and restrict file permissions, for example with chmod 600.
  • Keep one copy off the host, so a lost server does not take the backup with it.
  • Keep several dated copies, and make a new backup on a schedule and before every upgrade.

Verify recovery in isolation

  1. Create a separate deployment directory.
  2. Restore a copy of the backup there.
  3. Use the recorded software version and plugin set.
  4. Bind its listener to a different local port.
  5. Keep test bots stopped and prevent accidental access to the production target.
  6. Start the restored SoulFire server and connect an authenticated client.

Check users, projects, account counts, settings, and scripts. Run one disposable bot against a test Minecraft server to check the complete connection path. Do not mark the backup usable until this recovery check succeeds.

Restore the original deployment

Stop the current SoulFire server before replacing its data. Preserve its current data in a separate directory first. Restore the verified backup and its matching software and plugins. Preserve file ownership, especially the container's UID/GID 1001 for writable data.

Start the SoulFire server. Repeat the authenticated access and project checks. Start one bot before resuming the remaining workload.

Signing keys and rollback

Restoring secret-key.bin preserves the signing identity of the backed-up server. Treat that key as a credential. A software rollback can require its pre-upgrade data copy. Read upgrade and rollback before changing versions.

Zuletzt aktualisiert am

War diese Seite hilfreich?