The backup stops after a network outage
This page is intended for administrators whose backups stop when the connection drops: unstable Wi-Fi, a VPN (Virtual Private Network) that goes down, a workstation going to sleep, an interrupted Internet link. It explains how long the agent and the server wait before giving up, what is kept, and how to adjust this timeout. It applies to the BeBackup 7 agent and the BeBackup 7 server.
Symptom
During the backup, the agent displays:
Reconnection attempt (… minutes remaining)...
If the connection does not come back in time, the backup fails with this message:
Server disconnected. Reconnection attempts were unsuccessful.
The backup report then states:
The backup stopped because the connection was lost for more than … minutes.
Cause
A backup does not stop at the first interruption. When the connection drops:
- the agent retries to reconnect at regular intervals for a given period;
- the server keeps the session open for the same period, plus 5 minutes, and waits for the agent;
- throughout this wait, the backup medium remains locked.
If the connection comes back before the timeout expires, the backup resumes where it left off. If the timeout expires, the agent gives up and the server closes the session.
A scheduled backup abandoned in this way restarts on its own 15 minutes later, and so on, up to 12 attempts in total. A manually started backup is not restarted.
By default, this timeout is 120 minutes.
What is kept
An interrupted backup is not lost:
- files fully transferred before the interruption are saved;
- files whose transfer was in progress are flagged in the report as being transferred, with the note
The next backup will resume it where it stopped.; - these partial files are not offered for restore until they are complete.
The next backup therefore picks up the work without starting again from scratch.
Checks
- Look up the time of the interruption in the report, then investigate what happened on the workstation at that time: sleep mode, restart, network change, VPN disconnection.
- Check the workstation's power settings. Going to sleep during the backup breaks the connection.
- For a mobile workstation, make sure the backup is scheduled for a time when the machine is connected.
- If interruptions are frequent at a given site, check the stability of the network link and of the VPN.
Resolution
Preventing the interruption
- Schedule backups at times when the workstations stay powered on and connected.
- Prevent automatic sleep during the backup windows.
- Do not restart the workstation or stop the agent service while a backup is running.
Adjusting the timeout
If you administer the BeBackup server, you can change the length of time the agent and the server wait for reconnection. In the server configuration, in the web interface, under the Security tab, the setting is called Wait time when an agent disconnects (minutes).
- The value is expressed in minutes.
- It ranges from 5 to 300 minutes. The interface rejects any entry outside these limits. An out-of-range value coming from elsewhere is silently brought back to the nearest limit, and a null or negative value is treated as 120 minutes.
- An empty field keeps the default value of 120 minutes.
The server passes this timeout to the agent at the start of each backup. The agent then retries to reconnect for the same length of time.
Choose the value according to your constraints:
- a long timeout gives mobile workstations time to come back, but keeps the backup medium locked for longer after a genuine failure;
- a short timeout releases the medium sooner, but a slightly longer interruption will cause the backup to fail instead of letting it resume.
Two cases keep 120 minutes on the agent side
- A restore does not receive this setting. In that case the agent always retries for 120 minutes.
- An agent running an earlier version also keeps its 120 minutes. It adopts the new behaviour once updated, which happens automatically at the start of a backup.
So if you set a value above 120 minutes, these agents will give up before the server's wait has elapsed, and the server will keep the medium locked until the end.
If the problem persists
If backups keep stopping even though the network appears stable, contact BeBackup support. Please include:
- the report of the interrupted backup;
- the agent service log,
bbAgent-service.log, which records the times of the reconnection attempts; - a description of the network between the workstation and the server: VPN, proxy, firewall.
BeBackup is backup built for IT service providers
Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.