Re: [Zope] backup full instances

2007-10-28 Thread Jonas Meurer
On 27/10/2007 Andreas Jung wrote: 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

Re: [Zope] backup full instances

2007-10-28 Thread Jonas Meurer
On 27/10/2007 Tino Wildenhain wrote: Nobody is wrong. Your #debian guys just had not all informations. Zope is always appending to Data.fs, copy (cp) works linear, so it would always maintain a consistent state of this file. (It either copies before or after the last append operation) rsync

Re: [Zope] backup full instances

2007-10-27 Thread Jonas Meurer
On 26/10/2007 Andreas Jung wrote: Is it safe in general to copy Data.fs while the instance is running? Or might I end up with a broken Data.fs, which zope is not able to read at all? If you create a local copy, it is safe. If you rsync a running Data.fs, it is not safe. In this case you

Re: [Zope] backup full instances

2007-10-27 Thread Andreas Jung
--On 27. Oktober 2007 16:29:18 +0200 Jonas Meurer [EMAIL PROTECTED] wrote: On 26/10/2007 Andreas Jung wrote: Is it safe in general to copy Data.fs while the instance is running? Or might I end up with a broken Data.fs, which zope is not able to read at all? If you create a local copy, it

Re: [Zope] backup full instances

2007-10-27 Thread Jonas Meurer
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

Re: [Zope] backup full instances

2007-10-27 Thread knitti
On 10/27/07, Jonas Meurer [EMAIL PROTECTED] wrote: zope might write to the Data.fs while it is copied, thus an inconsistent copy would be backuped, even inside one filesystem. if you insist on copying a file, _and_ happen to be on linux with some lvm volumes, you can snapshot that volume with

Re: [Zope] backup full instances

2007-10-27 Thread Andreas Jung
--On 27. Oktober 2007 18:18:23 +0200 Jonas Meurer [EMAIL PROTECTED] 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

Re: [Zope] backup full instances

2007-10-27 Thread Tino Wildenhain
Hi, Jonas Meurer schrieb: 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

Re: [Zope] backup full instances

2007-10-27 Thread Dieter Maurer
Jonas Meurer wrote at 2007-10-26 16:57 +0200: ... The main problem with this backup approach is, that the zope instance is not stopped for the backup at all, thus the Data.fs might not be up to date. Why do you think that this is a problem? Of course, your backup process may read a partial

Re: [Zope] backup full instances

2007-10-26 Thread Jonathan
- Original Message - From: Jonas Meurer [EMAIL PROTECTED] To: zope-users zope@zope.org Sent: Friday, October 26, 2007 10:57 AM Subject: [Zope] backup full instances Hello, We have several different zope instances running on our servers, and currently the only backup we do is a

Re: [Zope] backup full instances

2007-10-26 Thread Andreas Jung
--On 26. Oktober 2007 16:57:02 +0200 Jonas Meurer [EMAIL PROTECTED] wrote: Is it safe in general to copy Data.fs while the instance is running? Or might I end up with a broken Data.fs, which zope is not able to read at all? If you create a local copy, it is safe. If you rsync a running

Re: [Zope] backup full instances

2007-10-26 Thread Sascha Welter
(Fri, Oct 26, 2007 at 04:57:02PM +0200) Jonas Meurer wrote/schrieb/egrapse: And which other ways to you know to backup an entire instance? Maybe sync it with ZEO to another server in realtime? Or use some export method? repozo.py Also don't forget to backup all the products and zope.conf once