From d60a19d1824901b86ea538e955d50c79fcf62141 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 18 Dec 2009 13:18:25 -0800 Subject: [PATCH] Configuration backup support, thanks to Caspar Smit --- bacula-backup/backup_config.pl | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bacula-backup/backup_config.pl diff --git a/bacula-backup/backup_config.pl b/bacula-backup/backup_config.pl new file mode 100644 index 000000000..ed0eff6e3 --- /dev/null +++ b/bacula-backup/backup_config.pl @@ -0,0 +1,38 @@ +do 'bacula-backup-lib.pl'; + +# backup_config_files() +# Returns files and directories that can be backed up +sub backup_config_files +{ + return ( $config{'bacula_dir'} ); +} + +# pre_backup(&files) +# Called before the files are actually read +sub pre_backup +{ +return undef; +} + +# post_backup(&files) +# Called after the files are actually read +sub post_backup +{ +return undef; +} + +# pre_restore(&files) +# Called before the files are restored from a backup +sub pre_restore +{ +return undef; +} + +# post_restore(&files) +# Called after the files are restored from a backup +sub post_restore +{ +return undef; +} + +1;