Restore Backup without Docker Images or Build Artifacts

I am currently evaluating different backup strategies for GitLab. As mentioned in the official docs, you can simply snapshot the whole /var/opt/gitlab directory and copy everything for a full backup.

This strategy also backups docker images and build artifacts. I do not need to backup docker images or build artifacts because they are not relevant and can easily be rebuild.

Is it safe to ignore the corresponding folders holding these types of data or will I end with a GitLab full of broken links, because artifacts or still referenced in the database but not on disks. Am I able to clean this up?

Thanks for your help!