nmdp-bioinformatics / gfe-db

Graph database representing IPD-IMGT/HLA sequence data as GFE
https://gfe-db.readthedocs.io
GNU General Public License v3.0
9 stars 15 forks source link

Backup & Restore Neo4j #79

Closed chrisammon3000 closed 1 year ago

chrisammon3000 commented 1 year ago

Description

Usage

Backups & Restore

Backups

Backups are orchestrated by Systems Manager and automated everyday at midnight US/Central time by default. To create a backup, run the command.

make database.backup

This will create a backup of the Neo4j database and store it in S3 under the path s3://<data bucket name>/backups/neo4j/YYYY/MM/DD/HH/gfedb.zip.

Restore

To see a list of available backup dates that can be restored, run the command.

make database.backup.list

To restore from a backup, pass the date of the backup you wish to restore using the format YYYY/MM/DD/HH.

make database.restore from_date=<YYYY/MM/DD/HH>

Alarm Notifications

Subscribe on Deployment

  1. Add a comma-separated list of email strings to .env.

    # .env
    SUBSCRIBE_EMAILS=<email>,<email>,<email>,...
  2. Redeploy the base infrastructure layer to add the topic and subscribe the emails.

    make infrastructure.deploy
  3. Log into your email and confirm the subscription.

Individual Subscription

# Subscribe an email for notifications (unsubscribe using console)
make monitoring.subscribe-email email=<email>

Next Tasks

mmaiers-nmdp commented 1 year ago

Waiting for this to be merged before upgrading to 5.0