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)

bollie 04-30-2007 05:26 PM

For path to backup directory i use file.

PHP Code:

<?php echo getcwd(); ?>

$backup['DUMP_PATH'] = '/var/www/vhosts/pctuts.be/httpdocs/forum/backup/';

write permissions backup directory 777

Kihon Kata 05-03-2007 01:00 PM

Hi Paul,

Can this mod be used for "Repair & Optimize tables" ONLY?

Thanks very much and have a great day

Paul M 05-03-2007 03:33 PM

Quote:

Originally Posted by Kihon Kata (Post 1240597)
Can this mod be used for "Repair & Optimize tables" ONLY?

Nope.

Kihon Kata 05-03-2007 09:28 PM

Quote:

Originally Posted by Paul M (Post 1240666)
Nope.

LOL! thanks for the help ;)

b65ran 05-07-2007 01:06 AM

Nice hack. What is the cammand to join all the files and restore ?

giovannicosta 05-07-2007 10:30 AM

Can this get all the files and join them into 1 zip file?

Paul M 05-07-2007 10:44 AM

Yes & No.

The output can be one file per table OR one file per database (containing all tables).

There is no zip facility.

b65ran 05-07-2007 09:24 PM

What is the unix command for joing all the tables to one. I tried copy *.sql backup.sql it didn't work in my server. But it works on my laptop. What am I missing here ?

Paul M 05-07-2007 09:30 PM

No idea, I don't know unix that well.

bandanafz1 05-08-2007 04:17 PM

Hi all... first post and I wanted to thank Paul and others on the board for their help! :up:

The Autobackup script works like a dream for me and saves me a lot of daily hassle.

I am also a regular on Cable Forum... I have been helped many times there too!

Keep up the good work. :)

Mrdby 05-20-2007 03:26 PM

Ok i nstalled it..now what?

Mrdby 05-20-2007 03:30 PM

so don't back up here?

./forumbackup-05-20-07-85412.sql

djbaxter 05-20-2007 03:31 PM

Quote:

Originally Posted by Mrdby (Post 1251474)
Ok i nstalled it..now what?

Instead of posting this every time you install a new add-on, may I suggest the following:
  1. read the instructions, readme file, and any help files included with the add-on
  2. read the thread where questions from other users have been posed and addressed
  3. if you still have an unanswered question AFTER completing 1 and 2, ask a SPECIFIC question, not just "now what?" - that question is meaningless, pointless, and irritating

Mrdby 05-20-2007 03:39 PM

Quote:

Originally Posted by djbaxter (Post 1251480)
Instead of posting this every time you install a new add-on, may I suggest the following:
  1. read the instructions, readme file, and any help files included with the add-on
  2. read the thread where questions from other users have been posed and addressed
  3. if you still have an unanswered question AFTER completing 1 and 2, ask a SPECIFIC question, not just "now what?" - that question is meaningless, pointless, and irritating

The last part of your comment was uncalled for...we all can't be as smart as you when it comes to these things. Thanks for nothing.

djbaxter 05-20-2007 03:47 PM

Quote:

Originally Posted by Mrdby (Post 1251488)
The last part of your comment was uncalled for...we all can't be as smart as you when it comes to these things. Thanks for nothing.

I'm giving you advice, not insulting you. How do you expect anyone to give you an answer to a question like "now what?"? It's not even a real question.

It's like saying, "I've just installed vBulletin. Now what?"... How would YOU answer that question?

Mrdby 05-20-2007 03:48 PM

Quote:

Originally Posted by djbaxter (Post 1251492)
I'm giving you advice, not insulting you. How do you expect anyone to give you an answer to a question like "now what?"? It's not even a real question.

It's like saying, "I've just installed vBulletin. Now what?"... How would YOU answer that question?

Again thanks. I will search the forum.

Pure Dope 05-23-2007 03:33 AM

maybe good to have like a test option so could check if it works n stuff? just a idea. i dont relaly need it i dont guess.

Pure Dope 05-23-2007 03:42 AM

forums ddont seem to auto turn back on after its done......

Pure Dope 05-23-2007 03:51 AM

Quote:

Originally Posted by Paul M (Post 1098148)
I can't fix something that afaik works. If the backup completes okay then the last step turns the forum on, does your cron job actually log a completed ok message ?

I assume you know you can disable the option to close the forum if you want, it's not necessary for it to be closed.

What happened with mine was the page would show the tables being backed up.......but then when it got to my posts table I believe.........it would kinda timeout....and the page would goto a couldnt load page. This is in firefox 2.0.

So after I saw my backup had completed (refreshed in my ftp, and saw the modified datetime didnt change anymore on the sql file -yes im going to change my backup directory later)........so I goes into FF and i reloads the frame. So now what happens is......it deletes my backup and restarts.

My page times out again. So right now Im waiting for this backup to complete again.

Paul M 05-23-2007 09:54 AM

Why are you manually running the task ?

karel1985 05-23-2007 10:29 PM

Hello

i have read a lot of pages in this topic but i cant find a solution for my problem:

i have installed this product:

i have set:

$backup['DUMP_PATH'] = '/home/httpd/vhosts/pc-helpforum.be/httpdocs/backups/'; // Path to backups folder, with trailing slash

