• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Input [IMPORTANT] Roundcube database is not included in backups

vaelu

Basic Pleskian
Hello Pleskians

I recently noticed that the Roundcube database with all user settings, sessions, address books etc. is not included in the Plesk backup which is created automatically via the Backup Manager. I think this is a problem and should get fixed, since when restoring a backup also the Roundcube data should get restored.

For us, it is more complex to do backups now since we had to write a script which manually backups the database every time a backup gets created.

Please vote for the idea here: add roundcube database to backup
 
The database dump is not included because the Roundcube database format differs significantly from version to version. We can't guarantee that dump of one Roundcube installation will be successfully restored on other Plesk server or the same Plesk server with an installed update.

But I agree that the request is valid, and if it is sufficient demand, we will definitely consider it.
 
You can create a cronjob that backups the current roundcube database into a subscription, e.g. daily a short time before the full server backup is done. Then, when the full server backup is run, that .sql dump is being backed up with the Plesk backup.

# /usr/bin/mysqldump --lock-tables=false --user=admin --password=`cat /etc/psa/.psa.shadow` --add-drop-table roundcubemail >> /var/www/vhosts/<your subscription>/roundcube-backup.sql
 
You can create a cronjob that backups the current roundcube database into a subscription, e.g. daily a short time before the full server backup is done. Then, when the full server backup is run, that .sql dump is being backed up with the Plesk backup.

# /usr/bin/mysqldump --lock-tables=false --user=admin --password=`cat /etc/psa/.psa.shadow` --add-drop-table roundcubemail >> /var/www/vhosts/<your subscription>/roundcube-backup.sql
Really helpful input, thanks. We already have a setup like this, but it would be cool if Plesk would do this by default.
 
Voted... After suffering from a server failure and finding that all users have just lost their settings and address books. :-(

The database dump is not included because the Roundcube database format differs significantly from version to version. We can't guarantee that dump of one Roundcube installation will be successfully restored on other Plesk server or the same Plesk server with an installed update.

The simple thing here is that an incompatible backup would be better than no backup at all.
 
Instead of dumping the whole Roundcube database, which can be quite large, you can skip the session table to make the backup smaller:

# /usr/bin/mysqldump --lock-tables=false --user=admin --password=`cat /etc/psa/.psa.shadow` --add-drop-table --ignore-table=roundcubemail.session roundcubemail >> /var/www/vhosts/<your subscription>/roundcube-backup.sql
 
Last edited:
There's a shadow password file which it is read from. That's the bit which reads:
--password=`cat /etc/psa/.psa.shadow`
 
Back
Top