Is it safe to make a copy (via cmd with copy or robocopy, or by copying and pasting it) for backup purposes of a file-based multiuser Visual FoxPro datbase while other users are accessing it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Copying a DBF will fail if anyone has it open EXCLUSIVEly.
We do use robocopy here as a secondary backup, but we schedule it to run at (IIRC) 3am, when no live users are in the system and automated processes are likely to be finished. We don’t entirely trust a copy made during working hours when users are writing to tables a lot – no way to know whether the resulting tables will be consistent.
Also, you’d have to worry about the .CDX and .FPT (if applicable) being out of sync with the .DBF, since they’d be copied at a different time.
So the answer to your question is “Probably not, unless you can be sure no writes are taking place (and of course the tables are not opened exclusively).”