10 # backup_config_files()
11 # Returns files and directories that can be backed up
12 sub backup_config_files
14 # Add main config file
15 local @rv = ( $config{'sendmail_cf'} );
16 local $conf = &get_sendmailcf();
18 # Add files references in .cf
20 foreach $f (&find_type("F", $conf)) {
21 if ($f->{'value'} =~ /^[wMtGR][^\/]*(\/\S+)/ ||
22 $f->{'value'} =~ /^\{[wMtGR]\}[^\/]*(\/\S+)/) {
28 local $afiles = &aliases_file($conf);
30 local $vfile = &virtusers_file($conf);
31 push(@rv, $vfile) if ($vfile);
32 local $mfile = &mailers_file($conf);
33 push(@rv, $mfile) if ($mfile);
34 local $gfile = &generics_file($conf);
35 push(@rv, $gfile) if ($gfile);
36 local $dfile = &domains_file($conf);
37 push(@rv, $dfile) if ($dfile);
38 local $afile = &access_file($conf);
39 push(@rv, $afile) if ($afile);
42 push(@rv, $config{'sendmail_mc'}) if ($config{'sendmail_mc'});
48 # Called before the files are actually read
55 # Called after the files are actually read
62 # Called before the files are restored from a backup
68 # post_restore(&files)
69 # Called after the files are restored from a backup