Our website hosts, One.com, provide a backup & restore service, but nevertheless our Site policy is to perform our own Backups sufficiently frequently to ensure that we have an independent means of recovering, and also a means of porting to another host should this ever be wished.

Backing up:

A Joomla package called Akeeba has been chosen for the purpose of making backups. To create a backup of the system, follow these steps:

  • You need to log in as a Super Administrator (for example user "suttonpoyntz").
  • In the Components menu, select Akeeba Backup.
  • Now click the Backup Now button;
  • If you want, enter text in the Backup Comment box;
  • Click the Backup Now button again to start the backup.
  • Wait for the backup to finish successfully. This takes time but you get good feedback on progress.

If the backup fails, check the configuration of the Akeeba Backup component (go to Akeeba Backup as above, and click the Configuration button). Akeeba have provided some special notes on how to Akeeba Backup must be configured for those using the one.com server.

 

Saving the backup files:

By clicking the Manage Backups button for Akeeba, you can see a list of the backups that have been done, and the files created. Each backup is spread over several files, with extensions .JPA, .J01, .J02, etc.

In principle, you can download the backup files to your computer from Akeeba's Backup Manager, but Akeeba have warned in the past that this is unreliable. There are two alternative methods of downloading the files:

  • by logging in to One.com's Control Panel and using their File Manager;
  • or by using an FTP client such as FileZilla to connect to One.com's FTP server.

In each case, you will need a password to gain access. You will need to navigate to folder \admistrator\components\com_akeeba\backup, where the backup files are held.

 

Restoring the website:

If the site becomes corrupted, or if you want to port the site to another server (such as /localhost on your own computer) it is possible to restore it, using the backup files:

  • If you are intending to restore to a sub-site (something of the form http://suttonpoyntz.org.uk/subsite) you need first to create the subdirectory; this can be done from the File Manager accessible after you log in via the One.com Control Panel, or in an FTP client such as Filezilla. You then need to ensure the subdirectory has write access rights, with access code 777 - this cannot be done via the One.com File Manager.
  • Now, upload the code and database backup file to the site's root directory (or the subdirectory you have just created) on the server:
    • Run your FTP client programme (such as FileZilla);
    • Connect to the server, at ftp.suttonpoyntz.org.uk. This will connect at the root directory - navigate to the subdirectory if necessary;
    • On you own computer, navigate to the folder where you stored the backup file;
    • Select the backup file(s), and initiate the transfer to the server.
  • Now, obtain and upload Akeeba Backup's kickstart.php;
    • If you have not done so before, obtain the Kickstart Zip file from the Akeeba Backup website. Extract the files from the zip file (the only one you need is kickstart.php);
    • Using your FTP client (as described just above), upload kickstart.php to the same website directory.
  • Run kickstart.php on the server, by navigating to suttonpoyntz.org.uk/kickstart.php in your web browser;
    • In the Kickstart wizard, select the backup file you want to restore from (if there is only one, it will already be selected);
    • Ensure that Write mode is set to Directly;
    • Click the Start button;
    • This will unpack the contents of the backup file into a temporary directory on the server. You must wait for it to finish.
  • Now click the Run button to run the Akeeba Backup Installer;
    • The first page displays the result of checks on the server setup. All the required settings should be green, so click Next;
    • The second page displays the setup for the site's database. The following table lists the values that should be shown here:
      Database type mysqli
      Server host name localhost
      User name suttonpoyntz_or
      Password (for suttonpoyntz_or)
      Database name suttonpoyntz_or
      Existing tables Drop existing tables
      Table prefix (see below)
      Foreign keys suppressed Yes
      Replace No
      UTF8 collation Yes
      Max execution time 5 seconds
    • Table prefix - If you are restoring to a new sub-site, you must change this to something new, a string of 4 or 5 characters plus an underscore. If you are restoring the main site, leave this as it is.
    • Having made sure the settings are correct, click the Next button to start restoring the site;
    • Wait for this to be completed; click OK when finished. While this is happening, the site will be unavailable;
    • The next page displays information about the restored site. Changes should not be necessary, so click Next;
    • Close the window with the Akeeba Backup Installer.
  • Now click the Cleanup button to remove temporary files.
  • If you changed the access rights for a directory, PLEASE now set it back to 755 to remove public write access.