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 *** --password *** --out $PATH/