4 # backup_config_files()
5 # Returns files and directories that can be backed up
6 sub backup_config_files
9 push(@rv, map { $_->{'file'} } &list_cron_jobs());
10 push(@rv, $config{'cron_allow_file'}) if ($config{'cron_allow_file'});
11 push(@rv, $config{'cron_deny_file'}) if ($config{'cron_deny_file'});
12 push(@rv, $config{'system_crontab'}) if ($config{'system_crontab'});
17 # Called before the files are actually read
24 # Called after the files are actually read
31 # Called before the files are restored from a backup
37 # post_restore(&files)
38 # Called after the files are restored from a backup
42 # Re-activate all user cron jobs
44 opendir(DIR, $config{'cron_dir'});
45 while($user = readdir(DIR)) {
46 system("cp $config{'cron_dir'}/$user $cron_temp_file");