Backup VM/LXC before Start

Cenirse

New Member
Sep 16, 2023
3
0
1
Hi,

I have a Proxmox Server that I only bootup if I need it.
Due to this scheduled backups not really working.

My Goal is to start a snapshot backup job before the VM/LXC that I need is starting. So I don't have to wait for the backup Job to finish in order to use the VM/LXC
I found hookscripts which can track these "events".
So I tryed to run "/usr/bin/vzdump $vmid --storage PBS --mode snapshot" in the 'pre-start' state.
Problem is that the backup job can't lock the .conf file so the backup fails

Backup Error.PNG

Is there any way to achieve this?
 
Hi,
you can trigger a backup while the VM is still stopped and then resume the VM while the backup is running. The backed-up data will always be a point-in-time copy of the moment the backup job was started even when the VM does further IO afterwards.