-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add backup and restore scripts with steps #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: shutter-api
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall but some changes needed.
scripts/RESTORE.md
Outdated
- Database dump (`keyper.dump`) - Contains full schema and data from the `keyper` database | ||
- Chain data (`data/chain/`) - Blockchain data and configuration | ||
- Keyper configuration (`config/`) - Application configuration files | ||
- Environment variables - Metrics configuration settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also includes the private key, should be mentioned here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now copying whole env file except private key
|
||
echo -e "${B}[4/7] Copying data...${DEF}" | ||
cp -a "${SCRIPT_DIR}/../data/chain/" "${WORKDIR}/chain" | ||
cp -a "${SCRIPT_DIR}/../data/db/keyper.dump" "${WORKDIR}/keyper.dump" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS the source path is wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the backup is created in the db folder only as previous docker setup, would not have new volume mapped in the compose (db-dump
). The idea is to store the dump in the same dir where postgres data is stored and then copy it to db-dump
at the time of restore. LMK, if needs more clarification
Co-authored-by: Ulrich Petri <ulo@ulo.pe>
Co-authored-by: Ulrich Petri <ulo@ulo.pe>
closes #29