Page tree
Skip to end of metadata
Go to start of metadata

Overview

This document explains how to rebuild the Roundcube database.

Warning:

cPanel, Inc. deprecated the update-roundcube and update-roundcube-sqlite scripts in cPanel & WHM version 62. The instructions in this document only apply to cPanel & WHM version 62 and later.

Rebuild the Roundcube database

To update the Roundcube database, run one of the following commands:

/usr/local/cpanel/bin/update-roundcube-db --force
/usr/local/cpanel/bin/update-roundcube-sqlite-db --force

Note:

The /usr/local/cpanel/bin/update-roundcube-db script will update your database whether you use MySQL® or SQLite. The  script will recognize if you use SQLite and automatically run the /usr/local/cpanel/bin/update-roundcube-sqlite-db script instead.

MySQL database

Use the /usr/local/cpanel/bin/update-roundcube-db script to rebuild a Roundcube MySQL database.

To rebuild the Roundcube database, run the following command:

/usr/local/cpanel/bin/update-roundcube-db --force


If the script succeeds, you will receive a message similar to the following example:

info [update-roundcube-db] Roundcube update from 1.1.4-7.cp1162 to 1.1.4-7.cp1162 in progress.
info [update-roundcube-db] Roundcube will be locked out during this process.
info [update-roundcube-db] Archiving current Roundcube data to /var/cpanel/roundcube/roundcube.backup.sql.1479139688
info [update-roundcube-db] Roundcube DB successfully archived
info [update-roundcube-db] Cleaning old Roundcube data archives
info [update-roundcube-db] Removing old backup: roundcube.backup.sql.1467293128
info [update-roundcube-db] Schema update to 1.1.4-7.cp1162 was successful
info [update-roundcube-db] Roundcube updated to 1.1.4-7.cp1162

SQLite database

Use the /usr/local/cpanel/bin/update-roundcube-sqlite-db script to rebuild the Roundcube SQLite database.

To rebuild the Roundcube database, run the following command:

/usr/local/cpanel/bin/update-roundcube-sqlite-db --force


If the script succeeds, you will receive a message similar to the following example:

info [update-roundcube-db] Roundcube update from 1.1.4-7.cp1162 to 1.1.4-7.cp1162 in progress.
info [update-roundcube-db] Roundcube will be locked out during this process.
info [update-roundcube-db] Archiving current Roundcube data to /var/cpanel/roundcube/roundcube.backup.sql.1479139822
info [update-roundcube-db] Roundcube DB successfully archived
info [update-roundcube-db] Cleaning old Roundcube data archives
info [update-roundcube-db] Removing old backup: roundcube.backup.sql.1469194482
info [update-roundcube-db] Schema update to 1.1.4-7.cp1162 was successful
info [update-roundcube-db] Roundcube updated to 1.1.4-7.cp1162

 

Additional documentation

  • No labels