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)

ceo_tfw 03-07-2004 06:46 AM

installed it, great hack,,

makes life easier

is there a way to date the file as it does it,

i.e.: friday.sql... sat.sql.. sun.sql and so on

and overwrite the same file as it come to it i.e.: fri.sql will overwrite fri.sql

any thoughts on this

cteselle 03-07-2004 05:04 PM

Quote:

Originally Posted by ceo_tfw
is there a way to date the file as it does it,

i.e.: friday.sql... sat.sql.. sun.sql and so on

and overwrite the same file as it come to it i.e.: fri.sql will overwrite fri.sql


any thoughts on this

You should be able to change this line:

PHP Code:

$cur_date date('U'); 

to this:

PHP Code:

$cur_date date('l'); 

I haven't tested it but it should do it.

ceo_tfw 03-07-2004 05:23 PM

that did not work, it came up with 1.tar.gz

cteselle 03-07-2004 05:35 PM

Quote:

Originally Posted by ceo_tfw
that did not work, it came up with 1.tar.gz

hmm... did you change it to a lower case L? It looks like a 1, but it should be a lower case L. I will test this out on my forums shortly.

ceo_tfw 03-07-2004 06:11 PM

I will try l (lower case L)

it looks like the number one to me (1)

ceo_tfw 03-07-2004 06:18 PM

I tryed it and it worked great, it created Sunday.sql

thanks for the help

cheers for that

mOdEtWo 03-08-2004 09:20 AM

Quote:

Originally Posted by Mr. HillBilly
I ran this my self from adminCP and my browser timed-out waiting for it to finish :|

Hmm, that shouldn't matter. It should still run the mysql dump. It did at my forums...

Can't wait for the update Brad! :D

Boofo 03-08-2004 10:13 AM

Quote:

Originally Posted by Mr. HillBilly
Question, Once it gets does it deletes the .sql file and leaves the tar.gz right?

I ran this my self from adminCP and my browser timed-out waiting for it to finish :|

You need to chmod the directory for the backup to 777. It timed out on me too when I had it chmoded it to 775. ;)

Boofo 03-08-2004 10:15 AM

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. ;)

kristian 03-08-2004 10:43 AM

Does my server need to run with 'Safe Mode' OFF for this to work?


All times are GMT. The time now is 03:30 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.01217 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (4)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