Proxmox backup with LXC Container

Jun 14, 2022
20
0
6
We are having some LXC Container, with by mount disk on it. While taking backup the by-mount (using partition from host) are getting discarded only rootfs (disk are taken from directory) are being backed up. My question is by using Proxmox backup can we take the backup of both partition. If not how can i use Proxmox backup for taking backup. Can we take the backup while lxc is in running mode.
 
We are having some LXC Container, with by mount disk on it. While taking backup the by-mount (using partition from host) are getting discarded only rootfs (disk are taken from directory) are being backed up. My question is by using Proxmox backup can we take the backup of both partition. If not how can i use Proxmox backup for taking backup. Can we take the backup while lxc is in running mode.
So you use a bind mount, don't you? Then you could use the proxmox-backup-client: https://pbs.proxmox.com/docs/installation.html#client-installation https://pbs.proxmox.com/docs/backup-client.html
Or did I missunderstood you? Please post the configuration of the container
 
Ok I see, then you need to use the proxmox backup client for the backup. You could create a systemd timer or cronjob inside the container to do it. Another option might be to configure the backup job to contain a hook script which will call the client:
https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_hook_scripts

These backups will get their own backup group on the PBS though.

And I never did this, but just what options I see from my (limited) googling and reading the forum/docs