4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
9 opendir(DIR, $config{'config_dir'});
10 while($f = readdir(DIR)) {
11 next if ($f eq "." || $f eq ".." ||
12 $f =~ /\.rpmsave$/ || $f =~ /\.bak$/);
13 push(@rv, "$config{'config_dir'}/$f");
19 # Called before the files are actually read
26 # Called after the files are actually read
33 # Called before the files are restored from a backup
39 # post_restore(&files)
40 # Called after the files are restored from a backup
43 local $out = &backquote_logged("$config{'shorewall'} restart 2>&1");
45 return "<pre>$out</pre>";