Forum Discussion
Exporting site from SharePoint Online
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
4 Replies
- Andrew HodgesBronze Contributor
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-another-in-sharepoint-ed009f4a9e58
Why do you need to copy it to your local machine?
- JasonYeungBrass Contributor
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
- Hey there!
I stumbled over this thread so I think others may also do ;-).
It looks like you're missing the PnP Powershell module on your machine.
You can find a brief overview about it here: https://www.enito.ch/install-pnp-powershell-module-for-sharepoint-online