find $BDIR -name \*.gz -ctime +$DAYS -exec rm '{}' \;My backup script wasn't cleaning things correctly. The above did the trick. The find command is interesting.
Subscribe to:
Post Comments (Atom)
A log of what I've been doing with various unix systems
find $BDIR -name \*.gz -ctime +$DAYS -exec rm '{}' \;My backup script wasn't cleaning things correctly. The above did the trick. The find command is interesting.
No comments:
Post a Comment