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 04-30-2009 12:29 PM

Set up a second scheduled task.

Markos 04-30-2009 01:34 PM

Quote:

Originally Posted by Paul M (Post 1801773)
Set up a second scheduled task.

ok thanks will try that lol

Markos 05-01-2009 07:43 AM

hi Paul see the way i have this set now does it mean that will run every 6 hours...?

http://img.photobucket.com/albums/v3...977/fdfsdf.jpg

Paul M 05-01-2009 12:14 PM

Eh ? I dont know how you have it set-up.

Markos 05-01-2009 12:28 PM

well if u look at the pic it has hours set to 6 so does that mean it will run every 6 hours or 6 oclock every day

Paul M 05-01-2009 03:55 PM

Viewing the post at work, the picture was not visible, must be hosted somewhere that is blocked. It means it will run at 6 every day.

Markos 05-02-2009 09:06 PM

Quote:

Originally Posted by Paul M (Post 1802558)
Viewing the post at work, the picture was not visible, must be hosted somewhere that is blocked. It means it will run at 6 every day.

thanks

SpyCam 05-04-2009 05:43 AM

Hello,
i'm having problems with this mod.

When i have these settings:
Code:

// Backup Options
$backup['LOCK'] = 1; // Lock Tables during dump
$backup['REPAIR']        = 1; // Repair & Optimize Tables before dump

I get this error:
Automatic Database Backup for vBulletin 3.7
An error occured during the Backup : Could not open Destination SQL file for writing

When i have these settings:
Code:

// Backup Options
$backup['LOCK'] = 0; // Lock Tables during dump
$backup['REPAIR']        = 0; // Repair & Optimize Tables before dump

I get this error (white page with DB error stuff):
MySQL Error : Table 'datastore' was locked with a READ lock and can't be updated
Error Number : 1099

This is my config file contents:
Code:

<?php
/*
<!-- $Header: d:\cvs/3.7/Auto-backup/includes/mysqlbackupconfig.php,v 3.2 2008/01/06 15:32:44 pem Exp $ -->

Auto-Backup (Lite) for vBulletin 3.7 - Paul M - v 3.7.001
This lite version is adapted from the original 3.0 version by Trigunflame.
*/

  // Combine all tables into one file
  $backup['COMBINE'] = 1;  // 0 = No, 1 = Yes

  // Close Forum during Backup
  $backup['SHUTDOWN'] = 1;  // 0 = No, 1 = Yes
  $backup['MESSAGE'] = "Forumas yra laikinai isjungtas, nes yra daroma atsargine duombazes kopija.";

  // File Saving Information
  $backup['DATE'] = 'Y-M-d';  // Backup file date format (See http://uk.php.net/date)
  $backup['PREFIX']        = 'auto-';  // Backup file prefix, applied to all files
  $backup['DUMP_PATH']        = '../db_backups';  // Path to backups folder, must have a trailing slash

// -----------------------------------------------------------------------------------------------//

  // Backup Options
  $backup['LOCK'] = 1; // Lock Tables during dump
  $backup['REPAIR']        = 1; // Repair & Optimize Tables before dump

  // 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')

  // Backup Optimizations
  $backup['INNODB'] = 0; // Set to 1 if you have Innodb Tables

  // Execution Function
  $backup['COMMAND'] = 'exec'; // exec, system or passthru

?>


Paul M 05-04-2009 07:29 AM

Read the notes carefully.

Quote:

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

SpyCam 05-04-2009 07:55 AM

Yeah, i tried to remove the trailing slash to see if it helps and forgot to put it back

But it doesn't help anyways.

Quote:

$backup['DUMP_PATH'] = '../db_backups/'; // Path to backups folder, must have a trailing slash
Code:

MySQL Error  : Table 'datastore' was locked with a READ lock and can't be updated
Error Number  : 1099


Paul M 05-04-2009 12:24 PM

Thats a mysql error, that basically means something tried to update the table after you locked it. Personally i wouldnt use the lock functionality, but if you do, you will most likely get errors if you leave your forum open.

