Restoring a site after deploying a BOX

When deploying a BOX to the current site, Box Manager auto backs-up the site resource files/folders that are overwritten to $HCIROOT/box/backup/sitename/boxname-time .

The original file/folder structure is retained.

Sometimes, though, it may be necessary to restore a site after deploying a BOX. For example, a deployment is finished by accident, or a problem is discovered after the deployment. These must be rolled back to resolve the issue.

  1. Check if there are any folders under $HCIROOT/box/backup/sitename/boxname .
    If so, then there should be a file named database.ini. This file is a backup of $HCIROOT/server/database.ini.

    Copy this file from the backup directory to $HCIROOT/server.

  2. Copy all other files and folders to site directory, overwriting existing files.
  3. Check if there are any Tcl files in BACKUP_DIR/tclprocs.
    If so, then run the mktclindex command to re-generate the Tcl procedure indexes. For example:
    >setroot
    >mktclindex C:\cloverleaf\cis6.2\integrator\helloworld\tclprocs   
  4. Check if there is an XML package in BACKUP_DIR/formats/xml.
    If so, then open the IDE, and on the XML Package Manager, compile the DTD/XSD files in the corresponding packages.