Author Topic: Merge two Roundcubes  (Read 7617 times)

Offline entangled

  • Newbie
  • *
  • Posts: 2
Merge two Roundcubes
« 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
« Last Edit: March 05, 2019, 04:14:43 PM by entangled »

Offline david123

  • Newbie
  • *
  • Posts: 1
Re: Merge two Roundcubes
« Reply #1 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.

Offline coec

  • Newbie
  • *
  • Posts: 5
Re: Merge two Roundcubes
« Reply #2 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)?