Backing up virtiofs

This depends on what you want to achieve. Since Virtiofs passthroughs directories form the host you could do the backup from the host or the guest, depending on what you want to achieve. If the same directory is used in multiple vms you propably only want to do one backup, if the virtiofsed dir is only used in one guest, your preference might be different.

In any case: The regular VM backup (via PBS or the native vzdumps) won't cover this since they are operating on the virtual discs of the VM. If you want to backup to PBS you will need the proxmox-backup-client. If not, any other backup tool you like.

I have a Debian LXC which has a samba server running to serve network shares. These shares are directories on the host I bind mounted to the lxc (which is the equivalent to virtiofs for container). Since I want to be able to restore this data even without a running PBS I backup these files with another backup software running on the Proxmox host.
 
  • Like
Reactions: UdoB