From: Wolfgang Link Date: Fri, 6 Nov 2015 07:59:07 +0000 (+0100) Subject: decode in config name the type of config. X-Git-Url: https://git.proxmox.com/?p=pve-zsync.git;a=commitdiff_plain;h=fac83537f906513d2ddbbd867fc7a8a5d3552117 decode in config name the type of config. The backuped config will now include in the name of the config file the type of vm. .conf..rep__ --- diff --git a/pve-zsync b/pve-zsync index 0f31c46..0add81a 100644 --- a/pve-zsync +++ b/pve-zsync @@ -888,7 +888,7 @@ sub send_config{ my ($source, $dest, $method) = @_; my $source_target = $source->{vm_type} eq 'qemu' ? "$QEMU_CONF$source->{vmid}.conf": "$LXC_CONF$source->{vmid}.conf"; - my $dest_target_new ="$source->{vmid}.conf.$source->{new_snap}"; + my $dest_target_new ="$source->{vmid}.conf.$source->{vm_type}.$source->{new_snap}"; my $config_dir = $dest->{last_part} ? "${CONFIG_PATH}$dest->{last_part}/" : $CONFIG_PATH;