vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Automatic backup (https://vborg.vbsupport.ru/showthread.php?t=86010)

Orfejs 01-16-2003 05:05 AM

Automatic backup
 
I would love to have a script, which makes automatic backup once a month. It must maka a .zip archive of the fields I choose from the MySQL table (like post, attachments members & threads) and e-mail me. Is this possible - maybe together with MyPHP Admin? ;)

Tony G 01-16-2003 05:08 AM

Hmm, sounds like something that would need hacking.

Orfejs 01-16-2003 05:17 AM

Yes, but no hacks around. As I understand - it would be quite advanced - isn't it. Maybe, Tony, you can post it to other great vb sites you know?! Because I only had the idea, but don't have the time. Can you, can anybody?

filburt1 01-16-2003 12:28 PM

It can be done with a cron job; here's what I use. Beware though that I haven't put functionality in to close the boards first then reopen them after the dump is complete, but if your board is relatively inactive it's not a problem.

Also back up daily, not monthly! There have been times were I would have been royally screwed if I had to use a month-old backup.

My shell script:
Code:

#!
echo Backing up last dump...
mv ~/dump.sql ~/olderdump.sql
echo Dumping database to file...
mysqldump --opt -uusername -ppassword databasename > ~/dump.sql
echo Dump complete!


Tony G 01-16-2003 12:33 PM

Depends on how busy your forum is. I agree monthly is too long but considering the size of WDF I see why you do it daily. ;)


All times are GMT. The time now is 01:53 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.01023 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete