vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [vbcron] Automatic database backup [v1.3] (https://vborg.vbsupport.ru/showthread.php?t=62149)

Boofo 03-08-2004 12:49 PM

Quote:

Originally Posted by kristian
Does my server need to run with 'Safe Mode' OFF for this to work?

It shouldn't make a difference. Do you have the backup directory chmoded to 777? And are you sure you have the correct path to the backup directory?

WildEye 03-08-2004 07:32 PM

Quote:

Originally Posted by Boofo
How about the day of the week and the date behind it? Like this:

Sunday-Mar_3_2004.tz?

EDIT: I figured it out. This is what I have now:

$cur_date = date('l-F_j_Y');

and the filename is:

Monday-March_8_2004.tar.gz

Works like a charm, Brad! Thank you, sir. ;)

Thanks alot to both of you. Just had to include the path to mysqldump, which I misstyped a couple of times (and forgot to include the '...

Very nice feature, which i'll see if works tomorrow morning after my scheduled backup at 6am :) (already tested the run now thing)

Mr. HillBilly 03-08-2004 08:39 PM

What settings would I set to make the script run every 2 days in the admincp task area?

WildEye 03-09-2004 07:35 AM

Small problem...

While the task ran as scheduled and made the file in the correct area, the time was half an hour late... and there is no record of the script being run in the log. (view all). I selected log entries: yes.

Any tips?

cteselle 03-09-2004 03:24 PM

I was wondering about this as well... I looked at the other cron scripts and noticed a call to the log_cron_action function. I tried adding:

PHP Code:

log_cron_action('Database Backup Completed'$nextitem); 

to the end of the file, and the script stalled altogether. Anyone know why this function wouldn't work right? :ermm:

Pikok 03-12-2004 06:20 AM

Quote:

Originally Posted by WildEye
Small problem...

While the task ran as scheduled and made the file in the correct area, the time was half an hour late... and there is no record of the script being run in the log. (view all). I selected log entries: yes.

Any tips?

There has to be someone on your site at the time it's set to run or it won't run until the next time someone visits.. Also, only one script's run each time, even if more than one are waiting to be ran.

mOdEtWo 03-12-2004 06:49 AM

Quote:

Originally Posted by Brad.loo
Planned improvements:

Zip file type support
Delete last backup when doing current one
Close boards when backing up
Clear session table before backup
Options to NOT include stuff like the postcache in the backup

When? :)

Martyjp 03-14-2004 12:33 PM

Quote:

Originally Posted by Boofo
It shouldn't make a difference. Do you have the backup directory chmoded to 777? And are you sure you have the correct path to the backup directory?


What format for the path should we be using?

/home/space/public_html/backupdir or ./backupdir ?

*arie 03-14-2004 12:39 PM

thanks, this worked for me! :p

btw, Martyjp , i used the 1st path you mentioned.
/home/space/public_html/backupdir

Morpheus84 03-14-2004 01:36 PM

nobody could help me ? :(


All times are GMT. The time now is 06:32 AM.

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.01267 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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