Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2. DIR_INC=/nzbackup/days
  3. DIR_FULL=/nzbackup/weeks
  4.  
  5. #Remove files PRD_SOR_fullbk.* of Incremental backup
  6. find $DIR_INC -name “PRD_SOR_fullbk.*” -mtime +14 -exec rm -f {} \;
  7. find $DIR_INC -name “PRD_SOR_cumbk.*” -mtime +14 -exec rm -f {} \;
  8.  
  9. #Remove files PRD_SOR_fullbk.* of Full backup
  10. find $DIR_FULL -name “PRD_SOR_fullbk.*” -mtime +14 -exec rm -f {} \;
  11. find $DIR_FULL -name “PRD_SOR_cumbk.*” -mtime +14 -exec rm -f {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement