Backup and restore

This topic provides guidance on the following actions:

Backing up Team Edition

Follow these steps to back up your instance of Team Edition:

  1. Install pg_dump and pg_restore.

  2. Run the following command from the install directory:

    ./repo-tools backup --database-uri postgresql://postgres:postgres@localhost:5432/postgres --keycloak-database-uri postgresql://keycloak:keycloak@localhost:5432/keycloak --blob-dir /opt/anaconda/repo/state/internal/blobs/ > repo.backup.zip
    
  3. Save the rep.backup.zip file to a secure location.

Restoring Team Edition

Follow these steps to restore your instance of Team Edition:

  1. Reinstall Team Edition.

  2. Reinstall pg_dump and pg_restore as shown above.

  3. Copy the reo.backup.zip file.

  4. Run the following command from the install directory:

    ./repo-tools restore repo.backup.zip --database-uri postgresql://postgres:postgres@localhost:5432/postgres --keycloak-database-uri postgresql://keycloak:keycloak@localhost:5432/keycloak --blob-dir /opt/anaconda/repo/state/internal/blobs/