https://docs.kolab.org/administrator-guide/backup-and-restore.html

Chris Fleming me at chrisfleming.org
Tue Mar 29 23:10:14 CEST 2016


On Tue, Mar 29, 2016 at 03:38:04PM -0400, kolab.user at use.startmail.com wrote:
> I am reading above doc for the purpose of moving my kolab from one hosting to another but sequence is not very clear.
> Has anyone actually done full kolab move successfully and/or has better instructions?


So from my rough notes what I did (moving from kolab 3.0 to Kolab 16)

I setup the new server, run through setup Kolab. 

I then manually ran throught the multi-domain instructions.

I used rsync to copy mailboxes and databases over, from old server:

    rsync -avz --delete /var/spool/imap/ new_server:/var/spool/imap
    rsync -avz --delete /var/lib/imap/ new_server:/var/lib/imap
   
    /etc/init.d/dirsrv stop && ./backup_ldif --before && /etc/init.d/dirsrv start
    scp /tmp/*.ldif root at new_server:/root
    mysqldump -u root -p --add-drop-database --single-transaction roundcube > roundcube.sql
    scp /tmp/roundcube.sql root at new_server:/root


This deals with most of the backups and we just need to restore the ldif
files and roundcube sql.

This is where my notes fail a little. I restored the ldif files using
the instructions provided, and loaded the roundcube sql. 

In my case I needed to do a manual version upgrade of roundcube. I
haven't quite made notes on how I did this. BUt I think I created a very
much cut down version of /usr/share/roundcubemail/bin/update.sh with
just the lines needed to upgrade the database.

I basically checked at this point that I could log in and stuff. I found
that I needed to update/upgrade some of the cyrus database formats.
Instructions were on the cyrus pages. 

I checked that everything was working, before shutting down the various
services on the old server, and made the dns changes needed.

I did another rsync of the imap directories, these were quite fast as
most of the data was over. 

Cheers
Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.kolab.org/pipermail/users/attachments/20160329/b9ea09c0/attachment.sig>


More information about the users mailing list