Notes Database Backup ZIP Agent
Notes Database Backup ZIP Agent
Use this code in a (scheduled) agent to zip a selected set of Notes databases to a backup location
Replicate (or copy) databases to a temp directory
Zip the newly created databases to a backup directory
Cleanup the temp directory
To reduce complexity and set the main focus on the creation of replica’s and zip files, the following changes were made to the initial code:
only one hard-coded directory (Applications) is backed up in a zip file. You can change this in the code, extend the number of directories, exclude certain files, etc.
the logging of the agent was removed (text file in the backup directory)
This agent uses a LotusScript and a Java library
Java Library “zfmWrapper4LS”:
Import 2 files from this zip into the java library: zfmWrapper4LS.javalib:
Create a Java Library with title: zfmWrapper4LS
Import -> Archive -> ZipFileManager1_0.jar (from zip file above)
Import -> Java Source -> zfmWrapper4LS.java (from zip file above)
Delete Untitled.java
base class -> zfmWrapper4LS.class