Backup and restorat...
 
Notifications
Clear all

Backup and restoration of a customers space

14 Posts
4 Users
0 Reactions
4,261 Views
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

Ok also the physical path of the space also needs to be selected from the new space location ie "c:hostingspacestestdom".

In testing this I setup a hosting space on a server, created email accounts, mysql, mssql dbs, ftp accounts, website, domains, etc. By editing the backupcatalog file, and changing the packageid field in all the xml items, as well as ensuring the front portion of the paths are changed to the new path, the restores goes fine and all services are restored.

I would suggest that when backing up the space, the path to all the services ie the initial path to the space is not included in the xml paths, so that the path for the website would be changed for example from  <ContentPath>C:HostingSpaceidowebsiwww.idowebsites.co.zawwwroot</ContentPath> to <ContentPath>www.idowebsites.co.zawwwroot</ContentPath> this also would go for the log files, etc.

Then when restoring the backups the path form the space where the backup is being restored to is used and appended, creating the new correct path for the restored location. Doing this and substituting the packageid should then allow for any backup to be restored to a new location even if the space folder changes.

I am not sure how the serviceids will be effected across multiple servers, ie if the webspace is moved to a different server. I will test this tomorrow and give feedback.  Maybe an option to select the correct services on the new server or automatically learn the service id and subsitute it as well.

Reply
Posts: 27
(@newtothis)
Eminent Member
Joined: 7 years ago

Could you give me a step-by-step process of how you did this?

So far I took a Back-up .scpak from the Space Statistics page (bottom right) on the old server and then created a new account on the new server, then went to the same Space Statistics page and clicked the Restore link, located the uploaded .scpak and clicked the restore button. It then took 1 second and said it was successful, but did nothing, just like you said. I tried this with a website, domain and FTP account attached, then again without any of that, but still the same result. The paths you mentioned; where are they? Are they zipped within the .scpak file?

I have a lot of accounts to move and was hoping I would be able to use this feature, but so far I don't seem to be having any luck.

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

You basically open the zip file, either rename it to .zip or use a zip program that can open the file, rename is simplest.

Edit the backupcatalog.xml file.

You need to edit the packageid="xx" to the new hosting spaceid (goto spaces  in solidcp and put mouse over package to get new spaceid.)

You also need to edit all the paths if the paths have changed

Reply
Posts: 27
(@newtothis)
Eminent Member
Joined: 7 years ago

Thanks for your reply TechGuy; much appreciated.

I tried what you said but I still get 1 second of nothing when I click restore.

Here is exactly what I did; please tell me where I am going wrong:

  1. On old server space go to Space Statistics and click Back-up at the bottom right of screen.
  2. Download .scpak file once backup is complete
  3. Rename .scpak file extension to .zip and extract
  4. Open BackupCatalog.xml file and edit ALL instances of packageId within the file to new ID (taken from hovering mouse over package in new server Space to get new spaceid - in my case, from 358 to 10).
  5. Edit all instances of old server URL in XML file to new server Space URL (in my case C:HostingSpaces*space name*)
  6. Re-zip the XML and zipped data file into a new zip file and upload to new server space root directory.
  7. Go to new spaces Space Statistics page and click Restore at bottom right, locate zip file in root directory and click Restore button.

This is exactly what I did and it then took one second to say complete but did nothing.
What have I missed or what am I doing wrong?

Reply
Posts: 237
Topic starter
(@hxkd)
Reputable Member
Joined: 8 years ago

did you make sure you changed all the packageids and paths in the xml file and then update the zip with the updated file ?

You need to extract the xml file, edit it and then update the zip file with the updated xml again else it will not work.

Reply
Page 2 / 3
Share: