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.
Tags:Backup, build, check, command, configuration, configure, databases, directory, install, logs, mysql, passwords, risk, roots, what
you can also grab the RSS feed or Subscribe to Techgurulive by Email
































