Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab Backups Auto Cleanup

Tags:

gitlab

I have scheduled GitLab backups through crontab which backs up gitLab data everyday at 2 AM. The problem I have is cleaning up of backup files automatically. Backups files have now been piling up and I want to automate this task.

Uncommenting the following lines in 'gitlab.rb' doesn't help.

gitlab_rails['backup_keep_time'] = 604800

For your info, my GitLab has been installed with omnibus package on CentOS 7.

like image 427
Randhir Avatar asked Mar 05 '26 00:03

Randhir


1 Answers

After editing gitlab.rb, you need to run gitlab-ctl reconfigure to make your changes take effect.

like image 122
marcolz Avatar answered Mar 08 '26 01:03

marcolz