Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Backup and restoreBackup and restore
Previous
 
Next
New Post
9/27/2006 3:58 AM
 

Hi,

 

I have created a site on local server, and it's running on DNN 4.3.5 with MS SQL Server Express. I want to learn how to backup and restore the site, so I did the following steps:

 

1.       Copied everything on my web site (every folders and files, including \App_Data folder with my database file in it) from local computer A.

 

2.       Created a new Virtual Directory on local computer B (that computer also has DNN 4.3.5 and SQL SERver Express installed).

 

3.       Pasted every files that I have copied from computer A into this new virtual directory folder on computer B.

 

When I browse to the new site that I have created, I got the following error message:

 

Error Installing DotNetNuke

Current Assembly Version: 04.03.05

ERROR: Could not connect to database specified in connectionString for SqlDataProvider

 

 

I am sure the connectionString is correct:

 

=======================================================================

<!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient" />

 

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>

=======================================================================

 

I know backup and restore the DNN site can't be just copy and past this easy, otherwise people won't sell Backup Module on Snowcovered.

 

I don't have much knowledge in database and SQL Server, and I know it's something wrong in database connection that caused the error. But I have no idea how and where to fix it.

 

Can someone please tell me why I can't simply backup and restore the DNN site to another computer? Is there anything else that I should do before I restore the site?

 

Thanks a lot!

Ting-Wei

 
New Post
10/2/2006 3:16 AM
 

Can anyone help me on this question? I just want to know why the backup and restore won't work on this way.

Thanks!

Ting-Wei

 
New Post
10/2/2006 7:29 AM
 
I don't think its possible to do a simple copy of the database file to backup the database. Things like the user account that has premission to the access the database tables are not stored in the DNN database itself. Also you would need to configure the database system to manage the DNN database. You should have a read of the SQL help files on how to backup a database. I think the minimum thats needed to backup a DNN site is
  • the files in the website folder
  • the database that forms the back end of DNN
  • the master database running on the database system
Hopefully people with more knowledge then me will be able to extend this list and expand the details.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Backup and restoreBackup and restore


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out