Illustrated title card for the guide: Proxmox Backup Server Prune, Garbage Collection, and Verify
backup-maintenance

Proxmox Backup Server Prune, Garbage Collection, and Verify

Preview Proxmox Backup Server retention, schedule garbage collection and verification, and find out why disk space can stay in use after pruning.

In Proxmox Backup Server (PBS), prune applies your retention rules and removes the metadata for snapshots it selects for deletion. Garbage collection (GC) reclaims storage by removing eligible unused data chunks. Verify checks whether backup data is intact. For space reclamation, prune first and let GC clean up after it. Schedule verification to check the backups you keep. Proxmox maintenance tasks

Preview retention and schedule pruning

Start with a dry run on a backup group. This example uses the group host/elsa and the repository backup-server:store1. Replace both with your own values. The dry run shows what pruning would keep or remove without deleting snapshots. Proxmox backup client guide

proxmox-backup-client prune host/elsa --repository backup-server:store1 \
  --dry-run --keep-daily 1 --keep-weekly 3

Review the keep column for the recovery points you need. A 1 marks a snapshot to keep and a 0 marks one to remove. The weekly rule considers older backups outside the period already covered by the daily rule. Days and weeks without backups do not count toward their respective rules. Proxmox dry-run example · Proxmox retention rules

Before enabling pruning, choose retention values that match the recovery points you need. Preview those same values on every group the job will cover. Live pruning removes the selected snapshots’ metadata. The job below targets the store1 datastore. The --max-depth 0 option keeps it from descending into child namespaces. Use --ns on both the preview and the job when targeting a named namespace. Proxmox prune jobs · Proxmox command syntax

Run the manager command on the PBS host once you have confirmed the scope and retention settings. The example schedules pruning at midnight each day in the server’s time zone. Proxmox command syntax · Proxmox calendar events

proxmox-backup-manager prune-job create root-retention --store store1 \
  --schedule daily --max-depth 0 --keep-daily 1 --keep-weekly 3

Run and schedule garbage collection

Pruning can remove snapshots while the chunks they used still take up space. If a retained snapshot references a chunk, GC keeps it. GC also leaves chunks within the access-time grace period in place and reports them as Pending removals in the task log. Proxmox garbage collection

Without an active backup writer, the default cutoff is 24 hours and 5 minutes before GC starts. An active backup writer can affect the cutoff. Eligibility depends on a chunk’s access time, so the time since the prune job ended alone cannot tell you when a chunk becomes eligible. If the log shows Pending removals, check the results of a later GC run. Proxmox garbage collection · Proxmox datastore tuning

After pruning, you can start GC manually for store1 and query its status with the following commands. In the web interface, use Start Garbage Collection in the datastore’s Prune & GC tab to start it. Proxmox garbage collection · Proxmox command syntax

proxmox-backup-manager garbage-collection start store1
proxmox-backup-manager garbage-collection status store1

To read the run’s log, list server tasks including completed runs. Copy the GC run’s unique task ID (UPID) and replace TASK_ID with it. Proxmox command syntax

proxmox-backup-manager task list --all true
proxmox-backup-manager task log 'TASK_ID'

Set a recurring GC schedule so later runs can pick up newly eligible chunks. This example schedules GC for Saturday at 03:00 in the server’s time zone. Proxmox scheduled GC · Proxmox calendar events

proxmox-backup-manager datastore update store1 --gc-schedule 'sat 03:00'

Schedule verification and recheck on demand

Proxmox recommends reverifying all backups at least monthly. In this example, a job runs every Sunday at 03:00 in the server’s time zone. Setting --ignore-verified false includes snapshots that have already passed verification. Proxmox verification · Proxmox command syntax · Proxmox calendar events

proxmox-backup-manager verify-job create weekly-verify --store store1 \
  --schedule 'sun 03:00' --ignore-verified false

To check the whole datastore now, run the command below. To check a single snapshot in the web interface, open the datastore’s Content tab and select the verification icon in the snapshot’s Actions column. Proxmox verification

proxmox-backup-manager verify store1 --ignore-verified false

For a recovery test, follow the procedure in the Proxmox client guide. Proxmox restore documentation

The Proxmox Backup Server 4.2.14-1 documentation was checked on November 26, 2026. These steps were not run on a server.

Sources

  1. Proxmox Backup Server Maintenance Tasks
  2. Proxmox Backup Client Usage
  3. Proxmox Backup Server Command Syntax
  4. Proxmox Backup Server Calendar Events
  5. Proxmox Backup Server Configuration Files
  6. Proxmox Pruning and Removing Backups
  7. Proxmox Pruning
  8. Proxmox Prune Jobs
  9. Proxmox Garbage Collection
  10. Proxmox Manually Starting GC
  11. Proxmox Scheduled GC
  12. Proxmox Verification
  13. Proxmox Restoring Data

Related