Created
March 26, 2020 10:51
-
-
Save ivuorinen/1593bb1275935bfc3fb4b6953f704035 to your computer and use it in GitHub Desktop.
Clear old GitLab 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
#!/usr/bin/env bash | |
# Delete old (over 30 days old) GitLab backups | |
# CRONTAB: @daily /root/scripts/gitlab-clean-backups.sh | |
find /var/opt/gitlab/backups/ -type f -name '*.tar' -mtime +30 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment