Skip to content
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

Add command to sync with DB on prod #759

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

aef-
Copy link
Collaborator

@aef- aef- commented Mar 18, 2021

This takes the latest DB dump and loads it into your local DB. I also added a flag to the pg_dump command in our back-up cronjob that reduces the total size of the dump. Information on that can be viewed here: https://dan.langille.org/2013/06/10/using-compression-with-postgresqls-pg_dump/

Copy link
Collaborator Author

@aef- aef- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to add obfuscation to DMP BAM filename and path.

@@ -114,6 +114,8 @@ install: conda
# pip install git+https://github.com/mskcc/beagle_cli.git@develop
# pip install -r requirements-cli.txt # <- what happened to this file?

BEAGLE_BACKUP_DB_FOLDER=/juno/work/ci/beagle_backups/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this just makes it more complicated than necessary but this could maybe be an env var

@ionox0
Copy link
Member

ionox0 commented Mar 26, 2021

@aef- just FYI I used this locally and it worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants