I’ve been using Duplicati for a few weeks without trouble, but today when I launched the web interface, there were no settings to be seen. My backup setting, schedule, everything was gone.
I ran a system update today sudo pacman -Syuand noticed that a new version of Duplicati was included in the update. [Edit: Mis-remembered … Duplicati comes from the AUR and not installed with pacman.] After the update, my settings had disappeared. Has this update wiped my settings?
Is this normal behavior? Can I get my backup settings back?
[Edit: TL;DR Because of the way I installed and configured Duplicati, I needed to manually change User=Duplicati to User=root in the `/usr/lib/systemd/system/duplicati.service’. On reboot, my original settings have returned.]
What I hope happened is that you are connecting to Duplicati running in a different context. Many Linux users have it set up as a systemd service, so it runs as root and stores its config files in /root/.config/Duplicati. Others run it under their regular user context at logon, so the config files are in /home/<username>/.config/Duplicati.
So for now poke around your system in those various folders and see if you can find one with multiple sqlite files. Then we can work on getting Duplicati to run under the context you wish.
Arch Linux does their own package modification which starts Duplicati not as root, but as user duplicati.
If Arch changed your Duplicati user back, your old config may be in ~root and your new in ~duplicati.
How did you confirm that? In GUI, About → System info shows UserName, or use ps -lp with its PID.
You must have edited /usr/lib/systemd/system/duplicati.service once to make it run as root.
I want to be sure your update didn’t restore settings as in Installing Duplicati on Linux (Arch / Manjaro).
You can see the path of the database Duplicati uses by taking the child pid and doing lsof -p <pid>
is from my system. Duplicati runs as root, so it uses the config (and lock file) in root’s home directory.
The theory everyone is chasing is that your new Duplicati is somehow getting a new configuration file.
Searching for the file is good, but you can also look directly to see what file your “empty” Duplicati has.
Thanks @tz678 for the tip about checking whether Duplicati was running as root. It wasn’t … so I traced back the steps I used to install it in the first place.
TL;DR Because of the way I installed and configured Duplicati, I needed to manually change User=Duplicati to User=root in the `/usr/lib/systemd/system/duplicati.service’. On reboot, my original settings have returned.
How I installed
$ git clone https://aur.archlinux.org/duplicati-latest.git
$ cd duplicati-latest
$ makepkg -si PKGBUILD
Y to install (with root password)
# Root user power
$ cd /usr/lib/systemd/system
$ sudo vim duplicati.service
replace `User=Duplicati` with `User=root`. Save and exit editor
# Reload daemon service
$ sudo systemctl daemon-reload
$ sudo systemctl start duplicati.service
$ sudo systemctl enable duplicati.service
In browser, go to localhost:8200 … previous configuration is used correctly.
Regarding any future updates via the AUR, presumably I will need to repeat this process each time?
Thanks for everyone’s help. Great introduction to the Forum