Unraid Docker backup missing data? Check persistent storage
gist Save container settings, consistent appdata, databases and keys, then restore a separate copy to check that the app can use them.
You stopped about in. Jump back
contents
If your Unraid Docker backup contains only container images, add persistent files, settings, databases and keys. Docker’s storage documentation explains why volumes need separate backups.
I run Docker containers on my Unraid box. Each app needs a recovery plan for its persistent files and settings.
Before choosing a tool, gather each container’s settings, storage mappings, database type, and recovery instructions. Choose a backup destination with enough space for several older copies.
Step 1: Map the files each app needs
Open each container’s settings and record its host paths and container paths. Check every mapping, including folders outside the appdata share.
Unraid normally uses appdata for container working files, often with a folder per container. That convention does not guarantee that every app stores all its data there. Unraid’s share documentation describes the default shares.
| Item | What to save | What to check |
|---|---|---|
| Container settings | Template or Compose file, image reference, ports, mounts, networks, and environment settings | Can you recreate the same container configuration? |
| Persistent appdata | Settings, databases, uploads, and other files the app keeps | Are all persistent paths included? |
| External database | A supported database backup and required roles | Does the app use a separate database container? |
| Separate media | Books, videos, music, and other original files | Are these covered by another backup job? |
| Keys and credentials | Encryption keys and credentials needed for recovery | Can you recover them without the failed server? |
Exclude only files you know can be rebuilt. A folder called “cache” may be expendable, but a library database or uploaded file may be irreplaceable.
Step 2: Save flash configuration and container settings
Keep a flash configuration backup alongside your app backups. It preserves Unraid settings needed to rebuild the server.
Unraid Connect flash backup covers OS configuration, licensing, and system settings. Docker template XML files are included and may contain application credentials. Appdata and media need separate backups. Connect excludes account passwords and WireGuard keys, so plan to reset passwords and replace those keys after recovery. See Unraid’s flash backup documentation.
Save any Compose files or supporting configuration stored elsewhere. Record the image tag or digest used with each backup. Restoring an older database into a newer app release may trigger a migration. Check the app’s restore instructions before starting it.
Protect templates as sensitive files. An environment setting can contain a password even when the file looks like ordinary configuration.
Step 3: Make databases consistent before copying
For a file backup, stop every process that writes to the files being copied. Wait for a clean shutdown, copy the full persistent directory, then restart the services. If several containers share that directory, stopping only one leaves other writers active.
SQLite warns that copying a database during a transaction can mix old and new content. Use an app-supported backup method or stop all writers while copying. For a stopped file copy, keep any required journal and write-ahead log files with the database. SQLite’s backup guidance explains the risk.
For Postgres, use a supported database backup method. pg_dump produces a consistent database dump while the server is running. Plan separately for cluster-wide roles and other objects needed during restore. PostgreSQL’s SQL dump documentation covers these requirements.
A consistent database dump does not automatically match files written elsewhere. If an app stores uploads separately, pause its writes while collecting the dump and those files.
Step 4: Choose a backup method
| Method | Useful when | What you still need to handle |
|---|---|---|
| Appdata Backup plugin | You want Unraid controls for appdata backups and container stop/start handling | Check mappings, exclusions, shared writers, compatibility, and restore settings |
| Restic or Kopia | You want encrypted backup history on local, network, or remote storage | Arrange database consistency and include every required path |
| Service-native backups plus file backups | Postgres provides a consistent pg_dump |
Retain the dump alongside settings, keys and separately stored files |
The Appdata Backup maintainer documentation describes per-container settings and grouped stop/backup/start behavior. Group containers that share writable data. Check current compatibility and the posted feature-freeze notice before adopting it.
Restic uses encrypted repositories. Kopia offers encrypted snapshots, retention policies, and graphical and command-line controls. Both need consistent application data as their input.
Keep backup history long enough to recover from a mistake discovered later. Add a copy outside the server so a server failure cannot take every copy with it. Pick the schedule from how much recent work you can afford to lose.
Step 5: Keep recovery keys accessible
Store backup passwords somewhere you can reach when Unraid is unavailable. Keep destination credentials and app encryption keys there too.
For n8n, preserve the encryption key used with the backed-up database. n8n generates a key on first launch and stores it in its settings unless you supply one through configuration. The key encrypts saved credentials. n8n’s encryption-key documentation describes both methods.
Check where your deployment supplies the key. A database backup alone may omit it. The n8n backup guide covers this in detail.
Step 6: Restore a separate copy and check the app
For practice, use an installed Restic client and an unused disposable directory containing only sample files. Run these commands and check each outcome:
mkdir -p /tmp/unraid-backup-example/input
printf 'sample setting\n' > /tmp/unraid-backup-example/input/settings
restic -r /tmp/unraid-backup-example/repository init
restic -r /tmp/unraid-backup-example/repository backup /tmp/unraid-backup-example/input
restic -r /tmp/unraid-backup-example/repository check --read-data
restic -r /tmp/unraid-backup-example/repository restore latest --target /tmp/unraid-backup-example/restored
Restic prompts for the repository password. Enter it at the prompt and keep it out of command text. Choose your own repository location for real backups.
check --read-data reads and checks stored backup data. restore extracts files into the target directory while preserving their saved path layout. Inspect the target after the command finishes. If the sample file is present, compare its contents with the original before accepting the practice restore. See Restic’s repository checks and restore documentation.
For an app restore, use a separate test instance with its own writable mounts and ports. Isolate it from production services and block outbound actions before starting it. Disable scheduled automations in the restored instance.
Check the restored app:
- The app starts with the intended version and restored settings.
- Its database opens without errors.
- Expected records and files appear.
- File ownership and permissions allow normal access.
- Required keys can decrypt saved credentials.
- Separate media mappings point to the intended files.
Record the backup date, app version, missing steps, and time needed. Fix gaps before relying on the next backup.
Common questions
Is backing up Docker images enough?
No. Images contain the software. Settings, databases, and user files often live in separate mounts or volumes. Save those files and the configuration needed to attach them.
Does an Unraid flash backup include appdata?
No. Unraid Connect flash backup preserves server configuration. Back up appdata, databases, and media separately.
Can I back up appdata while containers are running?
For Postgres, pg_dump creates a consistent dump while the database runs. SQLite provides an online backup API. Choose the method supported by the app. For a plain file copy, keep writers stopped during the copy.
Do I need to back up Jellyfin media separately?
Yes, if you want to recover the media files. App settings and library data do not replace the videos, music, or books stored in separate folders.
How often should I back up appdata?
Choose the interval from the work you can afford to lose. Back up frequently changing data more often, and keep an extra copy before upgrades or major configuration changes.
How do I know a backup works?
Check the repository, restore into a separate location, and open the restored data with the app. A successful backup log confirms that a job finished. An app restore checks whether the saved files are enough for recovery.
Related: Unraid guides · full guide index.
../unraid/ every Unraid + Docker guide