informatics-isi-edu / pdb-ihm

Deriva Protein Database Project
2 stars 1 forks source link

Create backup on RCSB cloud east #114

Closed brindakv closed 1 year ago

brindakv commented 1 year ago

Create ermrest and hatrac backup on RCSB east cloud.

@svoinea will provide a tarball.

Create an account for @svoinea / proxy-ihm-account on RCSB east cloud.

Create a dropbox folder with access to @svoinea.

brindakv commented 1 year ago

Communicating with RCSB IT admins.

brindakv commented 1 year ago

@hongsudt is looking at backing up on s3 bucket.

svoinea commented 1 year ago

A daily backup for the database and hatrac was enabled for the dev/staging and production on apache-pdbdev-deposit-east.wwpdb.org.

As staging and dev are sharing the same VM, a single backup was scheduled which goes on the apache-pdbdev-deposit-east.wwpdb.org:/mnt/vdb1/PDB-Dev-deriva-DHS/staging directory. Its database directory contains both catalogs:

A pair of ed25519 keys was generated in this respect for the user pdbihm.

brindakv commented 1 year ago

Additional notes:

brindakv commented 1 year ago

@brindakv will find out about wwPDB practice regarding the frequency of backing up data in the OneDep system and @svoinea will find out about current practice at ISI. For example, single day (overwritten every day), multiple days (days 0, 1, 2, etc. for seven days), weekly (overwritten every week), etc.

svoinea commented 1 year ago

The /mnt/vdb1/PDB-Dev-deriva-DHS directory on apache-pdbdev-deposit-east.wwpdb.org was restructured such it contains now the two PDB hostnames:

Each of them contains the directory structure of the original source:

brindakv commented 1 year ago

@svoinea will add home/pdb-ihm to the backups.

@brindakv will review the backups.

For later: Try restore using backups.

svoinea commented 1 year ago

Added in the backups the /home/pdbihm with the following sub-directories used by the backend script:

brindakv commented 1 year ago

@brindakv will check with IQB IT team regarding backups on IQB storage.

@hongsudt and @brindakv will look at using restic for backups.

brindakv commented 1 year ago

Checked with the IQB IT team and got confirmation that the data is backed up on the local IQB storage.