exclude filesystem from snapshot

michabbs

Active Member
May 5, 2020
138
20
38
I have a container with a couple of ZFS mount points. One of them contains plenty of fast changing temporary data and I generally do not want to keep them in snapshots. (The problem: the dataset has <100GB, but a month of daily snapshots effectively uses 1TB of disk. because the temporary data is kept frozen in snapshots.)

There is an option to exclude mountpoint from backup and replication. How to achieve the same with snapshots? (If not directly - maybe you suggest some kind of workaround?)
 
You use a .pxarexclude file in the root folder to exclude the folder from a backup: https://forum.proxmox.com/threads/unexpected-use-of-pxarexclude-broke-my-container-backup.86143/ and https://pbs.proxmox.com/docs/backup-client.html#excluding-files-directories-from-a-backup
Or use lxc.mount.entry instead of a mountpoint (to hide it from Proxmox): https://forum.proxmox.com/threads/about-passthrough.148734/post-672910

EDIT: Sorry, I mixed up snapshot and backup in this reply. But I'm positive that the second approach should also work for snapshots.
 
Last edited:
Or use lxc.mount.entry instead of a mountpoint (to hide it from Proxmox): https://forum.proxmox.com/threads/about-passthrough.148734/post-672910
Downside: When I removed "mp" and replaced with "lxc.mount.entry" - PVE forgot that the dataset was not meant to be replicated and began to replicate it... :-(

Now the dataset is visible as "unused disk" (which seems correct), but anyway PVE replicates it to another node. Any way to skip replication of unused disks?