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
- Navigate to the Hosted Wallet OnPremises directory:
cd /path/to/infrastructure/
Replace /path/to/infrastructure/
with the path where your Hosted Wallet OnPremises is located
- Extract the backup archive file:
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
- 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
- Restore Backed-up Files:
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 -