Forum Discussion
pratikdarak21
May 12, 2025Iron Contributor
How to archive site page/site ?
Is there anyway to archive site page / site in SharePoint Online ?
4 Replies
Sort By
- micheleariisSteel Contributor
You’re not going crazy 😄 modern Site Pages libraries don’t expose a “Download” button the same way document libraries do. Here are a few quick workarounds:
-Use Classic View-
-In the Site Pages library, click "All pages - View in classic SharePoint"
-Select your page, then click the ellipsis (…) → "Download a Copy"-Enable Offline Client Availability-
-Library settings - Advanced settings - set Offline Client Availability to Yes
-Sync the library with OneDrive; you’ll then see the files locally and can copy/download them.-Direct URL trick-
-Browse to the page’s raw URL:
https://yourtenant.sharepoint.com/sites/YourSite/SitePages/PageName.aspx?web=0
-Right-click the content area and "Save As" to get the .aspx file.-PnP PowerShell-
Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/YourSite -Interactive
Get-PnPFile -Url "/sites/YourSite/SitePages/PageName.aspx" -Path "C:\Backup" -AsFile
- pratikdarak21Iron Contributor
Thank you for sharing details !
- pratikdarak21Iron Contributor
Hi, Download option not available for Site pages library. Am I missing something ?
- micheleariisSteel Contributor
Hello,
– Single page: from Site Pages select - “Download” or with PnP PowerShell
Get-PnPFile –Url "/SitePages/MyPage.aspx" –Path "C:\Backup\" –AsFile
– Entire site: with PnP Provisioning
Get-PnPProvisioningTemplate –Out template.xml
– Retention to standard: Create a retention policy in Microsoft Purview.