called from shell, the weekly.php script I created from the generated one ask for database name - don't seems to see the included variables (see at the end), but I shouldn't really need it.
However, in the phpmybackup main folder
[codekim3:~/htdocs/phpMyBackupPro2 # php backup.php jdd
PHP Warning: include_once(.//data/srv/www/phpmybackup/global_conf.php): failed to open stream: No such file or directory in /data/srv/www/htdocs/phpMyBackupPro2/definitions.php on line 114
PHP Warning: include_once(): Failed opening './/data/srv/www/phpmybackup/global_conf.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /data/srv/www/htdocs/phpMyBackupPro2/definitions.php on line 114
/data/srv/www/phpmybackup/global_conf.php is missing.<br>Please read INSTALL.txt and specify the global_conf.php path in definitions.php.
// switch to the phpMyBackupPro v.2.2 directory
@chdir("/data/srv/www/htdocs/");
@include("backup.php");
@chdir("/data/srv/www/htdocs/phpMyBackupPro2/");
the first chdir seems obviously wrong as there is no backup.php in the root web folder (should be same as the second chdir).
thanks again
jdd
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Web backup works without problem.
But I try to make a weekly backup.
called from shell, the weekly.php script I created from the generated one ask for database name - don't seems to see the included variables (see at the end), but I shouldn't really need it.
However, in the phpmybackup main folder
[codekim3:~/htdocs/phpMyBackupPro2 # php backup.php jdd
PHP Warning: include_once(.//data/srv/www/phpmybackup/global_conf.php): failed to open stream: No such file or directory in /data/srv/www/htdocs/phpMyBackupPro2/definitions.php on line 114
PHP Warning: include_once(): Failed opening './/data/srv/www/phpmybackup/global_conf.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /data/srv/www/htdocs/phpMyBackupPro2/definitions.php on line 114
/data/srv/www/phpmybackup/global_conf.php is missing.<br>Please read INSTALL.txt and specify the global_conf.php path in definitions.php.
However the define file is:
(and as the web service works…)
what's wrong?
thanks
for info, the generated file ends with:
the first chdir seems obviously wrong as there is no backup.php in the root web folder (should be same as the second chdir).
thanks again
jdd
sorry, I don't see how to edit the typos in my first post :-(
Looks like there is no need of cron, as i just received th weekly backup, without any change on my side
so good :-)
jdd