[PVE-User] VM Backups
Holger Hampel | RA Consulting
h.hampel at rac.de
Tue Mar 14 10:38:08 CET 2017
Hello,
I don't like to interfere with default behavior. Less intrusive I added this to a copy of the hook example (/usr/share/doc/pve-manager/examples/vzdump-hook-script.pl):
} elsif ($phase eq 'backup-start') {
my $mode = shift; # stop/suspend/snapshot
my $vmid = shift;
my $vmtype = $ENV{VMTYPE}; # openvz/qemu
if ($vmtype eq 'qemu') {
# log all parameters notably the vm name:
system("/usr/sbin/qm status $vmid -verbose");
}
So I have the name in the logfile (for kvm type vm's).
Regards
Holger Hampel
-----Ursprüngliche Nachricht-----
Von: pve-user [mailto:pve-user-bounces at pve.proxmox.com] Im Auftrag von Bart Lageweg | Bizway
Gesendet: Montag, 13. März 2017 23:09
An: PVE User List
Betreff: Re: [PVE-User] VM Backups
Hi,
You can use a backup-hook script.
Snip:
my $hostname = $ENV{HOSTNAME};
"mv -f $backuplocatie/vzdump-qemu-$hostname-$vmid.vma.lzo $backuplocatie/vzdump-qemu-oud-$hostname-$vmid.vma.lzo"
-----Oorspronkelijk bericht-----
Van: pve-user [mailto:pve-user-bounces at pve.proxmox.com] Namens Gilberto Nunes
Verzonden: maandag 13 maart 2017 23:07
Aan: PVE User List <pve-user at pve.proxmox.com>
Onderwerp: Re: [PVE-User] VM Backups
Hi
Short answer is yes, of course.
But as long answer, you will need to change the pearl PVE modules in /usr/share/Perl/PVE if I am not wrong...
Good lucky
Em 13 de mar de 2017 17:45, "Daniel" <daniel at linux-nerd.de> escreveu:
Hi There,
just a short simple questions. Is it possible to have the Node name in the backup instead of node id only?
--
Grüsse
Daniel
_______________________________________________
pve-user mailing list
pve-user at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
pve-user at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
pve-user at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list