Chapter4.Using the Akeeba Backup component

Chapter4.Using the Akeeba Backup component

Table of Contents

1. Custom administrator menu items
1.1. Control Panel
1.2. Backup
1.3. Configuration
1.4. Manage Backups
1.5. Restore Latest Backup
1.6. Site Transfer Wizard
1.7. What to do if you don't have any menu items to Akeeba Backup
2. Pages outside the Control Panel panes
2.1. Common navigation elements
2.2. The Control Panel
2.2.1. Additional controls, warnings and error messages in the Control Panel
2.2.1.1. Web Push controls
2.2.1.2. Full page errors
2.2.1.3. Download ID messages
2.2.1.4. Media files' permissions
2.2.1.5. CloudFlare RocketLoader
2.2.1.6. Missing mbstring
2.2.1.7. Obsolete PHP version
2.2.1.8. Front-end backup Secret Word
2.2.1.9. Insecure output directory
2.2.1.10. Configuration Wizard
2.2.1.11. Migrate your settings from an older Akeeba Backup version
2.2.2. Editing the component's Options
2.2.2.1. Back-end
2.2.2.2. Front-end backup
2.2.2.3. Push notifications
2.2.2.4. Permissions
3. Basic Operations
3.1. Profiles Management
3.2. Configuration Wizard
3.3. Configuration
3.3.1. The main settings
3.3.1.1. Basic Configuration
3.3.1.2. Advanced configuration
3.3.1.3. Site overrides
3.3.1.4. Optional filters
3.3.1.5. Quota management
3.3.1.6. Fine tuning
3.3.2. Database dump engines
3.3.2.1. Native MySQL Backup Engine
3.3.3. File and directories scanner engines
3.3.3.1. Smart scanner
3.3.3.2. Large site scanner
3.3.4. Archiver engines
3.3.4.1. ZIP format
3.3.4.2. JPA format
3.3.4.3. Encrypted Archives (JPS format)
3.3.4.4. DirectFTP
3.3.4.5. DirectFTP over cURL
3.3.4.6. DirectSFTP
3.3.4.7. DirectSFTP over cURL
3.3.4.8. ZIP using ZIPArchive class
3.3.5. Data processing engines
3.3.5.1. No post-processing
3.3.5.2. Send by email
3.3.5.3. Upload to Amazon S3
3.3.5.3.1. Automatic provisioning of Access and Secret Key on EC2 instances with an attached IAM Role
3.3.5.3.2. Setting up Wasabi
3.3.5.4. Upload to BackBlaze B2
3.3.5.5. Upload to Box.com
3.3.5.6. Upload to CloudMe
3.3.5.7. Upload to DreamObjects
3.3.5.8. Upload to Dropbox (v2 API)
3.3.5.9. Upload to Google Drive
3.3.5.10. Upload to Google Storage (JSON API)
3.3.5.11. Upload to Google Storage (Legacy S3 API)
3.3.5.12. Upload to OneDrive and OneDrive for Business
3.3.5.13. Upload to OneDrive (LEGACY)
3.3.5.14. Upload to OneDrive (App-specific Folder)
3.3.5.15. Upload to Microsoft Windows Azure BLOB Storage service
3.3.5.16. Upload to OVH Object Storage
3.3.5.17. Upload to OpenStack Swift object storage
3.3.5.18. Upload to RackSpace CloudFiles
3.3.5.19. Upload to Remote FTP server
3.3.5.20. Upload to Remote FTP server over cURL
3.3.5.21. Upload to Remote SFTP server
3.3.5.22. Upload to Remote SFTP server over cURL
3.3.5.23. Upload to SugarSync
3.3.5.24. Upload to iDriveSync
3.3.5.25. Upload to WebDAV
3.4. Backup now
3.4.1. Troubleshooting backup issues
3.4.1.1. Backup fails after switching to another browser tab, browser window or application
3.4.1.2. Where are my backup files?
3.4.1.3. How can I download my backup files?
3.4.1.4. Why do I get warnings about unreadable files or folders?
3.4.1.5. I got an "AJAX loading error" when backing up. What should I do?
3.4.1.6. My backup files are not being uploaded to Amazon S3
3.4.1.7. How do I know that my backup archive works?
3.4.1.8. What happens if I have a backup or restoration problem?
3.5. Manage Backups
3.5.1. Integrated restoration
3.5.2. Downloading backup archives
3.5.3. Manage remotely stored files
3.5.4. How the Manage Backups page works with local and remote backup archive files and where quota management fits in
3.6. Import archives
3.7. Import archives from S3
3.8. View Log
4. Include data to the backup
4.1. Multiple Databases Definitions
4.2. Off-site Directories Inclusion
5. Exclude data from the backup
5.1. Files and Directories Exclusion
5.2. Database Tables Exclusion
5.3. RegEx Files and Directories Exclusion
5.3.1. Regular Expressions recipes for files and directories
5.4. RegEx Database Tables Exclusion
5.4.1. Regular Expressions recipes for database tables
6. Automating your backup
6.1. Taking backups automatically
6.1.1. Front-end backup, for use with CRON
6.1.2. Remote JSON API
6.1.3. Native CRON script
6.1.4. Alternative CRON script
6.1.5. Joomla Scheduled Tasks (without CLI)
6.1.5.1. The two Akeeba Backup task types
6.1.5.2. DANGER AHEAD: Caveats on using Joomla Scheduled Tasks.
6.1.5.3. Setting up your site for lazy backup scheduling
6.1.5.4. Setting up your site for scheduling using a URL CRON job
6.1.5.5. Setting up your site for scheduling using a CLI CRON job
6.2. Checking for failed backups automatically
6.2.1. Front-end backup failure check, for use with CRON
6.2.2. CRON script for backup failure check
6.2.3. Alternative CRON script for backup failure check
6.3. Checking for failed uploads automatically
6.3.1. Front-end backup upload failure check, for use with CRON
6.3.2. CRON script for backup failure check
6.3.3. Alternative CRON script for backup failure check
7. Site Transfer Wizard
8. Akeeba Backup and the Joomla! custom public folder feature
8.1. What is a custom public folder?
8.2. Backing up a site with a custom public folder
8.3. Restoring a site with a custom public folder, keeping the custom public folder
8.4. Restoring a site with a custom public folder, without keeping the custom public folder
9. Implementing incremental backups
10. Remote Storage and OAuth2 Helpers
10.1. Understanding OAuth2
10.2. Custom OAuth2 helpers for more than one sites
10.3. Custom OAuth2 helpers by storage provider
10.3.1. Box.com
10.3.1.1. Creating the custom helper
10.3.1.2. Using the custom helper
10.3.2. Dropbox
10.3.2.1. Creating the custom helper
10.3.2.2. Using the custom helper
10.3.3. Google Drive
10.3.3.1. Creating the custom helper
10.3.3.2. Using the custom helper
10.3.4. OneDrive
10.3.4.1. Creating the custom helper
10.3.4.2. Using the custom helper

