Installing Duplicati on Linux (Arch / Manjaro)

Well, newer here but I feel I’ve got some things to talk about regarding installing and configuring Duplicati on Manjaro Linux. Pro tip - arch repo is a powerful tool, Manjaro certainly is a good blend between UI/user experience and accessing these packages.

None the less, here’s a week with linux and figuring out this duplicati instance.

Problem: Installed Duplicati, navigated to local host and tried every stupid command online to run as “root”, no dice. Spent a week figuring out how this could be done.
Solution:
Installing Duplicati on Manjaro is more difficult than the deb file for example online. However, accept the defaults and run the duplicati2-beta package, you can find that here or via Octopi and Yaourt installed.
https://aur.archlinux.org/packages/duplicati2-beta/

Installing it was easy, getting the service to be running was automatic. Problem was with the inability for me to save or backup /home/tech for example, it was locked and I didn’t have permission to read these directories, rather useless.

I read online how to start and stop the service and to even go the length of making it start when the computer boots, all of that. Still, every single time that you went and tried to configure the backup I was in the same position.

Finally, I came across a guide that indicated that duplicati is staring as the user too quick and despite me setting it as sudo and running it as root, it was useless as it always defaulted.

Solution:

Modify the file /usr/lib/systemd/system/duplicati.service so it DOESN’T contain a username or password. By default the username and password are duplicati and duplicati. Removing those two entries and saving the file, stopping the service and starting it again, allowed me to navigate to /home/tech and save the data. To be honest I don’t recall if there was just a username entry or both but remove both if you see two, user and pass.

[Unit]
Description=Duplicati Backup software

[Service]
ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target

Hopefully this helps someone out.

Thanks for starting this @Erik_Carlin_Technica! Hopefully this can help others with less Manjaro experience than you. :slight_smile:

Disclaimer: I’m not a normal Manjarao / Arch user but this is what worked for me in Manjaro 18 (Illyria) with XFCE.

(Note that I’ve made this a Wiki so feel free to use the image button in the lower right below the post to make any additions you feel might be useful to others.)


Installing Duplicati via XFCE GUI (mostly):

  1. Run “Add/Remove Software” (aka Pamac)
    a. If you don’t see AUR in the left column then make sure “yaourt” (no quotes) is installed. If not, go ahead and install it (there’s no need to include any of the optional dependencies).
    Enabling yaourt

    b. Enable AUR using the 3-dots “hamburger” menu (upper right). Enabling AUR

  2. Select AUR from the left column as the package source, search for Duplicati, and install it! (Be sure to include “gtk-sharp-2” and/or “mono” if prompted.)

Note that I don’t yet know how to get the tray icon running or add anything to the Manjaro menu (such as Xfce) so for now you’ll need to use a terminal window…

Running Duplicati as root / changing server parameters

To run Duplicati as another user or change server parameters:

  1. Open a terminal window and run sudo nano /usr/lib/systemd/system/duplicati.service
  2. Change any service parms on the “ExecStart” line as needed.
  3. Change the “User” and “Group” lines to run as a different user (or remove them completely to run as root).
  4. Press ctrl-x, then Y, then enter to save the file.
    Note: If Duplicati was already running, be sure to run systemctl restart duplicati to restart it with the new settings.

Starting/Stopping Duplicati

To start/stop/restart/auto-start Duplicati:

  1. Open a terminal window (sorry, I don’t know how to add items to the menu) and type systemctl start duplicati. Note that this will start it but NOT make it auto-start.
    a. To run Duplicati as a service (whether you log in or not) type systemctl enable duplicati. Note that this ENABLES the service, but doesn’t start it until next reboot.
    b. To stop Duplicati type systemctl stop duplicati
    c. To restart Duplicati type systemctl restart duplicati
    d. To check if Duplicati is running type systemctl status duplicati

Remember - Duplicati uses a web interface so once running you’ll want to go to http://localhost:8200 (if using defaults) to get to the GUI.


Removing Duplicati

To uninstall / remove Duplicati:

  1. Once installed with the above, you should be able to use the default “Add/Remove Software” GUI (like Pacman) to find and uninstall Duplicati.

    Note: Uninstalling Duplicati will NOT remove the backup jobs, destination files, and update files. If you are SURE you no longer want those jobs or backups, delete them from within Duplicati (this process CAN also remove the destination files) or as manually (by deleting the .sqlite files from your Duplicati folder and the files from the destination folder).
1 Like

Hey @JonMikelV! Thanks for continuing to help with this Wiki. Perhaps you can modify the wiki with the current information that I will post now.

Duplicati2-beta is not the latest version that is now in the AUR, there is a package called duplicati-latest in the repo as well. Here’s a link to the AUR package, for reference. Duplicati-latest

So I don’t mind your way of installing it I guess but there’s a way better way to install this software than trying to download the package from the web. IMO, the aur website is for information and nothing more.

