Class FBNBackupManager

    • Constructor Detail

      • FBNBackupManager

        public FBNBackupManager()
        Create a new instance of FBNBackupManager based on the default GDSType.
      • FBNBackupManager

        public FBNBackupManager​(java.lang.String gdsType)
        Create a new instance of FBNBackupManager based on a given GDSType.
        Parameters:
        gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVE
      • FBNBackupManager

        public FBNBackupManager​(GDSType gdsType)
        Create a new instance of FBNBackupManager based on a given GDSType.
        Parameters:
        gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVE
    • Method Detail

      • setBackupFile

        public void setBackupFile​(java.lang.String backupFile)
        Description copied from interface: NBackupManager
        Sets the location of the backup file.
        Specified by:
        setBackupFile in interface NBackupManager
        Parameters:
        backupFile - the location of the backup file.
      • addBackupFile

        public void addBackupFile​(java.lang.String backupFile)
        Description copied from interface: NBackupManager
        Add the file to the backup of the specified size. Firebird allows splitting the backup into multiple files, limiting the size of the backup file. This can be useful for example for creating a backup on CD or DVD.
        Specified by:
        addBackupFile in interface NBackupManager
        Parameters:
        backupFile - the location of the backup file.
      • backupDatabase

        public void backupDatabase()
                            throws java.sql.SQLException
        Description copied from interface: NBackupManager
        Perform the backup operation.
        Specified by:
        backupDatabase in interface NBackupManager
        Throws:
        java.sql.SQLException - if a database error occurs during the backup
      • setBackupLevel

        public void setBackupLevel​(int backupLevel)
        Description copied from interface: NBackupManager
        Sets the backup level (0 = full, 1..n = incremental)
        Specified by:
        setBackupLevel in interface NBackupManager
        Parameters:
        backupLevel - backup level (e.g. 0 = full backup, 1 = level 1 incremental backup based on level 0 backup
      • setNoDBTriggers

        public void setNoDBTriggers​(boolean noDBTriggers)
        Description copied from interface: NBackupManager
        Sets the backup option no database triggers when connecting at backup.
        Specified by:
        setNoDBTriggers in interface NBackupManager