[pve-devel] [PATCH 1/2] decode in config name the type of config.

Wolfgang Link w.link at proxmox.com
Fri Nov 6 08:59:07 CET 2015


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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.1.4





More information about the pve-devel mailing list