Scheduling Backups with a choice of including & excluding LXC Mountpoints

AdamJ

Member
Sep 29, 2021
6
1
8
56
Hi, I am using PVE 8.1.4 & PBS 3.1-4. I would like to be able to schedule backups of containers including mountpoints to my PBS but also schedule normal PVE backups of the same containers to other storage.

It seems that from the container resources the mountpoint Backup option is binary - either it's included or not. I want to be able to schedule both - included for PBS & excluded for PVE backups.

How can I achieve this - preferably from the gui?
 
Hi,
there is currently no functionality which allows to configure this, not via cli and not via the WebUI.

The flag which indicates to include or exclude the mount point from a backup is set directly on the mount point configuration options in the container config.
You might however be able to set and reset the flag using a vzdump hook script with the job-start, job-end and job-aborthooks, utilizing the pct set command, based on the backup target. I did however not try this, so take this with a grain of salt.

Edit: A template for a vzdump hook script you can find here https://git.proxmox.com/?p=pve-mana...30cef47a558dbb1b05720748c8bad0872bfd5;hb=HEAD
 
Last edited:
Is there anyway to backup the mountpoints only to PBS separately - they are zfs datasets native to PVE?
 
Is there anyway to backup the mountpoints only to PBS separately - they are zfs datasets native to PVE?
Yes, you can backup the mountpoints by using the proxmox-backup-client, although once again this has to be handled by separate scripting and scheduling. Backups on Proxmox VE side are generated via vzdump, which does not allow to handle individual disk/mountpoint backups, the logical unit for backups are VMs/CTs.

For usage of the proxmox-backup-client see https://pbs.proxmox.com/docs/backup-client.html#creating-backups