Welcome to MSDN Blogs Sign in | Join | Help

Brian Smith's Project Support WebLog

What's new and upcoming in the world of Microsoft Office Project Support (PSS).
Backup and Restore - what are the options?

A while back I posted about the backup and restore process and recommended using the SharePoint utility in Central Administration.  That is still my preference and I recently used this to rebuild my server farm including 3 servers, 2 shared service providers and a dozen PWA instances covering about 10 different languages.  I must admit it did take several attempts and my one big take-away is - try, try, try again until it all works in one go.  The process isn't very forgiving if one piece fails, so best to remedy the problem and run the whole restore again.  The problems I ran into were services that needed starting (Office search in my case, and the Project application) or databases I'd forgotten to delete.  Top tip number two is that if you have a complex restore to do and you are changing machine names, URLs, paths to db files, service accounts etc. it can be very tedious to edit these in the UI each time - particularly for all 12 PWA sites!  So a short cut is first to take a backup of the spbackup.xml file, and then edit the original and change the various things that need changing in the XML file.  It should be easy to work out what needs editing - especially if you have already been through the restore process a couple of times.

So this restore gets everything back how it was, on either the same server or a different configuration. 

What if you only have database backups?  What can you do and what do you lose?  This is a reasonably common scenario - particularly for people with a 2003 background who are used to working with just the WSS content db and the ProjectServer db.  But things have changed - and the main challenge is that the PWA site is now held within the content database.  This causes some issues as if you want to move the databases to another server you will need to re-provision this PWA site - and you can't do this against the same content db if it already exists.  And if you delete it then everything under /PWA is gone!  Which may well include any workspaces for your projects as this is the default location for them.  So you have a few options, and we will assume here that you are restoring and re-attaching your main content database to the default web site, and restoring your 4 project server databases.

  1. Re-provision your /PWA site to a different location - such as /PWA2, and all your old content will still be under /PWA and you will still be able to get to it.  This is a good way to work going forward as you now have two independent locations for your PWA site and your other WSS content.
  2. Don't attach the original content db and provision your PWA site to /PWA, then attach your content db to another web application (different port).  You can then re-link your projects to point to the different location for the content.
  3. An extension of option 2 - you could use stsadm export and import functions to copy the individual workspaces from their new location back under /PWA - and all is back how it was - well almost.

So what do you still lose by going this route?  Fidelity.  If you have customized your PWA site through site settings you will lose these changes using any method other than the SharePoint backup/restore.  As an example the following site was replicated using option 1 and the highlighted changes (and the colour from the theme) are lost in the restored site pictured below.  You do however keep any changes made through Server Settings such as menu edits (My Timecard in place of My Timesheets in the screen shots).

Original PWA Site

Restored PWA Site

I hope this helps understand what is stored where - and the challenges of moving data between servers, either for migration or disaster recovery.

Technorati Tags: Project Server 2007

Posted: Wednesday, October 24, 2007 9:09 PM by BriSmith

Comments

Steven Haden's Blog said:

A very good white paper has just been updated on Office Technet for MOSS: Data protection and recovery

# October 26, 2007 9:44 AM

Jochen Ruhland said:

Hi,

Sharepoint CA for backup is nice .. but can this process be automated? I can only see the option to manually trigger the backup. Ans as all the backups pile up in the file share, what is the proper was to delete old and unused backups?

# October 30, 2007 6:15 AM

BriSmith said:

Great question - and I don't have an immediate answer.  Not sure if the SharePoint whitepaper that Steve mentions in the comments above has the answer.

# October 30, 2007 11:27 AM

Jochen Ruhland said:

Hi,

yes this MOSS paper is great. Just for reference: http://office.microsoft.com/download/afile.aspx?AssetID=AM102447701033

It also talks about the deletion of old versions:

"You may want to use the backup file deletion script provided in the following Microsoft Knowledge Base article: How to automate the deletion of backups in SharePoint Server 2007 and in Windows SharePoint Services 3.0 by using a Visual Basic script (http://go.microsoft.com/fwlink/?LinkId=102617&clcid=0x409)."

# October 31, 2007 5:10 AM

Adrian Miller said:

When trying to restore my PWA Site to another server I got the following error:

"Can't obtain ProjectPSISharedApplication restoring ProjectSite"

What is my mistake?

# November 21, 2007 10:03 PM

BriSmith said:

What steps are you following?  You cannot use a partial farm restore between sites.  Either a full farm backup restore - or just the PWA databases and then provision a new site on the other server.

# November 22, 2007 2:14 PM

Patrick Guerra said:

We are in the 2nd category in that we restore from the database only. We recently had a crash and had to re-install Project Server 2007. We were able to restore all the data but now in PWA>Server Settings>Project Workspaces all the workspaces are blank. When we try to Edit Site Address, we get "The web site does not exist or is not configured for Project Server. Enter a web site that has been extended with a Project Server compatible template." Create Site returns site already exists and Delete Site returns No site exists. Everything else works fine. We can save, publish, etc. Do know why this might be happening?

# January 3, 2008 1:18 PM

BriSmith said:

Hi Patrick,

So a full farm backup would have avoided this problem :). This is probably caused by a change in the UID for the site hosting the worksapces.  In the _Published database, the MSP_Projects table has entries for the WPROJ_STS_SUBWEB_NAME and WSTS_SERVER_UID as well as entries for UIDs for the risks and issues lists.  These may be out of sync with the current UIDs of the site and lists. We should shortly be releasing a toll that will help to re-link in istuations like this that avoids you needing to edit the database directly - which of course I would never condone...

