Step 1: Creating the backup
Create the backup by calling:
/opt/lampp/lampp backup
or
/opt/lampp/lampp backup secret
Where secret is your MySQL root password.
Step 2: Take care of your backuped data
The file /opt/lampp/backup/xampp-backup-22-01-04.sh (in the example above) contains your backuped data. Get this file to a save place.
Step 3: Restore your backuped data
On the new machine you need the same version of XAMPP as on your original/source machine.
Call (as root):
sh xampp-backup-22-01-04.sh secret
引用地址:http://www.apachefriends.org/zh_cn/faq-xampp-linux.html