Joomla! Tutorials
How to Backup Joomla! Manually

How to Backup Joomla! Manually

To create a backup copy of your Joomla! site manually, you need to archive the two parts of the application – all Joomla! files and its database. This tutorial explains how to create a local copy of those two parts of your website.

Backup your Joomla! files

You can always use an FTP client to transfer all Joomla! files and folders to your local hard drive. However, Joomla! comes with more than 3000 core files. Add your actual media content – photos, videos, extensions, etc. and that number will grow even bigger. This means that if you decide to transfer your files via FTP it may take some time because multiple small files are slower to transfer than one big file. A more efficient way to transfer your files is to compress them first into a single ZIP file using the File Manager tool in Site Tools. To do this navigate to the main folder of your Joomla! installation. For the purpose of this tutorial, we will use the primary website which is located under public_html. Select the folder and click on Archive in the top part of the page.

Now, add a name for your archive and press Confirm. File Manager will create the archive of all the files and folders you’ve selected.

Once you have created the archive of your files you can download it either through an FTP client or navigate to the file using a regular browser to download it on your hard drive. To use the second option move the archive under your public_html folder by using File Manager.

Backup your Joomla! database

There are two ways to create a backup of your Joomla! database. The first one is via the SSH console and the second option is to use the phpMyAdmin tool in your Site Tools. Either way, you need to know your Joomla! MySQL database name, username and the password for it. To obtain this information, open the configuration.php file in the Joomla! root directory. In it, locate the following lines that contain the database credentials.

public $user = 'username';
public $password = 'password';
public $db = 'database';

Once you have that information, you can proceed with the actual backup creation.

Backup your Joomla! database using SSH

To create a backup of your Joomla! database via SSH, first you need to access your account. To do that, you can check our SSH Tutorial. Next, navigate to your Joomla! site folder. Here, use the mysqldump command and the information you’ve obtained from the configuration.php file to create a backup of your database:

mysqldump -uusername -ppassword database > db-backup.sql

Finally, navigate with your browser to yourdomainname.com/db-backup.sql and download the backup of your Joomla! database locally.

Backup your Joomla! database using phpMyAdmin

First, log in to your Site Tools and go to Site > MySQL > phpMyAdmin:

Now, you have to select the database you want to backup. All your databases will be listed on the left menu of phpMyAdmin. You will get the actual name of your database from the configuration.php file mentioned above.

Next, select your Joomla! database and press Export from the top menu in phpMyadmin.

Leave the options to their default settings and press Go.

That’s it! phpMyAdmin will generate a backup of your Joomla! database which you can download and store on your local computer.

Share This Article