PNP Powershell to backup and restore site collection on SP Online

Sherazad Ahmed 411 Reputation points
2022-06-10T20:39:04.77+00:00

Hello,

Is there a way to use PNP PowerShell to backup a site collection in SPOnline and restore it to another site collection on SPOnline? I am trying to make a backup copy of a production site to try some functionality.

thanks,
Sherazad.

Microsoft 365 and Office SharePoint For business Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2022-06-14T09:33:17.687+00:00

    Hi @Sherazad Ahmed

    There is no PowerShell command available for backup and restore in SharePoint Online.
    Meanwhile, here are some articles which will help you backup SharePoint online data manually:

    How to back-up a Office 365 SharePoint Online site and data
    Backup and restore strategy for SharePoint Online#SharePoint #Office365


    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.