Roundcube backup/restore scripts do not work with recent roundcube versions

mrdave

Verified User
Joined
Nov 23, 2011
Messages
14
Due to changes in roundcube's directory layout in recent versions (1.7+), the backup_roundcube.php and restore_roundcube.php scripts do not work anymore because they can't find config.inc.php and emits this error:
Cannot find RoundCube config at /var/www/html/roundcube/config/config.inc.php. Is RC installed and up to date?

Since I needed these, I updated the two files changing path in this line:

$rc_config = "/var/www/webapps/roundcube/config/config.inc.php";

I had also to symlink roundcube-xxx directory to roundcube in /var/www/webapps

The scripts could be updated for next directadmin version and the link can be created by custombuild on roundcube updates (since the app directory changes name).
 
I just tried testing it in DA version 1.706 and I do not see any such errors you mentioned:
Code:
[root@server2 ~]# ls -la /usr/local/directadmin/scripts/backup_roundcube.php /usr/local/directadmin/scripts/restore_roundcube.php
-rwxr-xr-x 1 root root  8829 Jul 16 15:57 /usr/local/directadmin/scripts/backup_roundcube.php
-rwxr-xr-x 1 root root 12877 Jul 16 15:57 /usr/local/directadmin/scripts/restore_roundcube.php
[root@server2 ~]#
[root@server2 ~]# username=datest domain=datestmy.ua xml_file=/root/res.xml /usr/local/directadmin/scripts/backup_roundcube.php

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/directadmin/scripts/backup_roundcube.php on line 249

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/directadmin/scripts/backup_roundcube.php on line 249

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/directadmin/scripts/backup_roundcube.php on line 249
[root@server2 ~]#
[root@server2 ~]# ls -la /root/res.xml
-rw-r--r-- 1 root root 2275 Jul 17 05:33 /root/res.xml
[root@server2 ~]#
 
Back
Top