Author Topic: best strategy for a migration  (Read 161 times)

Offline Phil242

  • Newbie
  • *
  • Posts: 2
best strategy for a migration
« on: February 02, 2020, 05:14:22 AM »
Hi dudes,

Since years I use Debian with the Roundcube package. But as Debian stable is very late (it's normal) I'll move to a new server, maintaining myself the updates of Roundcube.
But I need to keep my user's data.

Today it run on Debian 9, means Roundcube 1.2.3, and I'll install the last stable version.

What's the best strategy? Dump the database and try to run update.sh? But as I'll don't have any old folder, not sure it'll works.

Or, maybe just restoring database, run this from the update.sh and not use a fresh empty one:
  170     // check database schema
  171     if ($RCI->config['db_dsnw']) {
  172         echo "Executing database schema update.\n";
  173         $success = rcmail_utils::db_update(INSTALL_PATH . 'SQL', 'roundcube', $opts['version'],
  174             array('errors' => true));
  175     }

I don't care of the cache, just user data.

Thanks for your suggestions.

Phil

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,597
    • http://SKaero.com/
Re: best strategy for a migration
« Reply #1 on: February 02, 2020, 02:01:03 PM »
Move the database and then follow the standard update path https://github.com/roundcube/roundcubemail/wiki/Upgrade

Offline Phil242

  • Newbie
  • *
  • Posts: 2
Re: best strategy for a migration
« Reply #2 on: February 05, 2020, 06:14:31 PM »
Hi,

Ok, so I'll follow this path and see what happened.

Thanks for the suggestion.

Cheers,

Phil