Joomla site backup and restore
- Create Backup files
- Create a Backup of the Database
- Restore Backup files
- Restore the Database Backup
It is pretty simple. Let us move on to the details of each step.
- Create backup file
- Create db backup
- Restore file backup
- Restore database backup
This is so pretty simple. Let the individual details of each step.
Create Backup files
You need an ftp client: FileZilla is fine. Download a full copy of all the files. Anyway, having access to ssh host, I suppose, it would be better to make a whole compressed tar file. You will first copy the whole thing.
We transfer a copy of the files on your computer. Moving on.
Create a Backup of the Database
There are at least two solutions. The first is this. Act directly in the Terminal and execute the command mysqldump:
# mysqldump-u dbuser-ppassword dbjoomla > dbjoomla.sql # gzip dbjoomla.sql dbjoomla.sql.zip
Alternatively, you can use a phpmydmin Panel. I must say it is always less fashionable, and so is less frequently. In the event, normally just log into the Panel and then select the Database. Then there is the export command and follow the instructions below, making sure to export in compressed format ‘ gzip ‘. Now always with fileZilla, you can transfer a copy of the database on your PC.
Moving on.
Restore Backup files
If we had a compressed tar (tgz), trasferiamolo on new hosting, and then we get into ssh. You have to extract all the directory that will host the site.
If we made a copy of each file, then copy it with fileZilla individual files in the directory that will host the site.
Moving on.
Restore the Database Backup
In the new hosting, I doubt they’ll get phpMyAdmin. Anyway, if that is the case, do the same thing for the backup. Of course it starts with ‘ import ‘.
If, then, there is nothing but our beloved prompt … then, transfer the copy of the db on the new hosting and then scompattatela:
# gunzip dbjoomla.sql.zip
Then to restore the dump on the new database, using new database credentials, execute the following command:
# mysql-u dbuser-p [password][database_name]< dbjoomla.sql
Chances are good that you have done.
Create backup file
You need a ftp client: FileZilla will be fine. You nedd to obtain a full copy of all the files in your hosting. Anyway, having access to the host, ssh, it would be better to make a compressed tar file of the entire folder. It will take less time to copy everything.
# tar cvfz sito.tgz >/var/www/joomla/
User filezilla to take a copy on yout PC.
Go ahead!
Create database Backup
There are at least two solutions. The first is this. Act directly in the terminal and run the mysqldump command:
# mysqldump-u dbuser-ppassword dbjoomla > dbjoomla.sql # gzip dbjoomla.sql dbjoomla.sql.zip
Alternatively, you can use a panel phpmydmin. I must say that this is going out of fashion, and therefore is less frequently at your disposition. In case, it is usually sufficient to connect to the panel and then select the Database. Sothere is the Export command and follow the instructions that phpmyadmin tell; being careful to export in compressed format ‘ gzip ‘. Now more with FileZilla, you can transfer a copy of the database on your PC.
Go ahead!
Restore file backup
If we made a compressed tar (tgz), trasferiamolo on the new hosting, and then we go through ssh. You must extract all the directory that will host the site.
If we had a copy of individual files, then we copy with FileZilla individual files in the directory that will host the site.
Moving on.
Restore database backup form
In the new hosting, I doubt that you will have the phpMyAdmin. Anyway, if so, do the same thing back up. Obviously you start with ‘ Import ‘.
In the case, therefore, there is no other that our beloved prompt … then transferred to the copy of the db on the new hosting and then uncompress:
# gunzip dbjoomla.sql.zip
Next, to restore the dump on the new db, using your new account, type the following command:
# mysql-u dbuser-p [password][database_name]< dbjoomla.sql
There will be good chances that you have done.