Handle hostnames with upper-case letters
[webmin.git] / majordomo / backup_config.pl
1
2 do 'majordomo-lib.pl';
3
4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
7 {
8 local @rv;
9
10 # Add main config file
11 local $conf = &get_config();
12 push(@rv, $config{'majordomo_cf'});
13
14 # Add all lists
15 local $list;
16 foreach $list (&list_lists($conf)) {
17         local $linfo = &get_list($list, $conf);
18         push(@rv, $linfo->{'members'});
19         push(@rv, $linfo->{'config'});
20         push(@rv, $linfo->{'info'});
21         push(@rv, $linfo->{'intro'});
22         }
23
24 # Add aliases file
25 local $afiles = &get_aliases_file();
26 push(@rv, @$afiles);
27
28 return @rv;
29 }
30
31 # pre_backup(&files)
32 # Called before the files are actually read
33 sub pre_backup
34 {
35 return undef;
36 }
37
38 # post_backup(&files)
39 # Called after the files are actually read
40 sub post_backup
41 {
42 return undef;
43 }
44
45 # pre_restore(&files)
46 # Called before the files are restored from a backup
47 sub pre_restore
48 {
49 return undef;
50 }
51
52 # post_restore(&files)
53 # Called after the files are restored from a backup
54 sub post_restore
55 {
56 return undef;
57 }
58
59 1;
60