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:[email protected]] 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:[email protected]] Namens Gilberto Nunes
Verzonden: maandag 13 maart 2017 23:07
Aan: PVE User List <[email protected]>
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" <[email protected]> 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
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

Reply via email to