-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
- add pg_backup and pg_restore scripts to allow P&E team to regularly backup and then restore the db locally - added instructions to the readme
- add pg_backup and pg_restore scripts to allow P&E team to regularly backup and then restore the db locally - added instructions to the readme
…into AL-db-backup
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
@dav3r , Do you have an idea of when you might have some time to take a look at this PR? Thanks |
Resolved the merged conflicts. Ready for review |
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.
Please take a look at my feedback and let me know if you have any questions.
@aloftus23 - Please also make sure that you check all remaining applicable checkboxes in this PR's "Pre-approval checklist" and delete any that are not applicable to this PR. Generally, we expect that all of those checkboxes have been checked (or deleted) prior to requesting approval. |
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
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.
Thanks for taking my feedback into consideration! Once my last quibble is resolved, this PR looks great to me. ☘️
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
🗣 Description
Created a postgres backup script called pg_backup.sh to be run in the environment with the P&E database. Backs up all data, tables, schemas, users and roles.
Also, created a restore script called pg_restore.sh to be run on developer computers.
README.md was updated with instructions.
fixes #113
💭 Motivation and context
P&E database needs to be backed-up on a regular basis with the ability for developers to restore it on their local environments easily.
🧪 Testing
Pre-commits and pytests pass.
✅ Pre-approval checklist
to reflect the changes in this PR.