Manjaro linux has the benefit of accessing the AUR, along with all the other ARCH distros… IE arch itself, Antergos etc. They are all arch base and the appeal is that they have access to the AUR, packages that are built and maintained by the public.

Now with KDE Manjaro, Octopi is the package installer - on other flavours it is another package installer but it serves the same purpose. So what Jon said is right, however, IMO there’s even an easier way to do this.

Simply install duplicati-latest via the package installer and you’re good to go, after modifying the /etc/…file and doing the other steps to enable it on start up etc. KDE by default requires that you install yaourt.

sudo pacman -S yaourt

I know that the Cinnamon version of Manjaro has it by default but the KDE version isn’t - either way you need to install Yaourt and then enable it in your package maintainer and then you simply need to search the repo via the GUI.

Thought maybe that would be an easier way to do it - and this now works for ALL packages in the AUR. Just bypasses trying to download this and run this - one simple point click select install process.

@JonMikelV, what do you think? :slight_smile:

Would it be helpful if I made a video regarding this process - I think it would be beneficial to new users? I know that it would help me. The default install doesn’t allow duplicati to work the way it needs to… by showcasing the install and modifications required I feel that you would get more traction and user base. The installer could also be modified with the one file as well? That is worth a thought as well… still need to modify the install after with a symlink so it starts up every reboot but yeah. Thoughts @JonMikelV

I didn’t realize there were so many differences between Manjaro editions!

I actually tried installing via your initial post but found too many gaps in my knowledge to follow all the steps. I think going with AUR is great, but filling in some of the holes (like with your previous post) is good.

Of course I could be the odd one and most Manjaro users already know about having to install yaourt if using XFCE or KDE. :slight_smile:

I’m not opposed to a video - some people prefer them to having to read all the words I end up stuffing into a post. :crazy_face:

Does the systemctl enable duplicati option not work for you?

Definitely, they all have their own nuances. :slight_smile:

systemctl enable duplicati works my friend, the issue is with the following file:

/usr/lib/systemd/system/duplicati.service

Using your text editor, nano, etc… modify this entry to look exactly like the above:
[Unit]
Description=Duplicati Backup software

[Service]
ExecStart=/usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe
Restart=on-failure
RestartSec=30

user=duplicati
group=duplicati

[Install]
WantedBy=multi-user.target

You have to remove the two lines for user duplicati and group duplicati.. IF you do not, duplicati will never run as root and therefore be unable to backup your system. For example, duplicati is installed but does not have access to the /home/tech folder, tech being my user account. However, after removing those two lines of code that are there by default, and restarting the service su root systemctl start duplicati … THEN and ONLY then does duplicati run as root and therefore have access to the ENTIRE disk.

1 Like

Ahh - that makes more sense now. I assumed that once it was auto-starting it HAD to have been running as root, but I never tested it.

BTW - I poked around a bit more and think I understand what you’re saying about installing form AUR.

For XFCE the “Add/Remove Software” Package Manager is Pamac. By default it does’t seem to have AUR enabled but I turned on by using the 3-dots “hamburger” menu (upper right), selecting the AUR tab then enabling the “Enable AUR support” option. I then used the 'hamburger" menu again and selected “Update databases”.

I tried this with “Check for updates from AUR” both enabled and disabled, but I’m still not finding Duplicati when I search.
image

Glad we are seeing the same thing and you understand what I mean - trust me I’ve spent about 15 hours with the initial install to make it work and now I can make it work in five minutes on a clean install on KDE and Cinnamon, at least. I haven’t done it with XFCE but you get the idea.

I haven’t got into XFCE but you might want to enable the AUR. I understand the AUR button might be toggled but you might have to run the command below to actually install it in your system. THEN that button should mean something and your search will come up with the results.

sudo pacman -S yaourt

^^that line did have to be run in the terminal to enable AUR searching in KDE, Cinnamon it seemed to work without it. Perhaps XFCE is like KDE that way.

Let me know?

Thanks for all the tips - I’ve updated my post above (Installing Duplicati on Linux (Arch / Manjaro)) how’s it look?

Looks good my friend - I’ll see about screen recording the steps above too and upload that as well. Might be nice to have that as well for our new Linux users.

1 Like

Hi, i’ve been away for ages but i noticed this conversation and thought i should contribute - please note that Yauort development was discontinued some time ago. It is not recommended to continue using it.

Pamac (for Gnome and other DEs) has its own built-in AUR helper and doesn’t need another one to be installed, unlike Octopi (for KDE/Plasma and OpenBox… maybe others?) which needs a separate AUR helper installed alongside. Octopi now supports the Trizen AUR helper - which is maintained. As Eric mentioned, the AUR helper needs to be installed to allow Octopi to do its thing. At least, this is the case on Arch - it would make sense if Manjaro installed Trizen by default if it also installs Octopi (i don’t use Manjaro).

