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

Document and test the procedure for restoring site from backups #6

Open
emanueldima opened this issue Jul 3, 2017 · 4 comments
Open
Assignees

Comments

@emanueldima
Copy link
Contributor

No description provided.

@Tlacahuepan
Copy link

Site recovery after disaster:

  1. Request a recovery of vm/real computer from your backup administrator(s)
  2. Install OS/Recover OS from backups
  3. Recover OS/data files from backups if necessary
  4. Check that everything related to b2share is in place, restart vm/computer to start the b2share-instance

@emanueldima
Copy link
Contributor Author

what about the database?

@Tlacahuepan
Copy link

CSC B2share-environment:

B2Share PostgreSQL databases (pgsgl/Invenio) are backed up every night via cron scripts to /data/backup-directory.
When restoring the backup of the whole system, you'd need the latest one of the database backups from where you'll restore the invenio and pgsql databases after you have restored all the other files to operating system, b2share in /opt and datafiles in /data.
For restoration you'd need the root access to the system and necessary database administration passwords.

@Tlacahuepan
Copy link

Restoring database from backup dumps.
Databases (psql and invenio) are snapshotted/dumped every night. After you have restored the file-structure to the /data-volume, you need to restore the databases.
To import a backed up database, unpack the gzipped database dump you need (in this case they are located in /data/backup/-directory), then sudo yourself to postgres and run: psql invenio < /where/your/unzipped/database/file/resides.
Restart b2share (cd /your/b2share/installation/folder/b2share/; docker-compose down;docker-compose up -d).

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

No branches or pull requests

2 participants