我想在Digitalocean上的Ubuntu 14.04上为Meteor应用程序备份我的MongoDB。所以我运行了命令
public class MyHurlStack extends HurlStack {
@Override
public HttpResponse performRequest(
Request<?> request, Map<String, String> additionalHeaders)
throws IOException, AuthFailureError {
additionalHeaders.put("Via", "netroid");
additionalHeaders.put("Accept-Charset", "UTF-8");
additionalHeaders.put("Origin", "http://netroid.cn/");
return super.performRequest(request, additionalHeaders);
}
}
我看到的日志是这个
mongodump -d dbName -o ~/backups/first_backup
然后当我访问路径时,我看到一个带有dbName的空白文件夹。 我做了什么事吗?
但我也发现connected to: 127.0.0.1
Tue Jun 14 09:10:58.240 DATABASE: dbName to /home/kenshinman/backups/first_backup/dbName
命令工作正常