How can a make a copy of a Site Collection and to another Web Application?

Michael Williams 21 Reputation points
2023-02-02T03:45:49.57+00:00

How can a make a copy of a Site Collection and to another Web Application?

Microsoft 365 and Office | SharePoint | Development
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 24,951 Reputation points Moderator
    2023-02-02T07:01:59.1933333+00:00

    Hi @Michael Williams ,

    Please follow the below steps:

    • Ensure that you have enough space available on the server.
    • Open SharePoint PowerShell and ensure that you are running it as administrator.
    • First take backup of the source site collection as below:
    Backup-SPSite https://source-sitecoll-url -Path "C:\Backup\sourcesitecollection.bak" 
    
    
         This command will take the backup of the site collection and store it inside the `bak` file on the server.
    
    • After that create a new web application (skip this if already created).
    • Now create an empty site collection in the new web application.
    • After that you can restore it as below:
    Restore-SPSite https://destination-sitecoll-url -Path "C:\Backup\sourcesitecollection.bak" -Force
    
    
         This will restore the site collection from the backup file. Here, `Force` parameter is optional.
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.