-
Create a new Web Application on port 1 using a different name than the Project Web Access site to be restored.
-
Using the SharePoint Central Administration Web site, delete the content database that was created with the new Web application on port 1.
-
On the server that is running Windows SharePoint Services, enter the following commands at a command prompt:
cd \program files\common files\microsoft shared\Web server extensions\12\bin
Stsadm –o addcontentdb –url http://<servername>:1 –databasename <databasename>
The <servername> placeholder is the name of the server that is running Office Project Server 2007, and the <databasename> placeholder is the name of the content database. In SharePoint Central Administration, verify that the content database is attached as expected.
-
At a command prompt, type the following commands to get a list of all of PWA sites.
cd \program files\common files\microsoft shared\Web server extensions\12\bin
stsadm -o enumsubwebs -url http://<servername>:<port number>/<pwainstancename> > c:\sites.txt
The <port number> placeholder is the port where the site resides. In this scenario, the site was created on port 1.
The <pwainstancename> placeholder is the instance name for Project Web Access.
Important:
|
|
The stsadm command will save the Sites.txt file to the root directory of drive C.
|
-
Open the Sites.txt file in Notepad, and then make the changes as appropriate for the EXPORT command for your Project Web Access workspace.For each of the PWA sites listed in the newly created Sites.txt run the following command:
stsadm -o export -url "http://<servername>/<pwainstancename>/<workspacename>" -filename "c:\<backupdir>\<workspacename>\" -nofilecompression -includeusersecurity -versions 4
The <workspacename> placeholder is the name of the workspace, and the <backupdir> placeholder is name of the directory where you want to save a backup of the workspace.
-
On the File menu, click Save As, name the file Export<pwainstancename>.bat, and then save the file as a text file to the following directory:
drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Bin
-
Change the EXPORT command in the Sites.txt file to an IMPORT command. The following is an example of the IMPORT command:
stsadm -o import -url "http://<servername>/<pwainstancename>/<workspacename>" -filename "c:\<backupdir>\<workspacename>\" -nofilecompression -includeusersecurity
-
On the File menu, click Save As, name the file Import<pwainstancename>.bat, and then save the file as a text file to the following directory:
drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Bin
-
Run the Export<pwainstancename>.bat file. This may take a long time if there are many workspaces.
-
Provision a new Project Web Access site by using the same instance name and databases. Or, use a new instance name with the databases.
-
Run the Import<pwainstancename>.bat file.
Important:
|
|
This may take a long time if there are many workspaces.
|
-
Browse the Project Web Access site to make sure that the sites are functional.
Important:
|
|
If the project workspaces are not linked, you must either manually edit the URL of each project to its newly restored Project Workspace in the Project Workspaces section of PWA, or run the Project Workspace Site Relinker tool. For more information about this tool, see Project Workspace Site Relinker tool.
|
-
Delete the temporary Web application in SharePoint Central Administration, and then use Internet Information Services (IIS) to verify that it was removed.
-
Delete the restored content database on the server that is running SQL Server.