Hi! Context: Virtual Win 11 Pro with duplicati-2.1.0.3_beta_2025-01-22-win-x64-gui.msi
For security reason, this virtual hosted machine is started up and running with no user logged in with the VNC console, and RDP access to it, is disabled.
As a matter of interest, this machine runs a business client-server PostgreSQL app which works OK when no user is logged in. I guess it’s doable to have Duplicati working like that.
How to have scheduled backups run when no user is logged in?
Possibly running a Windows service then. You could look in Task Manager or Services for that.
WindowsService however default DB location is in SYSTEM profile which a Windows version update may move to C:\Windows.old (and keep 10 days). You should use an alternate folder.
@ts678
Thank you.
I read the documentation. However, I need further help as I’m not a Win specialist.
I currently run duplicati-2.1.0.3_beta_2025-01-22-win-x64-gui.msi
Correct me if I’m wrong, I should follow these steps:
Stop Duplicati, I guess by killing the Duplicati.GUI-TrayIcon process
Move the C:\Users\ username \AppData\Local\Duplicati folder to, for instance, C:\
Then the documentation talks about: “Change the startup parameters (environment variables, commandline arguments, or preload.json)”. How to do this?
Then, I guess I’d have to run this command: Duplicati.WindowsService.exe INSTALL
Kills aren’t the nice way, but are usually safe when idle.
Nice is right-click and Quit, if you can find TrayIcon, probably in lower right of screen, but probably in the expansion area unless you moved it (so click the up-arrow/caret icon to the left of the clock).
Probably the easiest path (of several) is above that:
It is possible to pick a different location for the database with the commandline option --server-datafolder=<path>
and it means commandline as opposed to GUI, so you would put above option into the step
The registration of the Windows Service is done by executing the WindowsService binary:
Try putting an ampersand (&) at the left of the line. That’s the PowerShell Call operator.
Command Prompt (the old simple less fancy way to do command line) didn’t need that.