Ant scripts for backup of OpenEdge databases.
This is a very simple Ant script to backup any number of databases, and handle the After Image Archive files for that database. This can very easily be incorporated into Jenkins to run on a schedule.
To run, install Ant. Install Ant Contrib. Customise backup.properties. Command line: ant -f DBBackup.xml
Not necessary but prints a basic list of property values to the terminal. Useful for problem determination when running automated under Jenkins
Backs up the actual databases. Runs offline or online depending on property value. Does not use probkup, but rather replicates the logic of this script, as Jenkins has a hard time getting return values from batch files.
Runs a partial verify of the backup file. Useful for checking there are no bad blocks.
Copies the backups offsite once we're happy they verify ok
Backs up any config you define
Copies After Image Archive files offsite. You may wish to have this in a separate script that runs more frequently.
Removes local aged After Image Archive files based on the retention policy set in the properties file
Removes local aged backup files based on the retention policy set in the properties file
Progress DLC directory to use
'online' will run an online backup. Anything else will run offline.
The number of Private Buffer (-Bp) to allocate for an online backup
The number of units of time for AI retention
The units of time for AI retention
The number of units of time for Backup retention
The units of time for Backup retention
The temp directory to use
Run scripts in parallel or not
How many pararallel threads to spawn
A comma delimited list of Database Logical Names to back up
There must be one of each for each database to be backed up
The physical folder the database .db file lives in
The filename (without extension) of the database
The local backup folder
The base name of the backup file. It will be datestamped for uniqueness.
The AI Archive Location
The offsite backup location. Currently only supports physical volumes, but you could wrap other backup solutions in here.
The offsite backup location for AI Archive files
A comma delimited list of any config files (absolute path) you wish to also keep a backup of.