root@ip-192-0-1-205:/home/ubuntu# cat /root/remove_back.sh #! /bin/bash historyDir=/backupsmongodb/ find $historyDir -maxdepth 1 -type d -mtime +10 -exec rm -rf {} ;
root@ip-192-0-1-205:/home/ubuntu# cat /root/remove_back.sh #! /bin/bash historyDir=/backupsmongodb/ find $historyDir -maxdepth 1 -type d -mtime +10 -exec rm -rf {} ;