Using Duplicati with Windows

This page describes common scenarios for configuring Duplicati with Windows

Before you can install Duplicati, you need to decide on three different parameters:

  • The type you want: GUI, Server, Agent, CLI.

  • You machine CPU type: x64, Arm64, or x86 (32 bit)

Deciding on type

To use Duplicati on Windows, you first need to decide which kind of instance you want: GUI (aka TrayIcon), Server, Agent, CLI. The section on Choosing Duplicati Type has more details on each of the different types.

Determine CPU architecture

Finally you need to locate information on what CPU architecture you are using:

  • x64: 64bit Intel or AMD based CPU. This is the most common CPU at this time.

  • Arm64: 64bit ARM based CPU. Some laptops, tablets and servers use it.

  • x86: 32bit Intel or AMD based CPU. Note that Windows 10 was the last version to support 32 bit processors.

If you are in doubt, you can try the x64 version, or use Microsofts guide for determining the CPU.

Installing the package

Once you have decided the on package you want, you are ready to download the package. The default version shown on the main download page is the x64 GUI version in .msi format. The full list of packages can be obtained via the main download page, and then clicking "Other versions".

Using the TrayIcon

For users with a desktop environment and no special requirements, the TrayIcon instance is the recommended way to run Duplicati. If you are using the .msi package to install Duplicati, you will see an option to automatically start Duplicati, as well as create a shortcut on your desktop and in the start menu. If you need to manually start Duplicati, you can find the executable in:

C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe

When running the TrayIcon in a user context, it will create a folder in your home folder, typically C:\Users\<username>\AppData\Local\Duplicati where it stores the local databases and the Server database with the backup configurations.

Using the Server

The Server is a regular executable and can simply be invoked with:

C:\Program Files\Duplicati 2\Duplicati.Server.exe

When invoked as a regular user, it will use the same folder, C:\Users\<username>\AppData\Local\Duplicati, as the TrayIcon and share the configuration.

Running the Server as a Windows Service

If you want to run Duplicati as a Windows Service, you can use the bundled service tool to install/uninstall the service:

C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe INSTALL
C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe UNINSTALL

When installing the Service it will automatically start, and likewise, uninstalling it will stop the service. If you need to pass options to the server, you can provide them to the INSTALL command:

C:\Program Files\Duplicati 2\Duplicati.WindowsService.exe INSTALL --webservice-port=8100 --server-datafolder=<path>

You can also use the preload.json file to pass settings to the Server when running as a service, which allows you to change the settings without the uninstall/install cycle (you still need to restart the service).

Note: When running the Windows Service it will default to use port 8200 and fail it that port is not available. If you are running the TrayIcon, that will run a different instance, usually at port 8300. If you want to connect the TrayIcon to the Windows Service, edit the shortcut to Duplicati:

C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe --no-hosted-server --host-url=http://localhost:8200 --webservice-password=<password>

Using the Agent

With the Agent there is a minimal setup required, which is to register the machine with the Duplicati Console. The default installation is to install the Agent as a Windows Service, meaning it will run in the LocalService system account, instead of the local user. Due to this, it will not be able to open the browser and start the registration process for you. Instead, you must look into the Windows Event Viewer and extract the registration link from there.

You can also register the Agent, using the Agent executable:

C:\Program Files\Duplicati 2\Duplicati.Agent.exe register <registration url>

After the Agent has been registered, restart the service and it will now be available on the Duplicati Console.

If you have a pre-authenticated link for registering the machine, and would like to automate the process, you can place a file in C:\ProgramData\Duplicati\preload.json with content similar to:

{
  "args": {
    "agent": [ "--agent-registration-url=<registration-url>" ]
  }
}

Using the CLI

Using the CLI is simply a matter of invoking the binary:

C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe help

Since the CLI also needs a local database for each backup, it will use the same location as described for the Server above to place databases. In addition to this, it will keep a small file called dbconfig.json in the storage folder where it maps URLs to databases. The intention of this is to avoid manually specifying the --dbpath parameter on every invocation.

If you specify the --dbpath parameter, it will not use the dbconfig.json file and it will not store anything in the local datafolder.

Using the support programs

Each package of Duplicati contains a number of support utilities, such as the RecoveryTool. Each of these can be invoked from the commandline with their executable name and all contain built-in help. For example, to invoke ServerUtil, run:

 C:\Program Files\Duplicati 2\Duplicati.CommandLine.ServerUtil.exe help

Last updated

Was this helpful?