Kubik-Rubik Joomla! Extensions

Kubik-Rubik Joomla! Erweiterungen - Viktor Vogel

EJB - Easy Joomla Backup

Easy Joomla Backup - Joomla! Component - Logo

Popular in the JED Joomla 2.5 native Joomla 3 native

Name: Easy Joomla Backup - Version: 2.5-3 / 3-2 - Type: Component and System Plugin - License: GPLv3
Description: EJB creates quickly and easily backups in Joomla!
Developed by:

Overview of all downloads of the extension: EJB - Easy Joomla Backup Downloads

If you use EJB - Easy Joomla Backup, please post a rating and a review at the Joomla! Extensions Directory.

Description

Create backups with Easy Joomla Backup - Files and database dump as a ZIP archive

Component: EJB - Easy Joomla Backup
Function: Creates backups of Joomla! websites - Full, Database and File Backup
Languages: English and German
Joomla Versions: 2.5 / 3.x

Easy Joomla Backup creates 'old-school' backups without any frills. All files and a full database dump are stored in one backup zip archive. With this archive you have all important data with which you can restore the website completely combined in one package. The backups are stored in a special folder which is not callable from the outside and can be managed easily using the component.

The component is intentionally kept simple, so as not to distract from the essentials: backing up the Joomla! website! In the overview you can find a complete list of all backups with a download option of the respective backup. The following action button can be found in the top bar: Full Backup, Database Backup, File Backup, Discover, Delete and Options (see tab Installation for more information).

The zip process is fast and resource optimized. The script tries to increase all relevant settings to prevent timeouts on big sites. If the hosting company does not provide enough resources or restrict the execution of long processes, then you will probably encounter some problems to create backup files on big sites. In that case you should exclude files or folders which you don't need to backup every time (e.g. images folder) or extend the resources with the help of your hosting company.

The component is based on my standalone script Kubik-Rubik Joomla! Backup Script, for which a good article with basic tips exists (in German only): Backups in Joomla! erstellen

Every administrator should regularly create backups to have the possibility to restore the working state in case of problems. Before any major changes (install updates or new extensions) the creation of a backup is absolutely essential!

Features

  • Create quickly and easily backups in Joomla!
  • Extension creates Backups of all files and the database
  • 3 different backup types: Full, Database and File Backup
  • All files and a database dump are packed into one ZIP archive
  • Extended ACL settings: Configure, Access Administration Interface, Delete, Download, Full Backup, Database Backup, File Backup, Discover
  • Easy recovery - files via FTP, database dump via a database tool, e.g. phpMyAdmin
  • Exclude files from the backup archive
  • Exclude folders from the backup archive
  • Add 'DROP TABLE' order to the dump file
  • Add additional tables from the database
  • System Plugin: EJB Cronjob

Installation

Install the extension in the backend under Extensions and configure it in Components - Easy Joomla Backup.

You can control the component using the buttons at upper right. All existing backups are listed in the main content area. The list can be searched to find a specific backup. The backup files can be downloaded in the last column of the corresponding backup entry. The download process can be executed via FTP or directly with a click on the archive name in the last column. The download option is only activated for user levels which have the needed rights to download the backup archives.

Explanation of each buttons:

  • Full Backup - creates a backup of all files and the database.
  • Database Backup - creates a backup of the database.
  • File Backup - creates a backup of all files.
  • Discover - synchronizes the entries of the backups from the database with existing files. If the files are missing, the entries are removed. If entries are missing but files exist, then new entries are created automatically.
  • Delete - deletes all selected entries and the corresponding backup files.
  • Options - opens the settings of the component (see below).

Following options can be adjusted in the settings:

  • Exclude files from backup archive - excludes single files from the backup archive. The complete path to the file starting from the root folder has to be specified for unique identification.
  • Exclude folders from backup archive - excludes folders from the backup archive. The complete path to the folder starting from the root folder has to be specified for unique identification.
  • Add 'DROP TABLE' instruction to dump file - adds the DROP TABLE order to the database dump. So the dump file can be imported directly into the same database without having to remove all tables first.
  • Add additional tables - adds additional tables to the dump which do not have the same prefix as the Joomla! tables (e.g. a Piwik installation on the same database).

Enter only one entry per line in all the text fields in the settings!

Each action can be accurately controlled through the internal ACL. In the settings you may define for every user group which actions can be performed. So you can allow downloads only for Super Users, but the creation of the backups also for Administrators.

You may occasionally encounter problems on very large sites due to limitations of the server. In such cases, you can solve problems by excluding folders or increase the limits by the hoster. I could backup a test site with over 4GB in my local test environment without incidents.

Important for the creation of an accurate and complete database file is the type of database connection. For a correct creation of the dump file the type Mysqli (note the i at the end) is necessary. This type can be set in the global settings and should be available on all common servers. The setting can be found: Site - Global Configuration - Server - Database Settings - Database Type

How to create a backup?

