Cron enabled backups not removing temp files/folders

I’ve noticed that when gitlab backup is triggered by cronjob a loads of temp files/folders are not cleaned up. If I do a backup on the command line I don’t see this folders afterwards.

Running 14.10.0 CE

drwxr-xr-x 2 git git        4096 May  2 06:00 db
drwx------ 3 git git        4096 May  2 06:00 repositories
-rw------- 1 git git      359171 May  2 06:17 uploads.tar.gz
-rw------- 1 git git         315 May  2 06:17 builds.tar.gz
-rw------- 1 git git        9313 May  2 06:17 artifacts.tar.gz
-rw------- 1 git git         155 May  2 06:17 pages.tar.gz
-rw------- 1 git git         148 May  2 06:17 terraform_state.tar.gz
-rw------- 1 git git         149 May  2 06:17 lfs.tar.gz
-rw------- 1 git git         149 May  2 06:17 packages.tar.gz
-rw-r--r-- 1 git git         191 May  2 06:17 backup_information.yml

ok it seems the temp folders were artifacts from an earlier release. My nightly backup concluded with no temp folders left behind.

1 Like