ScanopyScanopy

Maintaining a Self-Hosted Server

Back up and restore a self-hosted Scanopy server's database, upgrade it, and renew its license key.

Back up the database

Everything the server stores is in its PostgreSQL database: users, sites, credentials and discovered data. Back it up on a schedule, and before every upgrade.

Run this in the folder that holds the compose file:

docker compose exec -T postgres pg_dump -U postgres -Fc scanopy > scanopy-$(date +%F).dump

Keep the dump somewhere other than the server host.

Restore from a backup

Stop the server, replace the database's contents with the dump, then start the server again.

docker compose stop server
docker compose exec -T postgres pg_restore -U postgres -d scanopy --clean --if-exists < scanopy-2026-01-31.dump
docker compose start server

Upgrade the server

Follow Upgrading a Self-Hosted Server.

On this page