This Howtos posted under: Apache, LAMP, Linux, MySQL | Total Visitors Till Now: 232

Performing Backups XAMPP

So, your XAMPP installation has been up and running for a couple of weeks and you’ve amassed quite a sizeable set of data that you don’t want to be at risk from a hard drive crash. What do you do about backups?

This is quite simple with XAMPP. Change your current working directory to /opt/lampp (cd /opt/lampp) and type in the following command:

./lampp backup

You will want to add on your MySQL root password if you have it set to the end of that command. You should then see the following:

Backing up databases...
Backing up configuration, log and htdocs files...
Calculating checksums...
Building final backup file...
Backup finished.
Take care of /opt/lampp/backup/xampp-backup-15-09-04.sh

To restore your backup, run the following command as root:

sh backupfilename

You will see the following if all goes well:

Checking integrity of files...
Restoring configuration, log and htdocs files...
Checking versions...
Installed: XAMPP 1.4.7
Backup from: XAMPP 1.4.7
Restoring MySQL databases...
Restoring MySQL user databases...
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.

Restart XAMPP (cd /opt/lampp, ./lampp restart), and your restored data should be readily available.

Coolsearchinfo - A free Social Bookmarking Site

Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email

Not Getting



Related posts
  • How to Backup the entire Mysql Server Databases
    To backup the entire database of a Mysql Server use the mysqldump command, Please look at the below stated command.In that we are backing up the entire database to a...