Last active
December 18, 2019 21:32
-
-
Save ilumos/74b0dcd0f412c457db6062e4cb8bf46a to your computer and use it in GitHub Desktop.
Only keep the last 28 days of backups
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
#!/bin/bash | |
find backups/ -ctime +28 -name "*.tar.gz" -print -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment