Merge lp://staging/~mwhudson/lava-lab/add-import-db into lp://staging/~linaro-validation/lava-lab/trunk
Proposed by
Michael Hudson-Doyle
Status: | Merged |
---|---|
Merged at revision: | 2 |
Proposed branch: | lp://staging/~mwhudson/lava-lab/add-import-db |
Merge into: | lp://staging/~linaro-validation/lava-lab/trunk |
Diff against target: |
28 lines (+24/-0) 1 file modified
scripts/import-db.sh (+24/-0) |
To merge this branch: | bzr merge lp://staging/~mwhudson/lava-lab/add-import-db |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Larson (community) | Approve | ||
Review via email: mp+82342@code.staging.launchpad.net |
Description of the change
Hi, this branch adds a script that you can use to restore a production db dump into an instance created by lp:lava-deployment-tool. You have to run it from the directory containing the instance. The flags passed to pg_restore were mostly determined by trial and error :-)
To post a comment you must log in.
Well, that could come in handy someday :)
+1
This should work with the database backups we already do, and with some minor tweaking, also work if you wanted to do a db restore for hacking in any non-lava- deployment- tool created virtualenv right?