exclude filesystem from snapshot

michabbs

Active Member
May 5, 2020
131
19
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!