How to change gitlab backup filename?

gitlab-backup create

Can I rename files arbitrarily?

See here: Back up GitLab | GitLab

So you could change it like this:

sudo gitlab-backup create BACKUP=my-gitlab-backup-2024-03-111

also be aware of this from the docs I linked:

Meaning you’ll have to use a method to limit the lifetime of backups yourself, eg by using find with ctime or mtime parameters and specify how many days you wish to keep. If you use the Gitlab backup naming format, rotation can automatically be done by Gitlab.

If you backup without specifying a name, and then manually rename it later, you will have problems when it comes to restoring it. This is because the backup archive contains the original filename, that will then no longer match once you manually rename after backup.

1 Like