This chapter documents all pages and features of the Akeeba Backup component. We decided to organise it by each core Joomla feature or component page you will see using our extension. When there is an interconnection between features we attempt to provide links between the documentation pages and adequate information to explain this interconnection.

1.Custom administrator menu items

Joomla allows you to create custom administrator menus. This is a very powerful feature, allowing you to customise the backend Joomla interface for your clients to provide better User Experience e.g. by creating task-based menu items instead of the generically-named default Joomla menu items. Akeeba Backup offers full support for this feature.

Most of Akeeba Backup's custom menu item types were created with site integrators and web site agencies in mind. Typically you want to offer your client a simple, obvious way of doing backup operations (take, restore or transfer backups). Up until now you had to tell them to go to the quite busy Akeeba Backup page and click on just the one thing you want them to. As we all know, clients get easily distracted and start changing things they shouldn't be touching. The custom menu types below are designed to offer perfectly tailored access to the component areas that most users need. Taking and restoring a backup can become a no-brainer, reduced to simply clicking on a back-end menu item.

1.1.Control Panel

This menu item type lets you access Akeeba Backup's main page (control panel). This is the same menu item type Joomla! creates by default when you install the component.

Please remember that excluding files, folders and database tables as well as including external folders and additional databases (for the Professional edition) can only be done through the Control Panel page. It's always a good idea having a link of this type in your custom menu.

1.2.Backup

This menu item type allows the users to take backups. The default options let this work just like clicking on the Backup Now icon in Akeeba Backup's Control Panel page, i.e. the user can select an alternative backup profile, enter a backup description and/or comment and then take a backup or change their mind and return back to the Control Panel page. However the additional options let you do more interesting stuff.

The available options are:

Force backup profile

Select the backup profile which will be pre-selected in drop-down of the Backup Now page. Selecting (None) default to the currently active backup profile, as selected in other pages of the Akeeba Backup component. By default that's profile #1. This is especially useful with the Start immediately option below.

