5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-01-10 01:17:51 +03:00
pve-docs/gen-vzdump.conf.5-opts.pl
2016-04-14 10:53:46 +02:00

27 lines
433 B
Perl
Executable File

#!/usr/bin/perl
use lib '.';
use strict;
use warnings;
use PVE::RESTHandler;
use PVE::VZDump;
my $prop = PVE::VZDump::json_config_properties();
my $skip = {
all => 1,
exclude => 1,
vmid => 1,
node => 1,
quiet => 1,
size => 1,
stop => 1,
};
my $filterFn = sub {
my ($k, $phash) = @_;
return $skip->{$k} || 0;
};
print PVE::RESTHandler::dump_properties($prop, 'asciidoc', 'config', $filterFn);