so when i check if it works (press 'run now') i get the error:
An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

when i check the ftp folder: 'backups', there is a folder 2007-05-24 generated

all maps are 777 cmod

whats wrong?

Paul M 05-23-2007 11:21 PM

"all maps are 777" What does that mean ?

You shouldn't be storing backups in your httpdocs folder as they will be accessible to anyone.

Pure Dope 05-24-2007 01:55 AM

Quote:

Originally Posted by Paul M (Post 1253186)
Why are you manually running the task ?

To make sure I had everything right. And....I needed to backup so I could install some hacks. Not good to manually run it?

karel1985 05-24-2007 03:53 AM

Quote:

Originally Posted by Paul M (Post 1253546)
"all maps are 777" What does that mean ?

i mean that the folder Backups has write access,

suggestions?

Quote:

Originally Posted by Paul M (Post 1253546)
You shouldn't be storing backups in your httpdocs folder as they will be accessible to anyone.

i will change that

Paul M 05-24-2007 11:10 AM

Quote:

Originally Posted by Pure Dope (Post 1253608)
Not good to manually run it?

If you run it manually and it takes a long time then you may hit timeout issues (as indeed you appear to have).

Paul M 05-24-2007 11:11 AM

Quote:

Originally Posted by karel1985 (Post 1253652)
suggestions?

Use a relative path in the setting (i.e. ../backups or ../../backups).

karel1985 05-24-2007 12:05 PM

i can't see to get it work

the fulle path is /home/httpd/vhosts/pc-helpforum.be/httpdocs

my forums are directly in the httdocs folder

so the map includes is: /home/httpd/vhosts/pc-helpforum.be/httpdocs/includes

i have create the map backups in /home/httpd/vhosts/pc-helpforum.be/httpdocs/backups

so i have set it:

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

also tried

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

suggestions:
sorry because i don't got it work

Paul M 05-24-2007 07:27 PM

Sorry, there is nothing I can do about permission issues with your server, which is what you have here.

karel1985 05-25-2007 09:06 AM

Quote:

Originally Posted by Paul M (Post 1254002)
Sorry, there is nothing I can do about permission issues with your server, which is what you have here.

Do u think?

I can use the backup feature thats included in vb standard - that works very good
but now its not working, weird :-)

Paul M 05-25-2007 11:23 AM

Quote:

Originally Posted by karel1985 (Post 1254349)
Do u think?

Yes, the error you listed tells you that ;

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

That means the webserver did not have write permissions to create the file.

karel1985 05-25-2007 09:12 PM

Hi Paul,

i found what the problem was :D

my server was running in Safe Mode,
i've mailed my Hosting company and they putted it off,

now it works like a charm :-)

thanks for the support !

karel

Pure Dope 05-30-2007 09:47 AM

Hm.....well the forum doesnt come back on. Same prob that other guy is having. I have yet to attempt to imiport the database to see if I get any errors, but it looks as if it got backed up ok. I see the whole big 2GB file right there.

Ill let you know what I find, if I find anything. Im not real good at this linux stuff.

Pure Dope 06-02-2007 09:44 AM

Hm....yeah Im not understanding why it doesnt turn the forum back on. I let it go with the option to not turn off forum and to lock tables. My site comes unavailable for about 30 minutes......but.....the backup seems to go fine...and the site comes back up fine too.

:shrugs:

Paul M 06-05-2007 10:39 PM

If you lock the tables then the site will be unavailable as vb will be unable to perform any database updates.

Deimos 06-07-2007 06:18 PM

Love this hack, works very well
Just a question, has anyone managed to add FTP functionality to it?
I have a remote storage space account, which I use for offsite file backups, so having the database ftp'd to another server, would be awesome

santimariani 06-10-2007 01:42 AM

I am getting the following error now:

Warning: is_file() [function.is-file]: Stat failed for /home/username/backups/06-09-2007 (errno=13 - Permission denied) in /includes/mysqlbackup.php on line 225

Warning: is_dir() [function.is-dir]: Stat failed for /home/username/backups/06-09-2007 (errno=13 - Permission denied) in /includes/mysqlbackup.php on line 260

Warning: is_dir() [function.is-dir]: Stat failed for /home/username/backups/06-09-2007 (errno=13 - Permission denied) in /includes/mysqlbackup.php on line 271
An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

I have not seen these errors anywhere in this thread (except for the "error occured during.." one). Any thoughts? Thanks in advance.

djbaxter 06-10-2007 01:49 AM

My first guess would be the directory is write-protected, i.e., you have to set the permissions to 777 or 666.

Frozen Tears 06-10-2007 05:52 AM

Am.....

MAZING!

santimariani 06-10-2007 02:59 PM

Quote:

Originally Posted by djbaxter (Post 1265188)
My first guess would be the directory is write-protected, i.e., you have to set the permissions to 777 or 666.

After months of trying, it finally works! Yes! Thank you!

Ah, how amazing it is to finally have a good host. :)

Deimos 06-11-2007 09:26 PM

I got a php friend of mine to modify this to send the backups to a remote server
Would it be ok to post the modifications here?


All times are GMT. The time now is 06:21 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.02520 seconds
  • Memory Usage 1,825KB
  • 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
  • (1)bbcode_php_printable
  • (15)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