We will be getting scenarios where we need to move the site collecitons from FARM to another FARM with in the Environment.
We need to keep in mind some of the Prerequisites for this
1. FARM Path level should be Same
2. Soluitons Deployed for the Web applications or sites should be avilable in the Target FARM
3. The account with which we are doing this TASK should be FARM account or Service account which has DBO rights on SQL server
4. Check the Database is not read only.
Server Name: ContosoSource Site Collection URL: http://contoso.comSource Site Owner: Contoso\Administrator.Goto the Command prompt and Change the Directory to below%Program Files%\Common Files\Microsoft Shared\Web Server Extensions\12\Bin\Take backup using following command:
stsadm.exe -o backup -url <url> -filename <filename> [-overwrite] [-nositelock]
STSADM.EXE –o backup –URL http://Contoso.com -filename “contoso.bak”
Now we need to restore this to another FARM:Login to the Server with Service account which has Admin rights on the Server and DBO Rights on SQL server so that we can write to the Database.
On the Destination Server:Server Name: TailspintoysTarget Site Collection URL: http://Tailspintoys.comService account: Tailspintoys/AdministratorCreate New Web Application from Central AdministrationNow restore using STSADM commandYOu can use the below Syntax
stsadm.exe -o restore -url <url> -filename <filename> [-hostheaderwebapplicationurl <web application url>] [-overwrite]
STSADM.EXE –o restore –URL http://Tailspintoys.com -filename “contoso.bak”
If you already have a site collection with Blank Template on this web applicaton you can use the -Overwrite switch
Change the site collection owner of this newly restored site
i there is an easier way for site collection backup
hi thanks for neat article. I have a question here. What about database of site collection being restored?