Hi all,
I struggled for a while with scheduled backups not starting after the PC wakes up from sleep/hibernation.
The root cause is that Duplicati relies on .NET PowerModeChanged
events, and these are not always triggered on automatic wake (only reliably when a user actively resumes the session). As a result, the internal scheduler sometimes “misses” its backup slot.
Workaround using Windows Task Scheduler
I solved it by creating a simple Task Scheduler job that runs at the same time as my nightly backup (01:00).
The job runs under the SYSTEM account and is configured with Wake the computer to run this task.
Its only action is a small batch script:
timeout /t 60 /nobreak
"C:\Program Files\Duplicati 2\Duplicati.CommandLine.ServerUtil.exe" resume
timeout /t 120 /nobreak
Why this works
-
timeout /t 60
→ gives Windows and the network some time to stabilize after wake. -
ServerUtil.exe resume
→ unpauses the Duplicati service and makes the scheduler re-check jobs. If the backup was due while the PC was asleep, it runs immediately. -
timeout /t 120
→ keeps the task alive a bit longer, so Windows won’t put the PC back to sleep before the backup actually starts.
Result
Since adding this Task, my nightly backup jobs run reliably, even if the PC was asleep beforehand.
No more missed backups due to sleep/hibernate!