-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
19 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
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,3 +1,26 @@ | ||
# 1.0.0 | ||
## Breaking Changes | ||
Uses the bitnami mongodb helm chart. There is no automated upgrade path from previous versions... you will have to manually migrate data. | ||
Uses the bitnami mongodb helm chart. There is no automated upgrade path from previous versions... you will have to manually migrate data. | ||
|
||
Here are some very basic instructions on how you could manually migrate the data. | ||
### Exec into the old mongo db pod and perform a backup: | ||
cd /data | ||
mongodump --out=/tmp/backup | ||
cd /tmp | ||
tar -Pczvf backup.tar.gz backup/ | ||
|
||
### copy the db dump from the pod | ||
kubectl cp my-pod:my-file my-file | ||
|
||
Eg: | ||
kubectl cp sorry-cypress-mongo-0:/tmp/backup.tar.gz ~/Desktop/backup.tar.gz | ||
|
||
|
||
### switch to the new context and copy file: | ||
kubectl cp ~/Desktop/backup.tar.gz dev-sorry-cypress-mongodb-0:/tmp/ | ||
|
||
### Exec into the pod and restore | ||
cd /tmp | ||
tar -xvzf backup.tar.gz | ||
cd /bitnami/mongodb/data | ||
mongorestore --drop /tmp/backup |