vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vBulletin Cron Based Database Backup (https://vborg.vbsupport.ru/showthread.php?t=231481)

thenashy 06-02-2013 12:49 AM

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.

Shaybloom 06-09-2013 10:47 AM

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 )

Paul M 06-09-2013 11:50 AM

Your web server doesnt have permission to write the files.

My Dark Tower 06-09-2013 09:45 PM

finally got my path correct, works fine, thank you

James The Cat 06-10-2013 01:45 PM

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?

The_Hawk 06-14-2013 04:08 AM

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

Quote:

Originally Posted by charlesr (Post 2368347)
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 (Post 2368256)
I do have shell access to both servers. Is there a tutorial on this anywhere?

Quote:

Originally Posted by charlesr (Post 2368103)
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.

Shaybloom 06-14-2013 04:23 AM

Quote:

Originally Posted by Paul M (Post 2426825)
Your web server doesnt have permission to write the files.

How do i solve this sir?

Paul M 06-14-2013 11:27 PM

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.

davidg 06-29-2013 06:38 PM

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

MistyMeanor 07-03-2013 03:01 AM

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!


All times are GMT. The time now is 12:47 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.01690 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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