backing up a running zodb fileStorage
hi, i am trying to backup a zodb filestorage of a running zope. i'm on linux. i've read that you simply make a copy of the Data.fs file.. but what about the modifications/transactions that are happening when i make the copy. will not the database be in a corrupt state then? gabor
On Fri, 10 Jun 2005 09:30:35 +0200, gabor wrote:
hi,
i am trying to backup a zodb filestorage of a running zope. i'm on linux.
i've read that you simply make a copy of the Data.fs file..
but what about the modifications/transactions that are happening when i make the copy.
will not the database be in a corrupt state then? I backup my Data.fs with repozo.py. you can find some info about it in the plone book: http://docs.neuroinf.de/PloneBook/ch14.rst
Bye -- Haim
[gabor]
i am trying to backup a zodb filestorage of a running zope. i'm on linux.
i've read that you simply make a copy of the Data.fs file..
but what about the modifications/transactions that are happening when i make the copy.
will not the database be in a corrupt state then?
It can be, although the odds are in your favor. The intended way to make backups is explained here: http://zope.org/Wikis/ZODB/FileStorageBackup
gabor wrote:
i am trying to backup a zodb filestorage of a running zope. i'm on linux.
i've read that you simply make a copy of the Data.fs file..
but what about the modifications/transactions that are happening when i make the copy.
will not the database be in a corrupt state then?
The ZODB will discard any incomplete transactions on startup. Copying a live ZODB is generally to be considered safe. Which is not to say there aren't better ways, as previously mentioned. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/
participants (4)
-
gabor -
Haim Ashkenazi -
J Cameron Cooper -
Tim Peters