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)

sexyeyes83 04-11-2008 07:13 PM

Thank you, works great :)

1quick1 04-15-2008 03:16 AM

Installed. Works like a charm just like the 3.6.xx version.

karel1985 04-16-2008 02:38 PM

Hi Paul,

i recently updated my board to 3.7 (2 weeks ago), before i had the 3.6 version installed.
Now the last 2 days, my board doens't come online anymore after the backup.

Should i upgrade to this version (are there changes with the 3.6v?) or what would be the problem?

I haven't change a thing....

Paul M 04-17-2008 06:55 AM

Turn off the board close option.

yaoren 04-18-2008 04:05 PM

Works awesome! Thanks for this!

Jase2 04-22-2008 06:09 PM

Hi Paul,

Is this meant to close your forums? Reason I ask, is because when I tested it out before, it didn't close my forums. I clicked "Run Now".

Do I just set this too 1? :

Code:

Close Forum during Backup
  $backup['SHUTDOWN'] = 0;

Can any problems arise from having your forum stay open, or is it best to close them?

Also, how do we get it to save as one .sql file, and not a .sql file for each table?

Paul M 04-23-2008 12:23 AM

Yes, you would set that to 1. I dont close my forums.

As i recall, for one file you would set the combine option to 1.

Jase2 04-23-2008 02:08 PM

I see. Thanks, Paul!

peterska2 04-24-2008 10:53 AM

I've installed this and while it's running quite happily on some of my sites, it isn't working on others.

It appears that it dies and skips the rest of the table after 1.9GB even if the tables are backed up individually. With a 10GB post table on one site and a 2.5GB post table on another this isn't therefore giving the expected results.

Is there a way to get it to handle large tables correctly, or do I need to give up on it as a bad job on these particular sites? The whole reason I installed it is to save me having to log into SSH every day to take backups, but it is looking like it isn't going to stop my need for that at the moment.

Paul M 04-24-2008 04:54 PM

As I recall, this has a 1 hour script timeout so maybe you are exceeding that. Try upping it to 2 hours. There are no size restrictions in this other than ones the OS you are running may apply.

HybridIllusions 04-28-2008 01:26 AM

I've modified this script to create a folder per day, while it creates a backup file in the folder every 6 hours. How is this different? Well, instead of it rewriting the file, it'll make a new one, thus a 6 hour cron per day gives around 4 backup files per folder. I did this by forcing the file name to be a time, instead of a date, as well as

Thus it just creates a new file for each time that a new backup is made, in one folder per day (since the folder name is just the date and not the time, thus it doesn't create another one). How does this help? Well, it helps keep backups of times where the forums could be up and running great, but prevent backing up or replacing a backup of when the forums were hacked or whatever.

So, lets say your forum was backed up. Awesome! Now, sometime before the next backup, a hacker or someone you thought you could trust goes crazy and deletes all posts, users, or just generally messes up the software data. Well, unless caught before the next backup and the forums are running fine enough to use crons, then it'll replace the old backup file with the screwed up one. Thus, the backup won't help in that situation...

So, I just have it do a 6 hour backup per day, thus around 4 backup files in one daily folder. Anyways, just wanted to explain this, and am willing to help or re-release my modified version that does just this. However, I would need permission first, so that's why I'm posting.

If not, oh well. Thanks for releasing a killer mod! Definitely making me feel at ease :D

nothing4me 05-02-2008 07:14 PM

I get the error:
Quote:

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

HybridIllusions 05-02-2008 10:00 PM

Quote:

Originally Posted by nothing4me (Post 1506066)
I get the error:

Make sure the path to store the backups is correct (must create a all folders in the path, if not already created)

drsli 05-04-2008 03:28 PM

Quote:

Originally Posted by Paul M (Post 1498333)
As I recall, this has a 1 hour script timeout so maybe you are exceeding that. Try upping it to 2 hours. There are no size restrictions in this other than ones the OS you are running may apply.

First of all - thank you very much for providing this useful enhancement! :)

Regarding the timeouts I wonder about the flaweless function of this tool within my server-restrictions: as my provider told me, there is a timeout of 30 seconds regarding perl- and php-sripts. My database is growing beyond 30 mbs, maybe that could provoke an interruption of the backup-tool with an incomplete dump?

Paul M 05-04-2008 04:02 PM

This should override the 30 second default timeout in php.

Phaedrus 05-04-2008 04:21 PM

How different is this from the 3.6 version that I currently run?

Paul M 05-04-2008 04:58 PM

Minor changes, no need to change it if the 3.6 version is running ok for you.

