Skip to main content

Backup And Restore

Backup and restore for SVRunner is primarily about preserving the server's persistent runtime data. In most deployments, the application build can be replaced, but the files/ data must be protected.

What Must Be Backed Up

At minimum, back up the persistent server data directory.

By default, that includes:

  • database: files/local.db
  • uploaded assets: files/assets
  • logs: files/logs

These paths are derived from:

  • SVR_SERVER_FILES_DIR
  • SVR_SERVER_ASSETS_DIR
  • SVR_SERVER_LOGS_DIR
  • SVR_SERVER_DATABASE_PATH

If your deployment overrides SVR_SERVER_FILES_DIR, back up the actual configured location instead of assuming the default path.

What Else To Preserve

Also preserve:

  • the .env file or equivalent deployment-time environment configuration
  • deployment notes for ports, addresses, and storage mounts
  • any container/orchestration configuration if using Docker or managed infrastructure
  • kiosk or player-side configuration if those devices are part of the operational handoff

What Usually Does Not Need Backup

You can usually rebuild or redeploy these from source artifacts or release packages:

  • the main application build
  • the docs build
  • the preview build

Do not rely on that assumption unless your release process is known and repeatable, but operationally the durable data is the priority.

Backup Strategy Recommendations

Use a repeatable backup process that includes:

  1. persistent data directory backup
  2. environment/config backup
  3. retention policy
  4. restore testing

At minimum, keep backups frequently enough to protect:

  • current schedule state
  • uploaded media
  • recent operational history

Restore Workflow

The practical restore process is:

  1. provision a replacement host or deployment target
  2. install the desired SVRunner build
  3. stop the application if it has already created fresh runtime data
  4. restore the backed-up files/ contents to the correct persistent location
  5. restore the .env or deployment environment settings
  6. start the server
  7. validate the application, data, and asset availability

Post-Restore Validation

After restore, confirm all of the following:

  • the app loads at the expected address and port
  • users can sign in
  • the active license state is present as expected
  • assets appear in the UI
  • asset files resolve from /static
  • preview works for at least one known screen and event
  • logs are present for the expected historical period

Backup Files Directory Stub screenshot: server persistent files/ directory structure showing assets, logs, and local.db. Save final image at packages/docs/screenshots/installation-backup-files-directory.png.

Docker And Managed Deployment Note

If you run SVRunner in Docker or a managed platform:

  • restore the mounted persistent volume contents
  • confirm the replacement container points at that restored volume
  • validate that the volume mount path matches what the application expects

Operational Guidance

  • test restore procedures before you need them in production
  • record the real storage path used by each deployment
  • do not assume container redeploy or VM snapshotting alone is a complete backup strategy