5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-22 02:04:02 +03:00

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.

<vmid>.conf.<type>.rep_<name_of_job>_<timestamp>
This commit is contained in:
Wolfgang Link 2015-11-06 08:59:07 +01:00 committed by Dietmar Maurer
parent 739c195a0a
commit fac83537f9

View File

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