Hi,
Look at this script:
https://github.com/JaimeObregon/export-roundcube-sqlIt seems this script is what you look for to transfer the roundcube settings for specific domain between the servers.
Please note I didn't test this script.
If you want to transfer the whole roundcube database then do following:
As root on the source server do:
1.
mysqldump -Q --opt roundcube > roundcube.sql
2. Copy the file roundcube.sql to the destination server over FTP, SCP or some other way preferred by you.
3. Restore the database content on the destination server:
mysql roundcube < roundcube.sql