Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBulletin Cron Based Database Backup Details »»
vBulletin Cron Based Database Backup
Version: 4.2.0.2, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 12-27-2009 Last Update: 11-25-2013 Installs: 1434
Uses Plugins
Additional Files Translations  
No support by the author.

As of 23 Nov 2017 this modification has been withdrawn.

This is a cut down version based on a backup system written by Trigunflame for vb 3.0. It is a simple vBulletin cron trigged php system that does a dump of your database - either as one complete file, or as one file per table. Especially useful now that IB removed the old ACP backup option in vBulletin 4. Files can be (G)Zipped to save space.

All the options are located in the ACP in vBulletin Options >> vBulletin Automatic Backup

To install, download and unzip the files, and follow the instructions in the text file.


History:

v4.0.1 : 28-Dec-2009 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 29-Dec-2009 : Added ability to block process larger tables.
v4.0.3 : 27-Jun-2010 : Added Gzip option.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.0.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.
v4.2.0.1 : 17-Mar-2013 : Removed vboptions from backup call..
v4.2.0.2 : 25-Nov-2013 : Fix php 5.3 deprecated warnings, added mysqldump backup.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #852  
Old 06-02-2013, 12:49 AM
thenashy thenashy is offline
 
Join Date: May 2011
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this when trying to write the backup.

Quote:
Automatic Database Backup for vBulletin

Backup Error : Could not write to destination file ( ../../backups/2013-06-01/Forum-2013-06-01-Vb_access.sql )
Permissions seem fine to me.
Reply With Quote
  #853  
Old 06-09-2013, 10:47 AM
Shaybloom Shaybloom is offline
 
Join Date: Mar 2013
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now ONLY THING IS THIS I'M GETTING AN ERROR

Backup Error : Could not write to destination file ( home2/gagalitt/backups/2013-06-08/Forum-2013-06-08-Gagalittaccess.sql )
Reply With Quote
  #854  
Old 06-09-2013, 11:50 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your web server doesnt have permission to write the files.
Reply With Quote
  #855  
Old 06-09-2013, 09:45 PM
My Dark Tower's Avatar
My Dark Tower My Dark Tower is offline
 
Join Date: Jun 2010
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

finally got my path correct, works fine, thank you
Reply With Quote
  #856  
Old 06-10-2013, 01:45 PM
James The Cat James The Cat is offline
 
Join Date: Aug 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul you are a God dude! Thank You So Much this is going to save people's bottoms without a doubt and if I would have found it last week it would have definitely would have helped me out last night, VB support Trevor is a very nice guy but how many of us have SSH access to our servers?
Reply With Quote
  #857  
Old 06-14-2013, 04:08 AM
The_Hawk The_Hawk is offline
 
Join Date: Aug 2009
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this mod today and then added in a few extra steps

Quote:
Originally Posted by charlesr View Post
I haven't tried it myself. I googled and found this which should probably work: http://troy.jdmz.net/rsync/index.html and could include your forum filesystem as well as the db backup. Please report back on your progress
Quote:
Originally Posted by betterthanyours View Post
I do have shell access to both servers. Is there a tutorial on this anywhere?
Quote:
Originally Posted by charlesr View Post
If you have server access to two servers you could set up an rsync with ssh on a cronjob to sync the backups created by this mod to a remote server. Probably.
Using this to set up the passwords for SSH/RSYNC:
http://ericlondon.com/posts/221-sett...d-rsync-backup

I then set up a script to run in a cron job every day to take the output from this mod (the SQL database backup) as well as grabbing my two other SQL databases (currently a wordpress and vb5 testing install, both of which are tiny) and doing a full rsync of the public_html directory which ends up looking something like this:

Code:
#!/bin/bash
# Setup Filename & Date
NOW=$(date +"%Y-%m-%d")
FILE1="$NOW.wordpress.sql"
FILE1Z="$NOW.wordpress.sql.tar.gz"
FILE2="$NOW.vb5test.sql"
FILE2Z="$NOW.vb5test.sql.tar.gz"

# Move to directory
cd /home/USERFOLDER/backup

# Dump SQL databases
mysqldump -pPASSWORD -u SQLUSER SQLWORDPRESSDATABASE > $FILE1
mysqldump -pPASSWORD -u SQLUSER SQLVBULLETINDATABASE > $FILE2

# Compress Files
tar -pczf $FILE1Z /home/USERFOLDER/backup/$FILE1
tar -pczf $FILE2Z /home/USERFOLDER/backup/$FILE2

# Delete Backups
rm -rf /home/USERFOLDER/backup/$FILE1
rm -rf /home/USERFOLDER/backup/$FILE2

# Sync SQL Files
rsync -avz /home/USERFOLDER/backup/ USER@IPADDRESS:~/backupfolder/sql_backups/

# Move to directory
cd /home/USERFOLDER/backup

# Delete SQL Backups from local server (Forum* covers all outputs from this mod as I have used the prefix)
rm -rf Forum*
rm -rf /home/USERFOLDER/backup/$FILE1Z
rm -rf /home/USERFOLDER/backup/$FILE2Z

# Sync public_html Folder
rsync -avz /home/USERFOLDER/public_html/ USER@IPADDRESS:~/backupfolder/public_html/
My cron job looks like this:

/usr/local/cpanel/scripts/backup.sh >> /home/USERFOLDER/backup/backup.log 2>&1


This script is a little dirty and could be cleaned up a little, but it does work and it give me pretty much a full backup of my system for later use. Any comments are welcome.
Reply With Quote
  #858  
Old 06-14-2013, 04:23 AM
Shaybloom Shaybloom is offline
 
Join Date: Mar 2013
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Your web server doesnt have permission to write the files.
How do i solve this sir?
Reply With Quote
  #859  
Old 06-14-2013, 11:27 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fix the permissions

If you dont know how to do that yourself, ask someone who does, or speak to your host about how to do it.
Reply With Quote
  #860  
Old 06-29-2013, 06:38 PM
davidg davidg is offline
 
Join Date: Apr 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul this mod is just awesome and working fine for me.
I want to know if u can add password encryption for backups to this mod ?
if server or shared hosting get hacked bad guys can have access to database but they cant do this if database backups are encrypted with good password.
Thank You
Reply With Quote
  #861  
Old 07-03-2013, 03:01 AM
MistyMeanor's Avatar
MistyMeanor MistyMeanor is offline
 
Join Date: Sep 2002
Location: Austin, Tx
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this and could someone please tell me if I created a folder "backups" right outside of my public_html folder... where all do I enter this and how exactly do I type it in? I also selected in the task manager the vbulletin option from the drop down menu... is that correct from what I have read? I have a new forum and when I run it, it just says "done" immediately, but then I don't see a file anywhere. Should I be doing this as one file also? I have no idea what I am doing!
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 04:36 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.05478 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (14)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete