The SYSCS_UTIL.SYSCS_BACKUP_DATABASE system procedure backs up the database to a specified backup directory.
See "Using the backup procedures to perform an online backup" in the Derby Server and Administration Guide for more information on using this procedure.
SYSCS_UTIL.SYSCS_BACKUP_DATABASE(IN BACKUPDIR VARCHAR())
No result is returned from the procedure.
If authentication and SQL authorization are both enabled, only the database owner has execute privileges on this procedure by default. See "Enabling user authentication" and "Setting the SQL standard authorization mode" in the Derby Developer's Guide for more information. The database owner can grant access to other users.
The following example backs up the database to the c:/backupdir directory:
CallableStatement cs = conn.prepareCall ("CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE(?)"); cs.setString(1, "c:/backupdir"); cs.execute(); cs.close();
The following example backs up the database to the c:/backupdir directory:
CALL SYSCS_UTIL.SYSCS_BACKUP_DATABASE('c:/backupdir');