Backup is not completing


We have GitLab version 12.2.4 CE installed on an RHEL 7.8 server. We attempted to take a backup using the commands below, and it starts but then process was interrupted with the message “Remote side unexpectedly closed the network connection,” resulting in no backup.

sudo gitlab-backup create

sudo gitlab-rake gitlab:backup:create
Please suggest.
the backup interupt here:

2024-02-28 16:34:58 +0100 – done
2024-02-28 16:34:58 +0100 – Dumping uploads …
2024-02-28 16:36:26 +0100 – done
2024-02-28 16:36:26 +0100 – Dumping builds …
2024-02-28 16:36:26 +0100 – done
2024-02-28 16:36:26 +0100 – Dumping artifacts …

Please check you log file see the error and solve them.

Make sure your SSH connection is reliable if your GitLab uses SSH for connecting to remote storage or for including remote repositories in the backup. If your SSH keeps disconnecting or is not stable, you could be running into timeout problems. Try making the timeout settings longer in your SSH setup. This means changing the ServerAliveInterval and ServerAliveCountMax settings to keep the SSH connection active for a longer time, both on the computer you’re using (client) and the server.