Roundcube Community Forum

 

Merge two Roundcubes

Started by entangled, March 05, 2019, 04:05:26 PM

Previous topic - Next topic

entangled

Hello,

Due to network issues causing issue with the Roundcube server, I quickly brought up another server and installed Roundcube.  Once the new Roundcube was working, using Ispconfig resync, I created the Vmail accounts.

Since this is a new Roundcube none the old User settings and of course, none of the old emails are there.

Now that the old Roundcube is back online, and Users have been using the new Roundcube:

1)  how do I "merge" the old Roundcube into the new Roundcube ... ie, Signatures, Contact list, etc.

2)  and can I just use rsync the /var/vmail directory to get the emails over? 

Thanks in advance,

Craig

david123

Good day!

I also needed this. I searched around the forum but did not find anything. I wanted to merge 5 roundcube databases into a single one. I made a script for this
https://github.com/hostup/hostup-roundcube-merge/blob/main/merge.py

There is a readme with instructions on the main github page

It merges users, contacts, collected_addresses, identities, contactgroupmembers, contactgroups and maps old id to new if the user already exists, handles new id and everything you would expect.

coec

Would this script handle going from v1.1.9 to v1.5.5 (or v1.6.5)?