摘要: 秘钥登录远端服务器 rsync -avze 'ssh -i ./id_rsa' root@remoteIp:/xx/remotefile.txt ./localpath (./id_rsa为本地秘钥路径) rsync文档 用户名/密码登录远端服务器 1.从远程ubuntu主机拷贝文件/文件夹到本地( 阅读全文
posted @ 2018-06-08 17:26 善未易明 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 备份(导出) 1.导出单个collection-.json格式 mongoexport --host:127.0.0.1 --port:27017 --db test --collection testcollection --out /xxx/testcollection.json2.导出整个db 阅读全文
posted @ 2018-06-08 17:16 善未易明 阅读(180) 评论(0) 推荐(0) 编辑