Moving a DB when upgrading MongoDB
Man, trying to do it with Navicat takes forever... You can use this to make a backup. For around 30 GB, I think it took about 10 seconds? Enter it like this, an
GGAMI
Man, trying to do it with Navicat takes forever...
mongodump --username 아이디 --password '비밀번호' --authenticationDatabase admin --out /home/backup --db 디비명You can use this to make a backup. For around 30 GB, I think it took about 10 seconds?
mongorestore --username 아이디 --password '비밀번호' --authenticationDatabase admin --db 저장할디비명 업로드할디비명Enter it like this, and it works. Seems to take about a minute for 30 GB.
Wow....................... Why didn't I do this .. sigh, sheesh.