Configuration backup support, thanks to Caspar Smit
authorJamie Cameron <jcameron@webmin.com>
Fri, 18 Dec 2009 21:18:25 +0000 (13:18 -0800)
committerJamie Cameron <jcameron@webmin.com>
Fri, 18 Dec 2009 21:18:25 +0000 (13:18 -0800)
bacula-backup/backup_config.pl [new file with mode: 0644]

diff --git a/bacula-backup/backup_config.pl b/bacula-backup/backup_config.pl
new file mode 100644 (file)
index 0000000..ed0eff6
--- /dev/null
@@ -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;