mongodump -h localhost:27017 --authenticationDatabase "admin" -o /data/backup/dump/2019\_01\_09
mongorestore -h localhost:27017 /data/backup/dump/2019\_01\_09
\*/1 \* \* \* \* \* data/backup/monbp.sh >> /data/backup/m.log 2>&1
1 \*/4 \* \* \* \* data/backup/monbp.sh >> /data/backup/m.log 2>&1
sudo docker exec -it 0be535e8f2ba /bin/bash
安装:apt-get install cron 启动:service cron start 检查状态:service cron status 检查状态:sudo launchctl list | grep cron
apt-get install -y vim
1 \*/4 \* \* \* /data/www/backup/monbp.sh >> /data/www/backup/bp.log 2>&1
\*/1 \* \* \* \* /bin/date >> /data/www/backup/datetest.log 2>&1
lrwxrwxrwx 1 root root 4 Feb 17 2016 /bin/sh -> dash
ln -sf /bin/bash /bin/sh
dpkg-reconfigure dash
head -1 mondp.sh | od -c
0000000 # ! / b i n / b a s h \\n
mips-linux-gnu-readelf -a monbp.sh
ldd xxx
mac版本-mongo: /usr/local/bin/mongo Linux版本-mongo: /usr/bin/mongo

本文作者:李 游(上海新炬中北团队)
本文来源:“IT那活儿”公众号

文章转载自IT那活儿,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




