Allows to switch the backup clients change detection mode based on
the option set in the backup jobs configuration for backup jobs with
Proxmox Backup Server target.

Signed-off-by: Christian Ebner <c.eb...@proxmox.com>
---
changes since version 1:
- no changes

 src/PVE/VZDump/LXC.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 8c28a5e..06e02eb 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -394,6 +394,8 @@ sub archive {
        push @$param, '--backup-type', 'ct';
        push @$param, '--backup-id', $vmid;
        push @$param, '--backup-time', $task->{backup_time};
+       push @$param, '--change-detection-mode', 
$opts->{"pbs-change-detection-mode"}
+           if $opts->{"pbs-change-detection-mode"};
 
        if (my $entries_max = $opts->{"performance"}->{"pbs-entries-max"}) {
            push $param->@*, '--entries-max', $entries_max;
-- 
2.39.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to