Skip to content

Commit

Permalink
add logs to backup
Browse files Browse the repository at this point in the history
  • Loading branch information
mshadbolt committed Sep 11, 2024
1 parent 1ed666a commit f51dc54
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/backup-restore-candig.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Backing up and restoring CanDIG data

There are two kinds of data stored in CanDIG that we recommend backing up regularly.
There are three kinds of data stored in CanDIG that we recommend backing up regularly.
1. Clinical and Genomic metadata stored in CanDIGs's postgres databases
1. Authorization data stored in vault that details user's authorization to access/edit ingested data
2. Authorization data stored in vault that details user's authorization to access/edit ingested data
3. Logs

We recommend taking back ups after each ingest event and to store one or more copies of your backups on a separate secure server from your CanDIG installation. We also recommend encrypting your backup so that it cannot be accessed by an unauthorizaed user.
For data types 1 and 2, we recommend taking back ups after each ingest event and to store one or more copies of your backups on a separate secure server from your CanDIG installation. We also recommend encrypting your backup so that it cannot be accessed by an unauthorizaed user.

Logs can be backed up on a regular schedule and at a minimum, should be saved elsewhere when performing a rebuild of the stack.

## Backing up postgres databases

Expand Down Expand Up @@ -104,4 +107,8 @@ You should be able to see the restored data in the data portal.

## Backing up Authorization data

## Backing up logs

Logs are stored in `tmp/logging`. The contents of this folder should be saved periodically.


0 comments on commit f51dc54

Please sign in to comment.