Select a backup type on the overview page and click on the corresponding action button. On the following page you can enter an individual comment for the backup, a further click on Create Backup starts the backup process. Depending on the size of the site, the process can take several minutes to complete. During this time, you should not clicking around on the page or close the window completely. After completion you will be automatically redirected back to the overview page.

How to restore from the backup archive?

It is very easy to restore the state of the website from the backup archive. The files have to be uploaded via FTP on the server, the database dump has to be imported into the database with the help of a database management tool like phpMyAdmin. That's all!

If you recover the website on a different server environment, then you of course have to enter the new database connection data and the new paths in the configuration.php. As I said, just 'old-school', as also with normal manual backups! :-)

Tip: With the script Kubik-Rubik Unzip Script you can extract ZIP files within seconds while restoring the website with the backup archive.

Cronjob - System Plugin

Easy Joomla Backup Cronjob - EJB Cronjob

EJB Cronjob is a helper plugin for the component Easy Joomla Backup. With this system plugin you may create backups completely automatically with cronjobs or a custom call! With the self defined token you can start the backup process directly from the frontend with the correct query parameters without having to login into the administration area.

How to use the cronjob functionality?

It is really easy! You have to add the cronjob parameters to the URL of the frontpage (or any other page in the frontend) to activate the backup process. You can use two parameters, one of them is mandatory, the other optional:

ejbtoken - this is the token which you have to set in the settings of the plugin. Only with the correct token you may execute the plugin. This parameter is mandatory.

ejbtype - with this parameter you may define the backup type: 1 - full backup, 2 - database backup, 3 - file backup. If you not use this parameter, then the plugin will use the type from the settings.

Example

In the settings the token is set to 's3cR3T!T0K3n', then a correct call could be with the type 'Full Backup':

http://www.example.com?ejbtoken=s3cR3T!T0K3n&ejbtype=1

Without the type: http://www.example.com?ejbtoken=s3cR3T!T0K3n

Replace in both examples the example domain with your own domain. Please use a strong token to avoid unauthorized calls!

Note: The plugin doesn't produce messages after it has been executed, this is not necessary for a cronjob script. The only thing is a redirection to remove the query parameters. If you want to test the functionality of this plugin, then go to the component and check whether the backup file is listed in the overview!

Attention: The backup process will get interrupted if the cronjob does not call the page until the end of the process. If you can not configure the cronjob to call the page until it is loaded completely - the server sends a valid HTTP status code as a response (here it is 303 See other due to the redirection to the frontpage), then you can bookmark the cronjob URL and still use this functionality to create backups manually from the frontend!

Tip: The cronjob service Webcron allows a very long execution time (timeout limit time) which enables the execution of the backup processes. The service is favorable (for 10 minutes cronjobs which should be enough for every backup type per execution only 0.001 Euro, it means 1000 cronjobs for 1 Euro) and can be paid with Paypal.

Changelog

+ = Added - ! = Removed - ^ = Changed - # = Fixed

Joomla! 3.x

Version 3-2 - 2014-02-08

  • ^ Improved the handling of NULL values
  • ^ Improved the handling of "\0" (ASCII 0 (0x00)), NUL-byte characters
  • ^ Improved output - added icons
  • ^ Updated custom fields

Version 3-1 - 2013-09-10

  • + First release for Joomla! 3 - based on version 2.5-2 with important modifications and optimizations for Joomla! 3.x
  • + This release is tested only with Joomla! 3.1.5 - do not use it in a lower Joomla! version. Do not report any problems with other Joomla! versions. Only the mentioned version is supported officially by EJB!

Joomla! 2.5

Version 2.5-3 - 2014-02-07

  • + Automatic comment from the Cronjob Plugin - if the backup process was executed by the cronjob plugin, then it is specified in the comment field
  • ^ Improved the handling of NULL values
  • ^ Improved the handling of "\0" (ASCII 0 (0x00)), NUL-byte characters
  • ^ Updated custom fields

Version 2.5-2 - 2013-07-03

  • + New Feature: Cronjob - with the new system plugin EJB Cronjob the backup process can be executed directly in the frontend. Use this feature to create recurring cronjob calls. This great feature will save you time and nerves. Configure the cronjob task, lean back and relax, EJB Cronjob will do the job for you! :-)
  • ^ Drop table - added IF EXISTS to the drop table order to avoid errors while importing the sql file in a different database
  • ^ Updated custom fields

Version 2.5-1 - 2013-05-18

First stable release with minor changes to the RC2 version

Version 2.5-1 RC2 - 2013-03-26

+ Feature: Add additional tables - with this feature additional tables which do not have the Joomla! prefix can be added to the database dump
# Wrong status notice after a download

Version 2.5-1 RC - 2013-03-19

+ First public release of the component

Download

Download - improved development versions exclusively for subscribers

-

Download - free, public versions

Overview of all downloads of the extension: EJB - Easy Joomla Backup Downloads

You are here: EJB - Easy Joomla Backup