-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The echo command we were using wasn't actually dropping the mongo database, but rather echoing 'db.dropDatabase();' | mongo pulp_database This resulted in data being restored on an existing database. So the mongo database stayed during restore. We didn't notice many issues because not much is in the mongo database on a clean satellite install. Fixes #259
- Loading branch information
John Mitsch
committed
Dec 19, 2017
1 parent
8735944
commit 3373ff4
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- name: Drop old mongo database | ||
command: echo 'db.dropDatabase();' | mongo pulp_database | ||
command: mongo pulp_database --eval "db.dropDatabase()" | ||
|
||
- name: Restore new mongo data | ||
command: mongorestore --host localhost {{ backup_dir }}/mongo_dump/pulp_database/ |