eBackup - Scheduler Backup Job Help
-- Draft Version --
This page shows the settings for an existing or new scheduled backup job. The settings in this dialog will be stored into the
scheduler table and will be taken for an automatic backup job. For using the scheduled backup option some lines of code must be
implemented in the front end template. The following lines should be inserted before the closing body tag ("</body>").
The View is divided into 2 parts. On left side all tables of the system are listed. These tables can be selected for a scheduled
backup job. On right side all settings for a scheduled backup job available.
Each scheduled backup job gets his own Job ID by saving. This Job ID will be uses later on by creating the scheduled backup job
dump file. The filename has the following naming conventions ("databasename_JOBIDx_date_time.sql" or "databasename_JOBIdx_date_time.sql.gz").
For manually created backups the Job ID is 0.
<?php
if (file_exists($mosConfig_absolute_path."/components/com_ebackup/ebackup.php")){
echo "<img src=\".$mosConfig_live_site."/index2.php?option=com_ebackup\" width=\"0\" height=\"0\" alt=\"\" />";
}
?>
With these lines of code a checking for the next active scheduled backup job is done. If there is a scheduled backup job who reached
his next execution time the script calls eBackup. The visitor of the web site does not recognize this backup. eBackup calls the script in
background by loading it as a image. In most browser images are loaded asynchrony.
The script runs never more than one scheduled backup job for a website hit. The next job will be executed by the next hit of the website.
Is there a scheduled backup job with the schedule option "always" configured and active no other jobs will be executed.
The execution of eBackup can also be done by a Cron Job.
Toolbar Icons (Actions):
|
By clicking this button the action for saving the settings will be accomplished. The settings where stored into the scheduled backup job table.
|
|
By clicking this button the action for saving the settings will be accomplished. The settings where stored into the scheduled backup job table.
|
Left Site:
-
Shows all available tables in the system including the size, the number of record for each table. With the check boxes it's possible
to select the tables for a scheduled backup job. The check box in the title line of the table enables to select or deselect all tables.
Right Site:
-
Jobname
This input box gives the ability to define for each scheduled backup job a unique name.
-
Schedule
This select box inherited the possible schedule interval for backup jobs. The Options "always", "hourly", "daily", "weekly" and
"monthly" are selectable values. Is there a scheduled backup job with the interval "always" defined and active no other jobs will be executed!
-
Versions
This input box defines the number of versions they where stored for a scheduled backup job. If the number of versions is reached the
oldest scheduled backup job file will be deleted. This is also done one the remote FTP Server. If the number of version is 0 no
house keeping will be done.
-
Status (activ/inactiv)
This check box activates or deactivates a scheduled backup job. The same option is available in the Scheduler view.
-
Table Structure
This check box activates the table structure definition in the SQL Dump files for each table. If this check box is disabled only INSERT's are in the SQL Dump file.
-
With 'DROP TABLE'
Is this check box activated the "DROP TABLE IF EXISTS" statement is inserted into the SQL Dump files. This option deletes first
the table definition and all data in the table. The next SQL statement creates a new table structure. This option will have only
effect if the option "Table Structure" is enabled.
-
With 'IF NOT EXISTS'
Is this check box is activated the SQL statement "IF NOT EXISTS" is inserted into the SQL Dump file statement "CREATE TABLE".
This option checks the availability of a table structure. Is this table structure still valid no action will be done. Otherwise
the table structure will be created.
-
Add AUTO_INCREMENT-Value
Is this check box activated the statement "AUTO_INCREMENT" with the actual value will be attached to the table structure information's.
If there is no field with the option "AUTO_INCREMENT" defined a value of 0 will be added.
-
Complete 'INSERT's
Is this check box activated the "INSERT" statements gets full information. This option can be increase the performance by restoring tables.
-
Compress as gzip
Is this check box activated the SQL Dump file will be compressed in gz-format. The gz-format compresses the file in the same way like the zip-format.
By activating this option the "eMail for transfer" and "FTP transfer" option is activated.
-
MySQL Export-Compatibility
This selection box gives the ability to select the compatibility of the SQL statements in the SQL Dump files. It's important for
restoring the backup on older versions of MySQL Server.
-
eMail Address for transfer
This input box defines the eMail Address for transferring after successful created backup the SQL Dump file. The option is only
valid when the option "Compresses as gzip" is activated. For the transfer of the SQL Dump file via eMail enough memory in the
PHP session is necessary otherwise the transfer will aborted
-
FTP Server
This input box defines the FTP Server for transferring the SQL Dump file after successful creation. The option is only valid
when the option "Compresses as gzip" is activated. If the field is empty nothing will transferred.
-
FTP User
This input box defines the UserID for the account on the FTP Server. The option is only valid when the option "Compresses as gzip" is activated.
-
FTP Port
This input box defines the communication port with the FTP Server. For the most FTP Server the value of 21 is ok otherwise the
script is not able to communicate with the FTP Server. The option is only valid when the option "Compresses as gzip" is activated.
-
FTP Passiv
Is this check box activated the FTP protocol is initiated as passive. The option is only valid when the option "Compresses as gzip" is activated.
-
FTP Password
This input box defines the password for the authentification on the FTP Server. The option is only valid when the option "Compresses as gzip" is activated.
-
FTP Server Path
This input box defines the path for storing the SQL Dump files. The path definition should have no trailing salshes "/".The
option is only valid when the option "Compresses as gzip" is activated.