Hỏi làm thế nào để sao lưu, khôi phục lại hệ thống Xampp?

Trả lời câu hỏi:

Chào bạn đọc. Bạn có thể tạo các bản sao lưu, khôi phục lại hệ thống Xampp bằng cách gọi: sudo /opt/lampp/lampp backuphoặc sudo /opt/lampp/lampp backup secret

Nơi “bí mật” là mật khẩu root MySQL của bạn. Lệnh này sẽ tạo ra các kết quả như sau:

Backing up configuration, log and htdocs files...
Calculating checksums...
Building final backup file...
Backup finished.
Take care of /opt/lampp/backup/xampp-backup-22-01-14.sh

Các /opt/lampp/backup/xampp-backup-22-01-14.sh tập tin (trong ví dụ trên) chứa dữ liệu sao lưu của bạn. Lưu file này ở một nơi an toàn.

Trên máy tính mới, bạn cần cùng một phiên bản của XAMPP như trên bản gốc nguồn máy / bạn.

sudo sh xampp-backup-22-01-14.sh

Bạn sẽ thấy một cái gì đó như thế này:

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

Last updated