问题原文
原帖链接 · Jan Deinhard · CC BY-SA 3.0
I use the rake task to create backups for GitLab 6.8.2.
gitlab-rake gitlab:backup:create
In /etc/gitlab/gitlab.rb I added the following line:
gitlab_rails['backup_keep_time'] = 60
This is supposed to prune backups older than 60 seconds. My expectation was that a second run of gitlab:backup:create would remove the first backup if 60 seconds have passed. Though the last line in the output is
Deleting old backups ... skipping
How do I configure GitLab to actually remove old backups?
社区高分解答
原帖链接 · Tad M. · CC BY-SA 4.0
The option you want is gitlab_rails['backup_keep_time']. I had to
gitlab-ctl reconfigure
after setting it for it to have any effect. Note that it will only affect local backups, not Amazon-AWS S3 if you're using that.
There was an issue with them being ignored, but I'm not sure what versions it affects. Version 6 is pretty old. If you're on the omnibus, it might be worth an upgrade.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
