-
Notifications
You must be signed in to change notification settings - Fork 81
restore data question #313
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
That's an interesting problem @yangzan66. Could you provide the full output of It may be possible to work around this by doing a single-database restore passing |
Hello, [root@dbsrvm-mongobackup latest]# mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --db=config --gzip --dir /mongobackup/172.17.11.218/default/latest/configRS/dump/ [root@dbsrvm-mongobackup latest]# mongorestore --version |
@timvaillancourt [root@dbsrvm-mongotest03 pkg]# mongo --version |
###I create a new mongo cluster(172.17.1.88) as the target cluster, but the problem are the same. [root@dbsrvm-mongobackup mongobackup]# mongorestore --host 172.17.1.88 --port 27017 --oplogReplay --gzip --dir /mongobackup/172.17.11.218/default/latest/configRS/dump/ ###when I only restore the shard1, it reports error " applyOps not allowed through mongos",as follows: ###is that what I did wrong? the culster doesn't uses Authentication, my backup command and config file as follows: mongodb-consistent-backup -H 172.17.11.218 --config /etc/mongodb-consistent-backup.conf [root@dbsrvm-mongobackup mongobackup]# grep -v "#" /etc/mongodb-consistent-backup.conf could you give some advice? thank you very much |
when I restore the configRS ,why it reports the error?
mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --gzip --dir /mongobackup/172.17.11.218/default/latest/configRS/dump/
2019-05-29T15:04:05.582+0800 preparing collections to restore from
2019-05-29T15:04:05.583+0800 Failed: cannot do a full restore on a sharded system - remove the 'config' directory from the dump directory first
how shoud I do when restore the data to a exist target mongo cluster? do I need to do the 4 command step by step as follows? if the target cluster has other data,does this have an effect?
thank you !
mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --gzip --drop --dir /mongobackup/172.17.11.218/default/latest/configRS/dump/
mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --gzip --drop --dir /mongobackup/172.17.11.218/default/latest/shard1/dump/ >> ${logFile} 2>&1
mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --gzip --drop --dir /mongobackup/172.17.11.218/default/latest/shard2/dump/ >> ${logFile} 2>&1
mongorestore --host 172.17.11.218 --port 27017 --oplogReplay --gzip --drop --dir /mongobackup/172.17.11.218/default/latest/shard3/dump/ >> ${logFile} 2>&1
The text was updated successfully, but these errors were encountered: