Export-SPWeb creates a folder rather than a file RRS feed

  • Question

  • When using the Powershell command: 


    Export-SPWeb $Identity -Path $Location -IncludeUserSecurity -NoFileCompression -IncludeVersions all

    The script creates a folder with the $Location name, rather than a file.


    I've tried explicitly writing the location, rather than use a variable, but it still does not seem to work. When writing out the $Location, it displays as it should: .../<local folder>/backup.cmp


    Any advice would be appreciated. 

    Monday, June 27, 2011 8:14 PM


  • If you want the final file as "backup.cmp" you will need to remove the "-NoFileCompression" flag from the Export command. A one file backup is always compressed, otherwise there will be multiple files in a folder, uncompressed
    Simon Rennocks | LinkedIn
    • Marked as answer by Seven M Friday, July 8, 2011 1:23 AM
    Tuesday, June 28, 2011 11:49 AM