Archiving SharePoint 2010 sites using PowerShell

I am having problem archiving my SharePoint sites.

Our one root site is 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 -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 -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.
Neil RandallAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Walter CurtisSharePoint AEDCommented:
Try to export or backup via Central Admin. That may work. You code seems to be okay.
Marie MagadiaSharePoint DeveloperCommented:
1. Go to your SharePoint Central Admin
2. Click on "Backup and Restore"
3. Click "Export a site or list" from Granular Backup
4. Set the Site Collection URL, Site and or List Name on the Site Collection  row
5. Set the path of your hard drive with the filename of the site or a list
6. Click "Start Export" button
Hope it helps!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Walter CurtisSharePoint AEDCommented:
@Marie - thanks for expanding on my comment with a step by step.
Neil RandallAuthor Commented:
Thanks to you both

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

Thank for making sure I was in the right place [Export] rather than [Backup]
Walter CurtisSharePoint AEDCommented:
Thanks, glad that helped...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.