How to install Duplicati on Debian Stretch

Collected info from a few threads and corrected a few things that were similar but not exactly the same on Debian stretch.

Here goes:

sudo apt-get update
sudo apt-get install apt-transport-https sudo nano git-core python software-properties-common dirmngr -y
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo echo "deb http://download.mono-project.com/repo/debian stretch main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-devel -y

Download Debian *.deb file from Duplicati/download
(edit the url below to be exactly as the one found as the Debian link/download button on the web page above)

wget https://updates.duplicati.com/beta/duplicati_2.0.3.3-1_all.deb

Edit this line too before you run it with the correct deb file filename you just downloaded:

sudo apt-get install ./duplicati_2.0.3.3-1_all.deb -y

Create and edit the file /etc/systemd/system/duplicati.service

sudo nano /etc/systemd/system/duplicati.service

Should look like this:

[Unit]
Description=Duplicati web-server
After=network.target

[Service]
Nice=19
IOSchedulingClass=idle
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
Restart=always

[Install]
WantedBy=multi-user.target	

Edit the file /etc/default/duplicati and add DAEMON_OPTS options to your liking:

sudo nano /etc/default/duplicati

# Defaults for duplicati initscript
# sourced by /etc/init.d/duplicati
# installed at /etc/default/duplicati by the maintainer scripts

#
# This is a POSIX shell fragment
#

# Additional options that are passed to the Daemon.
DAEMON_OPTS="--webservice-interface=any --webservice-port=8200 --portable-mode"

Enable, start and check running status of the duplicati service:

sudo systemctl enable duplicati.service
sudo systemctl daemon-reload
sudo systemctl start duplicati.service	
sudo systemctl status duplicati.service

.
.
.
.

Threads I picked up info from:

1 Like

How about the user’s manual?
https://duplicati.readthedocs.io/en/latest/02-installation/

Thanks Magnus,

Should stretch in the following line:

sudo echo "deb http://download.mono-project.com/repo/debian stretch main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

`
not be replaced by buster as in:

sudo echo "deb http://download.mono-project.com/repo/debian buster main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

Regards
Andy

Haven’t tested but sounds very logical. Not sure if anything else needs to be updated too though. Sorry.

See updated instructions here: Download - Stable | Mono

i tried this according to the manual and got it working (Raspberry pi Debian buseter) Unfortunately not the existing confoguration starts but a new one. i can’t see the existing backuptasks. how can i start the “right” configuration? It works via the menu, but this is how I have to restart the server after each reboot

Sounds like you started Duplicati under a different user context. It’s designed to allow running under different user contexts (even simultaneously). So if you accidentally switched then it may look like you have a blank configuration.

What do you WANT to run it as? As a system service that starts at bootup, or as a user process that starts after login?

thank you. I’d like to start it as a systemservice at bootup. Now I start it after login. so it runs under user pi. Can I start it at bootup as pi? If not, no problem, I will export my config, delete the backup config unter the user pi. Then reconfigure as described as service un bootup. Import the config, done.

If you want it to run as a service (via systemctl), the default location for config files will be /root/.config/Duplicati instead of /home/<username>/.config/Duplicati.

If you are willing to export your config and import it into the root user’s Duplicati that’s probably cleaner than trying to reconfigure the systemctl service to run as a different user.

I did it (via systemctl as root) with succsess. Problem fixed :sunny: Thank you

Thank you. Duplacati is a very great probram in my eyes.
But for beginner a really bad instruction to install it.

This have work. Thank you