Skip to content
This repository was archived by the owner on Apr 23, 2019. It is now read-only.

Conversation

@michaeldfallen
Copy link
Contributor

This pull request creates two jobs: Backup DB and Restore DB.

Backup DB uses python manage.py dumpdata to take a Django json dump of the entire database. It then rsyncs the file back to jenkins and archives it, so that it can be downloaded via the job detail page.

artifacts

Restore DB uses python manage.py loaddata to restore a database from a Django json dump. You upload the backup via a file parameter when triggering the job. Jenkins then rsyncs the file to lighthouse and sshs in to restore the DB. Existing columns, records (where they match), and relationships are all preserved.

restore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants