Skip to content

Add command to sync with DB on prod#759

Open
aef- wants to merge 3 commits intodevelopfrom
aef-/sync-prod-rc1
Open

Add command to sync with DB on prod#759
aef- wants to merge 3 commits intodevelopfrom
aef-/sync-prod-rc1

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/

@aef- aef- requested review from allanbolipata and sivkovic March 18, 2021 18:39
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.

# 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