Skip to main content

Pruning Jobs & Retention Policy

How to SetSetting Up A Prune Job

There are two ways you can set up/schedule a prune job. You can do it through the backup server or through the dashboard. We suggest setting it up through the dashboard.

Screenshot 2026-06-04 123744.png

Under there you can view, edit, run or delete any existing jobs. To add a new job, hit Add New Job under the prune job table.

Screenshot 2026-06-04 123910.png

Once the prune job is added, it will show up in the prune jobs table.

Retention Policies

With pruning jobs you can set how long you'd like backups to be kept for. You can define multiple rules for the retention policy and a backup can be kept if it satisfies multiple rules defined. Pruning only removes the reference of your backups to your datastore, but it doesn't remove the actual backup. Backups are only removed when a garbage collection job is run. The table below refers to all the retention policy rules that can be applied. Proxmox also has a pruning job simulator you can use to visualize your rules.

OptionWhat it keepsExample
keep-lastThe N most recent backups, regardless of age3 — always keep the last 3 backups
keep-hourlyOne backup per hour, for N hours24 — one per hour for the last day
keep-dailyOne backup per day, for N days7 — one per day for the last week
keep-weeklyOne backup per week, for N weeks4 — one per week for the last month
keep-monthlyOne backup per month, for N months6 — one per month for the last half-year
keep-yearlyOne backup per year, for N years1 — one per year, kept indefinitely if set high