SymptomsThe following error is shown when I try to restore site with sbbackup:
~# cat SITE.DUMP | /usr/local/sitebuilder/utils/sbrestore site --name=<SITE "NAME"> --parent-name=<USER NAME> --with-site-content
Exception: 'PHP Warning : DOMXPath::query(): Invalid predicate' in file '/usr/local/sitebuilder/include/SB/BRU/Restore.php' on line 76
Please wait while the permissions are being set
What causes the problem and I to resolve it?
CauseThe error is caused by double quotes (") in site name: <SITE "NAME">.
ResolutionThe problem will be fixed in future update of Parallels Plesk Sitebuilder that is going to be released after 4.5.
Currently it is recommended to avoid usage of double quotes (") in site name.
Sites with single quote (') in name are restored correctly. Through Parallels Plesk Sitebuilder GUI it is possible to rename site. For that login to Parallels Plesk Sitebuilder and open the site: Sites -> <SITE NAME>. On page General change Site Name click button OK.
Additional informationUse the following commad to backup site <SITE NAME>:
~# /usr/local/sitebuilder/utils/sbbackup site --name=<SITE NAME> --parent-name=<USER NAME> --with-site-content > SITE.DUMP