所以我使用XAMPP备份和恢复工具从Mac上的本地XAMPP安装备份我的所有网站和数据库。有关如何执行此操作的说明,请参阅“备份/恢复我的XAMPP系统”下的XAMPP website。部分。备份的结果是一个900MB的shell脚本文件。
现在我只是尝试使用命令sudo /Users/Joel/Desktop/xampp-backup-18-05-15.sh
将脚本生成的备份文件恢复到XAMPP的新安装,但我收到了一些奇怪的错误:
Joels-MacBook-Pro-2:~ Joel$ sudo /Users/Joel/Desktop/xampp-backup-18-05-15.sh
Checking integrity of files...
egrep: md5sums: No such file or directory
md5: *: No such file or directory
Restoring configuration, log and htdocs files...
tar: Error opening archive: Failed to open 'data.tar.gz'
Checking versions...
cat: VERSION: No such file or directory
Installed: XAMPP 1.8.2-6
Backup from: XAMPP
The backup sofware is not able to handle different XAMPP versions.
Your backuped configuration from may not work with 1.8.2-6 and may need manually corrections.
XAMPP: Do you want to continue [nein] y
Let's try...
Restoring MySQL databases...
/Users/Joel/Desktop/xampp-backup-18-05-15.sh: line 184: *.sql: No such file or directory
* FAILED: cat: output: No such file or directory
Restoring MySQL user databases...
/Users/Joel/Desktop/xampp-backup-18-05-15.sh: line 193: mysql.sql: No such file or directory
MySQL user FAILED: cat: output: No such file or directory
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.
Joels-MacBook-Pro-2:~ Joel$
为什么我的上一个XAMPP安装版本在第12行显示?我实际上还不记得我安装了哪个版本的XAMPP,这是我的问题。有没有其他方法可以找到这个?
此外,还有其他人在此之前成功使用过此备份和还原脚本吗?如果因为这件事我失去了所有的工作,我会被彻底毁灭!!!