Backup mail server - MAC OS X 10.4.10

tiburm

Registered
Hi,

Do you know some software to make a easy backup of my Mac Os X Server 10.4.10 cyrus user email.
I will reinstall the system in a couple of days so I want to know how I cant copier my users email stock.

TXS,
MO
 
Hi,

Do you know some software to make a easy backup of my Mac Os X Server 10.4.10 cyrus user email.
I will reinstall the system in a couple of days so I want to know how I cant copier my users email stock.

TXS,
MO

You can do this by copying the contents of some maps. As far as i know the contents are in the following map

/volumes/MailServer-MAIL/var/spool/imap/user

This is the name of the volume, where the mail is stored, This can be different from the boot-volume, but in general it is the name of the boot-volume.

You will find all user names in that map. So you can also make a selective backup for specific users.


Good luck, Kees
 
Txs Kees Buijs !

If I reinstall the system, and I paste the "/volumes/MailServer-MAIL/var/spool/imap/user" contenu in my new configuration, I need to add each user manually from the User Manager?

Or each user is added automatically.

Do you know how to copy the BD with my users?

TXS
 
Txs Kees Buijs !

If I reinstall the system, and I paste the "/volumes/MailServer-MAIL/var/spool/imap/user" contenu in my new configuration, I need to add each user manually from the User Manager?

Or each user is added automatically.

Do you know how to copy the BD with my users?

TXS

Users are maintained with the workgroup manager. So you have to export all users using the wgm to have them later restored. Not all information is exported (e.g. passwords). Other utilities can handle that for you (e.g. mkpassdb - a description is found in one of the other threads on this side).


Good luck, Kees
 
Hi,
I make some test before copy the users folders.

1. I make a copy of /var/spool/imap/user/userX/*
2. I export the userX from wgm
3. I erase the userX from cyradm : dm user/userX and from wgm
4. I import userX in wgm.
5. I paste my copy of /var/spool/imap/user/userX/* with the olds folders and mails.
6. I tried to open userX email with Thunderbird and I obtain I/O error :(

Do you have some solution, i forget sometime to copy?

TXS,
MO
 
hi,

I have a solution with mailbfr

http://osx.topicdesk.com/content/view/41/57/

Command line:

mailbfr -b PATHTOBACKUP
mailbfr -r PATHTOBACKUP --all

I succesfully get a restore Mailboxes but:

1. All the messages are UNREAD
2. The subfolders are not in each account, with thunderbird ( email client) you need to subscribe in each subfolder.

Somebody know why the messages are unred and why the subfolders appears unsubscribes?


TXS,
MO
 
Why you get an io error i do not know. You have to use server admin, mail, maintenance part to make cyrusdb aware of your changes.

I have move al mail stuff to a different drive and have reattached everything after a complete installation of the os.

Information on mails read etc. is lost during the procedure, because that information is not part of the mail, but most likely part of cyrusdb.


Good luck, Kees
 
Why you get an io error i do not know. You have to use server admin, mail, maintenance part to make cyrusdb aware of your changes.

I have move al mail stuff to a different drive and have reattached everything after a complete installation of the os.

Information on mails read etc. is lost during the procedure, because that information is not part of the mail, but most likely part of cyrusdb.


Good luck, Kees

If you want to c reate the complete map use the following commands:

mkdir /var/imap
/usr/bin/cyrus/tools/mkimap
chown -R cyrus:mail /var/imap
chown -R cyrus:mail /var/spool/imap

(user and group values depend on OS version).


You have to execute the following commands also:
sudo -u cyrus /usr/bin/cyrus/bin/reconstruct -i
sudo -u cyrus /usr/bin/cyrus/bin/cyrus-quota -f

Good luck, Kees
 
Back
Top