Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2013, 09:01 PM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Best Way to Perform Scheduled Backups?

I notice I have a backup option in the forum cpanel itself, but also have backup options via web server... what is the best way to back up the forum nightly to where I can revert back quickly if need be due to maybe installing a wacky hack (like what just happened with the vbSocial hack that made my profiles show blank).

I do NOT want to risk losing any threads or posts, or anything within the forum. I need to not feel scared to death to install hacks to where if one is wonky, I can just quickly revert to a previous back up or something.
Reply With Quote
  #2  
Old 07-01-2013, 03:04 AM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

phpMyAdmin.
Reply With Quote
  #3  
Old 07-01-2013, 07:17 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best way to back up is NOT via a php based script like phpmyadmin.

The proper way is to use the cmd line via mysqldump or a shell based script, thats going to trigger mysqldump.
Reply With Quote
  #4  
Old 07-02-2013, 12:14 AM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am on a Mac snakes1100, how do I do the cmd and do mysqldump?
Reply With Quote
  #5  
Old 07-02-2013, 01:07 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the manual:
Backing Up The Database via SSH/Telnet or
Backing Up The Database via phpMyAdmin

Restoring The Database via SSH/Telnet or
Restoring The Database via phpMyAdmin

If you don't have shell access, some people have also reported success with these scripts:
MySQLDumper
MySQLHotxcopy
Bigdump

On a Mac, use Terminal to connect to your server via SSH.
Reply With Quote
  #6  
Old 07-02-2013, 01:37 AM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok so I was able to do it and figure it out through phpMyAdmin ... but this is something I have to manually do all the time?
Reply With Quote
  #7  
Old 07-02-2013, 01:40 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unless you set up a cron job (something through your cPanel or a modification you install), then yes you will have to do is manually.
Reply With Quote
  #8  
Old 07-02-2013, 02:59 AM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am trying to set up a cron job... I have the day/time, etc. set up... but the last thing is asks for is "command" and I have to type something in... any idea on what to type in to do the SQL Dump?
Reply With Quote
  #9  
Old 07-02-2013, 02:51 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To use the cmd line, you need to shell into your server via ssh or in your case a terminal on your mac, just open a terminal window.

Select the Go option from the main menu bar and select the Utilities menu, then select the Terminal Application.

@ the prompt, type the following:
ssh username@iptoserverhere

As your on a whm/cpanel server, there is no need to manually dump the db, unless you want just the db & not your file structure.

WHM & Cpanel both have automated backup systems, WHM you can setup to run itself & backup nightly to a folder yo ucan DL from.

Cpanel, you have to click the backup link & generate the backup, then download it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17742 seconds
  • Memory Usage 2,234KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete