---
title: "Backups & Restore"
description: "Configure automated daily or hourly offsite backups, create on-demand snapshots, download .tar.zst archives, and run selective restores with pre-restore safety snapshots."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Backups & Restore

Hosted EZ automatically backs up every site to offsite object storage as compressed `.tar.zst` (Zstandard) archives with SHA-256 checksum verification. You can also take on-demand snapshots before major changes, download archives for offline storage, and restore files and databases selectively.

## Automated Backup Schedules & Retention

Your automated backup cadence and retention window depend on your plan and add-ons:

| Tier | Automated Schedule | Retention Window |
| --- | --- | --- |
| **Starter & Business** | Daily | 7 days |
| **Pro plan** *(or Hourly Backups add-on)* | Hourly | 30 days |

You can view your site's active schedule, retention window, and next scheduled backup time on the **Backups** tab of any site in `app.hostedez.com`.

> **One backup or restore at a time**
>
> Only one backup or restore operation can run per site at a time. Backups cannot be started while a site is still being created, suspended, or deleted.

## Create an On-Demand Backup

Before updating plugins, running database migrations, or pushing structural changes, take a manual snapshot:

1. **Open the Backups tab**

   Select your site in the Hosted EZ dashboard and open **Backups**.
2. **Choose backup contents and label**

   Click **Create backup**. Add an optional label (up to 80 characters, such as `pre-upgrade`) and choose whether to include **Site files**, **Database**, or both.
3. **Wait for Ready status**

   Backups run asynchronously in the background. Once complete, the backup status updates to **Ready** with its compressed size, uncompressed size, and SHA-256 checksum.

For **Static sites**, there is no MariaDB database, so backups always include **Site files** only.

## Restore a Backup

Restoring a backup replaces your site's current files and/or linked MariaDB database with the snapshot's contents.

### Automatic pre-restore safety snapshot

Before Hosted EZ overwrites your live files or database during a restore, it automatically takes a **pre-restore safety backup** of your site's current state. If you restore the wrong snapshot or need to recover recent changes, you can restore back to that safety snapshot from the same **Backups** list.

### Selective files or database restore

1. Open your site's **Backups** tab and locate a backup in **Ready** status.
2. Click **Restore**.
3. Choose what to restore (limited to what the archive contains):
- **Restore files**: Replaces files in your site directory.
- **Restore database** *(PHP/CMS sites with a database snapshot)*: Replaces your linked MariaDB database with the backed-up dump.
4. Confirm the restore. The restore runs asynchronously and updates the backup's **Last restored** timestamp upon completion.

> **Static site restores**
>
> Static site backups contain files only; you must leave **Restore files** enabled when restoring a static site backup.

## Download & Verify Backup Archives

You can download any **Ready** backup directly from the dashboard as a `.tar.zst` archive (`<site-slug>-<backup-id>.tar.zst`). Downloads stream directly from Hosted EZ with an `X-Content-SHA256` response header matching the checksum recorded on the backup.

To inspect or extract a downloaded archive locally:

```bash
# Verify integrity (macOS / Linux)
shasum -a 256 my-site-bkp_01abc.tar.zst

# Extract with tar + zstd
tar --zstd -xvf my-site-bkp_01abc.tar.zst
```

## Delete a Backup

Click **Delete** on any backup in the **Backups** tab to permanently remove the backup record and its offsite `.tar.zst` archive. Backups cannot be deleted while they are actively being created or restored.

## Automating Backups with MCP

AI agents connected to the [Hosted EZ MCP Server](/automation/mcp-server) can manage backups programmatically:

| Task | MCP Tool | Scope |
| --- | --- | --- |
| List backups and retention policy | `list_site_backups` | `sites:read` |
| Start an on-demand backup | `create_site_backup` | `sites:write` |
| Restore a ready backup (`confirm: true`) | `restore_site_backup` | `sites:write` |
| Permanently delete a backup | `delete_site_backup` | `sites:write` |

Because backups run asynchronously, poll `list_site_backups` after calling `create_site_backup` until the backup status reaches `ready`.

Source: https://docs.hostedez.com/operations/backups-and-restore/index.mdx
