Exporting site from SharePoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-1620308%22%20slang%3D%22en-US%22%3EExporting%20site%20from%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1620308%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20few%20SharePoint%20sites%20hosted%20on%20SharePoint%20online.%20I%20need%20to%20export%20them%2C%20but%20I%20can't%20find%20how%20to%20export%20on%20the%20admin.%20I%20was%20wondering%20how%20to%20export%20the%20contents%20to%20my%20local%20machine%3F%20In%20SharePoint%20Server%2C%20the%20command%20to%20do%20this%20in%20PowerShell%20is%20%22Export-SPWeb%22%2C%20but%20I%20can't%20find%20the%20equivalent%20command%20for%20Online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJason%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1620308%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1621216%22%20slang%3D%22en-US%22%3ERe%3A%20Exporting%20site%20from%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1621216%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F736828%22%20target%3D%22_blank%22%3E%40JasonYeung%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20do%20half%20of%20this%20using%26nbsp%3BGet-PnPProvisioningTemplate%26nbsp%3B%20-%20have%20a%20look%20here%20at%20how%20to%20include%20data%20in%20this%20export%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmedium.com%2Fswlh%2Fsharepoint-pnp-provisioning-with-data-move-your-contents-from-one-site-to-another-in-sharepoint-ed009f4a9e58%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmedium.com%2Fswlh%2Fsharepoint-pnp-provisioning-with-data-move-your-contents-from-one-site-to-another-in-sharepoint-ed009f4a9e58%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20do%20you%20need%20to%20copy%20it%20to%20your%20local%20machine%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1623435%22%20slang%3D%22en-US%22%3ERe%3A%20Exporting%20site%20from%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623435%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214649%22%20target%3D%22_blank%22%3E%40Andrew%20Hodges%3C%2FA%3E%2C%20Thanks%20for%20your%20tip.%20I%20tried%20the%20steps%20on%20the%20link.%20When%20I%20typed%20in%20the%20command%20%22Connect-PnPOnline%20%3CA%20href%3D%22https%3A%2F%2F(domain)%2Fsites%2F(mysite)%2F%26quot%3B%2C%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2F(domain)%2Fsites%2F(mysite)%2F%22%3C%2FA%3E%3C%2FP%3E%3CP%3Ein%20PowerShell%2C%20I%20get%20the%20error%20%22Connect-PnPOnline%3A%20the%20term%20'Connect-PnPOnline'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%20file%2C%20or%20operable%20program.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegarding%20downloading%20to%20my%20local%20machine%2C%20I%20thought%20I%20could%20download%20the%20content%20from%20the%20site%2C%20create%20a%20new%20site%20and%20then%20upload%20the%20content%20to%20the%20new%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESincerely%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJason%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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

 

2 Replies
Highlighted

@JasonYeung 

 

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? 

 

 

Highlighted

@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