Tray icon Service Mode [WINDOWS*

I understand but I always have to act as a command line to view the route. If possible implement on graphics.
To find out the current route, what string should I type?

I 've had the same issue, especially with installations with password protection on the web interface.
You need to submit a few additional parameters to the Tray icon shortcut:

Duplicati.GUI.TrayIcon.exe --no-hosted-server --server-datafolder=<path_to_Duplicati-server.sqlite> --read-config-from-db

Copy the shortcut to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup for auto starting the tray icon when any user logs in.

In the Duplicati Web UI, go to Settings and enable Prevent tray icon automatic log-in if you want to specify the access password when you use the tray icon to access the Web UI.

2 Likes

I did as you wrote, but it opens duplicate with 8300 port, he fears duplicate-server.sqlite from another part …
“C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” —no-hosted-server --server-datafolder=C:\Program Files\Duplicati 2\data\Duplicati-server.sqlite --read-config-from-db

Is there a command to view the exact path that reads?
My service folder resides on C:\Program Files\Duplicate2\Data but obviously does not read this database

Is it possible to have the tray icon only as a state?
If you click on it, you don’t open any graphics page

Not sure if it’s just how this was entered into your forum post, but you are using the wrong hyphen/dash here. Instead of —no-hosted-server it should be --no-hosted-server.

“C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” —no-hosted-server --server-datafolder=C:\Program Files\Duplicati 2\data\Duplicati-server.sqlite --read-config-from-db

That still shows the wrong dash.

“C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” --no-hosted-server --server-datafolder=C:\Program Files\Duplicati 2\data\Duplicati-server.sqlite --read-config-from-db

correct excuse, however nothing happens, the icon does not appear in the tray

You may need to put quotes around the datafolder path, since it has spaces:

"C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe" --no-hosted-server --server-datafolder="C:\Program Files\Duplicati 2\data\Duplicati-server.sqlite" --read-config-from-db

Copy/paste that above line into your shortcut properties and try again.

nada, no run tray icon

If you run it with a startup shortcut it won’t run elevated so can’t access the data folder.

It needs adding as a custom startup event using task scheduler, setup the trigger as you like but make sure the service has already started before the tray icon executes.

I tried to start it to computer turned on but nothing the icon does not appear.
Use Windows7

I think --server-datafolder use has gone astray. It’s a folder not a file. I fed it a nonexistent path, and it made a folder of that name, with Duplicati-server.sqlite in that, all as one might expect. The manual says:

--server-datafolder
Duplicati needs to store a small database with all settings. Use this option to choose where the settings are stored. This option can also be set with the environment variable DUPLICATI_HOME.

and this is also where the job databases (name is usually random letters then .sqlite) are. Where are desired ones, as confirmed by things like file dates? I don’t want to be tripping over old mystery material.

So is it the one above, showing current files, and not below? Do you think you use and want a password?

is a critical question that hasn’t clearly been answered (though it’s hard to tell). Can @tigro11 do yes/no?
I don’t see much messing around with the service here, so it would be nice to have a healthy starting point.

It would be useful to use the Start menu to look for Task Manager and Run as administrator to look on Details tab to see which Duplicati processes are up now. Service should have 3. TrayIcon should have 2.

Getting extra Duplicati processes when starting things is easy, and confusing. I think one can also leave a mess behind if one uses Control-C. Windows can also hide a TrayIcon, needing Show hidden icons use.

Even without that, sometimes Duplicati processes appear briefly and give up, and that activity is significant.
You can’t see what happens at a process level without looking. Alphabetic Name sort is a good way to look because it should get all of the Duplicati processes in a row, so it will be easier to watch what’s happening.

Turning on the Command line column can be useful, if one isn’t certain what options something was given.

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: