[Box Backup] rsync:ing the backup storage?

Magnus Homann boxbackup@fluffy.co.uk
Mon, 03 Dec 2007 09:09:31 +0100


Chris Wilson wrote:
> The safest thing to do is to stop bbstored, but of course this may not be 
> convenient.

Not running rsync with the same privs as bbstored, so that could be a 
bit awkward.

>Next best is to create and lock the write.lock file in each 
> account as you copy that account.

Is it possible to do that from a shell script in an easy way? How mych 
locking is enough?

> I have a feeling that it's safe anyway, as bbstored creates a new version 
> of the file being updated and then renames it over the old one when the 
> update is complete, so you shoulnd't get any corrupt files even if they 
> are being modified. However, I'm not 100% sure about that.
> 
> If you do get an inconsistent copy, then it will be repaired automatically 
> on the next backup run.

Unless my computer went into flames in the mean time. :-)

Thanks Chris!

Magnus