im sorry but i dont understand this is what i have if you can change what needs changed please then i can copy and past please
Code:
###### config variables
$document_root = '/home/public_html'; //The zencart home directory with no trailing slash ie: /home/username/public_html
$backup_dir = '/admin/backups/'; //The directory you want the backup to go to. (/admin/backups/ for zencart).
$tarball_name = 'automated_backup'; //The name of the backup file. It will be appended with the date and time.
###### end of config variables
set_error_handler("basic_error_handler");
function basic_error_handler($errno, $errstr, $errfile, $errline) {
global $document_root, $backup_dir;
if ($errno == E_USER_ERROR) {
$error = "ERROR [$errno] $errstr error on line $errline in file $errfile, PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
$handle = fopen($document_root . $backup_dir . 'backup_mysite_error_log.txt','a');
fwrite($handle, $error);
fclose($handle);
die();
}
return true;
}
if (file_exists($document_root . '/admin/backup_mysite_backend.php')) {
require_once($document_root . '/admin/backup_mysite_backend.php');
} else {
trigger_error('Cannot require file at: ' . $document_root . '/admin/backup_mysite_backend.php',E_USER_ERROR);
}
$backup = new Tar_Archive($document_root, $backup_dir, $tarball_name);
$backup->backup_check(1); //passing 1 to the function forces a backup instead of it checking $_GET
?>
Bookmarks