Class AutomaticDBBackup

java.lang.Object
com.jk.data.backup.DataBaseBackup
com.jk.data.backup.AutomaticDBBackup

public class AutomaticDBBackup extends DataBaseBackup
This class represents an automatic database backup utility that extends the DataBaseBackup class.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • AutomaticDBBackup

      public AutomaticDBBackup()
      This method constructs a new AutomaticDBBackup and sets the backups folder.
  • Method Details

    • processDatabaseAutobackup

      public static void processDatabaseAutobackup()
      This method initiates the automatic database backup process in a separate thread.
    • getOutputPath

      public String getOutputPath()
      This method gets the output path where the backups will be saved.
      Overrides:
      getOutputPath in class DataBaseBackup
      Returns:
      output path where the backup data will be saved.
    • isAutomaticBackupAllwoed

      public boolean isAutomaticBackupAllwoed()
      This method is yet to be implemented (TBI)
      Returns:
      false.
    • isBackupCreated

      protected boolean isBackupCreated()
      This method checks if a backup for the current day has already been created.
      Returns:
      true, if a backup for today exists, false otherwise.
    • setBackupsFolder

      public void setBackupsFolder()
      This method sets the backups folder based on the configuration property.
    • startBackup

      public void startBackup(boolean overwrite)
      This method initiates the backup process.
      Parameters:
      overwrite - Indicates whether to overwrite an existing backup file or not.