RE: What is the best way to backup the email boxes in cyrus imap.

2001-09-28 Thread Michael Salmon

On Thursday, September 27, 2001 03:51:59 PM +0100 James Courtier-Dutton 
[EMAIL PROTECTED] wrote:
+--
|  On Friday, September 21, 2001 07:40:50 PM +0100 James Courtier-Dutton
|  [EMAIL PROTECTED] wrote:
|  +--
|  | Hello
|  | What is the best way to backup email boxes in cyrus imap?
|
|  I think that you are confusing cyrus with UW. The message files
|  aren't ever
|  changed and hence cannot be corrupted, the cyrus.* files change but as
|  there aren't any tools to merge 2 copies they aren't worth
|  backing up. That
|  just leaves the mailbox file which only changes when you change
|  acl's. Once
|  again this would be a difficult file to recover but it is too
|  important to
|  ignore.
| 
|  /Michael
| So if I only backup the message files and the acl's.
| When I restore everything on a new machine, will the cyrus.* files create
| themselves ?
| The backup I want is just so that in a disaster situation, I can reload
| all the email from backup onto a new machine.
+-X8

The cyrus.* files aren't created automatically, you need to run 
reconstruct, it will fix cyrus.index and cyrus.cache. IIRC cyrus.seen is 
created automatically which leaves cyrus.header. It contains a copy of the 
acl for the folder and is used to recreate the mailbox file, that file 
would probably be worthwhile backing up for disaster recovery. I should 
probably add that I use version 1.5 but I haven't seen anything on this 
list that indicates that later versions work significantly differently.

/Michael
--
This space intentionally left non-blank.



RE: What is the best way to backup the email boxes in cyrus imap.

2001-09-27 Thread James Courtier-Dutton

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
 Salmon
 Sent: 26 September 2001 08:17
 To: [EMAIL PROTECTED]
 Subject: Re: What is the best way to backup the email boxes in cyrus
 imap.


 On Friday, September 21, 2001 07:40:50 PM +0100 James Courtier-Dutton
 [EMAIL PROTECTED] wrote:
 +--
 | Hello
 | What is the best way to backup email boxes in cyrus imap?

 I think that you are confusing cyrus with UW. The message files
 aren't ever
 changed and hence cannot be corrupted, the cyrus.* files change but as
 there aren't any tools to merge 2 copies they aren't worth
 backing up. That
 just leaves the mailbox file which only changes when you change
 acl's. Once
 again this would be a difficult file to recover but it is too
 important to
 ignore.

 /Michael
So if I only backup the message files and the acl's.
When I restore everything on a new machine, will the cyrus.* files create
themselves ?
The backup I want is just so that in a disaster situation, I can reload all
the email from backup onto a new machine.

Cheers
James






Re: What is the best way to backup the email boxes in cyrus imap.

2001-09-26 Thread Michael Salmon

On Friday, September 21, 2001 07:40:50 PM +0100 James Courtier-Dutton 
[EMAIL PROTECTED] wrote:
+--
| Hello
| What is the best way to backup email boxes in cyrus imap?
| I have a number IMAP clients connected, and some of them share mail boxes.
| Surely, everyone should be disconnected while the backup takes place.
| Is it possible to do the following: -
| Disconnect one user, or alternatively, lock write access to the mailbox.
| Backup mail box
| Enable write access from the user again.
| Then do the same for each user.
|
| Unless this locking takes place, I think there is a possibility of
| corruption in the backup file.
|
| The only other way, is to stop the email server entirely during the
| backup, but I would prefer less drastic measures.
| Currently, all my users use IMAP, and email is delivered from sendmail via
| deliver.
+-X8

I think that you are confusing cyrus with UW. The message files aren't ever 
changed and hence cannot be corrupted, the cyrus.* files change but as 
there aren't any tools to merge 2 copies they aren't worth backing up. That 
just leaves the mailbox file which only changes when you change acl's. Once 
again this would be a difficult file to recover but it is too important to 
ignore.

/Michael
--
This space intentionally left non-blank.



What is the best way to backup the email boxes in cyrus imap.

2001-09-21 Thread James Courtier-Dutton

Hello
What is the best way to backup email boxes in cyrus imap?
I have a number IMAP clients connected, and some of them share mail boxes.
Surely, everyone should be disconnected while the backup takes place.
Is it possible to do the following: -
Disconnect one user, or alternatively, lock write access to the mailbox.
Backup mail box
Enable write access from the user again.
Then do the same for each user.

Unless this locking takes place, I think there is a possibility of
corruption in the backup file.

The only other way, is to stop the email server entirely during the backup,
but I would prefer less drastic measures.
Currently, all my users use IMAP, and email is delivered from sendmail via
deliver.

Please help

James


--
Nothing in this world is exactly what it appears to be.




Re: What is the best way to backup the email boxes in cyrus imap.

2001-09-21 Thread Justin R. Miller

Thus spake James Courtier-Dutton ([EMAIL PROTECTED]):

 What is the best way to backup email boxes in cyrus imap?  I have a
 number IMAP clients connected, and some of them share mail boxes.
 Surely, everyone should be disconnected while the backup takes place.

Although I'm sure it would be slower, you could backup over the IMAP
protocol on the loopback or such and not have to worry about multiple
concurrent users.  At least I think this would work...  

-- 
| Justin R. Miller / [EMAIL PROTECTED] / 0xC9C40C31
| Of all the things I've lost, I miss my pants the most.
--

 PGP signature