Handle hostnames with upper-case letters
[webmin.git] / nis / backup_config.pl
1
2 do 'nis-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 = ( $config{'client_conf'}, $config{'nsswitch_conf'},
9               $ypserv_conf, $yp_makefile, $config{'securenets'} );
10 local $t;
11 foreach $t (&list_nis_tables()) {
12         push(@rv, @{$t->{'files'}});
13         }
14 return @rv;
15 }
16
17 # pre_backup(&files)
18 # Called before the files are actually read
19 sub pre_backup
20 {
21 return undef;
22 }
23
24 # post_backup(&files)
25 # Called after the files are actually read
26 sub post_backup
27 {
28 return undef;
29 }
30
31 # pre_restore(&files)
32 # Called before the files are restored from a backup
33 sub pre_restore
34 {
35 return undef;
36 }
37
38 # post_restore(&files)
39 # Called after the files are restored from a backup
40 sub post_restore
41 {
42 &apply_table_changes() if (!$config{'manual_build'});
43 return undef;
44 }
45
46 1;
47