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 (https://vborg.vbsupport.ru/showthread.php?t=167276)

Paul M 01-07-2008 10:00 PM

vB Database Backup
 
This modification is no longer available or supported.

Note: Because I did not write the original version, but rather have modified & adapted it, support of this modification may be limited

When vb 3.5 first came out I was using this backup system on my vb 3.0 - and having nothing better to use - I converted it to work on vb 3.5 (here) and since then I have cut it down and adapted it, first for vb 3.6 and now for vb3.7.

The original version was by Trigunflame and the rights to the code were bought by Zoints (D.Chapman) in January. In 2007 David gave me permission to release my adaptation.

I have stripped out much of the extra stuff that I do not use (or indeed, could not get to work). This is a simple (lite) version that does a php based dump of your database either as one file, or one file per table.

Notes:
* I will not add anything new to this, or spend vast amounts of time supporting it.
* This is a Lite version to allow people to use the basic backup functionality on 3.7.


History:

v3.7.001 : First version for vB 3.7.


Adem GEN? 01-08-2008 07:31 PM

Thanks
OK

yahoooh 01-08-2008 07:52 PM

i hope this version not make new tables as i saw in my db when using this hack whick make thousand of tables with same name but in different number

Bounce 01-08-2008 07:54 PM

Quote:

Originally Posted by yahoooh (Post 1417953)
i hope this version not make new tables as i saw in my db when using this hack whick make thousand of tables with same name but in different number

Look's like it can do both ....


This is a simple (lite) version that does a php based dump of your database either as one file, or one file per table.

Paul M 01-08-2008 10:32 PM

Its always done either.

projectego 01-09-2008 11:03 AM

[high]* projectego clicks install :)[/high]

Atilla_UYGUN 01-09-2008 01:53 PM

thanks very good

M-Tuning 01-09-2008 04:05 PM

Nice, thanks.

i always forget to do them myself :D

Mrsdos 01-09-2008 07:01 PM

It does not act me.

TouffTouff 01-12-2008 10:35 AM

Hello,

I do not, or is my backup to FTP !
Can you help me ?

Thank you

Paul M 01-12-2008 11:29 AM

Not really sure what you are asking, but this cannot backup to ftp if thats your question.

rainyleaves 01-13-2008 11:38 AM

Thanks Paul. :)

slowphantom 01-22-2008 12:06 AM

great hack thx

vuiveclub 02-01-2008 10:00 PM

Does it work for vbb 368 too?

Paul M 02-01-2008 10:04 PM

There is a 3.6 version in the 3.6 forum.

LGKeiz 02-03-2008 01:09 AM

An error occured during the Backup : Could not open Destination SQL file for writing.

Where do you tell it to backup to? I can't find anything.

Paul M 02-03-2008 10:55 AM

Its a setting in the config file.

Bounce 02-03-2008 04:57 PM

Quote:

Originally Posted by Paul M (Post 1435254)
Its a setting in the config file.

What one ? I'm getting the same

Cancel that found it ....


$backup['DUMP_PATH'] = '/xxx/xxx/backups/'; // Path to backups folder, must have a trailing slash

Jase2 02-03-2008 05:37 PM

Might as well just set up a cron job.

https://vborg.vbsupport.ru/showthread.php?t=169550

Regards Jason :)

Paul M 02-03-2008 06:20 PM

This is a cron job, no need to promote your own articles in peoples threads.

asj 02-04-2008 12:01 AM

Composite excellent work
Thank you very much

seangworld 02-04-2008 02:13 AM

so is this in lieu of using the backup in the acp?

if i use this, will be easier to use the file from this script to upload to lets say a new db and new installation of my site? cuz i know the one in the acp that comes with the forum sucks and i could never get it to actually work, always having to start from scratch.

EvErDrEaMs 02-04-2008 03:06 AM

Excellent

Lynne 02-05-2008 04:03 PM

Has anybody modified this to compress the file after making the backup?

Jase2 02-16-2008 10:13 PM

Hi Paul,

I've set everything correctly, for the cron job -- I do that in my hosting cPanel right?

Does this backup every table?

Regards Jason :)

lordtopcat 02-16-2008 10:42 PM

