Backup Manager
The Backup Manager provides automated and on-demand backups for virtual servers. It supports incremental, differential, and full backups with multiple storage backends, retention policies, and end-user self-service.
Overview
Backups are taken at the block level while the virtual server continues running, with minimal performance impact. Intelligent consistency detection ensures backups are application-safe without requiring downtime.
The system is designed to be reliable and gentle on busy hypervisors. Backup concurrency, I/O priority, CPU priority, bandwidth limits, and disk read limits are all configurable per storage or per schedule. Resource controls ensure backups run in the background without impacting VM performance, even on heavily loaded hypervisors.
Backups can be stored on SSH/SFTP servers, S3-compatible object storage (AWS, MinIO, Wasabi, R2, B2), FTP/FTPS servers, or any suitable provider supported by rclone. There is also a tight native integration with Proxmox Backup Server, providing chunk-level deduplication and efficient storage without requiring any additional software on your hypervisors.
Supported Storage Backends
| Backend | Incremental | Encryption | Deduplication |
|---|---|---|---|
| SSH/SFTP | |||
| S3-compatible (AWS, MinIO, Wasabi, R2, B2) | |||
| Proxmox Backup Server (PBS) | |||
| FTP/FTPS | |||
| Rclone |
Local filesystem storage is supported by the backup engine but is not currently available in VirtFusion. Backups stored locally on the hypervisor do not provide protection against hardware failure and cannot be accessed from other hypervisors, limiting the ability to restore VMs after a migration or hardware loss. A remote storage backend is strongly recommended.
Backup Types
| Type | Description |
|---|---|
| Full | Complete disk image. Forms the baseline for an incremental chain. |
| Incremental | Only blocks changed since the last backup. Smallest and fastest. |
| Differential | All blocks changed since the last full backup. |
| Copy | Standalone full backup without affecting the incremental chain. |
The system automatically manages backup chains. After a configurable interval (default: 7 days), a new full backup is taken to start a fresh chain.
Supported Disk Types
| Disk Format | Incremental | Notes |
|---|---|---|
| qcow2 | Recommended. Persistent dirty bitmaps survive VM reboots and live migrations. | |
| Raw (file-backed) | Dirty bitmaps are non-persistent. A VM reboot or crash will reset the bitmap, causing the next backup to fall back to a full backup. Incremental chains work correctly as long as the VM remains running between backups. | |
| Ceph RBD | Persistent change tracking. Survives reboots and migrations. |
Raw disk limitation: If a VM using raw disk images is rebooted between backups, the incremental tracking bitmap is lost. The next scheduled backup will automatically detect this and perform a full backup to start a fresh chain. This is a QEMU limitation with raw format disks. If your VMs reboot frequently, consider using qcow2 format for more efficient incremental backups.
StorPool: StorPool block storage is not currently supported. We are actively working with StorPool to find a resolution.
Access Levels
Each virtual server has a backup access level that controls what operations are permitted:
| Level | Included in Scheduled Backups | End User Can View | End User Can Restore | End User Can Backup |
|---|---|---|---|---|
| Disabled | ||||
| Scheduled Only | ||||
| View & Restore | ||||
| Full Access | ||||
| Manual Only |
Access levels are resolved in order: per-server override, then schedule default. If no override is set, the schedule's default applies.
Getting Started
Setting up backups requires three steps:
- Add a storage backend
- Create a schedule linking a hypervisor to that storage
- Backups run automatically on the configured interval
Step 1: Add Storage
Navigate to Backup Manager → Storage and click Add Storage.

A modal will appear where you select a storage type and enter a name. After saving, you will be taken to the storage configuration page.
Step 2: Configure Storage
Each storage type has its own connection settings. Configure the connection details for your chosen backend.

