I'm trying to do an "export-spweb" command in Powershell to mass-transfer lists and libraries from one site to another. Now, it partially worked, in that all my Lists that were not Doc Libraries successfully exported to .cmp files. For some reason, though, when I try the same script on Doc Libraries, it fails with the error:
Export-SPWeb : The URL provided is invalid. Only valid URLs that are site colle ctions or sites are allowed to be exported using stsadm.exe. At line:1 char:13
Here's the script that works fine:
export-spweb http://myspsite/subsite1 -ItemUrl "lists/List Name Here" -path C:\testexport.cmp
And here is the script that gives the above error message
export-spweb http://myspsite/subsite1 -ItemUrl "lists/Document Library Name Here" -path C:\testexport.cmp
Am I doing something wrong here, or is there a difference with exporting Lists vs Libraries?