Backup and restore
The bot backs up its database, its configuration and the DCS instance directories. Two components do it, and they are independent of each other:
- the Backup service (backup service) — scheduled backups per node
- the Backup plugin (backup plugin) — manual backups from Discord
Both write a single archive you can move to another machine.
Auto-restore
- Create a folder named
restorein the bot's installation directory. - Copy the backup file into it.
- Point
config/nodes.yamlat the database the restored data should live in. - Start the bot and let the restore run to completion.
The bot reads the archive on startup and restores:
- the database
- the bot configuration
- the instance directories, including missions and their configuration (what exactly is included is described in the backup service's page)
Tip
Auto-restore is the simplest way to move a database from one PC to another. Keep the PostgreSQL master password at hand — the restore asks for it.