Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DIR_INC=/nzbackup/days
- DIR_FULL=/nzbackup/weeks
- #Remove files PRD_SOR_fullbk.* of Incremental backup
- find $DIR_INC -name “PRD_SOR_fullbk.*” -mtime +14 -exec rm -f {} \;
- find $DIR_INC -name “PRD_SOR_cumbk.*” -mtime +14 -exec rm -f {} \;
- #Remove files PRD_SOR_fullbk.* of Full backup
- find $DIR_FULL -name “PRD_SOR_fullbk.*” -mtime +14 -exec rm -f {} \;
- find $DIR_FULL -name “PRD_SOR_cumbk.*” -mtime +14 -exec rm -f {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement