↓ Skip to Main Content

Server Backups

·· loading · loading · ·

This document describes the current backup creation, verification, notification, and recovery procedures for infrastructure and services. Confirm the backup destination and required access before beginning.

Proxmox VE, PBS, and SCHBKUPS Backup Procedures
#

Use the PBS datastore for guest backups and SCHBKUPS file-level recovery. The Proxmox guest-backup screenshots in the Infrastructure section illustrate the interface; follow the current PBS settings documented here if screenshots differ.

Backup and Verification Schedule
#

Local timeJobFrequency
01:30PVE guest backup jobs to PBSDaily
02:30home.lab SCHBKUPS file-level backup to PBSDaily, up to five minutes randomized delay
03:30PBS prune jobDaily
04:30PBS garbage collectionSunday
08:00PBS verificationSunday
03:00home.lab host configuration TAR to SCHBKUPSMonday

The PBS datastore is named PBS on pbs.lab (172.16.10.243). The file-level backup group is host/schbkups, and the archived directory is /mnt/pve/SCHBKUPS. PBS is a separate backup server, not a voting node in the Proxmox VE cluster.

The verifier uses the root namespace, full depth, Skip Verified, and Re-Verify After: 30 days. Garbage collection and verification are separate jobs, not a guaranteed serial workflow; review task histories for overlap.

Timing consideration: The host TAR is generated Monday at 03:00, after Monday’s 02:30 SCHBKUPS upload. Without a manual upload, that week’s fresh host TAR will not reach PBS until the next nightly upload. To protect the new host archive immediately, manually run the SCHBKUPS-to-PBS service once the host backup completes.

Where the Host Recovery Files Live
#

The host-configuration backup is created by /usr/local/sbin/pve-backup-schedule.sh and scheduled by /etc/cron.d/pve-backup-schedule:

# Weekly Proxmox VE host configuration backup to SCHBKUPS
0 3 * * 1 root /usr/local/sbin/pve-backup-schedule.sh

Its archive directory is:

/mnt/pve/SCHBKUPS/infrastructure/servers/home.lab/proxmox/

Files use the pattern pve-backup-home-lab-YYYY-MM-DD-HH-MM-SS.tar.gz; the symlink pve-backup-home-lab-latest.tar.gz points to the most recent completed archive. The script retains 52 completed archives and emails local root on success or failure.

The host backup preserves PVE, networking, filesystem, repository, and /root configuration along with /etc/systemd/system, /etc/cron.d, /etc/postfix, and /usr/local/sbin. The host uses the modern /etc/apt/sources.list.d directory, not the absent legacy /etc/apt/sources.list path.

The script checks the SCHBKUPS mount, source-path availability, gzip/TAR readability, and twelve mandatory recovery-file paths before publishing the archive and updating latest. It no longer uses tar --ignore-failed-read. Incomplete temporary archives are not considered valid recovery points. This is a configuration backup, not a disk image or a complete replacement for the VM/LXC backups.

Mandatory Recovery Dependencies
#

These recovery dependencies must be present in the host archive:

/etc/pve/storage.cfg
/etc/pve/notifications.cfg
/etc/pve/priv/notifications.cfg
/etc/systemd/system/schbkups-to-pbs.service
/etc/systemd/system/schbkups-to-pbs.timer
/etc/systemd/system/schbkups-failure-notify@.service
/etc/systemd/system/schbkups-to-pbs.service.d/10-failure-notification.conf
/etc/cron.d/pve-backup-schedule
/etc/postfix/main.cf
/usr/local/sbin/pve-backup-schedule.sh
/usr/local/sbin/schbkups-failure-notify.sh
/root/.config/proxmox-backup/schbkups.env

The last file is restricted to root and includes the PBS repository, API-token secret, and expected TLS certificate fingerprint. The TAR also includes private PVE cluster settings and root SSH material. Do not display, copy into public logs, or commit these secrets to Git. The TAR is not independently encrypted, and the PBS snapshots were shown as unencrypted. Access to SCHBKUPS and PBS must be treated as privileged.

SCHBKUPS File-Level Upload
#

The service on home.lab uses proxmox-backup-client and an environment file to upload the entire SCHBKUPS tree:

