Set a dedicated mount point for Proxmox backups (- -tmpdir)

First, create the new zfs mountpoint and enable ACLs.

zfs create -o mountpoint=/mnt/vztmp rpool/vztmp
zfs set acltype=posixacl rpool/vztmp

You can validate the acl settings for a zfs volume with:

zfs get acltype /mnt/vztmp

Then, we’ll set this as the tmpdir for vzdump.

nano /etc/vzdump

Uncomment the line “tmpdir” and add “/mnt/vztemp”

root@proxmox02:~# cat /etc/vzdump.conf
# vzdump default settings

tmpdir: /mnt/vztmp
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#performance: [max-workers=N][,pbs-entries-max=N]
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#stdexcludes: BOOLEAN
#mailto: ADDRESSLIST
#prune-backups: keep-INTERVAL=N[,...]
#script: FILENAME
#exclude-path: PATHLIST
#pigz: N
#notes-template: {{guestname}}
#pbs-change-detection-mode: legacy|data|metadata
#fleecing: enabled=BOOLEAN,storage=STORAGE_ID

Save the file and run a configured backup job. You should see the new location in the backup command.

INFO: run: /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/mnt/vztmp/vzdumptmp940695_300//etc/vzdump/pct.conf root.pxar:/mnt/vztmp/vzdumptmp940695_300/ --include-dev /mnt/vztmp/vzdumptmp940695_300//. --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct ...

https://pve.proxmox.com/wiki/ZFS:_Tips_and_Tricks#Snapshot_of_LXC_on_ZFS

https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_backup_modes

https://pve.proxmox.com/wiki/Storage