Skip to content

AlexeyM64/cmPurgeBackup

Repository files navigation

cmPurgeBackup

Quality Gate Status

cmPurgeBackup is an utility that can be used to erase old InterSystems IRIS/Caché/Ensemble Online Backup files. It runs as a Task Manager task. It is fully compatible with all predefined classes of backup tasks, such as FullDBList, IncrementalDBList, etc., and it does not require any changes to the code that is used in these tasks.

Objectscript contest template was used; Topic and Terms.

Prerequisites

Make sure you have git and Docker desktop installed.

Installation with ZPM

zpm:USER>install cmpurgebackup

Installation

  1. Open terminal and clone/git pull the repo into any local directory
$ git clone https://github.com/AlexeyM64/cmPurgeBackup.git
  1. In the same terminal run:
$ cd cmPurgeBackup; docker-compose build
  1. Run the IRIS container:
$ docker-compose up -d

How to Run the Application

Point your browser to System Management Portal and go to System > Task Manager > Task Schedule. You will notice two custom tasks: FullDBList and cmPurgeBackup. The first is scheduled to run on demand, the latter - to run on FullDBList completion.

Current setting of cmPurgeBackup is to leave the last Full Backup file (.cbk) only; you may change it if you wish. Possible task's settings are discussed in the correspondent Developer Community article.

Have fun!