Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # In the specified folder, find any folders 28 days old and remove them.
- # Run once a week via crontab.
- find /backup/weekly -maxdepth 1 -type d -mtime +28 -exec rm -r {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement