Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: entangled on March 05, 2019, 04:05:26 PM

Title: Merge two Roundcubes
Post by: entangled on March 05, 2019, 04:05:26 PM
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
Title: Re: Merge two Roundcubes
Post by: david123 on November 06, 2023, 01:03:29 PM
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.
Title: Re: Merge two Roundcubes
Post by: coec on November 06, 2023, 07:14:17 PM
Would this script handle going from v1.1.9 to v1.5.5 (or v1.6.5)?