2
執行copyDb()命令時mongodb被中斷。當我要重新啓動我得到:如何在中斷後在mongodb中重新啓動/恢復copydb()?
db.runCommand({ copydb: 1, fromhost: "<ip>", fromdb: "<collection>", todb: "<db>", slaveOk: true });
{
"ok" : 0,
"errmsg" : "failed to create collection \"<db>.<collection>\": collection already exists"
}
有沒有辦法中斷後恢復數據庫的副本或做我需要刪除數據庫,並從頭開始? (不是一個好的選擇,因爲副本需要大約10天,並且已經運行了2天)。