Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 12

Backing up and Restogin Joomla

Backing up Joomla Website


Restoring Joomla

By Margonz
You can download this at http://121.96.179.27/~margonz/joomla
Backing up Joomla Website
 Copying the Joomla Folder
 Dumping the Database from the server

Restoring Joomla
 Setting the Joomla Folder
 Dumping the Database to the new server
Copying the Joomla Folder
Locate the joomla folder (the one with
the name of your school)

Copy the whole folder into your flash


disks
Dumping database from the
server
Go to the terminal
Execute the command

mysqldump –u root –ppassword databasename >


~/Desktop/dbbackup.sql

- make sure the password and the database is correct and


the spaces and the letter cases are correct
- Goto the desktop and copy the dbbackup.sql file in your
flash disks.
Congratulations you have backed up
your web site!!!
Restoring Joomla to a new server

Copy both the joomla folder (the one


with the folder name w/ your school)
and the dbbackup.sql into your storage
folder
Goto the terminal and execute the
ff:
mysql –u root –ppassword

- the of the server at your school is also password unless


your have changed it
- mysql> at the left side should appear if the login
is successful
Execute the following at the mysql prompt
create database databasename;

the database name MUST match the


databasename of the original database
Execute the following at the mysql prompt
source ~/Desktop/dbbackup.sql;

rows ok must be displayed

Execute the following at the mysql prompt


exit;
At this point you must be at the
terminal
Execute the following at the mysql prompt
sudo ln –s /storage/joomlafolder
/var/www/joomlafolder;

Be sure the joomlafolder is the folder of school’s


web site

Execute the following at the mysql prompt


sudo chmod 777 –R /var/www/joomlafolder
Finally, execute the following

sudo gedit /storage/joomlafolder/configuration.php

Be sure the joomlafolder is the folder of school’s


web site
Find this line and change the password in
the single quotation
var $password = ‘whatever is the old
password’

var $lifetime = '15';


var $session_handler = 'database';
var $password = 'password';
var $sitename = ‘VSU';

Click save
Congratulations you have restored your
web site to a new server!!!

You might also like