Skip to content

Instantly share code, notes, and snippets.

@cyriac
Created February 24, 2017 07:43
Show Gist options
  • Save cyriac/dae5d3963563091e002dc9208d616ef5 to your computer and use it in GitHub Desktop.
Save cyriac/dae5d3963563091e002dc9208d616ef5 to your computer and use it in GitHub Desktop.
Self maintaining gitlab cron
0 0 * * * /usr/bin/letsencrypt renew >> /var/log/le-renew.log
0 */12 * * * gitlab-rake gitlab:backup:create >> /var/log/gitlab-backup.log
0 0 * * * find /var/opt/gitlab/backups/ -name "*_gitlab_backup.tar" -mtime +1 -delete
0 0 * * 6 apt-get update && apt-get upgrade -y gitlab-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment