How can I export a site collection from Sharepoint Server 2019 in a dev environmet and import it into a live environment.

Tevon2.0 1,101 Reputation points

Good afternoon,

I have just finished creating a SharePoint site in a dev environment and would like to export it into a live environment on another server. Can i copy the full site from one sharepoint server to another? Example of what I'm attempting below.

FROM: Sharepoint 2019 Server
SITE: http://testdev:33440

TO: Sharepoint 2019 Server
SITE: http://abc:63660

I have saved a backup from Central Administration into a folder called "SharePoint" on the server in the dev environment. Could someone please assist with the steps that need to be taken next.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,795 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,471 Reputation points

    Hi @Tevon2.0
    You could use two SharePoint Server 2019 Management shell command to achieve your requirement:

    1.Use this command to back up your site collection

    Backup-SPSite -Identity "http://testdev:33440" -Path "C:\backup\portal.bak" -Force -NoSiteLock -Confirm:$False  

    2.Just copy the backup file to the server:, put it in -Path "C:\backup", then use this SharePoint Server 2019 Management shell command to restore this site collection from your PC location:

    Restore-SPSite "http://abc:63660" -Path "C:\backup\portal.bak" -Force -Confirm:$False   

    As a result, you will see this site collection in Server:

    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.