troubleshooting Question

Archiving SharePoint 2010 sites using PowerShell

Avatar of Neil Randall
Neil RandallFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft SharePoint
5 Comments2 Solutions221 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Marie Magadia
SharePoint Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros