Can not change backup file path.

I want to change the path that backup file is outputed.

I changed as the following at /etc/gitlab/gitlab.rb.
But backup file is outputed to /var/opt/gitlab/backups.

gitlab_rails[‘manage_backup_path’] = true
#gitlab_rails[‘backup_path’] = “/var/opt/gitlab/backups”
gitlab_rails[‘backup_path’] = “/mnt/gitlab/backups”

OS version: Red Hat Enterprise Linux Server release 7.9 (Maipo)
GitLab version: 13.6.6

Hi @Ryota, welcome to the GitLab Community Forum! :tada:

For changes or updates to the gitlab.rb config file to take effect, you’ll need to run sudo gitlab-ctl reconfigure.

Can you verify if you ran gitlab-ctl reconfigure following the updates to gitlab.rb?

If not, can you run gitlab-ctl reconfigure, create a new backup, and confirm whether the backup was created in /mnt/gitlab or /var/opt/gitlab/backups?

Thank you for reply.

When I ran sudo gitlab-ctl reconfigure again, the following error occured.

There was an error running gitlab-ctl reconfigure:

storage_directory[/mnt/gitlab/backups] (gitlab::gitlab-rails line 107) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /mnt/gitlab/backups] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of stat --printf=’%U’ (readlink -f /mnt/gitlab/backups) ---- STDOUT: STDERR: stat: オペランドがありません Try 'stat --help' for more information. ---- End output of stat --printf='%U' (readlink -f /mnt/gitlab/backups) ----
Ran stat --printf=’%U’ $(readlink -f /mnt/gitlab/backups) returned 1

Do you know what the cause is ?