Skip to content
zefıly

Operations

Backups

Daily encrypted backups of sites and databases to S3, Google Drive, SFTP, FTP or the server's disk, with retention, restores and plain-restic access.

Encrypted backups go from your server to storage you own Your server Sites and databases Encrypted backup Encrypted on your server and compressed Your S3 bucket AWS, Backblaze B2, R2, MinIO SFTP server Any server reachable by SSH Cloud drives Google Drive, Dropbox, OneDrive FTP server Any FTP server

Backups use restic: site files and database dumps are encrypted on the server, compressed and deduplicated, so after the first run only changes are uploaded. The storage and the repository password are yours: you can restore with plain restic, without Zefily.

The default plan

Every new server gets a backup plan right after its baseline setup: daily, all sites and databases on the server (including ones you add later), keeping 7 daily, 4 weekly and 6 monthly snapshots, at a night hour between 01:00 and 04:00 UTC. It uses your organization's first destination. Without one it waits: a notice on every page asks you to connect a destination, and the plan starts as soon as you add the first one. You can change, pause or delete the plan like any other.

1. Add a storage destination

Under Settings → Backup destinations (or on a server's Backups section), Add destination. Destinations belong to the organization and every server can use them:

Type For You enter
S3-compatible AWS S3, Cloudflare R2, Backblaze B2, Wasabi, MinIO… (HTTPS only) Endpoint, bucket, optional prefix and region, access key and secret
Google Drive Your Google account A name, then Connect Google Drive and sign in. Zefily can only see the files it creates (a zefily folder)
SFTP Any SSH/SFTP storage, e.g. a Hetzner Storage Box Host, user, optional port and host key; Zefily shows a key to add to the storage's authorized_keys
FTP / FTPS Any FTP server (prefer FTPS) Host, user, password, optional port and folder, encryption (explicit or implicit TLS, or none)
This server A directory on the server (/var/backups/zefily) Nothing — quick restores, but no protection if the disk or server is lost

Use keys limited to this storage; they are stored encrypted and never shown again. Google Drive uses Google's sign-in: Zefily keeps the authorization encrypted and the server uses it through rclone to reach the storage. To use another account, delete the destination and connect again; to stop access completely, also remove Zefily from your Google account's connected apps. Test destination checks that the storage is reachable and the repository opens.

Google authorizes a job for about an hour. Zefily renews the authorization while a backup or restore runs, so long runs finish; the server only ever gets the short-lived token, never the account's lasting authorization. On a server whose agent is not yet up to date, a run longer than that stops when the authorization ends; run it again (restic continues from what is already stored) or update the agent.

2. Create a backup plan

Create plan with a Plan name, the Destination, the sites and databases to include (or All sites and databases, which also covers ones added later), the hour (Daily at, UTC) and the retention: how many daily, weekly and monthly snapshots to keep. An Upload limit keeps backups from saturating the server's connection.

Plans run every day at their hour; Back up now runs one immediately. The plan shows its last and next run, the repository size and errors if any. Plans can be paused.

When a run fails, or a scheduled run cannot start (for example after you revoked Zefily's access to your Google Drive), the plan's creator gets an email and a notice in the panel's bell, once per failure.

3. Restore

The server's Backups page keeps the plans, the destinations, the retention, Run now, the databases, and a table of every site with its last successful backup and a link to that site's Backups tab. A site is restored, and backed up on its own, only on that tab (see "One site: back up and restore" below).

Databases are restored from a snapshot, from the Databases list described below.

Advanced: files of this server

This section works on the files of the whole server. Snapshots under Advanced lists the plan's snapshots. Restore puts a snapshot's files into a restore folder on the server — never over live files — and needs your passkey; move what you need from there.

Browse files on a snapshot opens it like a file manager. Tick up to 20 files or folders, then restore them into the restore folder next to the backups, or to the original place, over the current files at those paths (for example a theme file or an uploads folder you deleted). Restores wait for your passkey in the job list.

Databases

Under Browse files, a snapshot that holds database dumps lists them with their size, one row per database. Each row has two restores; both wait for your passkey:

  • Restore in place puts the database back as it was in that snapshot. The database must exist on this server. Zefily first stores a safety snapshot of the database's current data (in the same repository, tagged pre-restore, expiring with the plan's retention), then drops the database, creates it again with its owner and loads the dump. If the load fails after that point, the safety snapshot holds the data from before the restore.
  • Restore as new database creates a database with the name you choose (the name with _restored added, by default). It gets its own owner, named the same, and a generated password. The panel lists it under Databases, with that password, once the restore has succeeded. A restore that is not approved or fails leaves no database and no entry behind.

MariaDB dumps are loaded into the database you name, so a dump can go to another name. PostgreSQL dumps keep their objects owned by the database owner. Privileges granted to other roles are not restored, because those roles may not exist on the target: the owner keeps every privilege. With your own key, enter its passphrase in the restore row, as for files.

One site: back up and restore

The Backups pane of a site backs up that site alone, now: its directory and its linked database, into the server's repository. Points you take with Back up now are kept until you delete them; the plan's keeping rules do not expire them. The pane lists the site's snapshots. To restore one, choose a snapshot, then what to put back: the whole site and its database, the files only, the database only, or for WordPress the wp-content folder or one plugin folder. Preview shows exactly what changes before you run it.

A restore goes in place, or into the site's staging copy first when it has one. It waits for your passkey. Once you approve it, the pane follows the restore live: running, then finished, or failed with the reason and the steps the agent logged; the snapshot lists refresh when it ends. Each safety copy is listed once, as one restore point with its files and database. A backup point can be deleted from the same tab: the confirmation names what goes, and the deletion waits for your passkey; it removes the point's files and databases from the repository and cannot be undone. Older single-part backups cannot be deleted there yet. Before it changes anything, it takes a safety copy of what it replaces; the safety copies are listed on the same pane, and Undo restores the site from one of them. Files that are not in the snapshot are kept. WordPress is in maintenance mode during the restore. The site's PHP pool, app process or container restarts when its type needs it, and then Zefily checks the site's address. A failed check leaves the restored files in place: undo, or fix the cause and restore again.

Proxy sites have no files on the server and are not offered. A container site's named and anonymous volumes are part of its backup (see below).

What a backup covers

A backup of a site covers its files and, for a container site, the data its containers keep:

  • Databases inside the containers. PostgreSQL, MariaDB or MySQL, MongoDB, and Redis or Valkey are dumped with their own tools while they run, so the copy is consistent. The dump is a complete file in the backup: containers snapshots hold the dumps and /var/lib/zefily-agent/backup-dumps/<site id>/<container>.<ext> is their path.
  • Volumes. The named and anonymous volumes of the site's containers (and its Compose volumes) are copied with the files.

After each run the backup says what it covers and what it does not cover. A run with gaps finishes with a warning, never as if everything was covered. Things that are not covered:

  • a database container that is stopped (its database is not dumped; its volumes are copied as they are);
  • a database Zefily does not recognise from the image the container runs, such as a custom image built on a database base (a container that exposes a database port but has no known engine is named in the warning);
  • a dump that failed (the other data of the run is still backed up);
  • data a container writes to its own layer outside a volume: it is lost when the container is recreated, and a backup does not keep it;
  • a mounted disk inside the site's directory: restic skips other file systems, so the backup names it;
  • the volume of a running database, copied as files: it may be inconsistent, so restore the dump instead.

A server whose agent is older than this feature shows the coverage as unknown until its agent is updated.

Restore from the panel. A container site's Backups pane has a Container data option. Choose a backup point and it lists what that point holds: each database dumped in a container, each volume, and each :U bind directory. Tick the items to put back and approve the restore with your passkey. A database dump is loaded into its running container with the engine's own client, and the other containers of the site stop while it loads. Volumes and bind directories are written back with the site's containers stopped, then they start again. Before anything changes, the current data is kept in the site's backups folder (<site id>-pre-restore-<time>): a dump of each database and an archive of each directory. Zefily refuses the restore and changes nothing when the point does not hold an item, when the engine of a container is unknown or differs from the dump, when a database container is not running, or when a volume has moved or is gone. Redis and Valkey dumps are written back as their dump file while the container is stopped; Zefily refuses one whose append-only file is on (Redis would load that file, not the dump). A Compose site's stack stops and starts through its web unit, and Zefily checks that its containers run again. A point made before this release has no list: take a new backup first. A server backup that covers the site (the scheduled backup of the server, or one run from the server) is listed on the same tab, marked Server backup. It restores its container data only (databases in containers, volumes and bind directories) by the same steps, from the server backup's own files copy for the volumes. Only server backups made after this release list their container data; an older server backup is not listed for the site.

Restore by hand. Container dumps and volumes can also be restored with restic, as root on the server:

  1. Find the snapshot: restic snapshots --tag containers (or the files snapshot for the volumes).
  2. Restore the dump to a temporary folder: restic restore <snapshot> --target /restore --include /var/lib/zefily-agent/backup-dumps/<site id>/<container>.sql.
  3. Load it into the running container. PostgreSQL: podman exec -i -u postgres <container> psql -U postgres < /restore/var/lib/zefily-agent/backup-dumps/<site id>/<container>.sql. MariaDB or MySQL: podman exec -i <container> sh -c 'MYSQL_PWD="$MARIADB_ROOT_PASSWORD" mariadb -u root' < <dump file>. MongoDB: mongorestore --archive --drop with the root user the dump was taken with, its password read from a file, never the command line. Redis or Valkey: stop the container, copy the dump to dump.rdb in its data volume, and start it.
  4. Volumes: stop the site, then restic restore <snapshot> --target / --include /home/<user>/.local/share/containers/storage/volumes/<volume>/_data, and start the site again. The files keep their owners.

Your repository password

Repository password shows the restic password (it asks for your password). Keep it with your storage keys: with both, plain restic can list and restore your backups from anywhere:

restic -r s3:https://s3.example.com/bucket/prefix snapshots

Deleting a plan stops future backups; the snapshots stay in your storage.

Your own encryption key

By default Zefily keeps the repository password for you. A plan can switch to your own key instead: under Use my own key, choose a passphrase of at least 12 characters and type it twice. The passphrase is sent to your server once, sealed for its agent, and kept there in a root-only file. Zefily never stores it: not in its database, not in the logs, not in the audit trail.

Read this before you switch: Zefily cannot recover your backups without the passphrase. If you lose it, nobody can restore them, Zefily included. Keep a copy somewhere safe, apart from the server. You must tick the box that says so before the switch.

  • Switching starts a new, empty repository for the plan. Snapshots taken before the switch stay in the Zefily-managed repository, and Repository password still shows its password for them.
  • Scheduled and manual backups use the key file on the server. If the server is rebuilt and the file is gone, backups stop until you enter the passphrase again.
  • To restore on another server, or once the key file is missing, enter the passphrase in the restore row. Tick Remember the key on this server to store it there again.

Usage, health and alerts

Each plan's Usage and health block shows the repository's size as stored, and how much it grew since the previous backup; the number of snapshots kept; the last successful backup; and the last integrity check. Every finished run feeds these figures. A scheduled run reads back a random 5 % of the stored data once a week, a manual run always does; the check's result is shown here.

Each destination shows whether it can be reached. Once a day Zefily asks one of your servers to open the backup repository with the stored credentials (nothing is written), and shows the time and the reason when that fails. Free space is shown only where the storage's provider reports it through rclone: Google Drive, Dropbox and OneDrive. For S3-compatible storage, SFTP, FTP and the server's own disk it is not available.

Alerts go to the owners and admins of the organization: in the panel's bell and inbox, by e-mail, and to your webhooks (Slack, Teams, PagerDuty and the others). They are raised when:

  • no successful backup for 2 days: an enabled plan with sites or databases to back up has not completed a run;
  • failing: the last two runs failed in a row;
  • repository grew sharply: it grew by at least 512 MB and by half or more since the previous successful run;
  • integrity check failed: the latest read-back of the repository failed;
  • destination unreachable: the last probe could not open the repository;
  • storage nearly full: 90 % or more of the space is in use (only where free space is shown).

An alert resolves by itself once its condition clears, and the same channels say so. Run statistics are kept for 180 days.

Provider snapshots

Snapshots taken at your cloud provider (Hetzner, DigitalOcean, Vultr, Akamai Linode) are separate from these backups: the provider keeps and bills them. Their schedule, next and last run and the list are on the server overview, in the Snapshots list of the provider card, and the Backups tab shows the schedule read-only with a link there. See Server overview.

Before updates

WordPress updates from the panel take their own snapshot first. For other apps, run Back up now before a big change.

Updated November 26, 2026 View as Markdown llms.txt

Still stuck?

Open a ticket from your panel or write to us; we answer within a day.

Contact →

Runs the stacks you already use

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →