Tray icon Service Mode [WINDOWS*

Once Duplicati is running as a service and the trayicon is closed, you will still be able to access the GUI by going directly to http://localhost:8200/ , does that work?
yes
Is there a command to see the current path of the dBase? Not that of the DBASE of the backups, the one can be seen on the settings, at least so you understand which path resides the dBase.
I place my configuration that I always use on all servers:
Duplicati.WindowsService.exe install --webservice-interface-loopback --webservice-port=8200 --portable-mode
–snapshot-policy=Required
–backup-name=Valerio
–auto-vacuum=true
–prefix=valerio
–auto-vacuum-interval=1W
–all-versions=false
–allow-missing-source=true
–auto-vacuum=true

I only miss the activation of the icon on the taskbar, that I need to understand if duplicates is active or not installed.

The path to Duplicati-server.sqlite (as opposed to job databases) can be found indirectly by looking at setup, which is not quite as nice but gets you there. For example, if Windows Services App shows you run as the SYSTEM default, then it uses the SYSTEM profile, which Windows unfortunately clears for version upgrade.

C:\Windows\System32\config\systemprofile\AppData\Local\Duplicati is that folder. For any user you choose, Windows %LOCALAPPDATA% (typed into Explorer or Command Prompt) will be its default folder.

Custom selecting a folder by use of HOME environment variable or --server-datafolder overrides default.

You can also see which user the Duplicati server is running as using About → System info or Task Manager.

If you set multiple overrides, I’m not sure which wins. --portable-mode puts the server database in a data subfolder of the install directory, for example C:\Program Files\Duplicati 2\data. Look at dates there?

This folder is probably not heavily protected compared to SYSTEM profile, but you can test your file access, and look at file dates. Duplicati-server.sqlite date will update on job edits, backup runs, and similar activities.

None of this should be necessary to deal with unless you desire a web UI password. For setup, maybe turn that off in GUI Settings while getting TrayIcon going. After that, if you want one, further changes are required, such as --webserver-password=<password>, or setting up file access so it read from the database directly.

Duplicati Tray Icon Silently Dies with --no-hosted-server arg #3137 is rather long, but talks about this a lot…

The basic method to have TrayIcon NOT start its own server is --no-hosted-server on its command line.
Without a password, it should just connect and stay (but beware that Windows may set it as a hidden icon).

An alternative test to Task Manager is to first verify nothing is at http://localhost:8300. If a TrayIcon start puts something at 8300, something went wrong with your --no-hosted-server, and you need to find what.

I wanted to report a small path problem.
If I change the path of the dBase, when I restart duplicate they appear to me all my backups, only if I go to see the path of the dBase is still the old one.

Please clarify what dBase you mean, and how you change the path.
If you mean the server database, check Task Manager as explained.

Which Duplicati? The Windows service or TrayIcon (if set up now)?

Done how?

Hi TS678, working with duplicates and modifying profile from user to Service and changing the parameters, I think I understood the dilemma.
In my opinion, if I change the path where the data is saved with the command - server-datafolder = duplicate at startup finds its database, but the paths of the database saved focus on the old route.

The best thing when installing duplicates, have clear ideas whether to install in user mode or in Service mode.
Changing work modes in the future does not always succeed in the first shot

I can help very little if no details are said. In the future, please write clearly and specify steps and results.

Here’s an example of adding the --server-datafolder option (not a command, and note two dashes):

C:\Program Files\Duplicati 2>net stop duplicati
The Duplicati service service is not started.

More help is available by typing NET HELPMSG 3521.


C:\Program Files\Duplicati 2>Duplicati.WindowsService.exe uninstall


The uninstall is beginning.
See the contents of the log file for the C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe assembly's progress.
The file is located at C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog.
Uninstalling assembly 'C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe
   logfile = C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog
Removing EventLog source Duplicati.
Service Duplicati is being removed from the system...
Service Duplicati was successfully removed from the system.

The uninstall has completed.

C:\Program Files\Duplicati 2>dir C:\tmp\config
 Volume in drive C has no label.
 Volume Serial Number is E471-3EE4

 Directory of C:\tmp

File Not Found

C:\Program Files\Duplicati 2>Duplicati.WindowsService.exe install --server-datafolder=C:\tmp\config

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe assembly's progress.
The file is located at C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog.
Installing assembly 'C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe
   logfile = C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog
   commandline = "--server-datafolder=C:\tmp\config"
Installing service Duplicati...
Service Duplicati has been successfully installed.
Creating EventLog source Duplicati in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe assembly's progress.
The file is located at C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog.
Committing assembly 'C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe
   logfile = C:\Program Files\Duplicati 2\Duplicati.WindowsService.InstallLog
   commandline = "--server-datafolder=C:\tmp\config"

The Commit phase completed successfully.

The transacted install has completed.

C:\Program Files\Duplicati 2>dir C:\tmp\config
 Volume in drive C has no label.
 Volume Serial Number is E471-3EE4

 Directory of C:\tmp

File Not Found

C:\Program Files\Duplicati 2>net start duplicati
The Duplicati service service is starting.
The Duplicati service service was started successfully.


C:\Program Files\Duplicati 2>dir C:\tmp\config
 Volume in drive C has no label.
 Volume Serial Number is E471-3EE4

 Directory of C:\tmp\config

02/13/2022  04:29 PM    <DIR>          .
02/13/2022  04:29 PM    <DIR>          ..
02/13/2022  04:29 PM    <DIR>          control_dir_v2
02/13/2022  04:29 PM            57,344 Duplicati-server.sqlite
               1 File(s)         57,344 bytes
               3 Dir(s)  242,412,077,056 bytes free

C:\Program Files\Duplicati 2>

You can see that configuring the service with the desired new home of Duplicati-server.sqlite even created that folder for me, and when I go to http://localhost:8200 I don’t get my previous configs but

image

I state my machine has only a single account (not true, but I’m the only user, and I don’t want a password).

I make a test job, look on its Database management screen for the Local database path, and it shows:

image

All of the potential databases, both the server and the job database, are now in the --server-datafolder.

If you are keeping old jobs from old Duplicati-server.sqlite, use Move existing database button if you like.
Typing on the path will enable the button. Beware that Duplicati’s move ability is subject to access controls.

Because I mentioned Task Manager and Run as administrator, here’s a view of my newly added option:

This I would agree with. It would be nice to give more leadthrough at install time, but that needs a volunteer. Less technical solution would be to upgrade the manual. Its author already made a video (if one can find it).

Duplicati Tutorial 02 Install Duplicati as a Service

When you move the duplicate database on a new path, then the previously stored backup database path I have to change it manually? When do I select the new path, even set the database name associated with the backup?

I think so. Backup database paths (and all other job settings) are in Duplicati-server.sqlite:

Going underneath Duplicati to move Duplicati-server.sqlite does not edit job’s DBPath above.
That would need a separate independent operation done by you on the job database screen.

Whenever you like, or never (if you don’t mind backup databases remaining where they are).
If you’re trying to avoid Windows update damage, best to leave nothing in SYSTEM’s profile.

Migrating from User to Service install on Windows did server DB first. Other order may work.
Please look at this How-To. If you’re now at moved-server-but-not-jobs, jump in at the below: