Step by step how to migrate a SharePoint 2010 SQL Server
Here's a 4 step method to migrate SharePoint 2010 data from 1 SQL Server to another. This was the method I used for the "S" Network, combined with other steps, but this process migrated the data.
First, the commands. Each step is actually a script that hits each database. I chose to write out each command on a new line and just run it in the SQL query window. See http://www.sharepoint.name/2014/04/make-sql-server-write-its-own-scripts.html for that script.
First, the commands. Each step is actually a script that hits each database. I chose to write out each command on a new line and just run it in the SQL query window. See http://www.sharepoint.name/2014/04/make-sql-server-write-its-own-scripts.html for that script.
- BACKUP DATABASE [NAME] TO DISK = '\\PATH\FULL\NAME.BAK'
- RESTORE DATABASE [NAME] FROM DISK = '\\PATH\FULL\NAME.BAK' WITH NORECOVERY, REPLACE
- BACKUP DATABASE [NAME] TO DISK = '\\PATH\DIFF\NAME.BAK' WITH DIFFERENTIAL
- RESTORE DATABASE [NAME] FROM DISK = 'PATH\DIFF\NAME.BAK' WITH RECOVERY
- Start with a full backup of Production. This can be done without downtime.
- Restore to the NEW SQL database server.
- During the ASI downtime window turn off access to the SQL server (In SharePoint's case, I will turn off all front end web servers). this batch will perform a DIFFERENTIAL backup.
- Restore the differential backup to the new server
Comments
Post a Comment