Copy-SPSite

This has to be the most useful, and simplistic SharePoint cmdlet……just wish it had existed in SP2010!

Allows you to create a complete replica of a Site Collection without having to generate a destination ‘bucket’.

Is also a great way of renaming a Site Collection (i.e copy site then delete the former)

Copy-spsite http://%sitecollectiontocopy% -DestinationDatabase %DBNmae% -TargetURL http://%newsitecollection%

http://technet.microsoft.com/en-us/library/fp161280.aspx

One thing to ponder however, is that this command doesn’t appear to play nicely if the source and destination are different Web Apps.

Advertisements