时间:2021-07-01 10:21:17 帮助过:15人阅读
root@ip-192-0-1-205:/home/ubuntu# cat /root/backups_mongo.sh #!/bin/bash DATE=$(date +%Y_%m_%d) PATH=/backupsmongodb/$DATE /bin/mkdir -p $PATH /usr/bin/mongodump --username admin --password LumenPasswordOne --out $PATH/
生成日期目录,备份mongodb
标签:god smon smo path user mongodump date highlight username