日度归档:2020-11-12

Ásbrú Connection Manager

概述

asbru-cm 是一个类似的 windows 上 xshell 的远程连接管理软件。

安装

2.1 Debian / Ubuntu

curl -s https://packagecloud.io/install/repositories/asbru-cm/asbru-cm/script.deb.sh | sudo bash
sudo apt-get install asbru-cm

mongodb 备份和恢复数据

备份数据

mongodump -d test -c collection -o /path

恢复数据

mongorestore -d test -c collection /path/to/xxx.json

常用参数

  • -h:主机
  • –port:端口
  • -u:账号
  • -p:密码
  • –authenticationDatabase:鉴权库
  • -d:库名
  • -c:集合(表名)
  • –drop:恢复备份前删除