Missing document libraries after doing a back up and restore

Tevon2.0 1,106 Reputation points
2023-06-09T19:51:36.1533333+00:00

Greetings,

I did a back up of a communication site from my prod SharePoint 2019 server and restored into my dev 2019 server using "Restore-SPSite -Identity <site_url> -Path <backup_file_path> -Force" but upon opening my site contents I noticed several document libraries were not restored. What could be the error and how can I ensure everything is brought over?

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

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2023-06-12T05:21:56.5033333+00:00

    Hi @Tevon2.0

    There could be several reasons why certain document libraries were not restored when using the "Restore-SPSite" command in SharePoint 2019. Here are a few possible explanations and steps to ensure everything is brought over successfully:

    1. Permissions: Ensure that the user account used to perform the restore operation has appropriate permissions to access and restore all the document libraries. Make sure the account has sufficient privileges at both the farm and site collection levels.
    2. Backup Integrity: Verify the integrity of the backup file you used for the restore. It's possible that the backup file itself is corrupted or incomplete, leading to the missing document libraries. You can try creating a fresh backup of the communication site and then restore it to your dev server.
    3. Site Template Compatibility: Verify that the communication site template used in the production environment is compatible with the development environment. There could be compatibility issues if the versions or configurations differ between the two environments.

    If the above steps don't resolve the issue, you can try an alternative approach to restore the document libraries. Instead of using "Restore-SPSite," you can try using a granular approach by exporting the document libraries from the production site using "Export-SPWeb" command and then importing them into the development site using "Import-SPWeb" command. This way, you can have more control over which libraries are restored and ensure that all the necessary data is brought over.


    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.