Backup SP Site cmdlet Powershell

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 4 months ago.

  • Author
    Posts
  • #6419

    by bronyx85 at 2013-03-08 03:47:34

    Hi Does anyone know how to backup a site collection with no content, i.e just its structure?

    Backup-SPSite seems to backup the content too?

    Many thanks

    by DonJ at 2013-03-09 09:11:52

    You might look into the other command-line tools in SP; at present, it's just Backup-SPSite as far as I know.

    by AlexBrassington at 2013-03-09 12:14:04

    Backup SP site always saves the contents. You might want something more like the SPWeb.SaveAsTemplate command. If memory serves you can't backup sites with sub-webs so if you did want to make a multi tier backup you'd need to start at the bottom and delete as you go up. Messy but possible. The main failing would be that the deployment process would be clunky.

    Of course once you have your clean site Collection you could then back it up and restore it as a 'clean' build...

    by bronyx85 at 2013-03-11 03:47:19

    hmm. Ok. not to worry.. i think the spweb.saveastemplate is a bit messy as there are loads of subsites...
    thanks for your help though.

You must be logged in to reply to this topic.