Simple Scripted Database Backup

The simplest form of backup consists of backing up all database files in a synchronous fashion to a single backup location with no progress indications.

The following JADE script demonstrates how to use the backupAllDbFiles method provided by the JadeDatabaseAdmin class to accomplish this task. The backupAllDbFiles method manages backup transactions (beginBackup and commitBackup), enumerating files, and uses an exception handler to handle file not found exceptions. You could schedule such a method to run daily at a nominated time from a background JADE process (for example, a server application) using a JADE timer. The backup in this example excludes system files, as these files are not updated during normal operations.