Hi folks,
My small homelab (if it even qualifies as such) currently has a separate NAS host running TrueNAS CE and an additional Proxmox VE host. I want to set up Proxmox Backup Server and ultimately feed the backups to my TrueNAS, but I’m trying to figure out the best way to do so. I know the official guide suggests a whole separate machine (so a third host), but I’d prefer to not have to buy more hardware and keep it running 24/7 if I can avoid it (though if it is really critical I could probably get a little N150 box if it was strictly necessary, but this feels like a little much).
I am also considering virtualizing PBS on Proxmox itself, but it seems like either option is not ideal. For LXCs, it seems like trying to create a stable NFS share out to the TrueNAS system means I’d have to go with a privileged LXC vs. an unprivileged one (though I’d be happy to be wrong on that if folks have other experience with it), but of course this gives root access to the host itself. Alternatively, if I go with a VM, I’d heard that there are sometimes recursion issues where PBS ends up attempting to back up all VMs, including the VM that contains it, which leads to instability and just overall not having a great time.
As another alternative, I suppose I could pick up an NVMe and try to run PBS as an app on TrueNAS itself (but my understanding is that PBS is snappier when backups are on the same host and then pushed out via NFS afterward)?
Before I rip too much of my hair out, I figured I’d try to crowdsource and see how more experienced folks are approaching this. Thanks very much!
I have it running as an LXC with a bindmount to my ZFS storage. I added backblaze b2 as an S3 endpoint and have a sync job to pull from my local storage.
I run PBS as a virtual machine on Proxmox, with a dedicated physical harddrive passed through to PBS for the data.
While this protects from software failures of my VMs, it does not protect from catastrophic hardware failure. In theory I should be able to take the dedicated harddrive out and put it in any other system running a fresh PBS, but I have not tested this.
I tried running the same PBS with an external NFS share, but had speed and stability issue, mainly due to the hardware of the NFS host. And I wasn’t aware of
autofsat the time, so the NFS share stayed disconnectedIf you’d like some separation, one option is to create a VM on TrueNAS for PBS that connects to an NFS export where all the data would be stored.
What I did in this scenario is an LXC container running PBS, which uses a bindmount for storage. That bindmount is populated via an NFS export from my NAS, mounted on the PVE host using
autofsso that if it disconnects, it will reconnect as soon as it can.Thanks for sharing! TIL about
autofs. Now I’m curious to try NFS again.What’s the failure mode if the NFS happens to be offline when PBS initiates a backup? Does PNS try to backup anyway? What if the NFS is offline while PBS boots?
EDIT: What was the reason for bind mounting the NFS share via the host to the container, and NFS mounting from NAS to host?
I did the NFS-mount directly in the PBS. (But I am running my PBS as a VM, so had to do it that way)Sure thing—
autofsis a pretty cool utility and it works with SMB as well.If the storage isn’t present for PBS, the backup would fail. There are files inside the directory that PBS will notice are missing.
Mounting the NFS export in the PVE host is the simplest way to get shared storage into an LXC container. You have to fight
apparmorto mount NFS or SMB inside the container directly.
Thank you! Just to make sure I am following correctly, for your LXC running PBS, it sounds like you used a privileged container on Proxmox itself, right (vs. an LXC on TrueNAS)?
No, I used an unprivileged container and I set the permissions on the NFS server to accommodate that.
despite recommendations, I run PBS along side the standard server barebone. I don’t store the backups on the same system they are stored to an external drive (which gets an offline copy every once and awhile) but I don’t like the idea of having PBS in a virtual environment, it’s just another layer that could go wrong in a restore process.
It doesn’t really matter as long as you’re not storing the backups on the same system. You want to be able to restore if the system goes up in flames. Just consider how much storage you want to have, because you probably want more than one snapshot of each.
Speed isn’t really a factor, as long as it completes in a reasonable timeframe. It runs in the background.


