Package com.jk.data.backup
Class AutomaticDBBackup
java.lang.Object
com.jk.data.backup.DataBaseBackup
com.jk.data.backup.AutomaticDBBackup
This class represents an automatic database backup utility that extends the
 
DataBaseBackup class.- Version:
 - 1.0
 - Author:
 - Dr. Jalal H. Kiswani
 
- 
Field Summary
Fields inherited from class com.jk.data.backup.DataBaseBackup
BACKUPS_FOLDER, IS_AUTOMATIC_BACKUP - 
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs a newAutomaticDBBackupand sets the backups folder. - 
Method Summary
Modifier and TypeMethodDescriptionThis method gets the output path where the backups will be saved.booleanThis method is yet to be implemented (TBI)protected booleanThis method checks if a backup for the current day has already been created.static voidThis method initiates the automatic database backup process in a separate thread.voidThis method sets the backups folder based on the configuration property.voidstartBackup(boolean overwrite) This method initiates the backup process.Methods inherited from class com.jk.data.backup.DataBaseBackup
isCompress, main, setCompress, setOutputPath, start 
- 
Constructor Details
- 
AutomaticDBBackup
public AutomaticDBBackup()This method constructs a newAutomaticDBBackupand sets the backups folder. 
 - 
 - 
Method Details
- 
processDatabaseAutobackup
public static void processDatabaseAutobackup()This method initiates the automatic database backup process in a separate thread. - 
getOutputPath
This method gets the output path where the backups will be saved.- Overrides:
 getOutputPathin classDataBaseBackup- 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.
 
 -