zfs snapshotting and backups in lxc container?

kyriazis

Member
Oct 28, 2019
95
4
13
Austin, TX
Hello,

I am planning on using sanoid/syncoid or something similar to perform snapshots and backups of my zfs pool(s).

I understand that I can add packages and/or do whatever I need in the host debian environment, but I was wondering if I can do the same inside an lxc container with the host zfs pools mounted with mpX: in the conf files. My reasoning is that I don't want to pollute the host environment (I want to keep things compartmentalized)z, and also taking backups of containers is much easier than backing up specific setups on the host.

Any thoughts?

Thank you!

George
 
I don't think that will work. ZFS snapshots are deeply buildin into the filesystem itself working on block level and you can only create them running the zfs command on your host. If you bind-mount a mountpoint of a dataset into a LXC that is all done on the file level.
 

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 your own in 60 seconds.

Buy now!