I backed up my “/home/website/sitecreator/vhosts/wp4u2” using
tar cfv ddscprojects.tar sitecreator/vhosts/*
tar xfvp --same-owner ddscproject.tar
If you don’t have backups of your project and the only way is to restore your project from the published or live site. When ddsc publish files over FTP it remove the PageBuilder from the site and merge the files from the root directory and the one in the layers directory.
To restore published site you need to reinstall pagebuilder and cleanup the php pages in the project root directory.
sitecreator/vhosts/projectname
The clean up I did was removing all HTML code from the files in the root directory of the project.
Example of a page in the root directory of the project:
<?php /** Generated by the manageIncludes Event **/ $pageTitle = "Page Title"; $Author = "Philippe Lewicki"; $Keywords = "PAS Pagebuilder SQLFusion web site creation"; $Description = "Webpage content summary to enter here"; $background_color = "white"; include_once("config.php"); include_once("pb_globaldivs.sys.php"); include_once("includes/marketing_sky_header.inc.php"); include_once("includes/footer.inc.php"); include_once("layers/design_marketing_sky.php"); ?> <DIV id="DRAG_text_clientheader" style="top:181; left:380; height:26; width:232; position:absolute; visibility:visible; z-index:5; font-family:sans-serif; font-size:18px; font-weight:bold;" metainfo="execorder:30;"> <strong>Host4u2 Client Area Login</strong> </DIV> <DIV id="DRAG_text_clientheader" style="top:181; left:380; height:26; width:232; position:absolute; visibility:visible; z-index:5; font-family:sans-serif; font-size:18px; font-weight:bold;" metainfo="execorder:30;"> <strong>Host4u2 Client Area Login</strong> </DIV>
Result of the page after the clean up:
<?php /** Generated by the manageIncludes Event **/ $pageTitle = "Page Title"; $Author = "Philippe Lewicki"; $Keywords = "PAS Pagebuilder SQLFusion web site creation"; $Description = "Webpage content summary to enter here"; $background_color = "white"; include_once("config.php"); include_once("pb_globaldivs.sys.php"); include_once("includes/marketing_sky_header.inc.php"); include_once("includes/footer.inc.php"); include_once("layers/design_marketing_sky.php"); ?>
The HTML is already in the layers/ directory and when PageBuilder is installed it doesn’t need to be in the files in the project root directory.