# Backups and restore

> Encrypted account backups in Zopanel for Windows: contents, S3, schedules, restoring sites, databases and mail, restore tests, disaster recovery.

Source: https://zopanel.net/windows/docs/backups  
Updated: 2026-11-27

Zopanel backs up per **account on one server**, like a Plesk subscription: the files of every site, the databases and the mailboxes. Backups are encrypted before they are written.

## What a backup includes

| Type | Includes | Status |
|---|---|---|
| **Full** | Site files, database dumps, MailEnable mailboxes | available for files, MariaDB/MySQL and MailEnable; PostgreSQL and SQL Server experimental |
| **Databases only** | Database dumps | as above |
| **Incremental** | Only site files changed since the last backup; at most 14 in a chain, then a new full | limited: databases and mailboxes are still copied in full |

- **AES-256-GCM** with a separate key per account. The key is sealed in the panel database: to open a backup on another server you need the panel's disaster recovery export (below).
- Open files are captured with **VSS** snapshots. The first read can be slow while Defender scans.
- File permission levels set in the file manager are **not** in the backup; apply them again after a restore.
- On the server, backups live in `C:\ProgramData\Zopanel\backups\accounts\<tenant>\`, readable only by SYSTEM and Administrators.

## Where backups go

| Destination | Status |
|---|---|
| The server itself | available |
| S3 and compatible (AWS, Cloudflare R2, Wasabi, Backblaze B2, MinIO…) | limited: tested with MinIO and SeaweedFS, not yet with a public S3 service |
| SFTP with a pinned host key | experimental |
| Google Drive, OneDrive, Dropbox | experimental |

An account uses one remote destination. If the copy on the server is gone, the panel downloads it from the remote destination to restore.

## Schedule and retention

On the account's **Backups** page:

| Setting | Values | Default |
|---|---|---|
| Schedule | Off, daily, weekly | **Off** |
| Type | Full, databases only, incremental | Full |
| Hour | 0–23, UTC | 2 |
| Keep on the server | 0–100 | 3 |
| Keep at the remote destination | 0–100 | 14 |

The default is **off**: turn the schedule on for each account, or through the billing API when you create it. Old backups are deleted only after a new one succeeds. When you terminate a customer, you choose how many days to keep their backups (0–365).

After turning backups on, wait for the first one, check it has every part and a remote copy, and restore a small part into a test site.

## Restore

**Backups** → choose a backup → **Restore**, then pick individual sites, databases or mail domains. A restore overwrites, so the panel asks to confirm.

- **Site files**: the whole backup is verified first, unpacked where the site cannot reach, then swapped in and permissions reset. The site must still exist.
- **Database**: a safety copy is made first; on error the panel goes back to it.
- **Mailbox**: the mail domain's folder is replaced.

Restores go to the same server. Status: available.

## Deleted websites

A deleted site is kept for the provider's number of days and can be restored from **Sites** → **Deleted websites**. Status: limited.

## Restore tests

The **Restore tests** page can test backups on a schedule in a separate area: download and decrypt the backup, check every file's hash, import databases into temporary ones and compare row counts (MariaDB/MySQL with checksums, PostgreSQL, SQL Server with `DBCC CHECKDB`), serve WordPress or static sites on `127.0.0.1` only, then remove everything. Results show the estimated restore time and backup age, and a failure raises an alert and a webhook. Status: limited.

## Point-in-time recovery

For databases, see [Databases](/windows/docs/databases): PITR is limited and set per plan.

## Disaster recovery for the panel

Losing the panel server without an export means losing every key. Before you need it:

1. **Disaster recovery** page: set a recovery passphrase and keep it away from the server.
2. Turn on scheduled exports, or **Export now**, and copy the `.zpdr` file off the server. The export is encrypted with Argon2id + AES-256-GCM.
3. To restore onto a clean server: install the same release, then run `zopanel-setup restore-panel` with the export and passphrase.

Status: limited (rehearsed on Server 2019; a full rebuild of a lost single server from off-server backups ran on Server 2022 once, with an RTO of 32 minutes). Rebuilding a lost server's sites, databases, mail and DNS from off-server backups (**Disaster rebuild**) is experimental.