No, just install the product via your ACP panel. Fill out the required information in the mysqlbackupconfig.php file and you're done. To edit the cron job once you have done this it is under 'Scheduled Tasks' in vBulletin. It has nothing to do with cPanel.

This option can specify if you want all tables or just tables your want:

Code:

  // Backup Type To Use
  $backup['TYPE'] = 2; // 1 = Only Specified Tables, 2 = All except Specified Tables
  $backup['TABLES']        = array(); // Table List - e.g. array('table1', 'table2')

Paul, I am quite new to cron jobs. What does the '*' mean in the options like 'Day of the Week' etc? Because basically what I want to do is back it up every day at midnight.

Cheers
LTC

Jase2 02-16-2008 10:50 PM

Quote:

Originally Posted by lordtopcat (Post 1444778)
No, just install the product via your ACP panel. Fill out the required information in the mysqlbackupconfig.php file and you're done. To edit the cron job once you have done this it is under 'Scheduled Tasks' in vBulletin. It has nothing to do with cPanel.

This option can specify if you want all tables or just tables your want:

Code:

  // Backup Type To Use
  $backup['TYPE'] = 2; // 1 = Only Specified Tables, 2 = All except Specified Tables
  $backup['TABLES']        = array(); // Table List - e.g. array('table1', 'table2')

Paul, I am quite new to cron jobs. What does the '*' mean in the options like 'Day of the Week' etc? Because basically what I want to do is back it up every day at midnight.

Cheers
LTC

Thanks for that.

Now for me to answer your question:

This is the day of the week the task should run on. Set this to * to have it not apply, or for it to run every day (if Day of the Month is set to * below). Otherwise select a specific day. Note that this will override the day of the month option, unless this is set to *.

Regards Jason :)

Jase2 02-16-2008 10:53 PM

One more question, I click "Run Now" and it returned the following error:

Automatic Database Backup for vB 3.7
An error occured during the Backup : Could not open Destination SQL file for writing.

Anything need changing?

Regards Jason :)

lordtopcat 02-17-2008 12:07 AM

This means that the path to your backups folder is not correct. Download this file and upload it to your backups directory. This will give you the entire path, for you to insert into the config file. Remember to have a trailing slash /.

Forum Path

Also make sure your backups folder is set to 777.

Jase2 02-17-2008 12:18 AM

I don't understand you.

I have it right in the config.php file. I have my backups folder at: /public_html/backups/ ... and that's what I've set in the config.php file.

Regards Jason :)

lordtopcat 02-17-2008 12:23 AM

Well that error means your forum path is incorrect. Is the folder CHMODDED to 777 ?

Jase2 02-17-2008 12:25 AM

Yes, it is.

Regards Jason :)

lordtopcat 02-17-2008 12:29 AM

Can you please just try my other method? I had the same problem as you and once I put the correct path in it worked.

Cheers
LTC

Jase2 02-17-2008 12:37 AM

What do you want me to do with that file? Upload it where? And how to run it?

Regards Jason :)

lordtopcat 02-17-2008 12:50 AM

Upload it to your backups folder, and point your browser to it.

So once uploaded, go to your browser and run it like this:

http://yourdomain/backups/filepath.php

It will then display the entire root path, and then just copy that and put it in the path option in the config file. It must have a trailing slash. So for example:

/home/users/public_html/backups/

Jase2 02-17-2008 01:00 AM

I ran: /backups/forumpath.php but get Internal Server Error

Regards Jason :)

lordtopcat 02-17-2008 01:01 AM

You ran it from your browser, yes? So you went http://yourdomain/backups/filepath.php?

Jase2 02-17-2008 01:02 AM

Yes, I did.

It's not filepath, it's forumpath.php ... that's the file name.

Regards Jason :)

lordtopcat 02-17-2008 01:04 AM

Oh yes, sorry.

Well, I don't know what to suggest. It worked for me, so I have no more answers.

You will have to wait until Paul (or someone else) logs on to help you.

Jase2 02-17-2008 01:09 AM

Will do.

Regards Jason :)


All times are GMT. The time now is 05:55 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.01435 seconds
  • Memory Usage 1,808KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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