Follow these steps to back up your instance of Team Edition:
Install pg_dump and pg_restore.
Run the following command from the install directory:
Copy
Ask AI
# Replace <POSTGRES_PASSWORD> with your postgres password. You can find your postgres password here: <BASE_INSTALL_DIR>/config/postgres/postgres_db_password.txt./repo-tools backup --database-uri postgresql://postgres:<POSTGRES_PASSWORD>@localhost:5432/postgres --keycloak-database-uri postgresql://keycloak:keycloak@localhost:5432/keycloak --blob-dir /opt/anaconda/repo/state/internal/blobs/ > repo.backup.zip
Save the repo.backup.zip file to a secure location.
Run the following command from the install directory:
Copy
Ask AI
# Replace <POSTGRES_PASSWORD> with your postgres password. You can find your postgres password here: <BASE_INSTALL_DIR>/config/postgres/postgres_db_password.txt./repo-tools restore repo.backup.zip --database-uri postgresql://postgres:<POSTGRES_PASSWORD>@localhost:5432/postgres --keycloak-database-uri postgresql://keycloak:keycloak@localhost:5432/keycloak --blob-dir /opt/anaconda/repo/state/internal/blobs/