]> git.proxmox.com Git - pve-zsync.git/commitdiff
decode in config name the type of config.
authorWolfgang Link <w.link@proxmox.com>
Fri, 6 Nov 2015 07:59:07 +0000 (08:59 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Nov 2015 08:31:32 +0000 (09:31 +0100)
The backuped config will now include in the name of the config file the type of vm.

<vmid>.conf.<type>.rep_<name_of_job>_<timestamp>

pve-zsync

index 0f31c46c314503cc8cf35b45fae97dc143f898e5..0add81a6c98e7051dcc7826706623ab6cffe8922 100644 (file)
--- 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;