Brian.

# January 3, 2008 2:24 PM

Patrick Guerra said:

Thanks for the quick response. I would have loved to restore from a farm backup but we began from Beta to TR to RTM and have never been able to get the Central Admin Backup to work. We get access to database denied even after following all (and I have read several) instructions. BTW, your blog is awesome and is now at the top of my Favorites List.

# January 3, 2008 5:00 PM

Server Installation said:

Scenario:

--Started with a trial version of Project Server 2007;

--Trial period ended;

--Acquired a full licence key;

--Went into Central Admin to upgrade licence but it decide not to work.

--After many tries decided to backup the farm, remove the trial installation and then reinstall the server.Sounded logical;

--A million attempts later still cannot get the database to recover and successfully provision the website to work.

Any thoughts?

# January 21, 2008 7:28 PM

BriSmith said:

You haven't given me a lot to go on.  Not sure why the licence change would fail.  When restoring a full farm back up one tip I will give is that it needs to work in one go.  If you get errors on a specific part then you cannot easily recover - just resolve the specific issue and then start over again.

# January 22, 2008 11:45 AM

cesar cruz said:

Brian,

First of all I appreciate you providing answer to all questions posted here. I have posted two questions about project server 2007 in different blogs and three months later no response.

Question - I would like to copy my current production PWA site on a periodic regular basis to a new PWA instance. I run a weekly CA Farm backup and I know how to create a new instance. I have read many blogs and followed them to the letter but it does not work. Please let me know how I can accomplish this.

Thank You.

# March 12, 2008 2:09 PM

BriSmith said:

Hi Cesar,

We are looking at producing some tools to make this easier - but this isn't going to help you until late summer.  For now the options depend on what data you need to take across.  If you just want the PWA instance and can live without the WSS stuff such as documents, issues, risks and dependencies then backup the 4 project dbs, restore them on the other server then provision a new PWA site naming these 4 databases.  You could re-use and existing PWA instance by deleting it first.  If you need the WSS stuff then full farm backup/restore is best.  You do need to start with a clean new farm with just Central Admin up and running.  What problems are you seeing?

Best regards,

Brian.

# March 12, 2008 6:20 PM

Patrick Guerra said:

I have successfully created one farm backup. I gave our SQL Server access to the share and the backup worked once. But now it won't anymore. Nothing has changed. I deleted the Backup/Restore Timer Job, Reset IIS, checked the logon credentials for the Timer Service. I am stuck on "Preparing the current backup/restore job". Any suggestions? By the way, we also run MOSS 2007 and the backup works fine.

# March 17, 2008 1:34 PM

JPGuerra said:

Update on CA Backup hanging.  It appears that the job is hanging when it gets to the Search Database. It did not do this before.

# March 17, 2008 5:23 PM

JPGuerra said:

Update on CA Backup hanging. Apparently, the backup will hang (pause) when it gets to the Search Database and then will successfully complete. I do have another question. I am trying to setup a test environment which matches our production but the restore on the test seems to be pointing to production. I have renamed the ports and databases. Any thoughts?

# March 19, 2008 12:27 PM

BriSmith said:

Hi Patrick,

Did you update all the addresses when doing the restore?  What exactly is still pointing to production?

Brian.

# March 19, 2008 7:10 PM

JPGuerra said:

Sorry for the delay. I don't know if it was me or the way CA does a "New" Restore. I wanted to duplicate production but I kept getting failures until I renamed the databases. Then it completely restored to my test environment. Is this right because we are planning to re-install our production server and will be restoring the Farm?

# April 28, 2008 11:28 AM

BriSmith said:

Hi JP - Which databases did you need to rename?  Normally this is soemthing that will break Project - as each of the databases refers to the others - so without re-provisioning renaming will break these "hard-coded" links.

Best regards,

Brian.

# April 28, 2008 11:48 AM

nhannt said:

I received this error : An unexpected error has occurred.

# May 13, 2008 6:10 AM

BriSmith said:

Hi nhannt - you don't say where you see this error - but http://blogs.msdn.com/brismith/archive/2007/03/23/an-unexpected-error-has-occurred-or-unknown-error-in-wss-3-0.aspx may be a posting that will help you.

Best regards,

Brian.

# May 14, 2008 1:48 PM

JPGuerra said:

We (I) renamed them all. We tested this several times on a test server and it seems to work fine. Our scenario was this: We had a major crash after applying SP1 which corrupted the OS. We needed to reinstall the OS as well as the Application. We successfuly created a CA Backup and then installed a new server and application on a test server. We then RESTORED as NEW, renamed all the databases and it worked. We then successfully performed the same steps on the production server.

# May 20, 2008 12:08 PM

JPGuerra said:

I do have another question. Before and after our re-install, our WSS Alters are not going out. These are the Alters for documents, changes and uploads. We do not use alerts for Task Updates. We have un-installed our anti-virus in case that was blocking the Alerts. The Timer Service Account has full privileges to the database. When we set up the Alert, a notice goes out that the Alert has been created but then no alert goes out when a document is changed. Any thought? Thanks!!

# May 20, 2008 12:12 PM

BriSmith said:

Excellent news JP - glad it all went well.

# May 20, 2008 7:51 PM

BriSmith said:

Not sure about the alerts though - has the smtp changed - or do you need to make changes to reflect the new server sending out the alerts?

# May 20, 2008 7:54 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker