brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Guide: back up your Unraid appdata with Duplicati, encrypted, to a European provider, and prove it with a test restore

back up your Unraid appdata with Duplicati, encrypted, to a European provider, and prove it with a test restore

Guide unraid

9 steps 6 min read

I run Duplicati on my Unraid server and I know it well, so here is the one thing I would tell anyone: a backup you have never restored is just a hope. Below is how I would back up Unraid appdata with Duplicati, encrypted on my side, to a provider in Europe, and then prove it works with a test restore. I checked every setting against the current Duplicati docs and the restic docs.

Time
6 min
Steps
9
Updated
27 Nov 2026

You will learn

  • The 3-2-1 rule, in plain words
  • Why appdata needs care
  • Map appdata read-only into the conta…
  • Create the job
  • Choose a European off-site destination
Duplicati general backup settings with AES-256 encryption and a password field

Step 1 of 9: The 3-2-1 rule, in plain words

Three copies of your data, on two different kinds of storage, with one copy somewhere else. For appdata that means: the live folder on your cache or array is copy one, a Duplicati backup on another disk or machine is copy two, and an encrypted copy in a data centre in Europe is the off-site one. Parity is not a copy. Parity happily protects a deleted file or a corrupted database.

Step 2 of 9: Why appdata needs care

Appdata is mostly small config files, which is easy, plus databases (SQLite, PostgreSQL, MariaDB), which is not. A database file copied while the app is writing to it can be useless on restore. My advice: stop those containers during the backup, or let the database dump itself to a file first and back up the dump. Duplicati helps here: --run-script-before-required runs a script before the backup and aborts the backup if the script fails.

Step 3 of 9: Map appdata read-only into the container

Duplicati keeps its own config in /data. Add your appdata as a second path and make it read-only, so a wrong click can never change the source:

Host path:      /mnt/user/appdata
Container path: /source
Access mode:    Read Only

Keep a separate writable share for test restores.

Step 4 of 9: Create the job

In the UI choose Add backup. The wizard has five steps: General, Source Data, Destination, Schedule and Options.

General. Name it, keep the encryption on AES-256 encryption, built in and set a long passphrase. Generate it in your password manager and store it there. The docs are blunt: lose it and you lose your backups.

Source Data. Pick /source. Exclude caches and anything you can download again.

Schedule. Daily, at night.

Options. Backup retention defaults to Smart backup retention, which is the policy 1W:1D,4W:1W,12M:1M: one backup per day for a week, per week for four weeks, per month for a year. I would keep it. The remote volume size is the --dblock-size option, 50 MB by default. The docs suggest roughly 50 to 500 MiB for cloud storage; restoring one small file means downloading its whole volume, so I would leave 50 MB for appdata.

Duplicati also tests a sample of the remote files after every backup: --backup-test-samples (default 1, set to 0 or use --no-backend-verification to switch it off). It proves the files are intact, not that you can restore.

Duplicati Options step with Smart backup retention selected

Step 5 of 9: Choose a European off-site destination

For me this is also an AVG (GDPR) question. If the data centre is in the EU and Duplicati encrypts before upload, the provider only ever stores ciphertext. I am not a lawyer, but that is the setup I am comfortable with. Options I checked on the providers’ own pages:

Hetzner Storage Box (Germany or Finland) speaks SFTP, and Hetzner lists Restic and BorgBackup too. The cheapest plan, BX11 with 1 TB, was listed at 3.20 euro a month excluding VAT when I checked on 17 November 2026. Scaleway Object Storage has Paris, Amsterdam and Warsaw regions and is S3 compatible. OVHcloud Object Storage is S3 too, with European regions such as Gravelines, Strasbourg, Frankfurt and Warsaw. Backblaze B2 has an EU Central region in Amsterdam, chosen when you create the account and not changeable afterwards, but it is a US company, so I would pick one of the others if the point is staying European.

In Duplicati pick SFTP (SSH) or S3 compatible, fill in the details and press Test now.

Step 6 of 9: The test restore

This is the step that matters. Run the first backup, then restore a single file and a full folder to a different location, never over the original. Do it from a fresh start, as if the server was gone: install a second, empty Duplicati container with its own config folder. On the Restore page choose Direct restore from backup files, enter the destination details, press Test now, then Continue, enter the encryption passphrase and pick a backup. Select the file or folder and choose another destination in the restore options.

Then compare checksums. Run this in a quiet folder, since live apps change files after the backup (adjust the paths to wherever the restore put the files):

cd /mnt/user/appdata/<app>
find . -type f -print0 | sort -z | xargs -0 sha256sum > /tmp/app.sha256
cd /mnt/user/restore-test/<app>
sha256sum -c /tmp/app.sha256 | grep -v ': OK$'

No output means every file matches. Repeat it once a year.

Duplicati restore page offering Direct restore from backup files and Restore from configuration

Step 7 of 9: Export the job and guard the passphrase

On the home page open the backup menu, choose Export, then To file. The JSON file holds your settings and, if Export passwords stays checked, your credentials and passphrase, so encrypt it and keep it in the password manager next to the passphrase. Later you can use Restore from configuration with it. Without the passphrase the backup is useless.

Step 8 of 9: The Restic alternative

If you prefer a command line, Restic (BSD-2 licence) does the same job, encrypted by default. These are the commands from its docs, with a placeholder host:

restic -r sftp:user@host:/restic-repo init
restic -r sftp:user@host:/restic-repo backup /mnt/user/appdata
restic -r sftp:user@host:/restic-repo restore latest --target /tmp/restore-test --include /mnt/user/appdata/<app>
restic -r sftp:user@host:/restic-repo check --read-data-subset=10%

Give it the password through RESTIC_PASSWORD_FILE. Same warning: “Losing your password means that your data is irrecoverably lost.”

Step 9 of 9: The usual way it breaks

The passphrase lived only inside the server you lost. The source was mounted wrong, so the job ran green over an empty folder. Credentials expired. The destination filled up. Nobody ever tried a restore. Check the job’s last result now and then.

Further reading

Link