4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
9 if ($config{'init_base'}) {
11 foreach $a (&list_actions()) {
12 local @ac = split(/\s+/, $a);
13 push(@rv, $ac[0] =~ /^\// ? $ac[0]
14 : "$config{'init_dir'}/$ac[0]");
15 if ($config{'daemons_dir'} &&
16 -r "$config{'daemons_dir'}/$ac[0]") {
17 push(@rv, "$config{'daemons_dir'}/$ac[0]");
19 local $ufile = "/etc/init/$ac[0]";
26 # Just bootup and shutdown scripts
27 push(@rv, $config{'local_script'});
28 push(@rv, $config{'local_down'}) if ($config{'local_down'});
34 # Called before the files are actually read
41 # Called after the files are actually read
48 # Called before the files are restored from a backup
54 # post_restore(&files)
55 # Called after the files are restored from a backup