vzdump --snapshot shows "INFO: backup mode: stop"

proxymoxy

New Member
Jun 9, 2011
28
0
1
See also the follwoing output

Code:
[root@myserver ~]# vzdump --snapshot 101 --tmpdir /tmp --dumpdir /root
INFO: starting new backup job: vzdump --snapshot 101 --tmpdir /tmp --dumpdir /root
INFO: Starting Backup of VM 101 (openvz)
INFO: CTID 101 exist unmounted down
INFO: status = CTID 101 exist unmounted down
INFO: backup mode: stop

I hope it is bug, but my guess is that vzdump switches to "stop mode" because the container is stopped already?

But why? If I want to do a 100% clean backup by shutting down the container first, wouldn't it be still useful (and fast) to use the snapshot mode. This way the container could be started again very quickly.
 
Understand, but if a user uses the option snapshot (and not stop), then it should run in snapshot mode. I think if the user uses the snapshot mode the user aware of the additional disk space requirement.

Would it be possible to add an option for this in the next version (I guess the only way to keep it backward compatible)
 
Ok, will do.
Will try (need to learn about patching first ;-)

Just to make sure I am on the right path. This is basically the only important part in VZDump.pm?

Code:
my $mode = $running ? $opts->{mode} : 'stop';
 

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!