Created
April 29, 2021 01:44
-
-
Save TIBTHINK/ca79114e484a924c17a491f7c93eb44e to your computer and use it in GitHub Desktop.
removing backups older than 2 weeks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /home/dev/backups -type f -mtime +14 -name '*.gz' -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment