[Zope] backup full instances

Andreas Jung lists at zopyx.com
Sat Oct 27 12:56:01 EDT 2007



--On 27. Oktober 2007 18:18:23 +0200 Jonas Meurer <jonas at freesources.org> 
wrote:

> On 27/10/2007 Andreas Jung wrote:
>>>> If you create a local copy, it is safe. If you rsync a running Data.fs,
>>>> it  is not safe. In this case you create a local copy and rsync the
>>>> copy.
>>>
>>> but if rsync is unsafe only because it takes long time, and changes on
>>> the instance during the copy process could cause a corrupted Data.fs to
>>> be backuped, then theoretically this could happen for a local copy as
>>> well, right?
>>
>> Think twice about your last sentence. What should cause a local *copy*
>> to be changed??
>
> zope might write to the Data.fs while it is copied, thus an inconsistent
> copy would be backuped, even inside one filesystem.

This is not the point. rsync will run into if the file to be synced 
changes
in-between the sync operation. This will happen with the Data.fs - it won't
happen with a static copy. An inconsistent copy of the Data.fs is not the 
problem since invalid transaction entries will be discarded by the ZODB.
So rsyncing a copy of the Data.fs it the way to go.


-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20071027/4b41519e/attachment.bin


More information about the Zope mailing list