locked
Backups and site locking RRS feed

  • Question

  • I have a MOSS Farm (SP2) with 70 site collections ... when backing up the whole farm with STSADM will it lock each site collection as it gets to it and unlock when that site is done or will it lock all of them when the backup starts and release the lock when it finishes the whole backup?

    Also if I use code to do the backups will that lock the site collection automatically? eg: using  SPSiteCollection.Backup

    Monday, October 24, 2011 9:27 AM

Answers

  • To answer your first question, Sp2 altered the backup utilities so that a site lock is automatically set in place before a backup is made.  If you specifically don't want this to happen, SP2 also introduced a nositelock command / utility that you can use.

    It should do this on a site collection by site collection basis.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Monday, October 24, 2011 9:38 AM
    Answerer
  • HI Paul,

    Yes these activities should be carried out during non business hours as a recommended practice.


    Thanks, Rahul Rashu
    Thursday, October 27, 2011 10:54 AM
  • I am currently backing up with scripted STSADM commands targeting each site collection independently avoiding the overnight SQL backups. I am not using the farm backup at all as it simply takes too long in one go ...

    I was thinking of writing some code that would manage it more effectively and could not see if that approach locked the site but I see that it does. 

    Thursday, October 27, 2011 3:28 PM

All replies

  • To answer your first question, Sp2 altered the backup utilities so that a site lock is automatically set in place before a backup is made.  If you specifically don't want this to happen, SP2 also introduced a nositelock command / utility that you can use.

    It should do this on a site collection by site collection basis.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Monday, October 24, 2011 9:38 AM
    Answerer
  • HI,

    After SP2 when you execute STSADM backup the lock will automatically be applied to the site collection.

    In the command windows you will see a message stating that about the lock over the duration of the backup. 

    As suggested by steve you can choose not to apply locks as well but by default the lock will be applied.

    This will be a  read only lock.


    Thanks, Rahul Rashu
    Monday, October 24, 2011 1:25 PM
  • As I thought.

    I may have to be more selective about when certain collections are backed up as there is overlap with someones business hours somewhere globally .. 

    Thursday, October 27, 2011 9:56 AM
  • HI Paul,

    Yes these activities should be carried out during non business hours as a recommended practice.


    Thanks, Rahul Rashu
    Thursday, October 27, 2011 10:54 AM
  • I'd also ensure that these aren't carried out when SQL Backups are being carried out.  That's a common culprit.
    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/
    Thursday, October 27, 2011 1:08 PM
    Answerer
  • I am currently backing up with scripted STSADM commands targeting each site collection independently avoiding the overnight SQL backups. I am not using the farm backup at all as it simply takes too long in one go ...

    I was thinking of writing some code that would manage it more effectively and could not see if that approach locked the site but I see that it does. 

    Thursday, October 27, 2011 3:28 PM