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,106 Reputation points
2022-11-29T20:07:59.5+00:00

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
Server: Server1.abcdomain.com
SITE: http://testdev:33440

TO: Sharepoint 2019 Server
Server: Server2.xyzdomain.com
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.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yi Lu_MSFT 17,616 Reputation points
    2022-11-30T02:18:05.013+00:00

    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: Server2.xyzdomain.com, 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: Server2.xyzdomain.com.


    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.