Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,897 Members
165,073 Posts
38 Users Online

Please welcome our newest member, goodfriend4!

Affiliates
Go Back AdminFusion » Front Desk » Admin Resources » Tutorials » Backup Your Forums Daily
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 02-25-2006, 08:50 PM  
Ryan

Ryan is offline

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
Backup Your Forums Daily

Reply With Quote
  #198  
By Ryan on 04-24-2007, 04:02 AM
Don't touch anything then...That script can be touchy, and if it's working now, you don't wanna do anything to make it mad
Reply With Quote
  #199  
By Matthew on 06-09-2007, 01:41 PM
Thanks Ryan, great tutorial.

I've followed it carefully and have my config and CHMOD/paths correct, etc, etc, but I'm getting no back up and an error e-mailed of:

Quote:
/bin/sh: /home/my_site_name/my_site_dir/backupscript.sh: No such file or directory
Have I missed something obvious? Thank you.
Reply With Quote
  #200  
By Ryan on 06-09-2007, 01:50 PM
What do you have as the backup_path in the script itself? and have you created the folder that it is pointing to?
Reply With Quote
  #201  
By Matthew on 06-09-2007, 04:43 PM
Quote:
Originally Posted by Ryan View Post
What do you have as the backup_path in the script itself? and have you created the folder that it is pointing to?
Thanks Ryan, works perfectly now!

It was my own fault - I had a typo in the script setting for the dir name (DOH!).

Thanks for the speedy response!
Reply With Quote
  #202  
By Ryan on 06-09-2007, 04:49 PM
No problem, hope it works out well for you and creates some peace of mind
Reply With Quote
  #203  
By DeathByPixels on 09-18-2007, 03:03 PM
Would it work for backing up two different SQL databases if I renamed the script to testvb.sh and testcubecart.sh (as well as entering the correct information for each of them in both the script and the crontab)?

I guess I'll find out tomorrow as they are set to run tonight.
Reply With Quote
  #204  
By Ryan on 09-18-2007, 03:21 PM
Yes, you can run as many of these as you want. Just remember to set up 2 cron jobs as well
Reply With Quote
  #205  
By DeathByPixels on 09-18-2007, 04:23 PM
That I did do. I'm waiting until tomorrow to see if it works.
Reply With Quote
  #206  
By BENSTER on 10-21-2007, 06:34 AM
Quote:
mysqldump -q -f -Q -e -h$db_host -u$db_user -p$db_pass $db_name | gzip - > $backup_path/dbbackup_1.sql.gz
I've been using Vbulletin's backup line, and I have had really good luck restoring my DB regardless of Host, Cpanel Version, and MySQL version (Using Cpanel to make backup is only good for similar host). What do the extra switches do in your script? -q -f -e -h



Vbulletin's command line:
Code:
mysqldump --opt -Q -u dbusername -p databasename > backupname.sql
Regarding some other questions in this thread:

If you have a remote linux box, you could add a 'scp' command to send from your web server, or to retrieve from your web server this back up file. The 'scp' command has the advantage of using a public/private key set so that you do not have to put your login in details in the script.

If you do not have "shell" access to your web server, you can use 'wget' to get your backups through FTP by putting your login:password in the command line. I've used this method when a game server host does not allow shell/scp access.

Wget is also available for windows, it might be possible to schedule it as a service so your home computer grabs your backups every day.
Reply With Quote
  #207  
By neighberaaron on 10-21-2007, 07:36 AM
Any way to get this sent to my email address instead? That way if the whole server goes down, I've still got a copy?
Reply With Quote
Comment



Currently Active Users Viewing This Tutorial: 1 (0 members and 1 guests)
 
Tutorial Tools
Display Modes

 
Posting Rules

Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
Unwritten Rules of Forums Ryan Handling Problem Members 3 08-17-2008 03:17 AM
Extremely Angry and Depressed Rocket 442 Security and Legal Issues 12 01-09-2008 11:02 PM
Backup InvisionFree Forums Weekly. Thomas Invision Power Board 0 11-04-2006 06:13 AM
May 2006 - The Nextel Forums Ryan 2006 Winners Archive 0 06-01-2006 06:00 AM

AdminFusion

All times are GMT +1. The time now is 01:29 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved
Tutorial powered by GARS 2.1.9 ©2005-2006



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72