vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vB Database Backup Pro (Lite) for vb 3.6 (https://vborg.vbsupport.ru/showthread.php?t=126925)

stejoh 03-26-2007 06:05 AM

Quote:

Originally Posted by Paul M (Post 1210689)
It ends up wherever you point the backup path.

I have a question about the backup path in the mysqlbackupconfig.php-file, I could not find the anwser in previous posts:
I currently use this code and it works just fine.
PHP Code:

$backup['DUMP_PATH'] = DIR.'/backup/'

The DIR point to "www.domain.org/forum/" and my backups works just fine.

However, I would like to backup to a folder outside the forum-folder. But I have not managed to get the syntax right. Naturally, I created the folder 'backup' on the server before editing the config-file.
I get the following error messgae :
Quote:

An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)
I have tried several alternatives (see below) but none has worked.
PHP Code:

$backup['DUMP_PATH'] = 'http://www.domain.org/backup/'

PHP Code:

$backup['DUMP_PATH'] = '/www.domain.org/backup/'

PHP Code:

$backup['DUMP_PATH'] = '/backup/'


Is it at all possible to make the script to write the backup outside the forum-folder, and if yes,

Paul M 03-26-2007 11:37 AM

Use '../' to move 'up' a level.

e.g.

PHP Code:

$backup['DUMP_PATH'] = '../backup/'

or
PHP Code:

$backup['DUMP_PATH'] = '../../backup/'


stejoh 03-26-2007 11:50 AM

Quote:

Originally Posted by Paul M (Post 1212657)
Use '../' to move 'up' a level.
PHP Code:

$backup['DUMP_PATH'] = '../backup/'


Thanks for quick help! Worked just perfect! :up:

2meplie 03-28-2007 11:47 AM

Got this error when trying to run the backup:

Fatal error: Cannot instantiate non-existent class: mysqlbackup in /home/.../public_html/forum/includes/cron/cronbackup.php on line 19

Paul M 03-28-2007 12:01 PM

Have you uploaded all the files, to the correct place ?

2meplie 03-28-2007 12:09 PM

Yes

mysqlbackup.php
mysqlbackupconfig.php

in forum/includes

cronbackup.php

in forum/inlcudes/cron

Paul M 03-28-2007 02:31 PM

Then I have no idea - the class is clearly defined in mysqlbackup.php

Have you edited any of the files ?

hotmasala4u 03-28-2007 02:38 PM

So This Auto backup ur forums???

can u give me some more details like where it saves and other stuf plz

antiekeradio 03-28-2007 08:05 PM

the whole thread (5 pages) is about this stuff.

you might want to read before you ask...


PS still have not got it working. figured out that the error message returns an array of possible write locations, separated by colons. Whatever I put into the 'dump to' path, the paths shown in the error message remain the same.
the array is as follows.

Quote:

Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/my/correctly/set/path/incl/writeable/chmod) is not within the allowed path(s): (/tmp:/home/xirictrl/hosted/www/[my_account_dirs]:/usr/lib/php:/var/xirictrl/hosted/www/[my_account_dirs]) in /includes/mysqlbackup.php on line 225
I don't really think these dirs are hardcoded into the php configuration, so somewhere between php input and file output, things just go wrong...

[edit]weird thing is that the adminCP backup function works like a charm. file gets written to the root nicely (mind you, the root is in the array above! perhaps it would work if the cronbackup would try to save the files to my document root?)[/edit]

Paul M 03-29-2007 11:38 AM

open_basdir is a php setting that restricts what folders you webserver can write to - you need to speak to your host about that.


All times are GMT. The time now is 08:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02700 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete