how to automatically run mongorestore after a mongodump how to automatically run mongorestore after a mongodump docker docker

how to automatically run mongorestore after a mongodump


I encounter the same problem but found that the mongodump is able to "lock" the terminal finally after adding double quote "" to your mongodump

i.e. something like mongodump --uri="mongodb://localhost:27017" --gzip --archive="backup.gz"