# /etc/systemd/system/schbkups-to-pbs.service
[Unit]
Description=Backup SCHBKUPS to Proxmox Backup Server
Wants=network-online.target
After=network-online.target
RequiresMountsFor=/mnt/pve/SCHBKUPS

[Service]
Type=oneshot
EnvironmentFile=/root/.config/proxmox-backup/schbkups.env
ExecStart=/usr/bin/proxmox-backup-client backup SCHBKUPS.pxar:/mnt/pve/SCHBKUPS --backup-id schbkups

The associated schbkups-to-pbs.timer runs at 02:30 daily with Persistent=true and RandomizedDelaySec=5m.

Troubleshoot Certificate and Authentication Failures
#

When a scheduled backup fails, inspect the client on home.lab:

systemctl list-timers --all | grep -i schbkups
systemctl show schbkups-to-pbs.service -p Result -p ExecMainStatus -p OnFailure
journalctl -u schbkups-to-pbs.service -n 50 --no-pager

If the error concerns the TLS fingerprint, inspect the certificate on pbs.lab with proxmox-backup-manager cert info and independently verify that the server is the intended PBS system before updating the pinned fingerprint in the root-restricted environment file. Do not disable certificate validation. For an authentication error, inspect token identity and PBS datastore permissions, and securely rotate or replace the secret as needed. Never print the environment file’s contents.

Retry with systemctl start schbkups-to-pbs.service, confirm Result=success and ExecMainStatus=0, and check that a fresh host/schbkups recovery point appears in PBS.

Backup Failure Notification Dependencies
#

A nightly timer can keep firing even while its service fails. This systemd failure handler sends an alert for failed backup-service executions:

# /etc/systemd/system/schbkups-to-pbs.service.d/10-failure-notification.conf
[Unit]
OnFailure=schbkups-failure-notify@%p.service
# /etc/systemd/system/schbkups-failure-notify@.service
[Unit]
Description=Notify administrator of SCHBKUPS backup failure (%i)
After=postfix.service

[Service]
Type=oneshot
ExecStart=/usr/local/sbin/schbkups-failure-notify.sh %i.service

Here %p resolves to schbkups-to-pbs, and the template appends .service before invoking the notification script. This avoids the incorrect .service.service name. The script only accepts the expected backup unit, reads its systemd result, and submits a short failure report to local root without leaking environment credentials or raw journal output.

The mail chain has multiple restore dependencies: postfix.service, /usr/sbin/sendmail, the Proxmox /usr/libexec/proxmox-mail-forward command, /etc/pve/notifications.cfg, /etc/pve/priv/notifications.cfg, the authenticated SMTP target Alerts, and the corresponding matcher. Local root mail is forwarded into the existing Proxmox notification system; no second Gmail SMTP credential was created for this handler.

Test the unit itself without deliberately damaging the backup service:

systemctl daemon-reload
systemctl show schbkups-to-pbs.service -p OnFailure
systemctl start schbkups-failure-notify@schbkups-to-pbs.service
systemctl status schbkups-failure-notify@schbkups-to-pbs.service --no-pager
journalctl --since '5 minutes ago' --no-pager |
  grep -Ei 'schbkups-failure-notify|proxmox-mail-forward|notified via target'

An isolated test generates a failure-themed email even while the actual backup service is healthy; that alone is not evidence of a real backup failure.

Confirm that the notification reaches the configured mailbox and that the journal records delivery through the Proxmox Alerts target. Review the newest snapshot’s age separately because OnFailure= does not detect a timer that never runs.

Recovery Procedure — Host Configuration and Backup Pipeline
#