SpyCam 05-05-2009 08:56 AM

Can you give me an example of configuration that would work for sure?

With the following one i still get "Automatic Database Backup for vBulletin 3.7. An error occured during the Backup : Could not open Destination SQL file for writing." error:

Code:

<?php
/*
<!-- $Header: d:\cvs/3.7/Auto-backup/includes/mysqlbackupconfig.php,v 3.2 2008/01/06 15:32:44 pem Exp $ -->

Auto-Backup (Lite) for vBulletin 3.7 - Paul M - v 3.7.001
This lite version is adapted from the original 3.0 version by Trigunflame.
*/

  // Combine all tables into one file
  $backup['COMBINE'] = 1;  // 0 = No, 1 = Yes

  // Close Forum during Backup
  $backup['SHUTDOWN'] = 1;  // 0 = No, 1 = Yes
  $backup['MESSAGE'] = "Forumas yra laikinai isjungtas, nes yra daroma atsargine duombazes kopija.";

  // File Saving Information
  $backup['DATE'] = 'Y-M-d';  // Backup file date format (See http://uk.php.net/date)
  $backup['PREFIX']        = 'auto-';  // Backup file prefix, applied to all files
  $backup['DUMP_PATH']        = '../db_backups/';  // Path to backups folder, must have a trailing slash

// -----------------------------------------------------------------------------------------------//

  // Backup Options
  $backup['LOCK'] = 0; // Lock Tables during dump
  $backup['REPAIR']        = 0; // Repair & Optimize Tables before dump

  // 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')

  // Backup Optimizations
  $backup['INNODB'] = 0; // Set to 1 if you have Innodb Tables

  // Execution Function
  $backup['COMMAND'] = 'exec'; // exec, system or passthru

?>


SpyCam 05-07-2009 06:53 AM

No solution?

Paul M 05-07-2009 07:12 AM

The error is down to your server permissions, I cannot provide answers for individual servers.

CheeSie 05-21-2009 10:17 AM

:( I love this script, but it cant handle my 1.3gb database! :(

But it always stops when processing my post table :(

Is there a way I can prevent it from timing out?
.. Or somehow make it do one table at a time?

Paul M 05-21-2009 11:23 AM

It does one table at a time.

My database is bigger than that, and works fine.

steven s 07-04-2009 03:59 PM

I get Internal Server Error after the script runs 1/4 of the way.
I do not suspect it is a problem with the mod as I have been getting this error with other auto backup scripts.

My file is ~440Mb.
What should I be asking my provider to change?

Paul M 07-05-2009 12:29 PM

No idea, "Internal Error" is a pretty meaningless generic message, you need a more specific message.

GoTTi 10-10-2009 05:58 AM

hey paul, ive been using this mod for a long time, and running into a problem...

it turns the forum off, but doesnt turn it back on after it is done backing up. what should i do? reinstall the mod?

Paul M 10-10-2009 10:04 AM

Disable that option, its always been unreliable.

GoTTi 10-11-2009 05:04 AM

Quote:

Originally Posted by Paul M (Post 1897487)
Disable that option, its always been unreliable.

disable what? the mod itself? uninstall it ?

Paul M 10-11-2009 02:39 PM

Quote:

Originally Posted by GoTTi (Post 1897903)
disable what? the mod itself? uninstall it ?

No. The option you mentioned.

Quote:

Originally Posted by GoTTi (Post 1897429)
it turns the forum off, but doesnt turn it back on after it is done backing up


GoTTi 10-12-2009 07:32 AM

i dont understand....the option is the default option for the forum. i have your mod set to turn the forum off when the backup is in progress. its not turning the forum back on when it is done. thats the problem i am running into

Paul M 10-12-2009 12:14 PM

I cannot make it any clearer.

Disable the the option that turns the forum off. Do not use that option.

softvnzla 01-01-2010 07:27 PM

Hi Paul, worked with vb 4?


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.01547 seconds
  • Memory Usage 1,776KB
  • 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
  • (5)bbcode_code_printable
  • (7)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
  • (25)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