Cod. | Ultima revisione | Wiki | Note |
---|---|---|---|
967 | 2024/07/10 - MM | Documentation - #12 |
Recovery HWOP Documentation
Recovery Procedure
The recovery procedure for Hosted Wallet OnPremises (HWOP) involves restoring data from a previously created backup using thebackup_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
- Navigate to the Hosted Wallet OnPremises directory:
- Extract the backup archive file:
- Restore Databases:
- To restore
db-backend
database: - To restore
db-keycloak
database: - Restore Backed-up Files:
cd /path/to/infrastructure/Replace
/path/to/infrastructure/
with the path where your Hosted Wallet OnPremises is located
tar -xzvf /path/to/hwp_backup_<TIMESTAMP>.tar.gzReplace
/path/to/hwp_backup_<TIMESTAMP>.tar.gz
with the path to your backup archive file
docker exec -i db-backend pg_restore -U postgres -d hwp --verbose --clean < ./hwp_backup/backend.dump
docker exec -i db-keycloak pg_restore -U postgres -d keycloak --verbose --clean < ./hwp_backup/keycloak.dump
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