Use this recovery sequence on a trusted repaired or replacement host, with administrative access that does not depend on Authentik.

  1. Confirm the replacement host, management networking, PBS reachability, administrative access, and intended recovery point. Maintain break-glass access independent of Authentik.
  2. Identify the SCHBKUPS filesystem by a stable identifier, then mount it at /mnt/pve/SCHBKUPS. The observed /dev/sdv1 device name is not guaranteed to remain stable after hardware changes. Confirm with findmnt /mnt/pve/SCHBKUPS.
  3. If SCHBKUPS is unavailable, recover the desired files from the newest verified PBS host/schbkups snapshot into a restricted staging location. The nested Proxmox host TAR lives under infrastructure/servers/home.lab/proxmox/.
  4. List and extract the selected TAR into an isolated staging directory. Do not blindly overwrite a live /etc/pve, cluster identity, host network configuration, or SSH keys. Review restored values for the replacement environment.
  5. Restore or reinstall the required systemd units, proxmox-backup-client, Postfix and mail utilities, proxmox-mail-forward support, cron schedule, notification script, and applicable Proxmox notification configuration. Reapply file ownership and restricted permissions.
  6. Independently establish PBS identity and its current TLS certificate fingerprint. Restore or rotate the PBS API token securely; revalidate credentials and connectivity before enabling the nightly timer.
  7. Run systemctl daemon-reload and inspect schbkups-to-pbs.service, its timer, and its OnFailure dependency. Confirm the SCHBKUPS mount and a successful manual backup before normal operation resumes.
  8. Verify that PBS contains the new recovery point and that verification finishes without errors. Then send an isolated mail notification through the existing Alerts path.
  9. Confirm the weekly host backup produces a usable TAR with the current dependencies before trusting the routine. Re-enable automated pruning only once the intended recovery set has been checked.

For a non-destructive check of a local TAR:

ARCHIVE=/mnt/pve/SCHBKUPS/infrastructure/servers/home.lab/proxmox/pve-backup-home-lab-latest.tar.gz
tar -tzf "$ARCHIVE" | head -30
gzip -t "$ARCHIVE"

Use a root-only temporary staging directory for selective extraction. Even test extraction includes potentially sensitive private keys and credential files; clean up staged files afterward.

Infrastructure
#

This section covers backup procedures for various infrastructure devices.

Dell PowerEdge via iDRAC and Network Share
#

Applicable to iDRAC 8 Enterprise controllers. Not validated on other hardware, but a similar process is expected.

  1. Navigate to the iDRAC login portal and sign in.
iDRAC Login Portal
  1. On the overview dashboard, expand iDRAC Settings.
iDRAC Settings
  1. Select Server Profile.
Server Profile
  1. In the Backup and Export Server Profile menu pane, select Automatic Backup.
Automatic Backup
  1. The following settings must be applied:
Enabled Automatic Backup: Checked
File Settings and Security

File Location: Network
File Name: flexible-name-here
Backup File Passphrase (optional): optional-passphrase
Confirm Passphrase: optional-passphrase
Number of backup files to preserve (1-50): 50
Network Settings

Protocol: CIFS
IP Address: network.share.IP.address
Share Name: network/share/backup/location
Domain Name: optional
Username: network-share-username
Password: network-share-password
  • After these settings have been applied, select Test network connection to validate the network share connectivity. If successful, select OK to continue.
Network Share Settings
Test Connection Validation
  1. Scroll down to set the Backup Window Schedule. The follow settings must be applied:
Backup Window Schedule

Current iDRAC Time: Not selectable, this is a reference value.
Start (24hr format): 03:00
Recurrence Pattern

Select from: [Daily], [Weekly], [Monthly]
Recur every: [1] day(s), week(s), month(s)
On days of the week: [Sunday], [Monday], [Tuesday], [Wednesday], [Thursday], [Friday], [Saturday]
  • After the Backup Window Schedule settings have been set, select Schedule Backup to apply the backup configuration. Select OK in the confirmation dialogue that appears.
Backup Window Schedule
Schedule Validation
  1. At this time, you may also choose to export a manual backup, but this is optional. To do this, navigate back to Overview, iDRAC Settings, Server Profile, and select Backup. Export a manual backup using the same network share information as entered previously for the automatic backup.
Manual Test Backup

FortiSwitch
#

Applicable to FortiSwitch using Firmware Version: v6.4.2, operating in Local Management mode. Not validated on other firmware versions, but a similar process is expected.

  1. Navigate to the FortiSwitch login portal and sign in.
FortiSwitch Login Portal
  1. On the Dashboard, in the System Information pane, select Backup.
FortiSwitch Dashboard
  1. On the Backup dashboard, select Download. An optional passphrase can be added but is not necessary.
FortiSwitch Backup Dashboard
  1. After the configuration is downloaded, save the file to the appropriate network share.
