Menu

#124 Can't set schedule backup

v2.2
open
nobody
None
5
2015-05-22
2015-05-22
noftal
No

Hi,
My web site's files start at public_html. The corresponding server path is "/home/u654156753/public_html"
I installed phpMyBackupPro here : "/home/u654156753/public_html/admin/phpMyBackupPro"
In that directory, I have definitions.php, backup.php,...
I changed the definitions.php that way :
$_PMBP_GLOBAL_CONF="../../../global_conf.php";
$_PMBP_EXPORT_DIR="../../../export/";

I try a schedule backup each hour : So i created a schedule.php file stored in
"/home/u654156753/.logs/schedule.php"
The code is such, as suggested in the schedule backup tab :
<?php
// This script was created by phpMyBackupPro 2.5 (http://www.phpMyBackupPro.net)
// In order to work probably, it must be saved in the directory /home/u654156753/.logs/.
$_POST['db']=array("u654156753_forum", );
$_POST['tables']="on";
$_POST['data']="on";
$_POST['drop']="on";
$_POST['zip']="zip";
$_POST['mysql_host']="-1";
$period=(3600*24)/24;
$security_key="306d5a59df4d43d51ac82e0f918df7e0";
// switch to the phpMyBackupPro 2.5 directory
@chdir("/home/u654156753/public_html");
@include("backup.php");
// switch back to the directory containing this script
@chdir("/home/u654156753/.logs/");
?>

In public_html, there is my site's index.php file. In that file I added :
require_once("../.logs/schedule.php");

I waited more thaw one hour to watch the backup appear, but there is nothing.
What's wrong with my settings ?

Please note that the backup perfectly works if I order a backup in the backup tab of phpMyBackupPro. So be sure my db settings are OK.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.