Phaedrus 05-04-2008 07:41 PM

Quote:

Originally Posted by Paul M (Post 1508292)
Minor changes, no need to change it if the 3.6 version is running ok for you.

Very good. I'll mark this one as installed though.

I love this mod. It has made my life much easier.

SMO 05-05-2008 12:01 AM

Paul, just to clarify, and more for my sake... does this have the capability to back up to db on my server automatically and dump thie old one? Where does it save? In what format does it save? Sorry if this had been answered but I couldnt find the exact issues.

thanks

Phaedrus 05-05-2008 01:04 AM

Quote:

Originally Posted by SMO (Post 1508750)
Paul, just to clarify, and more for my sake... does this have the capability to back up to db on my server automatically and dump thie old one? Where does it save? In what format does it save? Sorry if this had been answered but I couldnt find the exact issues.

thanks

This simply backs up your database to somewhere on your server according to the cron timer..

You tell it which file it writes to. Mine goes into a file above the public area so nobody can access it but me...

It has no ability to upload the db, you would have to do that through more mundane means.

Stryker412 05-06-2008 01:12 PM

I have a db question in regards to this mod and wonder if someone could answer it in PM?

CheeSie 05-07-2008 11:04 AM

It never finishes for me, it always get stuck and never fully completes.. how come?

Paul M 05-07-2008 11:25 AM

Quote:

Originally Posted by CheeSie (Post 1511521)
It never finishes for me, it always get stuck and never fully completes.. how come?

Its not really possible for me to know the answer to that.

vuiveclub 05-07-2008 06:27 PM

this script stops after 30 seconds.

Paul M 05-07-2008 07:33 PM

Perhaps you are running in safe mode ?

mgurain 05-08-2008 08:50 AM

thanks alot Paul M for your great mods,,

1. How does it work ? snapshots please?
My database experiences heavy load,
2.so does this hack backup the database in batches for example and then compliled in one file or even each table in one file ?
3. Does it work with very large databases ?
4. Does it le me choose the folder and file name ?

CheeSie 05-08-2008 09:49 AM

You can choose to have all your tables saved separately or one combined file..
You choose the destination of the saved file..
It crashes 25% of the time when I'm running it on my forum (the complete db is about 400mb)..

Paul M 05-08-2008 04:23 PM

If it crashes 25% of the time then you have a local issue. My db file is over 1GB and it never crashes.

vuiveclub 05-09-2008 09:04 AM

Quote:

Originally Posted by Paul M (Post 1511959)
Perhaps you are running in safe mode ?

Yes, i am running in safe mod. My hosting provider cant disable safe mod.

Paul M 05-09-2008 04:30 PM

Then you are screwed, there is no way to overide the 30 second timeout in safe mode.

1230 05-10-2008 07:17 AM

Hi,
what i do for set setting vb Backup?
Time,data and ... . ?

arena 05-10-2008 11:39 AM

Very good master:) Thanks for hack

glennybee 05-13-2008 09:41 PM

Thanks for this, just installed.

I was wondering, does it delete backups after a certain period of time? Or does it continually create backup and you need to manually delete them?

Thanks :)

Paul M 05-13-2008 10:47 PM

It does not delete backups (unless they are the same name as the new one its creating, in which case it will overwrite).

glennybee 05-14-2008 09:56 PM

Thanks you for the reply Paul. :)

Fabsboards 05-15-2008 09:17 PM

Thanks Paul!

b6gm6n 05-18-2008 02:44 PM

anyone know the path to outside public html? i have errors cannot write file, i have set the backups dir to > home/mysitecom/backups and set the chmod to 777

Paul M 05-18-2008 02:56 PM

its usually better to use a relative path, like ../../backups/

b6gm6n 05-18-2008 03:01 PM

Quote:

Originally Posted by Paul M (Post 1523622)
its usually better to use a relative path, like ../../backups/

ahh right thanks, thats 'backups' within public html? - well ok then :)

b6gm6n 05-18-2008 03:27 PM

i should of used outside pub_html to save space... its not writing a file for me whatever dir i try or do... should of worked the first time, i'll read through this thread and see if i can find a solutions, cheers

EDIT, the solution for me was to write these databases outside of public_html, security and space saving...

The people having problems are forgetting the forward slash

/home/mysitecom/backups/

cheers

one last thing... to make it perfect this hack should gzip the output file and maybe have a setting to keep backups for a defined time period, say...going back 3 weeks or 2 days or whatever :)

cheers


All times are GMT. The time now is 01:04 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.01995 seconds
  • Memory Usage 1,814KB
  • 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_code_printable
  • (8)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