Index ¦ Archives ¦ Atom

Installing Duplicati on a headless Debian Linux server

For this setup I'm using Duplicati to backup to Backblaze. In a previous post I've written some instructions on setting up Backblaze.

SSH into the server

The first thing we have to do is to SSH into the server, because Duplicati will be running as a web service on port 8200 we need to forward connections to that port. Because I've already got Duplicati running on my desktop port 8200 is already taken so I'm going to be forwarding port 8000 on my desktop to port 8200 on the headless Linux server.

In PuTTY open go to Connections > SSH > Tunnels

Duplicati Putty Forwarding Ports

Set the source port to 8000 and the destination to localhost:8200 then hit Add

Duplicati Putty Forwarding Ports

Or if your SSHing in from a Linux desktops then use ssh example.com -L 8000:localhost:8200

Installing

Head over to the Duplicati download page and copy the link to the Debian installer (in Firefox you can right click > copy link location)

Duplicati download

Then download the file on the server

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

Then run the installer using apt (not apt-get)

sudo apt install ./duplicati_2.0.2.1-1_all.deb

If you don't already have Mono installed this will bring a lot of dependencies with it.

Finally enable and start the service

sudo systemctl enable duplicati.service
sudo systemctl start duplicati.service

I found I needed to wait about 45 seconds for the service to start accepting connections.

Setup Backups

Once Duplicati is installed open your web browser and go to http://localhost:8000

Duplicati Debian Home

Click on Add Backup > Configure a new backup > Next

Duplicati Debian New Backup

Give your backups a name, you don't need to use encryption but I'd highly recommend it, and I'd also recommend using their password generator and saving the password in a password manager.

uplicati Debian Setup General

Pick B2 Cloud Storage, put in your Bucket Name, a folder path, your account ID and your application key (from the instructions on setting up Backblaze). It's also a good idea to test your connection before continuing.

Duplicati Debian Setup Destination

Select your source data

Duplicati Debian Setup Source Data

Setup a schedule that works for you, the default on of once a day is pretty reasonable for most personal backups.

Duplicati Debian Setup Schedule

Unless you have a reason to change them I'd leave the default options.

Duplicati Debian Setup Options

And your done, you can hit Run now to start the backups or just wait for the schedule to kick in.

Duplicati Debian Setup Finished

It's that easy.

Creative Commons License
Content on this site is licensed under a Creative Commons Attribution 4.0 International License.
Built using Pelican. Based on a theme by Giulio Fidente on github.