Repository navigation
Moving and Removing
Stop modl before copying data, and back up first (Backups and Restore).
- Stop modl (the Minecraft server, the container or the jar).
- Copy the whole data folder, including
storage/.meta/, or make abackup --with-storageandrestoreit on the new machine. - Copy
connection.ymlor.env. - Start modl there. If the address changed, update
public-urlorMODL_PUBLIC_URL, DNS, andremote.urlon every server. Passkeys of an old domain stop working.
S3 uploads stay in the bucket; point the new installation at the same bucket.
- Stop the Minecraft server.
- Copy
plugins/modl/data/to the new data folder (./data,MODL_DATA_DIR, or restore a backup into the Docker volume). - Move what you set in
embeddedto the environment:porttoMODL_PORT,bind-addresstoMODL_BIND_ADDRESS,public-urltoMODL_PUBLIC_URL,admin-emailtoMODL_ADMIN_EMAIL,trust-proxy-headersandtrusted-proxytoMODL_TRUST_PROXY_HEADERSandMODL_TRUSTED_PROXY,databasetoMODL_DATABASE_*,smtptoMODL_SMTP_*,aitoMODL_AI_*,tunneltoMODL_TUNNELandMODL_TUNNEL_TOKEN. Panel settings move with the data. - Start the separate panel.
- On the server, set
mode: remotewithremote.urland the API key (unchanged, Settings > General > Minecraft servers), and start it.plugins/modl/server/(the built-in panel and its libraries) can then be deleted.
The reverse works the same way: copy the data folder into plugins/modl/data/, move the settings into embedded, set mode: embedded.
While modl runs, use Settings > System > Database (Database and Storage). Offline, copy-database copies everything from the configured database into another one. The target must have no modl tables. Stop modl first; changes made during the copy are lost.
read -rs MODL_TARGET_PASSWORD && export MODL_TARGET_PASSWORD
java -jar modl-server-<version>.jar copy-database --to "jdbc:postgresql://db.example.com:5432/modl?sslmode=verify-full" --username modl --password-env MODL_TARGET_PASSWORDThen set embedded.database or the MODL_DATABASE_* variables to the target and start modl. Back to SQLite: move the data folder's database/ aside (it holds the old SQLite copy, and copy-database refuses a target with modl tables), run copy-database --to sqlite while the external database is still configured, then remove the database settings. If the external database was chosen in the panel, move back in Settings > System > Database instead; it replaces the old copy. Uploads stay where they are.
Docker:
docker compose stop modl
docker compose run --rm -e MODL_TARGET_PASSWORD modl copy-database --to "jdbc:postgresql://db.example.com:5432/modl?sslmode=verify-full" --username modl --password-env MODL_TARGET_PASSWORDFor a built-in panel run it like the backup command, with MODL_DATA_DIR=plugins/modl/data (Backups and Restore).
One server: revoke its key in Settings > General > Minecraft servers, stop it, delete modl-<version>.jar and plugins/modl/. A server behind a proxy without modl no longer blocks signed chat of muted players.
Everything:
- Back up if you may want the data later.
- Stop every server and delete
modl-<version>.jarandplugins/modl/from each. - Separate panel:
docker compose down -v(deletes the volume), or delete the jar and its data folder. - External database: drop modl's database, or its tables starting with
modl_(includingmodl_schema_history). - S3: delete the objects under
modl_instance/.
Bans and mutes stop being enforced once modl is gone.
To start over instead: stop modl, back up, delete the data folder (or the Docker volume), and start again.
modl is free software under the AGPL-3.0. Source and releases, issues.
Install
- Requirements
- Single Server
- Proxy Network
- Separate Panel
- First Run
- Panel Port and Tunnels
- HTTPS and Reverse Proxy
Configure
- Configuration
- Plugin Files
- Email and Sign-in
- Database and Storage
- AI Moderation
- Replays
- Customizing the Public Pages
Operate
Reference
Help