Backups
Server backups are made on the node and sent off it, to an S3 bucket or an SFTP server. They’re split into chunks, compressed with zstd, and encrypted on the node before upload. An incremental backup sends only the chunks that changed since the last backup in its chain, and empty chunks aren’t sent at all.
Backup storage
Fleet → Backup storage → Add storage (needs Manage nodes, and Controller backups with your password). Each location backs up to exactly one destination; locations without one are flagged.
| Field | S3-compatible | SFTP server |
|---|---|---|
| Name | 2–60 characters | 2–60 characters |
| Endpoint / Host | e.g. s3.eu-central-1.wasabisys.com |
Host name or IPv4, optional :port |
| Anywhere on your network, but not a link-local address such as 169.254.169.254 (the cloud metadata service), nor the port the panel itself listens on, on the controller's loopback (8080 unless you changed it). | ||
| Bucket / Directory | The bucket | The directory |
| Region | Optional | |
| Username | Access key ID, with no spaces | Username: up to 32 letters, digits, underscores, dots and dashes, not starting with a dot or dash |
| Secret | Secret access key | The panel's SSH key (see below), or a password or private key of your own |
| Quota | Optional, in GB | Optional, in GB |
| Locations | Node groups that back up here | Node groups that back up here |
Secrets are write-only and kept encrypted with the controller’s secret.key.
Adding storage tests it. Test uploads, reads back and deletes a test file, and warns when a destination is more than 90% of its quota. The page shows used space, how many backups are stored and a health status (Healthy, Slow or Unreachable).
Changing where a storage connects (host, bucket or directory, region, username, how it signs in, or trusting a new host key) needs Controller backups and your password as well, and the secret typed again unless it signs in with the panel’s SSH key. Through the API, send password with POST /admin/backup-storage or that PATCH /admin/backup-storage/{id}; without it the answer is 401 invalid_password.
Storage can be removed once no node group backs up to it and it holds no backups or custom images (their encryption keys come from the storage’s own key, which goes with it). Custom images are deleted from their owner’s Images page (sign in as the customer to do it). Removing a storage that controller backups go to needs Controller backups; each storage’s controllerBackups says whether copies of the panel go there.
Signing in to SFTP with the panel’s SSH key
For an SFTP server, Sign in with → The panel’s SSH key is the default. The panel makes one ed25519 key the first time it’s needed, keeps the private half with its encrypted secrets, and shows the public half to paste on the backup server, as a line for ~/.ssh/authorized_keys of the backup user:
restrict ssh-ed25519 AAAA… vorticpanel-backups
restrict turns off port forwarding and terminals for the key. To limit the account to SFTP alone, also set ForceCommand internal-sftp for it on the backup server (see What a node can reach). The page also gives a command to run as root on the backup server that adds the key for the user you entered. The same key works for every SFTP storage you add. Add the key on the backup server before you save, since saving tests the connection. Nodes never connect to the SFTP server: they read and write SFTP storage through the controller.
Over the API: GET /admin/backup-storage/ssh-key returns { publicKey }, and a destination created with auth: "panel_key" needs no secret. A destination can also sign in with a password or private key of your own (auth: "secret", with the password or key as secret).
SFTP host keys
An SFTP server’s host key is recorded at its first test, and the controller, the only one that connects to it, refuses any other key. If it changes, the page shows both keys. Check the new one on the backup server, then choose Trust the new key:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
Backup plans
Catalog → Backup plans (changing them needs Packages and templates). A package has a default plan, and staff or a reseller (only the plans in its terms) can set a different plan on one server.
| Field | Options | Default |
|---|---|---|
| Name | 2–48 characters | |
| Description | Shown to customers, up to 160 characters | |
| How often | Hourly (every 1, 2, 3, 4, 6, 8 or 12 hours, on the hour), Daily, Weekly or Monthly (days 1–28) | Daily |
| Time | HH:MM in UTC, for daily, weekly and monthly | 03:00 |
| Type | Incremental, or Full every time. Monthly plans are always full. | Incremental |
| A full backup every | 1–31 days, for incremental plans | 7 |
| Keep | 1–180 restore points | 14 |
| Customers can also keep … on-demand full backups | How many full backups customers may keep with Back up now, 0–10 | 2 |
| When a server is deleted, keep its backups for | 0–365 days; 0 deletes them with the server | 0 |
| When its customer or reseller deletes it, only if it was on the account at least | 0–365 days. A server they delete sooner takes its backups with it. Servers you or your billing panel delete always keep them. | 7 |
| Store in | Each location’s backup storage, or one destination | Each location’s |
| Customers can move the time and pause the schedule | On |
Over the API a plan’s compression is always "zstd", and a value sent with it is ignored.
How plans run
- At each plan’s time, every server on it gets one backup: full, or an incremental on the newest chain.
- At most two scheduled backups run at once per node; the rest wait their turn.
- Missed times while the controller was down collapse into one run.
- A suspended server’s time is skipped. A busy server (reinstalling, moving) runs as soon as it’s free.
- If the server’s node isn’t answering at the time, that backup is recorded as failed and the customer is told.
- Once a run completes, retention removes what the plan no longer keeps. Incremental backups are removed a whole chain at a time, so everything kept can still be restored.
When a running server has the QEMU guest agent, its filesystems are frozen for a moment while a backup or snapshot starts, and thawed as soon as the copy’s point in time is fixed; the copy is then made while the server runs. Those are marked consistent, and Fleet → Snapshots shows Consistent copy (or Filesystems weren’t frozen). Without the guest agent, or when the guest lets go of the freeze first (Windows holds one for 10 seconds at most), it’s still taken and marked as not consistent: restored, it’s like a server after a sudden power cut, and its filesystems check themselves when it starts.
Editing a plan applies to every server on it from the next run. Archiving a plan moves its packages and servers to no plan and keeps their existing backups.
When a server is deleted
A deleted server’s backups go with it, unless its backup plan keeps them for some days. Then its finished backups stay in backup storage until that date, and the dialog that deletes the server says how long. When the customer or their reseller deletes it, the account must have had it for the plan’s minimum (7 days unless changed), so servers made and deleted over and over don’t fill backup storage. A server deleted while you or the panel had it suspended keeps its backups for staff only: the customer and reseller don’t see them, and the Backups tab marks them Staff only. The plan the server had when it was deleted sets the date; changing the plan later doesn’t move it. Snapshots are on the node and always go with the server.
While they’re kept:
- Every other server of the account shows them on its Backups tab under Backups of deleted servers, with the date they go. The account’s owner, its reseller and staff with Backups see them; teammates don’t.
- Restore here writes one onto that server, which needs a disk at least as big as the deleted server’s. Download and the delete button work as they do for any backup, and deleting the last one ends the wait.
- Fleet → Backups lists them with Server deleted · kept until and the date.
- Deleting the customer’s account deletes them at once.
Through the API they keep the deleted server’s ID. GET /servers/{id}/backups for any server of the account lists them as deletedServers; restore one with POST /servers/{deleted server's ID}/backups/{backupId}/restore and { "targetServerId": "<server to restore onto>" }; download and delete with the usual calls and the deleted server’s ID. The server.terminated webhook has backupsKeptUntil when they’re kept.
Backup add-ons
A billing panel sells a backup add-on with PUT /servers/{id}/backups/plan, with a plan ID, null for no backups, or "package" for the package’s default. A plan outside a reseller’s terms answers 403 plan_not_allowed. The WHMCS and Blesta modules do this with a Backups configurable option.
Encryption
Each backup storage has its own root key, kept with the controller’s encrypted secrets. Nodes compress, then seal every chunk and manifest with AES-256-GCM, bound to its name, before upload. Chunks are named by a keyed HMAC of their content.
The root key never leaves the controller. Each server’s backups, and each custom image, are sealed with a key of their own, derived from the root key and their folder in storage (servers/<server ID>/ or images/<image ID>/). A node gets only the key of the task it’s running: the server it backs up or restores, or the image it saves or installs.
What a node can reach
If someone breaks into a node, they get the keys of the servers and images that node has worked with, and nothing else. They can’t read other servers’ backups, and they can’t change one so that it still restores: a restore checks every piece against that server’s key and stops at anything changed.
How much of the storage itself they can reach depends on its kind:
- S3-compatible: nodes never get the access key. For each piece a task needs, the controller hands the node a signed link to that one object, valid for an hour, as the task gets to it; once the task ends it gets no more. This is the stronger choice.
- SFTP: the node never gets the storage’s login. It reads and writes through the controller, with links that only reach the folder of the server or image the task is for, and stop working when the task ends; the controller signs in to SFTP itself. A node can’t list, delete or overwrite other servers’ backups.
Even so, give the panel an SFTP account that can reach the backup directory and nothing else on that machine, for example with ChrootDirectory and ForceCommand internal-sftp in its sshd_config. Keep a copy of important backups somewhere the nodes can’t reach, or use S3-compatible storage with versioning or object lock if the provider has it.
What’s checked when a backup is restored or downloaded
A backup is only read the way the controller recorded it being made:
- Seal: a backup or image that was made encrypted is refused without its seal.
- Disk checksum: the controller keeps each backup’s SHA-256 from when it was made. A restore stops if the manifest names another one, and once the node has written the disk it reads it back and fails the restore if it doesn’t match. On file storage (qcow2) the disk is checked before it replaces the server’s; on block storage such as LVM or ZFS it’s checked after, and a failed check leaves the server off with the copy it was given. Restore another backup then.
- Downloads: the controller checks the stream against the same SHA-256 and holds back the last piece until it matches. A download that doesn’t match is cut short, and the controller’s log says why.
- Size: a chunk can’t decompress to more than 4 MiB. One that tries is treated as damaged.
What customers can do
On a server’s Backups tab: see the plan and backup chains, Back up now, restore in place or onto another of their servers (with at least as much disk), and download a backup as a raw disk image (.img) through a signed link that lasts an hour. The link works only while whoever made it can still use the server’s backups: it stops if they sign out, their token is revoked, they lose the permission, or the server is suspended or locked, and a download already running is cut off then too. When the plan allows it, they can move the time (daily, weekly and monthly plans) or pause the schedule. Backups their plan keeps after a server is deleted show on their other servers’ Backups tabs, to restore there, download or delete.
Every backup and snapshot
Fleet → Backups (/admin/backups) lists every server’s backups, and Fleet → Snapshots (/admin/snapshots) every server’s snapshots, newest first. Both need the See all servers permission.
- Search by server hostname, number or ID, the customer’s name or email, the node, the backup storage, a snapshot’s name, or an ID. Press
/to jump to the search box. - Filter by status (completed, running or failed backups; ready, being taken or failed snapshots), scheduled or manual, full or incremental, node, and age (older than 7, 30 or 90 days, or a year). Sort by newest, oldest or largest.
- The totals across the top (how many, how much storage they use, how many are running and how many failed) count everything that matches, not only the page shown. Failed backups show why.
- Click a row to open the server’s own Backups or Snapshots tab, where restoring and downloading happen.
- Delete one or many: tick them and click Delete. It needs the Backups (or Snapshots) permission, and each goes through the same checks as on the server’s page. Deleting a backup also deletes the incrementals that build on it (for an incremental, the later ones in its chain); the list shows how many each backup has, and the confirmation says how many go. Backups that are still running, and snapshots being taken or restored, can’t be ticked.
Filters are kept in the page’s address, so a view such as “failed backups on one node” can be bookmarked or sent to someone else.