Tuesday 18 January 2011

Backing up live site collections - STSADM backup without lock

I required a back up of a production site collection today. I usually take backups OOH but for the task I was conducting I wanted a quick backup so that I could do a fast restore and run a few tests.

The default stsadm backup operation (after service packs installed) will set the database to read only which is obviously not a good idea for production environments. Fortunately there is a switch which doesn't look the database which was exactly what was required in this case.

stsadm -o backup -url http://mainsite/ -filename d:\backup.bak -nositelock

No comments:

Post a Comment