BackupScript module – Backup & Restore – Quick Guide

document version 2007.11.22

www.evotiva.com

 

 

BackupScript module – Backup & Restore – Quick Guide. 1

Abstract 1

Backup. 1

Prerequisites 1

Performing the backup. 1

Restore. 2

Prerequisites 2

Performing the restore. 2

 

Abstract

The document outlines how to backup a DNN web site (full backup) and restore it somewhere else (other server and/or database).

 

Backup

Prerequisites

 

 

Recommended, before performing the backup:

 

Performing the backup

 

To perform a full backup, be sure to enable at least the following settings (on the module’s settings page):

 

Regarding to the database backup:

 

(*)

If your hosting provider allows this setting ON, it’s advised to enable it.

You’ll be able to recreate any possible external object (e.g. table or procedure) at restore time.

“Script DataProviders” setting allows that all the DNN (core and 3rd party) database objects (tables, procedures, etc.) could be recreated at restore time.

If in the source database you have “external” objects (e.g. tables or stored procedures not created by the DNN core or any of the 3rd party modules installed) they cannot be recreated, unless you use the “Script Database Objects” feature.

 

 

Regarding to the portal files backup:

 

Restore

Prerequisites

 

Note: If you’ll use SQL Server Express, a blank Database.mdf under (web_root)\App_Data will be enough.

  (WebRoot)

+--- backup

+--- bin

 

Performing the restore

 

 

 

 

 

 

 

Then, configure at least these options:

 

·           Apply Providers: checked

·           Create objects: unchecked

·           Restore data: checked

 

·           Restore portal files (\Portals only): unchecked

·           Uncompress ALL portal files to .\WORK\Site: checked

 

 

 

 

You will see the progress of the restore operation until completed (a “(restore completed OK, <date time>)” message will be displayed when finished).

Please notice that the restore process may take some time, depending on your data volume.

 

Review the on-screen log - also written as a text file (mydatabase.sql.zip_RESTORE.log) – for any fatal error.

Some errors applying certain data providers are normal and expected. By “fatal error” we mean errors when restoring some table’s data.
If a “fatal error” happened, you will not see “restore completed OK” and the restore log will be red.

 

If the database restore failed, the portal files restore will not be executed.

 

 

Use the integrated  "SQL Query Tool" to check & update the PortalAlias table.

  -- first find the current alias(es) 
 
SELECTFROM {databaseOwner}{objectQualifier}portalalias

  -- then, update as needed:

  -- replace “www.mynewdomain.com” with your (new) domain name
  -- replace “1” with the right value
  UPDATE
{databaseOwner}{objectQualifier}portalalias
       SET
httpalias = 'www.mynewdomain.com'

     WHERE portalaliasid = 1;

 

Final steps: