删除5天前完整备份的脚本
时间:2008-04-13 来源:huzi1986
#!/bin/sh
# Name:rmBackup.sh
# PS:Delete old Backup.
# Write by:huzi
# Last Modify:2008-03-03
#
dataBackupDir=/home/mysql_back
find $dataBackupDir -name "mysql_*.gz" -type f -mtime +i5 -exec rm {} \; > /dev/null 2>&1
# Name:rmBackup.sh
# PS:Delete old Backup.
# Write by:huzi
# Last Modify:2008-03-03
#
dataBackupDir=/home/mysql_back
find $dataBackupDir -name "mysql_*.gz" -type f -mtime +i5 -exec rm {} \; > /dev/null 2>&1
相关阅读 更多 +