Handle hostnames with upper-case letters
[webmin.git] / ldap-server / backup_config.pl
1
2 do 'ldap-server-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 if (&local_ldap_server() == 1) {
10         push(@rv, $config{'config_file'});
11         push(@rv, map { $_->{'file'} } &list_schema_files());
12         }
13 return @rv;
14 }
15
16 # pre_backup(&files)
17 # Called before the files are actually read
18 sub pre_backup
19 {
20 return undef;
21 }
22
23 # post_backup(&files)
24 # Called after the files are actually read
25 sub post_backup
26 {
27 return undef;
28 }
29
30 # pre_restore(&files)
31 # Called before the files are restored from a backup
32 sub pre_restore
33 {
34 return undef;
35 }
36
37 # post_restore(&files)
38 # Called after the files are restored from a backup
39 sub post_restore
40 {
41 if (&local_ldap_server() == 1) {
42         return &apply_configuration();
43         }
44 else {
45         return undef;
46         }
47 }
48
49 1;
50