Przejdź do treści
SoulFire LogoSoulFire

Preserve server data

Identify the SoulFire server data directory and distinguish persistent state from client exports.

Ten poradnik jest dostępny tylko po angielsku.

The SoulFire server stores persistent data under its base directory. For Docker, the official image uses /soulfire/data. The host mount or named volume at that path must survive container replacement.

What to preserve

The current SoulFire server includes:

  • soulfire.sqlite: the default SQLite database for projects, users, accounts, and saved state.
  • secret-key.bin: the JWT signing key.
  • config/: SoulFire server and plugin data.
  • object-storage/: stored objects, including script code.
  • minecraft/mods/: installed plugin JARs.
  • soulfire.properties, if you created one.
  • Export directories needed by your workflow.

Preserve the complete deployment data and plugin locations rather than selecting only the database. An exported visual script does not include accounts, users, signing keys, or every project setting.

Find the directory

For Docker, inspect the mount mapped to /soulfire/data in your Compose file. The automated setup keeps deployment files under /opt/soulfire/. The exact host data location follows that file's volume mapping.

For a dedicated JAR, the launcher uses its working directory as the base directory. Keep the service's working directory stable across restarts. For the integrated server, use its diagnostics to locate the application data directory. Do not assume that a remote SoulFire server stores files beside your client executable.

Check persistence

  1. Create a test project and save its settings.
  2. Stop the SoulFire server cleanly.
  3. Start the same deployment with the same data mount.
  4. Check that the project and its settings remain available.

Keep bots stopped during this check so a restored running request does not reconnect unexpectedly. Use backup and restore before replacing or moving the deployment.

External MySQL databases

The default is SQLite. Set -Ddatabase=mysql to use MySQL, and pass the connection details as system properties:

PropertyDefault
mysql.hostlocalhost
mysql.port3306
mysql.databasesoulfire
mysql.user(none)
mysql.password(none)
mysql.sslModedisable
mysql.minimumIdle1
mysql.maximumPoolSize10
java -Ddatabase=mysql -Dmysql.host=db.internal -Dmysql.user=soulfire -Dmysql.password=YOUR_PASSWORD -Dmysql.sslMode=required -jar SoulFireDedicated.jar

Use mysql.sslMode=required when the database is on another machine. Other users on the host can read command-line arguments in the process list, so restrict shell access on a shared machine. An external database needs its own consistent backup in addition to the filesystem data and signing key. The stopped SQLite procedure does not back up an external MySQL server.

Ostatnia aktualizacja:

Czy ta strona jest pomocna?