4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
8 local @rv = ( $config{'sshd_config'}, $config{'client_config'} );
9 if ($config{'sshd_config'} =~ /^(.*)\//) {
11 opendir(DIR, $sshd_dir);
13 foreach $f (readdir(DIR)) {
14 next if ($f eq "." || $f eq ".." || $f =~ /\.rpmsave$/i);
15 push(@rv, "$sshd_dir/$f");
23 # Called before the files are actually read
30 # Called after the files are actually read
37 # Called before the files are restored from a backup
43 # post_restore(&files)
44 # Called after the files are restored from a backup
47 return &restart_sshd();