# How backups work

> Encrypted, deduplicated site backups to your own S3-compatible bucket or Google Drive.

Source: https://vantuly.com/docs/backups

Vantuly backs up each site to **your own** S3-compatible bucket or Google Drive. You pay your storage provider directly, and the backups stay readable without Vantuly.

1. **Add storage** once for the team in **Settings → Storage**. Pick a provider:
   - [Cloudflare R2](/docs/backups/cloudflare-r2) (the default; no download fees)
   - [Backblaze B2](/docs/backups/backblaze-b2)
   - [Amazon S3](/docs/backups/amazon-s3)
   - [Wasabi](/docs/backups/wasabi)
   - [Google Drive](/docs/backups/google-drive) (sign in with Google; connect several accounts if you like)
   - [Other S3-compatible](/docs/backups/other-s3) (MinIO, Hetzner Object Storage and others)
2. **Turn on backups** for each site. See [Schedule and retention](/docs/backups/schedule).
3. **Restore** a whole site or only its database. See [Restore a site](/docs/backups/restore).

## What runs where

- Backups use [restic](https://restic.net): encrypted before they leave the server and deduplicated, so daily backups only upload what changed.
- Each server gets its own folder in the bucket (or Drive folder).
- The database is dumped with `mariadb-dump` (Docker apps dump their own database first) and backed up with the files. Logs and caches are left out.
- Backups run on the server from a systemd timer, so they keep running even if the Vantuly panel is unreachable.
- You get an email when a backup fails.
