Hello there,
Since upgrade of hosted gitlab fro 15.7 to latest 15.10, the purge of old backup doesn’t work anymore.
Did someone experienced such a problem ?
Thank you
Here is the list of files at the beginning :
[root@srv-prd-cicd001 docker-git-backup]# ls -la
total 67991788
drwx------ 2 chrony root 116 30 mars 10:56 .
dr-xr-xr-x. 23 root root 4096 29 mars 21:59 ..
-rw------- 1 chrony input 34811566080 1 janv. 2012 1680162730_2023_03_30_15.10.0_gitlab_backup.tar
[root@srv-prd-cicd001 docker-git-backup]#
And the execution log of the backup :
2023-03-30 10:55:16 +0200 -- Dumping pages ...
2023-03-30 10:55:16 +0200 -- Dumping pages ... done
2023-03-30 10:55:16 +0200 -- Dumping lfs objects ...
2023-03-30 10:55:16 +0200 -- Dumping lfs objects ... done
2023-03-30 10:55:16 +0200 -- Dumping terraform states ...
2023-03-30 10:55:16 +0200 -- Dumping terraform states ... done
2023-03-30 10:55:16 +0200 -- Dumping container registry images ... [DISABLED]
2023-03-30 10:55:16 +0200 -- Dumping packages ...
2023-03-30 10:55:16 +0200 -- Dumping packages ... done
2023-03-30 10:55:16 +0200 -- Creating backup archive: 1680166339_2023_03_30_15.10.0_gitlab_backup.tar ...
2023-03-30 10:56:39 +0200 -- Creating backup archive: 1680166339_2023_03_30_15.10.0_gitlab_backup.tar ... done
2023-03-30 10:56:39 +0200 -- Uploading backup archive to remote storage ... [SKIPPED]
2023-03-30 10:56:39 +0200 -- Deleting old backups ...
2023-03-30 10:56:39 +0200 -- Deleting old backups ... done. (0 removed)
2023-03-30 10:56:39 +0200 -- Deleting tar staging files ...
2023-03-30 10:56:39 +0200 -- Cleaning up /backups/backup_information.yml
2023-03-30 10:56:39 +0200 -- Cleaning up /backups/db
2023-03-30 10:56:39 +0200 -- Cleaning up /backups/repositories
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/uploads.tar.gz
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/builds.tar.gz
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/pages.tar.gz
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/lfs.tar.gz
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/terraform_state.tar.gz
2023-03-30 10:56:40 +0200 -- Cleaning up /backups/packages.tar.gz
2023-03-30 10:56:40 +0200 -- Deleting tar staging files ... done
2023-03-30 10:56:40 +0200 -- Deleting backups/tmp ...
2023-03-30 10:56:40 +0200 -- Deleting backups/tmp ... done
2023-03-30 10:56:40 +0200 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
2023-03-30 10:56:40 +0200 -- Backup 1680166339_2023_03_30_15.10.0 is done.
2023-03-30 08:56:40 +0000 -- Deleting backup and restore lock file
and at the end :
[root@srv-prd-cicd001 docker-git-backup]# ls -la
total 67991788
drwx------ 2 chrony root 116 30 mars 10:56 .
dr-xr-xr-x. 23 root root 4096 29 mars 21:59 ..
-rw------- 1 chrony input 34811566080 1 janv. 2012 1680162730_2023_03_30_15.10.0_gitlab_backup.tar
-rw------- 1 chrony input 34812016640 30 mars 10:56 1680166339_2023_03_30_15.10.0_gitlab_backup.tar
[root@srv-prd-cicd001 docker-git-backup]#