Hi,

It seems I cannot send attachments more than 100K cause there is some 
limitation made by the list owner, so I'll just repost this message without the 
changed perl script I'm using for mysql backup.

Very nice looking script, when I have time next week I'd like to try it :)

Some time ago I wrote to cyrus list the following summary about backing up 
cyrus machine:

"
After reading your posts on the issue and reading some more stuff, I'll make a 
summary below:

1) I'll make a dump of all mailboxes to the text file:

su - cyrus -c "ctl_mboxlist -d" > /var/lib/imap/mailboxlist.txt

And I can restore it with:

su - cyrus -c "ctl_mboxlist -u" < /var/lib/imap/mailboxlist.txt

2) I will make a regular backups (in my case with DSM client) of 
/var/spool/imap/ and /var/lib/imap/, without stopping cyrus, in this case I 
endanger myself in some data inconsistency and maybe some e-mails lost (which 
were in process while backup was running).
Please correct me on the above if there are some other dangers I'm not aware 
of???

3) In case of disaster I can just copy mail directly from the backup to the 
mail store directory (/var/spool/imap/user/%username%),
And run:
/usr/lib/cyrus/bin/reconstruct -rf user/username


4) All quotas (in /var/lib/imap/quota/%firstletter of username%/)will not be 
reconstructed, so I'll need to do it manually.

5) All subscription and seen info (in /var/lib/imap/user/%firstletter of 
username%/) will not be reconstructed, but I could restore it from the regular 
backup.
"

So basically I'm just making dump of all mailboxes with the script like this:
#!/bin/bash
su - cyrus -c "ctl_mboxlist -d" > /data/backup/cyrus/mailboxlist/mailboxlist.txt


I'm also doing mysql backups with attached perl script (MySQL Backup v3.1) from 
http://worldcommunity.com/opensource, this script allows me to make backups for 
every single table, make backup rotation, and notify me on completion and 
status of the backup.

Of course I also do backups of my FS with TSM client.

If you have any enhancement to this script, I'd like to hear about :)

Best Regards,
Leon Kolchinsky 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lukasz Marciniak
Sent: Wednesday, March 01, 2006 10:15 PM
To: [email protected]
Subject: [Web-cyradm] Backup script - proposal

Hi all,

I wrote bash script to backup cyrus-imapd server.
I am looking forward to *any* comments.

Rgds,
Lukasz
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm

Reply via email to