Mongodb dump and restore to remote host
at your database server:
mongodump -u tdb -p -d tenderdb -o /home/backup/27-12-2019/
at your remote server:
scp root@159.89.194.XXX:/home/backup/27-12-2019/tenderdb/* .
mongorestore . --db=tenderdb
Below is the data from the restore process:

ref:
https://stackoverflow.com/questions/23943651/mongodb-admin-user-not-authorized
mongodump -u tdb -p -d tenderdb -o /home/backup/27-12-2019/
at your remote server:
scp root@159.89.194.XXX:/home/backup/27-12-2019/tenderdb/* .
mongorestore . --db=tenderdb
Below is the data from the restore process:

ref:
https://stackoverflow.com/questions/23943651/mongodb-admin-user-not-authorized
Comments
Post a Comment