EDIT: Manjaro does NOT install Trizen or another helper automatically which would enable Octopi to use the AUR. I find that odd, but there you go.

Thanks for the input @anon76227090!

I’m not a regular Arch or Manjaro user myself - do you know if they are different enough to require their own guides?

I don’t know that I’ll have time try out your Yauort alternates any time soon but the 2nd post in this topic is a wiki so feel free to tweak it if you think it will help people. :slight_smile:

They only thing I would suggest is to keep working-but-retirered processes (such as Yauort) mentioned somewhere either as legacy alternatives for those staying on older versions of an OS for whatever reason (say, 32 bit hardware) or mentioned with the reason NOT to use (such as no longer maintained).

Hi Jon :slight_smile:

Arch and Manjaro use the same mechanisms, either via command line or GUI. The difference being that Manjaro has a helper pre-installed (i believe), whereas Arch does not have any AUR helpers (command line or gui) pre-installed.

I recently switched to Arch from Neon (Ubuntu based), and although i use KDE/Plasma i have used Pamac (GTK) over Octopi (QT). Mostly because Octopi can go years without updates.

RE the Wiki, Its late now, so i won’t be doing it right now, but i really would like to contribute so i’ll try to do it some time before next Monday. I’ll fire up a Manjaro VM (XFCE & Plasma) to see how Octopi does its thing.

I don’t think its necessary to write specifically for Arch, i can’t imagine an Arch user who couldn’t piece together what was required from the Manjaro instructions. Just a mention of Arch in there would be good so it can be searched for.

1 Like

Derek, thanks for your information and contribution. I re did my entire duplicati install and wireguard vpn server on Manjaro Cinnamon and I didn’t have to enable Yaourt or anything else. Looking at the settings or about config for the package manager it says Pamac. I suppose it’s not needed like you said now that it is outdated.

I honestly tried installing Arch itself but found it way over my head to start getting configured - that’s why I chose Manjaro with is Arch based. I have found, though, between different DE that there are slight differences in which package manager, which file explorer type program etc. I’ve become a lot more comfortable with the install process and enabling things at start up. Since then I haven’t had a problem with Duplicati installing or running on my system.

I would love to see your updated instruction set if you have the time to do so - I would like to glean what I can from it as well…

I’ve had a bit of a play. Annoyingly my Manjaro VM refuses to increase display size after updates, so i’m working on a teeny screen :frowning:

I had to reboot after installing Trizen/configuring AUR for Duplicati to install for some reason.

Anyway, very early playing around i wasn’t comfortable running it as root - so i didn’t (this can be especially so if the AUR is not managed by the dev team but some random volunteer). I checked what groups the user was in:
$ groups manjaro

Manjaro is the user on my VM. And it gave me the groups the manjaro user was a member on. In that system, it didn’t have a ‘users’ group (as my Arch does); it has ‘manjaro’ (i presume instead of users). So i updated the duplicati.service to:

user=manjaro
group=manjaro

I did a very quick and dirty backup/restore and it seemed to work fine. A note that of course the default ‘duplicati’ user and group won’t work - because that user and group hasn’t been defined by the system administrator (a manual task).

I think we need to be mindful of peoples use-case. I wouldn’t use Duplicati to backup my system, i’d use Timeshift or a similar app for that. I would use Duplicati for user data - the stuff my user has full access to without requiring sudo/root. Another use-case is multiple users, i’ll have to play with that, i don’t have any experience with multiple users on my PC.

I’m slowly piecing instructions together. :slight_smile:

Thanks for the info @anon76227090!

You are correct - Duplicati is designed for data backup, not system level stuff.

Like many of my #howto guides, this one was put together while helping somebody get Duplicati working for themselves not for my own use. So it’s quite likely of missed scenarios or settings that would benefit a “normal” user.

Feel free to update the first post (it’s a wiki) with any suggestions you might have! :slight_smile:

On my system, it looks like I can now just run: systemctl --user start duplicati and systemctl --user enable duplicati and duplicati will correctly run as my own user and backup my ~/home without needing to touch /usr/lib/systemd/system/duplicati.service.

Hi @zlawrence, welcome to the forum!

Thanks for sharing the commands that work for you. I assume the enable step lets Duplicati start on reboot?

Just out of curiosity, what version / goodbye flavor of Manjaro (ot Arch) are you using?

Oh, and the 2nd post in this topic is a wiki so feel free to edit it yourself if you find better methods or incorrect info. :slight_smile:

Right, enable allows Duplicati to start as my user on reboot. It also adds a Duplicati icon to my i3bar toolbar.

I’m using the i3 version of Manjaro 18.0.4.

I actually don’t see the Edit but to update this post? Maybe I’m missing how somewhere?