Migrate VS backup lock

mrmattyboy

New Member
Oct 8, 2012
2
0
1
Hi,

I'm new to this forum,

I've installed proxmox 2.1 on a couple of servers and have implemented a backup script. During the script it checks to see if the VM is locked etc.

After doing checks on the VM, to make sure it's Ok to be backed up, it locks the VM. At the moment it locks it as "migrate" (`qm set 102 -lock migrate`)

I was wondering what the differences are between the locks, ie. does the migrate the lock mean that it stops it from being migrated, or does it mean that whilst this lock is in place, it's probably being migrated.

Or do both the locks do the same thing (just lock the VM) and the different names just for convenience?

During my backup, I won't want it either migrating, or, obviously, being backed up by proxmox.

Thanks
Matt
 
During my backup, I won't want it either migrating, or, obviously, being backed up by proxmox.

I guess you should simply use a backup lock:

# qm set 102 -lock backup

That prevents any other actions.
 
Last edited:

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 yours easily in our online shop.

Buy now!