SSH/SFTP
| Field | Description |
|---|---|
| Host | Hostname or IP address of the SSH server |
| Username | SSH username |
| Port | SSH port (default: 22) |
| Path | Absolute path on the remote server for backup storage |
| Private Key | PEM-formatted private key for authentication |
SSH Server Configuration
For reliable backups and restores, especially for large disks that transfer for several hours, the remote SSH server should be configured to maintain long-lived connections. Add or verify the following settings in /etc/ssh/sshd_config on the storage server:
# Send keepalive probes every 60 seconds to detect dead clients
ClientAliveInterval 60
# Allow 3 missed keepalives before disconnecting (3 minutes tolerance)
ClientAliveCountMax 3
# Allow enough sessions for concurrent backup operations
MaxSessions 20
After editing, restart sshd: systemctl restart sshd
If you are using a cloud firewall (e.g. Hetzner Cloud Firewall, AWS Security Groups with connection tracking), be aware that stateful firewalls have connection tracking timeouts that can silently drop long-lived TCP connections. If backups or restores fail consistently after several hours, try disabling the cloud firewall as a test, or ensure the connection tracking timeout exceeds your longest expected transfer time.
You should also verify that no system-level TCP timeouts are too aggressive:
# Check connection tracking timeout (if conntrack is active)
sysctl net.netfilter.nf_conntrack_tcp_timeout_established
# Should be at least 14400 (4 hours), default is 432000 (5 days)
S3-Compatible Object Storage
| Field | Description |
|---|---|
| Bucket | S3 bucket name |
| Region | AWS region (e.g. us-east-1) |
| Endpoint | Custom endpoint URL for non-AWS providers (MinIO, Wasabi, R2, B2) |
| Access Key | S3 access key ID |
| Secret Key | S3 secret access key |
| Key Prefix | Optional path prefix within the bucket |
| Concurrency | Number of parallel upload threads (default: 8) |
| Part Size (MB) | Minimum S3 multipart upload part size (default: auto, 10 MB) |
Backups are uploaded to S3 using multipart uploads. The part size is automatically calculated based on disk size, targeting approximately 2,000 parts per upload. For most deployments the default is fine. If your S3 provider drops connections or times out during large uploads, increase the part size to reduce the number of parts and total upload time. This is most commonly needed with smaller or less mature S3-compatible providers.
Proxmox Backup Server
VirtFusion integrates natively with Proxmox Backup Server using the PBS protocol directly. No proxmox-backup-client installation is required on your hypervisors.
| Field | Description |
|---|---|
| Host | PBS server hostname or IP |
| Port | API port (default: 8007) |
| Username | PBS username |
| Realm | Authentication realm (e.g. pbs, pam) |
| Token Name | API token name |
| Token Secret | API token secret (UUID format) |
| Datastore | PBS datastore name |
| Namespace | Optional PBS namespace |
| TLS Fingerprint | SHA-256 fingerprint for certificate pinning (optional) |
| Skip TLS Verify | Bypass TLS certificate validation |
| Skip Zero Chunks | Skip unallocated regions in full backups (reduces storage usage) |
Setting up PBS access:
-
Create an API token: In the PBS web UI, go to Configuration → Access Control → API Token. Click Add and create a token for your backup user. Note the Token Name and Token Secret (the secret is only shown once).
-
Datastore: Go to Administration → Storage / Disks to see your available datastores. Enter the datastore name exactly as shown.
-
Namespace (optional): If you use PBS namespaces to organise backups, enter the namespace path (e.g.
virtfusionordc1/virtfusion). Leave blank to use the datastore root. -
TLS Fingerprint: In the PBS web UI, the SHA-256 fingerprint is shown on the Dashboard in the top-right corner. Copy the full fingerprint string. This is recommended when the PBS server uses a self-signed certificate.
-
Permissions: The API token needs at minimum DatastoreBackup and DatastoreReader privileges on the target datastore/namespace.
For full details, see the Proxmox Backup Server documentation.
PBS Encryption
PBS supports client-side encryption where backup data is encrypted before being sent to the server. The PBS server never sees unencrypted data.
To set up encryption:
-
Generate an encryption key by running the following on any Linux machine:
echo '{"kdf":"none","data":"'$(openssl rand -base64 32)'"}'This produces a JSON key like:
{"kdf":"none","data":"xY7f3kLm9QzB1vN4hR8wJ2pA5sT0uE6gC3iO7dF9aXk="}Alternatively, if you have
proxmox-backup-clientinstalled, you can use:proxmox-backup-client key create --kdf none /tmp/backup-key.jsoncat /tmp/backup-key.json -
Paste the JSON key into the Encryption Key field in the PBS section of the storage configuration.
-
Enable encryption - toggle Enable Encryption on.
-
Key Password - leave blank when using a key generated with the commands above. This field is only needed if the key was created with password protection (e.g.
proxmox-backup-client key createwithout--kdf none).
Store your encryption key and password securely. If the key is lost, encrypted backups cannot be restored. Encryption settings cannot be changed after backups have been created - changing the key will make existing backups unrestorable.
Enabling encryption disables PBS server-side deduplication. Each backup will consume its full size on the PBS server rather than only storing changed chunks. Consider whether encryption or deduplication is more important for your use case.
FTP/FTPS
| Field | Description |
|---|---|
| Host | FTP server hostname or IP |
| Port | FTP port (default: 21) |
| Username | FTP username |
| Password | FTP password |
| Remote Path | Directory path on the FTP server |
| TLS Max Version | TLS 1.2 (for vsFTPd compatibility) or TLS 1.3 |
| Disable TLS | Use plain FTP (not recommended) |
| Skip TLS Verify | Bypass TLS certificate validation |
Rclone
| Field | Description |
|---|---|
| Remote Name | Name of the configured rclone remote |
| Remote Path | Path on the remote |
| S3 Concurrency | Parallel upload threads for S3-compatible remotes |
The rclone configuration file must be placed at /opt/virtfusion/rclone/rclone.conf on each hypervisor. Configure your rclone remote on the hypervisor first using rclone config, then copy the resulting config to this path:
mkdir -p /opt/virtfusion/rclone
cp ~/.config/rclone/rclone.conf /opt/virtfusion/rclone/rclone.conf
chown -R virtfusion:virtfusion /opt/virtfusion/rclone
The Backup Manager will use this file automatically.
Rclone supports a wide range of providers. The following are recommended for backup storage:
| Provider | Rclone Type | Notes |
|---|---|---|
| Any SFTP server | sftp | Excellent performance. The simplest and most reliable option. |
| Backblaze B2 | b2 | Cost-effective cloud storage with free egress to Cloudflare. |
| Google Cloud Storage | gcs | Nearline/Coldline tiers suit backup workloads. |
| Azure Blob Storage | azureblob | Cool/Archive tiers available for long-term retention. |
| Hetzner Storage Box | sftp | Affordable European storage. Use SFTP (port 23), not WebDAV. |
| OpenStack Swift | swift | Common in hosting environments (OVH, IONOS, etc). Files over 5 GiB use automatic chunking. |
| Storj | storj or s3 | Decentralised storage with erasure coding. |
MEGA and Dropbox are not suitable for backup storage. MEGA does not support streaming uploads (the entire backup file is spooled to local disk before uploading). Dropbox is unreliable for large file uploads due to rate limiting and transfer stalls.
For S3-compatible providers (AWS, MinIO, Wasabi, Cloudflare R2, Backblaze B2), the native S3 storage backend is recommended over rclone as it provides better performance with direct streaming uploads.
Storage Status
Each storage backend has two independent toggles: Enabled and Read Only.
| State | Backups | Restores | Scheduled Batches |
|---|---|---|---|
| Enabled | |||
| Enabled + Read Only | |||
| Disabled |
- Enabled: normal operation. All backup and restore operations work.
- Enabled + Read Only: no new backups are written, but restores from existing backups continue to work. Useful when decommissioning a storage backend or during maintenance.
- Disabled: all operations are blocked. Neither backups nor restores can be performed.
Common Storage Settings
These settings apply to all storage types.
Network
| Setting | Description |
|---|---|
| Bandwidth Limit | Maximum upload speed (unlimited by default) |
| Read Limit | Maximum disk read speed (unlimited by default) |
Encryption
Encryption settings cannot be changed after backups have been created. Changing the passphrase will make existing backups unrestorable.
| Setting | Description |
|---|---|
| Enable Encryption | Encrypt backup data with authenticated encryption |
| Passphrase | Encryption passphrase. Store this securely as it cannot be recovered |
For PBS storage, encryption is configured in the PBS-specific section using PBS-native encryption.
Performance
| Setting | Description | Default |
|---|---|---|
| Worker Threads | Number of parallel processing threads | 4 |
| Backup Concurrency | Maximum concurrent VM backups per hypervisor | 1 |
| I/O Priority | Disk I/O scheduling priority (Normal, Low, Idle) | Normal |
| CPU Priority | Process CPU priority (Normal, Low, Idle) | Normal |
| Compress | Enable zstd compression | |
| Compression Level | zstd level 1 (fastest) to 19 (best ratio) | 3 |
| Compression Threads | Threads for compression | 1 |
Backup Concurrency controls how many VMs are backed up simultaneously on a single hypervisor. Higher values complete batches faster but increase disk I/O load. Start with 1 and increase based on your storage performance.
Backup Behaviour
| Setting | Description | Default |
|---|---|---|
| Consistency Mode | How the VM is quiesced during backup | Freeze + Pause Fallback |
| Full Backup Interval | Days between forced full backups (not applicable for PBS) | 7 |
| Retention Policy | Retention strategy - age-based (keep all within N days) or GFS (calendar-based thinning) | None |
| Keep Last | Always keep at least N most recent backups | 2 |
PBS storage differences:
- Full Backup Interval is ignored. PBS snapshots are independently restorable regardless of type, so forced full backups are unnecessary.
- Skip Zero Chunks (PBS-only setting) skips unallocated disk regions during full backups, significantly reducing storage usage for sparsely allocated disks.
- Keep Last protects the N most recent snapshots per disk. For other backends, it protects the N most recent backup chains per disk.
Consistency Modes:
| Mode | Description |
|---|---|
| Freeze + Pause Fallback | Try guest agent filesystem freeze first; if unavailable, briefly pause the VM |
| Freeze Only | Only use guest agent freeze (fails if agent unavailable) |
| Pause Only | Briefly pause the VM (no guest agent needed) |
| None | No quiescing (crash-consistent only) |
Freeze + Pause Fallback is recommended for most deployments. It provides the best consistency when the guest agent is installed, and falls back to a brief pause (typically under 1 second) when it is not. Loop devices and Windows Reserved partitions are automatically excluded from the freeze.
Retention Policies:
Two retention models are available: age-based and GFS (Grandfather-Father-Son). Both can be combined with the Keep Last floor.
Age-Based Retention
Simple time-window retention: all backups within the window are kept, anything older is pruned.
| Preset | Keep Within |
|---|---|
| None | No auto-prune |
| 1 Week | 7 days |
| 2 Weeks | 14 days |
| 3 Weeks | 21 days |
| 4 Weeks | 28 days |
| 2 Months | 60 days |
| 3 Months | 90 days |
| 6 Months | 180 days |
| 9 Months | 270 days |
| 1 Year | 365 days |
| 2 Years | 730 days |
| 3 Years | 1095 days |
| 5 Years | 1825 days |
| 7 Years | 2555 days |
| 10 Years | 3650 days |
For example, the "3 Months" preset keeps all backups from the last 90 days.
GFS (Grandfather-Father-Son) Retention
GFS retention uses calendar-based buckets to thin out older backups while preserving recent granularity. Instead of keeping every backup within a window, GFS keeps one backup per calendar period:
- Daily - one backup per calendar day (the newest backup taken that day)
- Weekly - one backup per calendar week (ISO week, the newest backup taken that week)
- Monthly - one backup per calendar month (the newest backup taken that month)
- Yearly - one backup per calendar year (the newest backup taken that year)
Each bucket type keeps the N most recent buckets. A backup is kept if any bucket rule selects it (rules are a union, not a chain).
Example: GFS 1 Year (7 daily, 4 weekly, 12 monthly)
With daily backups, after several months you would have:
- The last 7 days of backups (one per day) - for recent recovery
- The last 4 weeks of weekly backups - for recent rollback
- The last 12 months of monthly backups - for long-term retention
Older daily and weekly backups are pruned, but one backup per month is preserved. This gives you fine granularity for recent recovery and coarse granularity for older points, using far less storage than keeping every backup for a year.
GFS Presets:
| Preset | Daily | Weekly | Monthly | Yearly |
|---|---|---|---|---|
| GFS 1 Month | 7 | 4 | - | - |
| GFS 2 Months | 7 | 4 | 2 | - |
| GFS 3 Months | 7 | 4 | 3 | - |
| GFS 6 Months | 7 | 4 | 6 | - |
| GFS 9 Months | 7 | 4 | 9 | - |
| GFS 1 Year | 7 | 4 | 12 | - |
| GFS 2 Years | 7 | 4 | 12 | 2 |
| GFS 3 Years | 7 | 4 | 12 | 3 |
| GFS 5 Years | 7 | 4 | 12 | 5 |
| GFS 7 Years | 7 | 4 | 12 | 7 |
| GFS 10 Years | 7 | 4 | 12 | 10 |
Dense GFS Presets (more daily/weekly granularity for environments with frequent backups):
| Preset | Daily | Weekly | Monthly | Yearly |
|---|---|---|---|---|
| GFS 1 Month Dense | 14 | 4 | - | - |
| GFS 2 Months Dense | 14 | 8 | 2 | - |
| GFS 3 Months Dense | 14 | 8 | 3 | - |
| GFS 6 Months Dense | 14 | 8 | 6 | - |
| GFS 9 Months Dense | 14 | 8 | 9 | - |
| GFS 1 Year Dense | 14 | 8 | 12 | - |
| GFS 2 Years Dense | 14 | 8 | 12 | 2 |
| GFS 3 Years Dense | 30 | 12 | 12 | 3 |
| GFS 5 Years Dense | 30 | 12 | 12 | 5 |
Choosing between age-based and GFS:
- Age-based is simpler - every backup within the window is kept. Best when you want guaranteed day-level granularity for the entire window and storage space is not a concern.
- GFS is more storage-efficient for longer retention periods. A "GFS 1 Year" policy might keep ~23 backups (7 daily + 4 weekly + 12 monthly) instead of ~365 with an age-based "1 Year" policy.
- GFS works best with regular backup schedules. If you back up daily, each daily bucket has one backup. If you back up weekly, most daily buckets will be empty - in that case, age-based retention is simpler and equally effective.
Test the Connection
After saving, click Save Settings & Test. Select a hypervisor from the dropdown (one that will be assigned to this storage via a schedule) and click Test. This verifies the hypervisor can connect to the storage backend and write data.

Always test the connection from at least one hypervisor before creating a schedule. A misconfigured storage will cause all backups to fail.
Step 3: Create a Schedule
Navigate to Backup Manager → Schedules and click Add Schedule.

| Field | Description |
|---|---|
| Storage | The storage backend to use |
| Hypervisor | The hypervisor whose VMs will be backed up |
| Interval | Hours between backup runs (e.g. 24 for daily). Set to 0 for manual-only |
| Status | Enabled or Disabled |
| Default Server Access | Default access level for VMs on this schedule |
Each schedule pairs one hypervisor with one storage backend. Each hypervisor can only have one schedule. If you have 3 hypervisors backing up to 1 storage, create 3 schedules.
After creating the schedule, backups will begin automatically at the configured interval. The first backup for each VM is always a full backup.