Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some clients of ours complained about robocopy failing badly and locking tables, has anyone had any experience with running robocopy on a potentially active database?

Could anyone explain the /b command-line switch?

share|improve this question
up vote 3 down vote accepted

My suggestion is that you don't do it. That is not a good way to make a backup of mysql database. You are probably much better off simply using the built-in backup tool mysqldump.

The /b switch of robocopy allows robocopy to bypass filesystem ACLs by activiateing a special backup privilege. This allows the administrator to backup or copy files that he doesn't have access too normally because of the ACLs applied to the files. It has nothing to do with dealing with in-use files or backing up live databases.

share|improve this answer

One could take a Volume Shadow copy of the mysql data drive, do a mklink, and copy from the now readable shadow copy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.