Works after fixing the path .
root@34645fd4-1a6a-4d03-9dfb-9123208954aa:~/gitlab# sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production
`/home/git` is not writable.
Bundler will use `/tmp/bundler20220623-326-4sq0sl326' as your home directory temporarily.
2022-06-23 17:38:30 +0000 -- Dumping database ...
Dumping PostgreSQL database db34645fd41a6a4d039dfb9123208954aa ... [DONE]
2022-06-23 17:38:39 +0000 -- Dumping database ... done
2022-06-23 17:38:39 +0000 -- Dumping repositories ...
{"command":"create","gl_project_path":"gitlab-instance-7c84d838/Monitoring","level":"info","msg":"started create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.git","storage_name":"default","time":"2022-06-23T17:38:40.750Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"gitlab-instance-7c84d838/Monitoring","level":"warning","msg":"skipped create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.git","storage_name":"default","time":"2022-06-23T17:38:40.776Z"}
{"command":"create","gl_project_path":"gitlab-instance-7c84d838/Monitoring.wiki","level":"info","msg":"started create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.wiki.git","storage_name":"default","time":"2022-06-23T17:38:41.125Z"}
{"command":"create","gl_project_path":"gitlab-instance-7c84d838/Monitoring","level":"info","msg":"started create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.design.git","storage_name":"default","time":"2022-06-23T17:38:41.129Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"gitlab-instance-7c84d838/Monitoring","level":"warning","msg":"skipped create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.design.git","storage_name":"default","time":"2022-06-23T17:38:41.133Z"}
{"command":"create","error":"manager: repository empty: repository skipped","gl_project_path":"gitlab-instance-7c84d838/Monitoring.wiki","level":"warning","msg":"skipped create","relative_path":"@hashed/6b/86/6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b.wiki.git","storage_name":"default","time":"2022-06-23T17:38:41.145Z"}
2022-06-23 17:38:41 +0000 -- Dumping repositories ... done
2022-06-23 17:38:41 +0000 -- Dumping uploads ...
2022-06-23 17:38:41 +0000 -- Dumping uploads ... done
2022-06-23 17:38:41 +0000 -- Dumping builds ...
2022-06-23 17:38:41 +0000 -- Dumping builds ... done
2022-06-23 17:38:41 +0000 -- Dumping artifacts ...
2022-06-23 17:38:41 +0000 -- Dumping artifacts ... done
2022-06-23 17:38:41 +0000 -- Dumping pages ...
2022-06-23 17:38:41 +0000 -- Dumping pages ... done
2022-06-23 17:38:41 +0000 -- Dumping lfs objects ...
2022-06-23 17:38:41 +0000 -- Dumping lfs objects ... done
2022-06-23 17:38:41 +0000 -- Dumping terraform states ...
2022-06-23 17:38:41 +0000 -- Dumping terraform states ... done
2022-06-23 17:38:41 +0000 -- Dumping container registry images ... [DISABLED]
2022-06-23 17:38:41 +0000 -- Dumping packages ...
2022-06-23 17:38:41 +0000 -- Dumping packages ... done
2022-06-23 17:38:41 +0000 -- Creating backup archive: 1656005910_2022_06_23_15.0.3_gitlab_backup.tar ...
2022-06-23 17:38:41 +0000 -- Creating backup archive: 1656005910_2022_06_23_15.0.3_gitlab_backup.tar ... done
2022-06-23 17:38:41 +0000 -- Uploading backup archive to remote storage ... [SKIPPED]
2022-06-23 17:38:41 +0000 -- Deleting tar staging files ...
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/backup_information.yml
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/db
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/uploads.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/builds.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/artifacts.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/pages.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/lfs.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/terraform_state.tar.gz
2022-06-23 17:38:41 +0000 -- Cleaning up /app/data/backups/packages.tar.gz
2022-06-23 17:38:41 +0000 -- Deleting tar staging files ... done
2022-06-23 17:38:41 +0000 -- Deleting old backups ... [SKIPPED]
2022-06-23 17:38:41 +0000 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
2022-06-23 17:38:41 +0000 -- Backup 1656005910_2022_06_23_15.0.3 is done.