FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit ec2f5321 authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

Merge branch 'add-db-backup-restore' into 'master'

Added database backup and restore section.

Closes uis/devops/grails-application-ansible-deployment#11

See merge request !101
parents 80099fb6 b616e279
No related branches found
No related tags found
1 merge request!101Added database backup and restore section.
Pipeline #131403 passed
......@@ -143,3 +143,24 @@ to:
Restart Tomcat:
`service tomcat6 restart`
## Database backup and restore on UCS dev group services
Examples, refer to Lookup service (`ucs-ibis` package) and need substituting as
appropriate.
Database backups and restores are managed by a pair of scripts in `/usr/share/ibis/bin`, `ibis-backup` and `ibis-restore`.
### Database backups
Generally `ibis-backup` is run from a cronjob `/etc/cron.d/ibis`, which, by passing in an argument `hour|day|week|month|year`, outputs a bzip2 compressed database dump in the `/usr/share/ibis/backup/hour|day|week|month|year` directory.
The `ibis-backup` script can also take the argument `now` which creates a database dump in the current directory.
### Database restores
The `ibis-restore` script takes a bzip2 compressed backup file which was created by `ibis-backup` and optionally the name of the database to restore to.
`ibis-restore` does not restore to an existing database, if we want to replace an existing database we must do a `DROP DATABASE` first.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment