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.

dfe 03-30-2007 04:21 AM

What is the preferred method for the most successful VB backups and restores, tables as single files, or all tables in a seperate files?

Installed and working a dream on Win2003 installation!

Paul M 03-30-2007 10:52 AM

I use seperate files so I can easily restore just one table if necessary. For a full restore you can just join all the files into one.

odie3 03-30-2007 08:40 PM

Freaking Nice! Thanks for this MOD, I am feeling a lot better with this running daily!

:)

djbaxter 03-30-2007 10:11 PM

One thing that would be nice would be auto-deletion of backups after a certain length of time.

odie3 03-30-2007 11:07 PM

agreed! +1 On Auto Delete after certain length of time.

anarx 03-31-2007 01:11 AM

Hi!
First of all, thank you for the hack and for your great support.

Now to my problem.

I got this error:
Quote:

Database_Backup

An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)
The folder with the "date" is built in my backup folder but there is no sql file in it.

santimariani 03-31-2007 01:52 AM

Help!

I have tried dozens of times to do backups manually, but I get the error that many are getting. What else can I do?

My backups folder is in the root. What I have, then, is something similar to this:

$backup['DUMP_PATH'] = '/home/sub/scxxxx/backups'; // Path to backups folder, with trailing slash

I have chmoded the folder to 777. I have tried disabling and enabling the product again. I have completely uninstalled it, only to install it again. I have moved the folder all over the place, changing the path appropriately, and still nothing. I followed SkyCatcher's suggestions in post 210, and still nothing. What else is there to do?

Thanks SO much! :)

dfe 03-31-2007 04:52 AM

This morning was the first automated one that happened, all went well, the only problem I had, or am having it did'nt turn the forums back on, I just realised now at 8am that the forums were still turned off after a 5am backup!

How can I check and ensure that does'nt happen again?

Paul M 03-31-2007 10:50 AM

Quote:

Originally Posted by santimariani (Post 1216556)
Help!

I have tried dozens of times to do backups manually, but I get the error that many are getting. What else can I do?

My backups folder is in the root. What I have, then, is something similar to this:

$backup['DUMP_PATH'] = '/home/sub/scxxxx/backups'; // Path to backups folder, with trailing slash

I have chmoded the folder to 777. I have tried disabling and enabling the product again. I have completely uninstalled it, only to install it again. I have moved the folder all over the place, changing the path appropriately, and still nothing. I followed SkyCatcher's suggestions in post 210, and still nothing. What else is there to do?

Thanks SO much! :)

Look at what it says ;

Quote:

$backup['DUMP_PATH'] = '/home/sub/scxxxx/backups'; // Path to backups folder, with trailing slash
Now look at the path you have entered and correct it. :)

dfe 04-01-2007 07:29 AM

Quote:

Originally Posted by dfe (Post 1216627)
This morning was the first automated one that happened, all went well, the only problem I had, or am having it did'nt turn the forums back on, I just realised now at 8am that the forums were still turned off after a 5am backup!

How can I check and ensure that does'nt happen again?

Yip 2nd automated backup and I have to manually re-activate the forum using options, again the backup worked like a dream, but left the forum closed until I noticed it.

So this will be a critical issue for me to get solved.

Paul M 04-01-2007 10:42 AM

The only solution is not to use the option to close the board during backups.

dfe 04-01-2007 12:04 PM

Ok I will change that, will this be changed soon?

Just had a thought, is it not an option to schedule another task say 30mins later to reopen the forum? How would I do that though?

majorxp 04-03-2007 07:16 PM

For those who have cron access, you might want to look at AutoMySQLBackup. It backs up all mysql databases and does daily, weekly, and annual cycling on a cron.

(this is still a great tool for those without cron access)

(also...any tool to help automate backups is a great thing....life can become very miserable when you don't have a recent backup)

santimariani 04-04-2007 05:21 PM

Quote:

Originally Posted by Paul M (Post 1216746)
Look at what it says ;


Now look at the path you have entered and correct it. :)

Paul,

Thanks for the help. I am sure you must be beating your head against the wall after having the same question asked time after time. I would do the same! Since I want to be compassionate, let me give you a pillow to put between your head and the wall, because here comes another question!

I changed the path to:

Quote:

$backup['DUMP_PATH'] = '/home/sub/scxxxx/backups/'; // Path to backups folder, with trailing slash
Yet I am still getting the same error. From reading the posts my understanding of adding the trailing slash is the slash I added at the end. I will reread some posts in the meantime to make sure I am correct in this regard, but if you have some time, I would appreciate your help oncemore.

Thanks again for the help and for your patience. Truly to be admired.

djbaxter 04-04-2007 05:52 PM

That looks like an incomplete path to me. On most servers, it would be more like:

Code:

$backup['DUMP_PATH']        = '/home/{domain}/public_html/{subdirectory}/backup/
Also, make sure that the backup folder is write-enabled.

Paul M 04-04-2007 06:35 PM

You may be better off using a relative path (e.g. ../../backups/).

Also make sure no open_basedir restrictions are in place, preventing writes to the folder.

odie3 04-04-2007 07:07 PM

this is what I use:

Code:

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

giovannicosta 04-09-2007 04:21 PM

Works well and forums even open themselves again :D

coffee 04-17-2007 08:06 AM

Thank you Paul,

This is working great on all my boards ..

Could you please update the $Backup[message] to tell my visitors that "we finished backingup such and such tables out of total of such and such?

Paul M 04-17-2007 11:33 AM

Sorry, that is not possible.

coffee 04-18-2007 10:10 AM

No problem Paul ..

You're right .. That might reveal some database secrets to others ..

coffee 04-18-2007 03:24 PM

Please forgive my ignorance if this was asked:

Will this system recycle every number of times (able to remove older backups it created)?

Or should I add a server-side cron job to do so?

djbaxter 04-18-2007 03:47 PM

No it doesn't do that but it would be an excellent addition. Post 'em if you got 'em. :)

hoof 04-18-2007 11:03 PM

Thanks odie3 that worked like a champ!

Great product clicks install :)

beduino 04-27-2007 10:05 PM

Hello,
i'm sorry if is a very basic question...
I read
Quote:

I use seperate files so I can easily restore just one table if necessary. For a full restore you can just join all the files into one.
How i can join the sql files?
and...
I can restore by phpmyadmin?

Tks in advance
and all the best

Joao Barroca
aka beduino

beduino 04-28-2007 02:28 AM

the question of restore by phpmyadmin the answer is yes ;) i already test
the remain question is about join sql files. Or, maybe, a option to backup one sql only...
all the best
and tks again

Paul M 04-28-2007 09:33 AM

You join them using your OS (e.g. DOS Copy command) or any program designed to join files. The option to backup to one file already exists.

beduino 04-28-2007 11:18 AM

Sorry,
I see now ...
Quote:

// Combine Tables into one file
$backup['COMBINE'] = 0;
Tks for your time and support
B.

bollie 04-30-2007 04:58 PM

An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

djbaxter 04-30-2007 05:18 PM

That's almost always one of two things:

1. the path to your backup directory is set incorrectly

2. the write permissions for the backup directory are set incorrectly


All times are GMT. The time now is 03:46 PM.

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.02018 seconds
  • Memory Usage 1,833KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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