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
But I get this error in Red
Export-SPWeb : G:\SharePoint_Site_Archive
At line:1 char:14
+ Export-SPWeb <<<< -identity https://ourcompanysharepoint.com/Job1
+ CategoryInfo : InvalidData: (Microsoft.Share...CmdletE
SPCmdletExportWeb) [Export-SPWeb], DirectoryNotFoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Power
Am I missing something?
Thanks for your time.