die "PBS remote '$remote' does not exist\n" if !$remote_config;
die "PBS remote '$remote' is disabled\n" if $remote_config->{disable};
- $param->{statistic} //= 1;
+ $param->{statistic} //= $remote_config->{'include-statistics'} // 1;
my $pbs = PVE::PBSClient->new($remote_config, $remote, $conf->{secret_dir});
my $backup_dir = "/var/lib/pmg/backup/current";
description => "Username or API token ID on the Proxmox Backup Server"
}),
fingerprint => get_standard_option('fingerprint-sha256'),
+ 'include-statistics' => {
+ description => "Include statistics in scheduled backups",
+ type => 'boolean',
+ optional => 1,
+ },
%prune_properties,
};
}
username => { optional => 1 },
password => { optional => 1 },
fingerprint => { optional => 1 },
+ 'include-statistics' => { optional => 1 },
'keep-last' => { optional => 1 },
'keep-hourly' => { optional => 1 },
'keep-daily' => { optional => 1 },