Generate a backup of configutred files.
Description
This event handler can be configured to run a backup of a local set of files. The backup may be a complete backup or only the files that have changed since the last backup. The target can be the local file system or an HTTP post for offsite backup
Configuration
The configuration consists of one or more backup trigger events, these follow the standard format and therefore can be set to trigger on all sorts of conditions, typically the backup will be triggered on a time basis. Three sorts of backups can be triggered these are: i) FullBackup, ii) FullBackup if any files in the save set have changed and iii) Delta backup - only files that have changed.
FileSet
A fileset is a list of directories and files that comprise a single backup set.Destination
A destination configures the target for a set of files. The transport attribute selects the type of disposal method. Currently these can be file for local file creation, ftp for ftp put, https for https put and commandline for paassing to the local command shell for disposal.Example
<?xml version="1.0" encoding="utf-8"?>
<eventInterface module='EventHandlers.Backup' name='Backup`'>
<eventtype type="">
<eventsource source="time/minute" >
<event>
<params>
<testEq name="minute">
<value>1</value>
</testEq>
</params>
<!-- Check for changes to files in backup set -->
<checkBackup/>
</event>
</eventsource>
</eventtype>
<!-- The steps we want -->
<fileSet rootpath="" absolutenames="yes|no" basename="">
<!-- if path does not start with then it is assumed to be relative to rootpath -->
<file path="">
<directory path="" recursive="yes|no">
</fileSet>
<!-- Where to send backup -->
<destination transport="https"
address="silent"
nameTemplate="/BACKUP/bu_%(year)04u%(month)02u%(date)02uT%(hour)02u%(minute)02u00.zip" >
</destination>
<destination transport="file"
nameTemplate="./TestOut/bu_%(year)04u%(month)02u%(date)02uT%(hour)02u%(minute)02u00.zip" >
</destination>
</eventInterface>