Problem to solve
I have configured my GitLab instance v17.3.1-ee with the following values:
gitlab_rails['manage_backup_path'] = true
gitlab_rails['backup_path'] = "/backups/gitlab"
gitlab_rails['backup_archive_permissions'] = 0600
gitlab_rails['backup_compression'] = 'gzip'
gitlab_rails['backup_keep_time'] = 259200
Steps to reproduce
But when I execute:
sudo gitlab-ctl backup-etc --delete-old-backups
It runs the configuration backup:
Creating configuration backup archive: gitlab_config_1725344969_2024_09_03.tar
/etc/gitlab/
/etc/gitlab/gitlab-secrets.json
/etc/gitlab/trusted-certs/
/etc/gitlab/ssl/
/etc/gitlab/ssl/gitlab.castris.com.key
/etc/gitlab/ssl/gitlab.castris.com.crt
/etc/gitlab/ssl/gitlab.castris.com.key-staging
/etc/gitlab/ssl/gitlab.castris.com.crt-staging
/etc/gitlab/gitlab.rb~
/etc/gitlab/skip-auto-backup
/etc/gitlab/gitlab.rb
Configuration backup archive complete: /etc/gitlab/config_backup/gitlab_config_1725344969_2024_09_03.tar
Removing configuration backups older than 2024-08-31 06:29:29 +0000 ...
done. Removed 0 older configuration backups.
But does not work.
root@gitlab:~# ls -lisah /backups/gitlab/
total 22G
83889930 4.0K drwx------ 2 git root 4.0K Sep 3 04:36 .
67980689 0 drwxr-xr-x 3 root root 20 Jul 2 04:30 ..
83941358 1.3G -rw------- 1 git git 1.3G Aug 10 04:36 1723264532_2024_08_10_17.2.2-ee_gitlab_backup.tar
83939577 1.3G -rw------- 1 git git 1.3G Aug 13 04:36 1723523731_2024_08_13_17.2.2-ee_gitlab_backup.tar
83939579 1.3G -rw------- 1 git git 1.3G Aug 14 04:36 1723610132_2024_08_14_17.2.2-ee_gitlab_backup.tar
83939580 1.3G -rw------- 1 git git 1.3G Aug 15 04:36 1723696535_2024_08_15_17.2.2-ee_gitlab_backup.tar
83939571 1.3G -rw------- 1 git git 1.3G Aug 16 04:36 1723782928_2024_08_16_17.2.2-ee_gitlab_backup.tar
83939576 1.3G -rw------- 1 git git 1.3G Aug 17 04:36 1723869335_2024_08_17_17.2.2-ee_gitlab_backup.tar
83929932 1.3G -rw------- 1 git git 1.3G Aug 20 04:36 1724128531_2024_08_20_17.3.0-ee_gitlab_backup.tar
83929951 1.3G -rw------- 1 git git 1.3G Aug 21 04:36 1724214934_2024_08_21_17.3.0-ee_gitlab_backup.tar
83930759 1.3G -rw------- 1 git git 1.3G Aug 22 04:36 1724301332_2024_08_22_17.3.0-ee_gitlab_backup.tar
83939561 1.3G -rw------- 1 git git 1.3G Aug 23 04:36 1724387728_2024_08_23_17.3.1-ee_gitlab_backup.tar
83910590 1.3G -rw------- 1 git git 1.3G Aug 24 04:36 1724474131_2024_08_24_17.3.1-ee_gitlab_backup.tar
83910866 1.3G -rw------- 1 git git 1.3G Aug 27 04:36 1724733333_2024_08_27_17.3.1-ee_gitlab_backup.tar
83918886 1.3G -rw------- 1 git git 1.3G Aug 28 04:36 1724819730_2024_08_28_17.3.1-ee_gitlab_backup.tar
83912216 1.3G -rw------- 1 git git 1.3G Aug 29 04:36 1724906131_2024_08_29_17.3.1-ee_gitlab_backup.tar
83919746 1.3G -rw------- 1 git git 1.3G Aug 30 04:35 1724992528_2024_08_30_17.3.1-ee_gitlab_backup.tar
83923385 1.3G -rw------- 1 git git 1.3G Aug 31 04:36 1725078929_2024_08_31_17.3.1-ee_gitlab_backup.tar
83923415 592M -rw------- 1 git git 592M Sep 3 04:36 1725338130_2024_09_03_17.3.1-ee_gitlab_backup.tar
33589890 212K -rw------- 1 root root 210K Aug 10 04:15 gitlab_config_1723263302_2024_08_10.tar
33583138 212K -rw------- 1 root root 210K Aug 13 04:15 gitlab_config_1723522502_2024_08_13.tar
33583144 212K -rw------- 1 root root 210K Aug 14 04:15 gitlab_config_1723608902_2024_08_14.tar
33583147 212K -rw------- 1 root root 210K Aug 15 04:15 gitlab_config_1723695303_2024_08_15.tar
33583154 212K -rw------- 1 root root 210K Aug 16 04:15 gitlab_config_1723781702_2024_08_16.tar
33582915 212K -rw------- 1 root root 210K Aug 17 04:15 gitlab_config_1723868102_2024_08_17.tar
33583159 212K -rw------- 1 root root 210K Aug 20 04:15 gitlab_config_1724127302_2024_08_20.tar
33583197 212K -rw------- 1 root root 210K Aug 21 04:15 gitlab_config_1724213703_2024_08_21.tar
33584195 212K -rw------- 1 root root 210K Aug 22 04:15 gitlab_config_1724300102_2024_08_22.tar
33582928 212K -rw------- 1 root root 210K Aug 23 04:15 gitlab_config_1724386503_2024_08_23.tar
33592314 212K -rw------- 1 root root 210K Aug 24 04:15 gitlab_config_1724472902_2024_08_24.tar
33577526 212K -rw------- 1 root root 210K Aug 27 04:15 gitlab_config_1724732102_2024_08_27.tar
33600803 212K -rw------- 1 root root 210K Aug 28 04:15 gitlab_config_1724818503_2024_08_28.tar
33600908 212K -rw------- 1 root root 210K Aug 29 04:15 gitlab_config_1724904902_2024_08_29.tar
33597676 212K -rw------- 1 root root 210K Aug 30 04:15 gitlab_config_1724991302_2024_08_30.tar
33600810 212K -rw------- 1 root root 210K Aug 31 04:15 gitlab_config_1725077702_2024_08_31.tar
33581034 212K -rw------- 1 root root 210K Sep 3 04:15 gitlab_config_1725336902_2024_09_03.tar
However, there are two problems:
- The files are not compressed.
- The old backups are not deleted.
What is my mistake? I don’t understand.
- Self-managed
##Versions
v17.3.1-ee
Best regards