Backups & restore¶
Open Settings → Backups.
How backups work¶
Each backup produces up to two ZIP files:
| File | Contains | Size |
|---|---|---|
homevault-data-<timestamp>.zip |
A consistent snapshot of the database (homevault.db) and a human-readable data.json export |
Kilobytes |
homevault-images-<timestamp>.zip |
All photos and thumbnails | Can be gigabytes |
Each file is only written when its contents changed since the last backup
of that kind. A day without edits writes nothing, and adding one item doesn't
re-archive gigabytes of photos. To restore everything, you need the newest
data ZIP and the newest images ZIP.
Settings¶
| Setting | Options | Recommendation |
|---|---|---|
| Automatic backups | on / off | On |
| Mode | Scheduled: always back up at the scheduled time. On change: at the scheduled time, back up only if something changed. | On change |
| Interval | hourly, daily, weekly, monthly | Daily |
| Time | HH:MM in the container's time zone (see Time zone). Hourly runs use only the minutes. |
A quiet hour such as 02:00 |
| Keep | 1–100 backups of each kind | 10 |
| Network target | Mount type, host, path, credentials | See below |
| Copy scheduled backups to NAS | on / off | On, if you have a NAS |
Create Backup runs one immediately. The list below it shows every backup, with buttons to download, copy to the NAS, or delete.
Network / NAS targets¶
| Mount type | Use when | Fields |
|---|---|---|
| Local | The destination is a folder the container can already see, such as a host-mounted NAS share. This is the recommended option and needs no privileges. | Path inside /mnt, /media, /backups, /nas or a directory in BACKUP_TARGET_ROOTS |
| SMB/CIFS | Windows shares, Synology, QNAP, TrueNAS, Samba. | Host/IP, share path (backups/homevault), username and password (leave empty for guest) |
| NFS | Linux/BSD NFS exports. | Host/IP, export path (/volume1/backups) |
Test Connection checks three things: whether the host accepts connections on the file sharing port, whether the share mounts (or the folder is reachable), and whether a test file can be written and read back. It reports each step separately. SMB and NFS mounted by HomeVault need NAS mounting to be enabled and a signed-in admin.
🔑 The NAS password is write-only: the app and API never show it again. It is encrypted in the database and left out of backups: a restore keeps the one saved on this server, so enter it again only on a new installation. Changing the NAS host also asks for it again. Use a dedicated NAS user that can only write to the backup folder.
S3-compatible storage¶
Under Settings → Backups → S3 Backup HomeVault can upload backups to AWS S3, Backblaze B2, Cloudflare R2, MinIO or any other S3-compatible service.
| Field | Example |
|---|---|
| Endpoint | Empty for AWS S3, s3.us-west-004.backblazeb2.com, <account>.r2.cloudflarestorage.com or http://nas:9000 |
| Region | eu-central-1 (auto for R2) |
| Bucket | An existing bucket |
| Folder | Optional, e.g. homevault. Use a different one for each instance. |
| Access key ID and secret | A key limited to this bucket, allowed to list, read, write and delete objects |
Use Test connection, enable uploading and save.
- Every new backup is uploaded, whether scheduled or manual. Turn on Automatic Backups for it to happen on its own.
- Local backups missing from the bucket are uploaded too. A failed upload is retried hourly and shown on the card.
- The bucket keeps the newest Max Backups to Keep archives of each kind. Losing the local files does not empty it. Other objects are never touched.
- To restore, download the archives from the bucket with your provider's tools, then use Restore.
- Archives are not encrypted by HomeVault, so enable the provider's encryption and keep the bucket private. The secret key is encrypted in the database, is never returned by the API and is left out of backups: enter it again on a new installation.
- Add a lifecycle rule that aborts incomplete multipart uploads. On a bucket with versioning, also expire old versions.
Restoring¶
A restore keeps this server's backup destinations (NAS and S3). Only restore archives you trust: the database in them includes API keys.
From the UI. Settings → Backups → Restore Backup. Select the data
ZIP, the images ZIP, or both, up to 512 MB in total. When it finishes,
restart the container:
docker restart homevault
Large image archives (over 512 MB) are faster and safer to restore by hand:
docker stop homevault
unzip homevault-images-20260304-020000.zip -d /tmp/hv && cp -a /tmp/hv/images/. ./data/images/
docker start homevault
Disaster recovery on a new machine:
- Install HomeVault as above and start it once.
- Restore the newest
dataZIP and the newestimagesZIP through the UI. - Restart the container.
Without HomeVault at all: each data ZIP contains data.json, a plain
JSON export of your items, containers, floors, tags and movements. The ZIPs are
standard archives, and homevault.db opens in any SQLite tool.