#!/bin/bash
#delete the file of 7 days ago
find /data/mysqlbackup/ -mtime +7 -name "*.sql" -exec rm -f {} \;
转载于:https://www.cnblogs.com/uglyliu/p/7902919.html
#!/bin/bash
#delete the file of 7 days ago
find /data/mysqlbackup/ -mtime +7 -name "*.sql" -exec rm -f {} \;
转载于:https://www.cnblogs.com/uglyliu/p/7902919.html