First, as mentioned in this issue, if you uncomment gitlab_rails['backup_keep_time'] = 604800
in /etc/gitlab/gitlab.rb
and reconfigure your GitLab, any backup command (like, For GitLab 12.2+, sudo gitlab-backup create
) would delete old backups.
If you are able to ssh to your GitLab server, configure a Jenkins job which will execute that command
ssh <gitlabUSer>@gitlabServer sudo gitlab-backup create
Note: in your case, the setting backup_keep_time
should be to to 2?592?000 (for 30 days instead of 7).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…