# How to install Duplicati on Debian Stretch

**URL:** https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722
**Category:** How-To
**Created:** [September 23, 2018, 12:27pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722 "2018-09-23T12:27:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![magnust](https://forum.duplicati.com/user_avatar/forum.duplicati.com/magnust/32/251_2.png) [@magnust](https://forum.duplicati.com/u/magnust)
#### Post date: [September 23, 2018, 12:27pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/1 "2018-09-23T12:27:58Z")

</div>

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](https://www.duplicati.com/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:

> [@Installing Duplicati on a Netgear ReadyNAS](https://forum.duplicati.com/t/installing-duplicati-on-a-netgear-readynas/902):
>
> This article describes how I did get Duplicati working on a Netgear ReadyNAS. Due to my very limited Linux skills I suppose there are a number of things that could be done better, so feel free to comment what could be improved. A ReadyNAS running ReadyNAS OS6 is required. Older models running RAIDiator (like the ReadyNAS Duo and ReadyNAS Ultra) are based on an ancient Debian version that doesn’t meet the minimum requirements for installing Duplicati. Create a new shared folder. Give it the na…

> [@Netgear Readnas 104 NAS install?](https://forum.duplicati.com/t/netgear-readnas-104-nas-install/899/11):
>
> Enable SSH: Log on to your ReadyNAS and create a new share.Give it the name Duplicati. Enable SSH: Click System, Settings and click the SSH button. Download and start PuTTY. Connect to your ReadyNAS (username: root, password: your admin user’s password). Install Pre reqs: Type the follow: apt-get update apt-get -y install apt-transport-https sudo nano git-core python python-software-properties software-properties-common sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key…

> [@Debian installation - no init script created](https://forum.duplicati.com/t/debian-installation-no-init-script-created/905/2):
>
> Are you using systemd ? If so, there is no init.d script, instead there is a duplicati.service file: You activate it with something like: systemctl enable duplicati

---

<div class="post-metadata">

### Author: ![T-6](https://forum.duplicati.com/user_avatar/forum.duplicati.com/t-6/32/539_2.png) [@T-6](https://forum.duplicati.com/u/T-6)
#### Post date: [September 23, 2018, 2:25pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/2 "2018-09-23T14:25:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![andybjackson](https://forum.duplicati.com/user_avatar/forum.duplicati.com/andybjackson/32/4310_2.png) [@andybjackson](https://forum.duplicati.com/u/andybjackson)
#### Post date: [April 26, 2020, 4:32pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/3 "2020-04-26T16:32:36Z")

</div>

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

---

<div class="post-metadata">

### Author: ![magnust](https://forum.duplicati.com/user_avatar/forum.duplicati.com/magnust/32/251_2.png) [@magnust](https://forum.duplicati.com/u/magnust)
#### Post date: [April 27, 2020, 11:30am UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/4 "2020-04-27T11:30:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [April 27, 2020, 2:11pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/5 "2020-04-27T14:11:05Z")

</div>

> [@andybjackson](#):
>
> not be replaced by **buster** as in:

See updated instructions here: [Download - Stable | Mono](https://www.mono-project.com/download/stable/#download-lin-debian)

---

<div class="post-metadata">

### Author: ![stflu](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stflu](https://forum.duplicati.com/u/stflu)
#### Post date: [June 9, 2020, 9:07am UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/6 "2020-06-09T09:07:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [June 9, 2020, 5:00pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/7 "2020-06-09T17:00:40Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![stflu](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stflu](https://forum.duplicati.com/u/stflu)
#### Post date: [June 9, 2020, 5:19pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/8 "2020-06-09T17:19:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [June 9, 2020, 8:21pm UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/9 "2020-06-09T20:21:15Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![stflu](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stflu](https://forum.duplicati.com/u/stflu)
#### Post date: [June 10, 2020, 5:53am UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/10 "2020-06-10T05:53:28Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Dursun\_Selcuk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/dursun_selcuk/32/7302_2.png) [@Dursun\_Selcuk](https://forum.duplicati.com/u/Dursun_Selcuk)
#### Post date: [July 5, 2022, 3:06am UTC](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722/11 "2022-07-05T03:06:20Z")

</div>

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
