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:
parent
739c195a0a
commit
fac83537f9
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user