Aug 28 2020 05:14 PM
Hi,
I have a few SharePoint sites hosted on SharePoint online. I need to export them, but I can't find how to export on the admin. I was wondering how to export the contents to my local machine? In SharePoint Server, the command to do this in PowerShell is "Export-SPWeb", but I can't find the equivalent command for Online.
Thanks,
Jason
Aug 29 2020 11:16 PM
You can do half of this using Get-PnPProvisioningTemplate - have a look here at how to include data in this export - https://medium.com/swlh/sharepoint-pnp-provisioning-with-data-move-your-contents-from-one-site-to-an...
Why do you need to copy it to your local machine?
Aug 31 2020 10:08 AM
@Andrew Hodges, Thanks for your tip. I tried the steps on the link. When I typed in the command "Connect-PnPOnline https://(domain)/sites/(mysite)/"
in PowerShell, I get the error "Connect-PnPOnline: the term 'Connect-PnPOnline' is not recognized as the name of a cmdlet, function, script file, or operable program."
Regarding downloading to my local machine, I thought I could download the content from the site, create a new site and then upload the content to the new site.
Sincerely,
Jason
Oct 20 2022 02:45 AM