Giter Club home page Giter Club logo

migrate-roundcube's Introduction

Migrate Roundcube for Plesk

This script is provided as is and with-out warranty. Use at your own caution and risk.
BACKUP DATA BEFORE GOING ON!

The current version of Plesk migrator does not migrate address books of roundcube webmail users. This script aims to solve this issue by

  • adding missing contacts,
  • add missing contactgroups,
  • match contacts with groups
  • and update the identities table (e.g. with the users' signatures).

Usage

(!!! Test if users have been created in users-table. Userwise import manually. @TODO)

  • Create a dumb of roundcubemail database from the original server and save it as roundcubemail.sql.
  • New Server: Login with ssh and place the migrate_roundcube.php and roundcubemail.sql in a folder.
  • Replace the username and password to access the database within the credentials settings in migrate_roundcube.php. (Around line 50-60 within setCredentials()).
  • Run script: php migrate_roundcube.php.

Tested for roundcube-version: 2019092900 (03.Nov 2021).

FAQ

Howto get the password for db user admin?

https://support.plesk.com/hc/en-us/articles/213375129-How-to-connect-to-a-MySQL-server-on-a-Plesk-for-Linux-server-using-a-MySQL-admin-password-in-plain-text Example:

# cat /etc/psa/.psa.shadow
$AES-128-CBC$ZmY/EEpy1+TwCNq5kalqSA==$Pd02kf4TTlpXdi/qyeo92w==

add the terminal output inside migrate_roundcube.php (approx. line 50).
!!! Heads up: Make sure to use single quotes.

(...)
    private function setCredentials()
    {
        $this->host = "localhost";
        $this->db_user_name = "admin";
        $this->db_user_pass = '$AES-128-CBC$ZmY/EEpy1+TwCNq5kalqSA==$Pd02kf4TTlpXdi/qyeo92w==';
        $this->dbname = "roundcubemail";
        $this->dbname_source = "roundcubemail_import";
        $this->dump_file = "roundcubemail.sql";

    }
(...)

Howto install PHP CLI and mysqli?

For Ubuntu 20

# apt install php7.4-cli
# apt-get install php-mysql

migrate-roundcube's People

Contributors

marcoherzog avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.