Hey folks,
Many people have done this, and it seems there are several ways to do it. Some people merely copy overwrite development databases (four PS2010 databases) with fresh production databases. Others delete the development instance, and provision a new one using fresh production databases. Of the two methods, the second is definitely the superior choice. The method below is a third that uses the general approach as the second method above. The advantage to the method below, however, is it brings over the SharePoint content/Project Sites as well.
- Use the backup-spsite command to backup the SharePoint content (Site Collection) from the PROD instance
- Example 1: Backup-SPSite http://server_name/sites/site_name -Path C:Backupsite_name.bak
- Example 2: Get-SPSiteAdministration http://server_name/sites/site_name | Backup-SPSite -Path C:Backupsite_name.bak
- Example 3: Backup-SPSite http://server_name/sites/site_name -Path C:Backupsite_name.bak -UseSqlSnapshot
- Backup the 4 PROD Project Server databases from production and restore them to your development environment (typical names below)
- ProjectServer_Published
- ProjectServer_Reporting
- ProjectServer_Archive
- ProjectServer_Draft
- Delete the DEV instance (PWA and Site Collection)
- Navigate to the Project Server Service Application and Delete the development instance
- From within Central Administration –> Application Management, click delete Site Collection and delete the development site collection
- Create a new Site Collection from within Application Management
- Use the restore-spsite command to restore the SharePoint content into the new DEV Site Collection
- Example 1: Restore-SPSite http://server_name/sites/site_name -Path C:Backupsite_name.bak
- Example 2: Restore-SPSite http://server_name/sites/site_name -Path C:Backupsite_name.bak -Force -DatabaseServer SQLBE1 -DatabaseName SQLDB1
- Example 3: Restore-SPSite http://www.example.com -Path \file_serversharesite_name.bak -HostHeaderWebApplication http://server_name
- Build a PWA instance in the new DEV site collection from the copies of the 4 PROD databases
- Navigate to the Project Server Service Application
- In provisioning settings, specify the four databases from step 2 above
- In the new DEV instance: Fixup any hard coded links, change the cube name and build time, fixup the project site links with the bulk tool