Cod. Ultima revisione Wiki Note
967 2024/07/10 - MM Documentation#12

Recovery Procedure

The recovery procedure for Hosted Wallet OnPremises (HWOP) involves restoring data from a previously created backup using the backup_script.sh script.

Prerequisites

  • Ensure a new Hosted Wallet OnPremises installation is set up.
  • Copy the backup file to the server where HWOP is installed.

Recovery Instructions

  1. Navigate to the Hosted Wallet OnPremises directory:
  2. cd /path/to/infrastructure/
    Replace /path/to/infrastructure/ with the path where your Hosted Wallet OnPremises is located
  3. Extract the backup archive file:
  4. tar -xzvf /path/to/hwp_backup_<TIMESTAMP>.tar.gz
    Replace /path/to/hwp_backup_<TIMESTAMP>.tar.gz with the path to your backup archive file
  5. Restore Databases:
    • To restore db-backend database:
    • docker exec -i db-backend pg_restore -U postgres -d hwp --verbose --clean < ./hwp_backup/backend.dump
    • To restore db-keycloak database:
    • docker exec -i db-keycloak pg_restore -U postgres -d keycloak --verbose --clean < ./hwp_backup/keycloak.dump
  6. Restore Backed-up Files:
  7.     cp -r ./hwp_backup/caddy ./caddy
        cp -r ./hwp_backup/hsm-data ./hsm-data
        cp ./hwp_backup/.env ./.env
        cp ./hwp_backup/docker-compose.yml ./docker-compose.yml
        

Argomenti correlati

  • Backup HWOP Documentation -