Skip to content

Ignore "lost+found" folder during backup on a volume

julien Millau requested to merge (removed):fix-volume-backup into master

What does this MR do?

This Merge Request fix an issue when the backup process try to backup a folder in a dedicated volume.
When we create a volume and mount a volume, the folder lost+found is created and the backup aborts due to insufficient permissions on lost+found folder for pages, artifacts, container registry images dump.

$ gitlab-rake gitlab:backup:create
...
Dumping pages ... 
tar: ./lost+found: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
Backup failed

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

To fix the backup on specific folder inside a volume.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Resolve #22672 (closed) and Resolve #17574 (closed)

Edited by julien Millau

Merge request reports