Question about duplicati

I like to know where duplicati store settings?
I like to setup settings for one user and than just change folder name and copy that file to another user.
Are there some examples how to use duplicati in command line to copy from a PC to a network share?

Settings are stored in Duplicati-server.sqlite, which by default is located in the %LocalAppData%\Duplicati folder on Windows.

If you decide to copy it from one machine to another, you must still edit the backup job so that it stores its data in a unique destination path. No two backup jobs should ever try to write to the exact same destination.

Thank you that is a plan to change path, with a script for each user over gpo.
Does that file change or it is always the same?
Also that app works like service?

It changes every time an operation occurs. Information about the job is logged in the database. Also the most recent stats for each backup job are recorded there.

Yes, you can install it as a service. In that case the default location for the database is in a different spot.

Note that you cannot install as a service automatically - there isn’t support built-in to the MSI. Documentation is here and here.

Thank you for all info.
I have opened Duplicati-server.sqlite
and this file is not readable by text editor and can not change important data.
So this software is unusable for me. I need something to deploy on clients and change in settings only username, that is not possible with this app.

Well, you certainly shouldn’t edit a sqlite file in a text editor. It’s not a text file. On top of that, Duplicati encrypts the file by default on Windows (but you can disable that if you want).

I’m not keen on your approach anyway… trying to copy the sqlite file around and make minor changes seems like a bad idea. Sounds like you need a solution that can be centrally managed. Duplicati isn’t really designed for that. Good luck on your search!

Thank you for your help and explanation.
Yes if duplicati have some conf file where are settings stored and sql lite to all others than it will work, but when you have all settings in sql that is not suitable for working with gpo.

While you might prefer something specifically designed for central management, Duplicati can do:

Scripting options

https://github.com/duplicati/duplicati/blob/master/Duplicati/Library/Modules/Builtin/run-script-example.bat

REM DUPLICATI__LOCALPATH
REM This is the path to the folders being backed up or restored. This variable
REM is empty operations  other than backup or restore. The local path can 
REM contain : to separate multiple folders. This value can be changed by echoing
REM --localpath = "new value".

Duplicati Environment Variables talks about how to change options, and you might also be able to use:

–parameters-file for Using Duplicati from the Command Line which might be useful for remote support although the web UI can also be used if you are willing to risk opening it up to systems on the network.

https://github.com/Pectojin/duplicati-client is a third-party tool that may also help with central operation.

There is a new tool to import configurations, and configurations are text files, in undocumented format.
Export isn’t specifically designed to be edited before importing, but you could probably get away with it.

Add ability to import backup configurations from command-line #3595 brought this tool to 2.0.5.1 Beta:

C:\ProgramData\Duplicati\duplicati-2.0.5.1_beta_2020-01-18>Duplicati.CommandLine.ConfigurationImporter.exe

Unhandled Exception: System.ArgumentException: Incorrect number of input arguments.  Usage: ConfigurationImporter.exe <configuration-file> --import-metadata=(true | false) --server-datafolder=<folder containing Duplicati-server.sqlite>
   at Duplicati.CommandLine.ConfigurationImporter.ConfigurationImporter.Main(String[] args)

C:\ProgramData\Duplicati\duplicati-2.0.5.1_beta_2020-01-18>

Good luck. There are a lot of capabilities, but some design and putting together will surely be needed.