Stop database writes
#> mongo --host=localhost --eval "db.fsyncLock()"
Back up the data from the localhost database
#> mongodump --host=localhost --port=27017
Write the data to MongoDB Atlas
#> mongorestore --ssl --host cluster0-shard-00-00-qfovx.mongodb.net --port 27017 -u user -p password dump
No comments:
Post a Comment