Backups and moving

Use this page before an upgrade, when moving to a new server, or to set up nightly backups. creekx backup saves the database, configuration and licence, and can include your videos. creekx backup-offsite sends an encrypted backup every night to storage you own, such as Amazon S3 or Backblaze B2.

On this page

Back up now

sudo creekx backup

With every video too (large):

sudo creekx backup --with-library

Each backup goes into its own folder under /var/backups/perpetua/. Copy it somewhere private: it holds the key your platforms' stream keys are protected with.

Nightly backups to your own storage

  1. Make a bucket

    In any S3-compatible storage (Amazon S3, Cloudflare R2, Backblaze B2, Wasabi), make a bucket and an access key that may write to it.

  2. Run the command

    sudo creekx backup-offsite

    It asks for the bucket's details and a passphrase, sends a first backup, and then sends one every night. Backups are encrypted before they leave the server.

  3. Keep the passphrase safe

    Write it down somewhere other than the server. Without it, nobody can open the backups, not even us.

Restore

From a folder on the server:

sudo creekx restore /var/backups/perpetua/FOLDER

From your storage, by the backup's name:

sudo creekx restore-offsite NAME

Restoring replaces everything on that server with the backup, then starts creekX again.

Move to a new server

  1. Back up the old one

    Run a backup and copy it to the new server (or use your nightly storage).

  2. Install on the new one

    Install on a server as usual.

  3. Restore

    Restore the backup there. The installation keeps its ID, so your licence keeps working. Point your domain at the new server last.

How do I know a backup works?

Restore it. A backup command that finishes isn't proof, so restore onto a separate test install and check that the accounts, the settings and one known video came back. Never try this over your live server, because restoring replaces everything on it. Keep the backup key apart from the backup, and if your recordings are copied elsewhere, check those copies separately.

Follow the build