Avatar of Neil Randall
Neil Randall
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Archiving SharePoint 2010 sites using PowerShell

I am having problem archiving my SharePoint sites.

Our one root site is https://sharepoint.ourcompany.co.uk. Under this we have 20 or so subsites - Job1, Job2, Job3 etc.
I used to run the following command to a folder on an external USB hard drive (G:). Now that folder is on a network share but still (G:). That is all that has changed. I saved this command to a text file because I only archive every 6 months or so and I am sure that only the physical save location has changed, but is still G:

PS C:\Users\admin>  Export-SPWeb -identity https://ourcompanysharepoint.com/Job1 -path G:\SharePoint_Site_Archives\Job1\Job1.cmp


But I get this error in Red

Export-SPWeb : G:\SharePoint_Site_Archives\Job1\Job1.cmp
At line:1 char:14
+  Export-SPWeb <<<<  -identity https://ourcompanysharepoint.com/Job1 -path G:\SharePoint_Site_Archives\Job1\Job1.cmp
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletExportWeb:
   SPCmdletExportWeb) [Export-SPWeb], DirectoryNotFoundException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletExportWeb

Am I missing something?

Thanks for your time.
Microsoft SharePoint

Avatar of undefined
Last Comment
Walter Curtis

8/22/2022 - Mon
SOLUTION
Walter Curtis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Marie Magadia

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Walter Curtis

@Marie - thanks for expanding on my comment with a step by step.
Neil Randall

ASKER
Thanks to you both

Walter
That got me to the place in Central Admin (I know PS is powerful, but I prefer visual)

Marie
Thank for making sure I was in the right place [Export] rather than [Backup]
Walter Curtis

Thanks, glad that helped...
Your help has saved me hundreds of hours of internet surfing.
fblack61