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)

92GreenGT 02-24-2008 04:45 PM

I know that its not a permission issue now. I can go to my admin panel and do a database backup manually and it can write an sql to that folder. If I try it with this mod with the paths the same it doesnt work.

|Jordan| 02-28-2008 05:14 PM

Oddly when the backup task runs javascript (vbulletin_menu.js) is stripped from all the forum pages and as a result javascript of any kind doesn't work anymore. I've narrowed down the problem to this modification - it doesnt occur with any other.

Any idea's what's happening and how to fix it? What i have to do now when this happens is either disable & enable plugin hooks or use a template cache plugin that refreshes the template cache. When i do either of these things javascript works properly again.

Paul M 02-28-2008 06:25 PM

Try turning off the auto closing of the forum during backups.

|Jordan| 02-28-2008 07:41 PM

Thanks for the fast reply.

I edited the file. Hopefully tomorrow morning when it runs it won't break JS again.

Boofo 02-28-2008 08:00 PM

I have to ask this... Paul, why do you need 3 files to do what one file can do alone? I have been using a single file backup since 3.5.4 and it has always worked great and still does in 3.7.0. I'm just curious is all. ;)

Paul M 02-29-2008 11:37 AM

You'd have to ask Trigunflame that question.

Boofo 02-29-2008 11:53 AM

Paul, you're telling me you don't know? As good a coder as you are, you could do it all in one file.

https 02-29-2008 01:26 PM

dose It support utf-8 encoding?

Paul M 02-29-2008 04:41 PM

Quote:

Originally Posted by Boofo (Post 1453608)
Paul, you're telling me you don't know? As good a coder as you are, you could do it all in one file.

I see no reason to change it.

Boofo 02-29-2008 04:58 PM

I figured that would be the answer. ;)

sparky5693 03-02-2008 11:38 PM

For those of you that wanted this to delete old backups, you can change the format it names the saved file to accomplish something close. Using the method below, the output file is named Sun, Mon, Tue... etc. By doing this, it would just overwrite the correct the 7 day old file on each save.

change mysqlbackupconfig.php

change this
Code:

$backup['DATE'] = 'Y-m-d';  // Backup file date format
to this
Code:

$backup['DATE'] = 'D';  // Backup file date format
Remember... you'll only have 7 days of backups on hand like this. If something goes wrong, you need to get to it before your backup is overwritten.

Phaedrus 03-03-2008 12:42 AM

Well, I was able to get it to work, but no matter what path I put in, it saves it to the public directory.

Dangit.

Phaedrus 03-03-2008 01:46 AM

Sweet. I set permissions so nobody can see the folder, but this can write to it...

Excellent.

What is the best setting to put so it can write but nobody can see your backups?...

Forget it. I used ../Backupfile

This brought it off the public file. Now they have no access.

However it works on chmod 722, which allows it to write, but nobody can really see it, unless you are logged into your CPanel, if you can only load it to a public file...

BadgerDog 03-03-2008 09:49 AM

Quote:

Originally Posted by sparky5693 (Post 1455546)
For those of you that wanted this to delete old backups, you can change the format it names the saved file to accomplish something close. Using the method below, the output file is named Sun, Mon, Tue... etc. By doing this, it would just overwrite the correct the 7 day old file on each save.

change mysqlbackupconfig.php

change this
Code:

$backup['DATE'] = 'Y-m-d';  // Backup file date format
to this
Code:

$backup['DATE'] = 'D';  // Backup file date format
Remember... you'll only have 7 days of backups on hand like this. If something goes wrong, you need to get to it before your backup is overwritten.

Thank you.... :up:

I've been doing it manually.... :)

Does this also work for file-by-file mode (table by table?) , besides one single file?

Regards,
Badger

Paul M 03-03-2008 03:42 PM

Quote:

Originally Posted by BadgerDog (Post 1455784)
Does this also work for file-by-file mode (table by table?) , besides one single file?

Yes, it should do.

BadgerDog 03-04-2008 09:51 AM

Quote:

Originally Posted by Paul M (Post 1456019)
Yes, it should do.

Thanks Paul ... :up:

I made the change this morning, although at this point I left it for singles file, so I'll see what it does tonight...

Regards,
Badger

jscieza 03-05-2008 01:44 PM

Hi Paul,

I have a few questions, hope you can help me :)

The first one is about the parameter to shutdown the forum during backups. Why I would need to setup it to '1'? It makes backups more reliable? Do you recommend to shutdown forums during backups?

The second is about the lock tables during bump. The same question... it makes the backups more reliable?

And the three one is related to split backups in independent files for each table. I manually download my backups everyday and it's easier for me to make the backup in one unique file... it's a bad practice to backup in one SQL file all the tables?

Finally, how I tell you lines above, I download my SQL backup file via FTP. It's secure to download my backup file using FTP? I heard about it's better to use SSH to download a backup file :confused:.

Thank you for your time... and your patience :D

|Jordan| 03-06-2008 06:38 AM

