Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This may be a dumb question. I would like to use duplicity to make backups to Amazon S3 of directories, each of which contains a different user's data. Each directory could be written to at any time. So I have two questions:

Should I be concerned that a scheduled backup of a directory might occur in the middle of data being written to files in the directory, resulting in a corrupted backup?

And if that is a valid concern, how would I go about temporarily delaying an operation while IO was happening, to try to minimize that effect.

Thanks for the advice

share|improve this question
add comment

1 Answer

To provide part of the answer to my question, it looks like I can use lsof +D /directory/tree to see whether any processes have any files in a directory open.

share|improve this answer
add comment

Your Answer

 
discard

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.