4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
8 local @tunnels = &list_stunnels();
9 local @rv = map { $_->{'file'} } @tunnels;
11 local $ver = &get_stunnel_version();
12 foreach $t (@tunnels) {
14 if ($t->{'args'} =~ /^(\S+)\s+(\S+)/) {
16 local @conf = &get_stunnel_config($cfile);
18 local ($conf) = grep { !$_->{'name'} } @conf;
19 if ($conf->{'values'}->{'cert'}) {
20 push(@rv, $conf->{'values'}->{'cert'});
25 if ($t->{'args'} =~ /\s*-p\s+(\S+)/) {
34 # Called before the files are actually read
41 # Called after the files are actually read
48 # Called before the files are restored from a backup
54 # post_restore(&files)
55 # Called after the files are restored from a backup
58 return &apply_configuration();