> ## Documentation Index
> Fetch the complete documentation index at: https://home-app.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Backups

> Volume archives with retention and a guided restore.

Backups archive a stack's named volumes into `tar.gz` files under
`data/backups/<project>/<stack>/`, each with a `manifest.json` describing
what's inside (`home-backup/1` format).

## How a backup runs

A helper container (alpine) mounts each volume read-only and the backup
target at `/backup`, then streams a compressed tar out. Services keep
running — take the archive-first approach for databases if you need strict
consistency, or stop the stack first.

Run one manually from the **Backups** tab, or attach a `backup`
[schedule](https://home-app.mintlify.site/features/schedules.md) to run them on a cron. Retention prunes to
the newest `HOME_BACKUP_RETENTION` (default 10) archives per stack after
each run.

## Restoring

Pick a backup → **Restore** → confirm. The flow:

1. Stops the stack's containers.
2. Wipes the volumes and streams the archive back in (replace mode) or
   merges it over the current contents.
3. Restarts the containers.

Progress and failures show inline under the backup row. Volumes the archive
doesn't cover are untouched.

> [!WARNING]
>
> Replace mode **deletes the volume's current contents**. Keep a fresh
> backup before restoring over anything you can't rebuild.

## In a container, set the host paths

When Home itself runs in Docker it needs two env vars so helper containers
mount the right directories — the installer sets both:

* `HOME_HOST_DATA_DIR` — host path of the `/data` bind mount
* `HOME_BACKUP_VOLUME` — host path of the backups dir (must resolve to
  `<host data dir>/backups`)

Without them, backups and the volume file browser can't mount volumes
inside a container. See [configuration](https://home-app.mintlify.site/configuration.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.