Last active
October 20, 2019 15:44
-
-
Save alekc/83294ed38f95c79333a51f8aad9af137 to your computer and use it in GitHub Desktop.
Clean old 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 /mysql-backup/archive -maxdepth 1 -mindepth 1 -type d -ctime +15 -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment