Backing Up Docker Volumes
When You'd Use This
If none of these apply, stop here and use the in-app backup instead.
Docker Volumes
All Koios data lives in seven Docker volumes:
The three Critical volumes are enough to rebuild a working install. The others carry uploads and configuration that are convenient to keep but recoverable from elsewhere.
Backup
Back up a volume by running a temporary Alpine container that mounts the volume and creates a tar archive in the current directory:
Run the same command for each volume you want to back up, swapping the volume name and archive filename. At minimum, back up the three Critical volumes (koios_data_postgres, koios_data_influxdb, koios_secrets). Add koios_media and koios_license if you have uploaded models or an activated license.
Restore
Stop Koios, then restore each archive back into its volume. This command deletes the volume's contents before extracting, so the restore is a clean replacement:
Repeat for every volume you need to restore, then start Koios again.
