Skip to content

Commit

Permalink
drop treeNode before restoring the database
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed Apr 29, 2022
1 parent 07ef1fb commit 9272bbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vpc_stack/src/jacs/install-jacs-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ function createBackupJob() {

function restoreDatabase() {
echo "Restore database from /s3data/${RESTORE_BUCKET}${RESTORE_FOLDER}/jacs"
# drop the treeNode so that the workspace and treeNode entries get restored with the previous IDs
./manage.sh mongo -notty --eval "db.treeNode.drop()"
./manage.sh mongo-restore "/s3data/${RESTORE_BUCKET}${RESTORE_FOLDER}/jacs"
}

Expand Down

0 comments on commit 9272bbe

Please sign in to comment.