Downloaded Backup Configuration
Transferred Backup Configuration

Ubiquiti Dream Machine Special Edition
#

  1. Navigate to the UniFi login portal and sign in. Sign in via the UniFi remote dashboard or by accessing the console’s management IP address.
UniFi Login Portal
  1. If prompted with the Site Manager dashboard, select the applicable site to view.
UniFi Site Manager
  1. Select the Settings icon.
Site Network Dashboard
  1. Select the Control Plane option under UDM SE.
Site Settings Dashboard
  1. Select the Backups option in the Control Plane pane.
Control Plane Pane
  1. Ensure Auto (Weekly) backups are enabled, then select Download.
Backups Dashboard
  1. In the dialogue box that appears, select Download to download a local copy of the current UDM SE configuration.
Download Backup Dialogue Box
  1. After the configuration is downloaded, save the file to the appropriate network share.
Downloaded UDM SE Backup Configuration
Transferred UDM SE Backup Configuration

Proxmox VE Guest Backups
#

  1. Navigate to the Proxmox login portal and sign in.
Proxmox Login Portal
  1. Select Datacenter, Backup, then click Add.
Backup Dashboard - Add
  1. In the Create: Backup Job dialogue, enter the current PBS job settings. The accompanying screenshots illustrate the interface and may show older values.
General

Node: All
Storage: PBS
Schedule: Every day at 01:30
Selection mode: Include selected VMs
Mode: Snapshot
Enable: Checked

Job Comment: Optional
Guests to Include

[x] Check applicable
[x] container and
[x] virtual machines to
[x] include, unless
[ ] intentionally left out 
[ ] from the schedule.
Backup Job - General
  1. Select the Notifications tab and ensure the Use global notification settings option is selected.
Backup Job - Notifications
  1. Select the Retention tab and enter the Retention parameters. These parameters largely depend on the backup model being used and may change for each individual Backup Job.
Retention

[ ] Keep all backups (unchecked by default, consumes a ton of of storage)
Keep Last: Optional
Keep Daily: Optional
Keep Hourly: Optional
Keep Weekly: Optional
Keep Monthly: Optional
Keep Yearly: Optional
Backup Job - Retention
  1. Select the Note Template tab and include optional information to help identify the purpose of the Backup Job, including identifying information.
Note Template Example

Daily opt-in VM/CT backup | Guest: {{guestname}} | VMID: {{vmid}} | Node: {{node}} | Retention: 3D/1W/1M | Scope: selected service guests only
  • Follow the intended guest retention policy (three daily, one weekly, and one monthly recovery point) and review the separate PBS pruning rules to confirm effective retention.
Backup Job - Note Template
  1. Select the Advanced tab and enter any optional information that may enhance the Backup Job.

For example, ensuring Repeat missed is enabled can run the job even if it missed the scheduled start due to the node being offline.

When done with the Advanced tab, select Create to create the Backup Job.

Backup Job - Advanced
  1. It’s a good idea to then run an initial backup routine to make sure the Backup Job functions as intended, including selected targets and notification settings. Select the Backup Job to perform an initial run, then select Run now.
Backup Dashboard - Testing
  1. In the Confirm dialogue box that appears, select Yes.
Backup Dashboard - Testing - Confirm
  1. You can then view the output of the job in the Task viewer by selecting the task in the log at the bottom.
Task Viewer
  1. Validate that the selected targets of the Backup Job were successful by navigating to the guest in the applicable node and viewing the Backup.
Backup Validation

Services
#

This section covers backup procedures for various services.

Pi-hole
#

  1. Navigate to the Pi-hole login portal and sign in.
Pi-hole Login Portal
  1. On the Pi-hole dashboard, expand Settings under the System group.
Pi-hole Dashboard
  1. Select Teleporter.
Pi-hole System Settings
  1. Select the Export option to download a local copy of the current Pi-hole configuration.
Pi-hole Teleporter

Pi-hole notes that this archive contains sensitive information, including the 2FA-TOTP secret if enabled. This configuration also does not download the pihole-FTL.db and must be backed-up separately.

  1. After the configuration is downloaded, save the file to the appropriate network share.
Downloaded Pi-hole Backup Configuration
Transferred Pi-hole Backup Configuration
Reply by Email