Paul, it worked! So far javascript hasn't disabled.

Any idea's why it was disabling it when "close forum" was enabled?

Paul M 03-06-2008 06:32 PM

Quote:

Originally Posted by jscieza (Post 1457612)
The first one is about the parameter to shutdown the forum during backups. Why I would need to setup it to '1'? It makes backups more reliable? Do you recommend to shutdown forums during backups?

The second is about the lock tables during bump. The same question... it makes the backups more reliable?

And the three one is related to split backups in independent files for each table. I manually download my backups everyday and it's easier for me to make the backup in one unique file... it's a bad practice to backup in one SQL file all the tables?

Finally, how I tell you lines above, I download my SQL backup file via FTP. It's secure to download my backup file using FTP? I heard about it's better to use SSH to download a backup file :confused:

1. There is no need to close the forum, I don't (and in rare cases it can cause issues - see below).

2. Again, there is no need to, and it will stop you forum being used while the backup runs.

3. Its purely personal preference.

4. I use FTP, technically its more insecure, but in the real world its not likely that anyone will intercept your download.

Quote:

Originally Posted by |Jordan| (Post 1458262)
Paul, it worked! So far javascript hasn't disabled.

Any idea's why it was disabling it when "close forum" was enabled?

Yes, the way the current system works appears to occasionally screw up some vb options.

jscieza 03-07-2008 03:17 AM

Paul, thank you very much for your reply :up:

Pirat3 03-08-2008 01:42 AM

Question, my path is this (to my FORUM):
/home/mysite/public_html

Can someone please reply back to what new directory i should create to store my backups in? Should it be something like this:
/home/mysite/BACKUPS ?

The mysite folder contains 2 folders, one is public_html and other is certs

This is linux server btw.

Paul M 03-09-2008 01:49 AM

Quote:

Originally Posted by Pirat3 (Post 1459757)
Can someone please reply back to what new directory i should create to store my backups in? Should it be something like this:
/home/mysite/BACKUPS ?

Yes, that would be a good choice.

F0xy 03-16-2008 01:12 PM

to stop it from shutting the board while the backup is in progress do i make the following changes?

change: $backup['SHUTDOWN'] = 1;

to: $backup['SHUTDOWN'] = 0;

Paul M 03-16-2008 03:14 PM

Yes.

GoTTi 03-26-2008 03:22 AM

so this will make a new folder and backup file for each day correct? or will it continue to overwrite the 1 it makes?

Paul M 03-26-2008 10:00 PM

That depends on how you set up the time in the config. It will overwrite anything of the same name.

GoTTi 03-27-2008 12:01 AM

Paul im stupid, explain to me what i would have to do if i want to have the backup create a new file each time the backup runs?

Arrogant-One 03-29-2008 07:13 AM

EDIT: Nvm fixed.

Animparadise 03-30-2008 06:53 PM

i have problem with persian(farsi) (utf8) character, when i restore the specific table, it restore question marks "?????" instead of orginal persian(farsi) characters. something like : تست == ؟؟؟

afullcup 04-05-2008 07:10 PM

Quote:

Originally Posted by Paul M (Post 1428776)
So how do you fix it ?

As soon as I disable this product, the hover feature comes back. :confused:

Tom_S 04-06-2008 05:54 AM

Paul is it possible you could write a script to just force a repair/optimize every set minute/hour/day type deal? I ask because that is in this script when it runs the backup.

Thanks in advance

Paul M 04-06-2008 11:06 AM

There is no valid reason to want to repair/optimize mysql that often. Its only in this because the original author added it, and I have never removed it. :)

Tom_S 04-06-2008 02:12 PM

Okay...thanks for the reply.

SteveCoppin 04-10-2008 07:52 AM

I've skimmed through all of the posts and I apologise if this is mentioned previously..

On my instance, if you're the person unfortunate enough to kick off the database backup you are presented with the output from the backup script. Is there any way to turn this off?

Paul M 04-10-2008 10:06 AM

I'm pretty sure that should never happen. Sounds a bit odd to me.

arena 04-13-2008 02:20 AM

thank you nice

1quick1 04-14-2008 12:20 AM

Hey Paul M, thanks for this. This works like a charm.

I'm going through my plugins now and getting my site 3.7 ready. Is this expected to be 3.7 compatible?

Paul M 04-14-2008 06:52 AM

There is a 3.7 version in the 3.7 forum.

1quick1 04-15-2008 03:17 AM

Quote:

Originally Posted by Paul M (Post 1490232)
There is a 3.7 version in the 3.7 forum.

Thx, installed that one and it works like a charm just like this one. :up:

Davey-UK 04-19-2008 10:50 AM

This may have been answered, but i cant find it.
After downloading the backup, i find it has saved all the tables seperately. I now want to update my mysql with a complete backup, but this will take forever with all the seperate files.

Is there a way to join all the files or install all in one hit??


All times are GMT. The time now is 10:45 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.01709 seconds
  • Memory Usage 1,819KB
  • 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
  • (4)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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