I decided to begin testing certain aspects of the cp, and the first thing is the backing up and restoring of a customers spaces. I had a customer that was setup, had installed wordpress on it, with a db, no ftp user, no mail, basically just the website, I ran a backup from the customers spaces location, this worked fine and created the backup 100%.
I then deleted the space, and then recreated the space with the same name, etc. I copied the backup to the backup folder ans then proceeded to run the restore, it asked for the file, I selected it and then the backup began. 3 seconds later the backup says its completed, no errors or anything. But investigating further no websites were restored, n dbs were restored either.
I opened the file with winrar and I can see all the database backups, and website files, etc, so the file is ok, but the restore was a no go.
Am I under the wrong impression or did I do something wrong, I am under the impression if a backup of a space is created, the restore from a backup would or should populate the system back to the way it was prior ?
So I tried it again with a fresh space back-up and again it failed. I did a search in the XML file for all instances of “packageId” and changed them to the new space ID. It did find a couple of instances with “PackageId” of -1 which were in the FTP, mail accounts etc, but they are different…. right?
I also changed the all instances of the original path e:\HostingSpaces\*spacename* to the new server’s location of C:\HostingSpaces\*spacename* and obviously left the rest of the content path (\*spaceURL*.com.au\www) in place where this was the case.
I then re-zipped the file with the exact same name structure (except for I left the extension as .zip) and uploaded it to the new server root and restored to no result. I then tried it again by renaming the new zip extension to .scpak, but that didn’t work either.
I just can’t work out why it won’t accept it?
- Views7360 times
- Answers13 answers