Your Docker Backups Might Be Useless When You Need Them Most
Backing up a self-hosted server sounds simple enough. Choose a backup application, point it at your Docker directories, configure a schedule, and let it run. As long as the dashboard shows a successful backup every night, everything should be fine.
But there's an uncomfortable question that many self-hosters never get around to answering: Could you actually restore everything if your server died tomorrow?
A successful backup doesn't necessarily mean your applications can be recovered. You might have every Docker Compose file safely stored away, only to discover that your database wasn't backed up correctly. Your files might be intact, but the environment variables needed to start an application are missing.
The problem isn't always the backup software. Sometimes it's how we've organized our self-hosted environments in the first place.
Backing Up Files Isn't the Same as Backing Up Applications
Docker makes deploying applications remarkably convenient, but it can create a false sense of simplicity when it comes to protecting their data.
A typical self-hosted application might have a Compose file stored in one directory, persistent data stored somewhere else, and a database running inside another container. Depending on how the application was deployed, some information might live inside Docker-managed volumes rather than easily accessible folders.
Simply copying the directory containing your Compose file won't necessarily preserve everything required to restore the service.
Even copying all persistent directories can introduce problems. Databases that are actively writing information may not produce consistent backups when their files are copied without coordination.
That's why a proper backup strategy needs to account for the entire application, including its persistent data and any required configuration.
The Problem With Having Too Many Backup Tools
There's no shortage of backup software available to self-hosters. Restic, BorgBackup, Kopia, Duplicati, and numerous management interfaces all provide ways to protect important files.
Yet choosing another backup application doesn't automatically solve the underlying problem.
Consider someone running twenty Docker containers across a dozen Compose projects. Each service has different requirements. Some need database dumps before backups begin, while others simply need a directory copied. Certain applications contain irreplaceable information, while others store temporary data that could easily be downloaded again.
A backup solution that treats every directory identically may waste considerable storage. Worse, a backup configuration that depends on manually adding every new project creates opportunities for important data to be overlooked.
For many home server owners, the missing feature isn't another backup format. It's a clear overview of which applications are protected and which ones aren't.
Organizing Your Docker Directories Can Make Recovery Easier
One practical improvement is keeping each application's configuration and persistent data organized under a predictable directory structure.
For example, a home server might use /docker/immich/ for its Immich deployment and /docker/vaultwarden/ for its password manager. Each directory could contain its Compose configuration and related application data, with appropriate handling for databases and secrets.
This doesn't mean every application must use bind mounts. Docker volumes have legitimate advantages, and certain applications are better suited to them. What matters is knowing exactly where important information lives and making sure your backup process includes it.
A consistent structure also makes individual application recovery considerably less intimidating.
Instead of restoring an entire server because one application failed, you can identify the affected project's configuration and recover the necessary data without disturbing unrelated services.
Your Database Deserves Special Attention
Databases are one of the easiest parts of a self-hosted setup to misunderstand.
Applications using PostgreSQL, MariaDB, or SQLite may continue accepting writes while a scheduled backup is running. Depending on the database and backup method, blindly copying live database files can produce an inconsistent snapshot.
The safer approach is to use a database-aware backup method, such as a supported database dump or a properly coordinated snapshot.
Some backup systems support scripts that execute before and after a backup. Those scripts can prepare an application for backup and restore normal operation afterward.
The exact process depends on the database and application. A method that works for one service may be inappropriate for another.
The important thing is understanding whether the data you're protecting can actually be recovered into a working application.
Don't Forget About Offsite Copies
Keeping backups on another drive inside the same server is useful, but it doesn't protect against every failure.
A serious hardware problem, theft, or accidental deletion could affect both the original data and its local backup.
The familiar 3-2-1 backup strategy remains a useful starting point: three copies of important data, stored across two types of storage, with one copy maintained offsite.
For a homelab, that might mean keeping the original application data, a local backup repository, and another protected copy on a remote server or cloud storage provider.
Encryption is particularly important when transferring personal files or application databases to storage you don't directly control.
It's also worth considering whether a compromised server could delete its own backups. Versioned snapshots, restricted credentials, and storage protections can make recovery more resilient.
The Restore Test Most People Skip
Perhaps the most valuable backup practice is also the least exciting: actually testing recovery.
Choose a noncritical application and restore it into an isolated environment. Recreate its configuration, recover the data, and verify that it behaves as expected.
Don't assume that seeing files inside a backup archive means the application will start successfully.
You may discover that an environment variable was excluded, a database dump is incompatible with the application version, or an unexpected permission prevents the container from accessing restored files.
Finding those problems during a planned test is inconvenient. Discovering them after a drive failure can be devastating.
It's also worth documenting the recovery process somewhere outside the server itself. Instructions stored exclusively on the machine you're trying to recover aren't especially helpful when that machine becomes unavailable.
A Backup Is Only as Good as Your Ability to Restore It
Self-hosting offers something valuable: control over the services and information we depend on.
But that control also comes with responsibility.
You don't necessarily need an expensive enterprise backup platform or a complicated collection of scripts to protect your homelab. A straightforward system that consistently captures the right data and makes restoration understandable can be far more valuable than an elaborate setup nobody knows how to recover.
The next time your backup dashboard reports another successful run, consider doing something different.
Pick an application and try restoring it.
You might discover that your backups are working perfectly. Or you might uncover a problem that's been quietly waiting for the worst possible moment.
[trivia:15]


Noted
Your Docker Backups Might Be Useless
Your Docker backups might be running perfectly, but can you actually restore your applications when something goes wrong?