Start immediately

When enabled the backup will start right away, without asking the user to enter a backup description or comment and without the option to change their mind. This is equivalent to using the One Click Backup feature inside Akeeba Backup.

We strongly recommend using this with the Force backup profile option above. Use it to set up which profile you want the backup to be taken with. This allows you to set up one-click backup menu items.

Hide toolbar

When this option is disabled the user will see the Control Panel and Help buttons at the top of the page. The former will take them back to Akeeba Backup's main page whereas the latter opens the documentation page for the Backup Now page. If you are setting up a one-click backup menu item with the options above it's a good idea to enable this option to hide these buttons. That's especially useful when you are setting up a simple menu for use by your client and you don't want them to accidentally cancel the backup by clicking on these buttons.

Return URL

Set up an internal URL to redirect the user after a successful backup. An "internal URL" is a URL pointing to a page in your site's administrator area, without the domain name and /administrator/ part of it. For example, to take someone back to the Joomla! main page set this to index.php without anything else before or after it. To take someone back to Akeeba Backup's main page set this to index.php?option=com_akeeba.

Warning

Due to the way Joomla's menu manager works, it expects the URL to be URL-encoded. This means that question marks must be replaced %3F and so on. Don't worry about it. Enter the URL regularly and save the menu item twice in a row. We have employed a trick to force URL-encoding of the value when re-saving the menu item. Unfortunately due to a missing feature in Joomla's API we can't employ the same or a similarly clever trick the first time you save the URL.

1.3.Configuration

This menu item type allows the users to modify the main configuration of the current backup profile. It's equivalent to pressing the Configuration button in Akeeba Backup's main page.

1.4.Manage Backups

This menu item type allows the users to manage backup attempts. This includes viewing all backup attempts, viewing / changing the backup description and comments, have access to logs, download the backups, manage remotely stored backups and restore any of the past backups (as opposed to only the latest backup). It's equivalent to pressing the Manage Backups button in Akeeba Backup's main page.

1.5.Restore Latest Backup

Note

This menu option type is only available and will only work with Akeeba Backup Professional.

This menu item type allows the users to restore the latest backup taken with the specified backup profile. This is especially useful if you teach your site administrators (or the clients for whom you're building sites) to take a backup right before trying to do something which could go wrong such as updating a component, changing configuration settings or doing batch operations on content.

The only option is Backup Profile which lets you choose which backup profile's latest backup attempt will be restored.

Idea: use the same profile you've set up in a menu item of the Backup type that you've told the client to always use before any dangerous operation. This way you can offer your clients an easy way to undo their most common mistakes!

1.6.Site Transfer Wizard

Note

This menu option type will only work with Akeeba Backup Professional.

This menu item type allows the users to transfer and restore the latest backup on a different server. It's equivalent to pressing the Site Transfer Wizard button in Akeeba Backup's main page.

Idea: you can train your clients to use this to deploy a site from the staging to the live server.

1.7.What to do if you don't have any menu items to Akeeba Backup

Depending on how you've set up your site's administrator menu and/or if you've hit a Joomla! bug that sometimes occurs on extension update you may end up without a menu item to Akeeba Backup. Other times you may have deliberately chosen not to display a menu to Akeeba Backup to keep clients from changing the backup settings. The question remains. How can you access Akeeba Backup and how can you restore menu items manually?

The following instructions are generic Joomla! usage tips and don't have to do with how our software works. We provide them as a courtesy. If these instructions don't work for you please do not contact Akeeba Ltd for support. We cannot offer support for generic Joomla! use. Instead please do ask for help in the Joomla support forum at http://forum.joomla.org.

Accessing Akeeba Backup

You can always access Akeeba Backup by visiting the /administrator/index.php?option=com_akeebabackup URL on your site, after logging in to your site's back-end.

That is to say, if your site's administrator URL is http://www.example.com/administrator/index.php enter the URL http://www.example.com/administrator/index.php?option=com_akeebabackup in your browser's address bar to access Akeeba Backup.

Restoring Joomla's default administrator menus

You need to access the /administrator/index.php?option=com_modules URL on your site, after logging in to your site's back-end.

From the drop-down that currently reads Site select the option Administrator.

Find the module which displays your administrator menu. Usually it's called Admin Menu. Click on it to edit it.

From the Menu To Show drop-down select Use System Preset. Then click on Save & Close.