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
35 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
  #18  
By markblair on 02-27-2006, 07:42 AM
Quote:
Originally Posted by Ryan
Right, when a fourth backup is made, the third oldest is deleted. You only have 3 backups at any given time. This does give me an idea, though. I can create more scripts which will maintain a different number of backups...ie: 5, 7, 10, 15, 20, 25, more?

...

Would like to get some feedback here before creating the scripts and rewriting the tutorial though.
I'd say that 7 days should be more than enough. I do have a script that runs now which backs up my forum database every morning at 5:00am. It saves the files in the root of the site (i.e. /home/username/). I usually login every few days and download them. As you said, it might be a good idea to run this along with the script I currently run.
Reply With Quote
  #19  
By dazzlindonna on 02-27-2006, 08:03 AM
Didn't work. Darn.
Reply With Quote
  #20  
By Ryan on 02-27-2006, 08:08 AM
Have you checked everything twice?

Proper backupscript.sh configuration? Proper file extension? CHMOD the backup file to 755? Backup directory exists? Cron set up to run at the correct times?

If you have done all of this and can't locate the problem, feel free to PM me with FTP and cPanel access...If you'd rather not give that out, I can understand that as well...although in this situation, with no error reports, that's really the only way I can help out.
Reply With Quote
  #21  
By dazzlindonna on 02-27-2006, 02:53 PM
Email I got from cron says:

/bin/sh: line 1: home/myusername/backupfolder/backupscript.sh: No such file or directory

I checked everything several times. Directory there and spelled right. Check. Path correct. Check. Script there and spelled right. Check. chmod is 755. check.

I'll start over today with a fresh mind and see if there's anything I missed or misunderstood.
Reply With Quote
  #22  
By Ryan on 02-27-2006, 04:02 PM
Did you rename backupscript.sh.txt to backupscript.sh?
Reply With Quote
  #23  
By dazzlindonna on 02-27-2006, 04:55 PM
Yes, I did.
Reply With Quote
  #24  
By LarryB on 02-28-2006, 02:55 AM
I notice in the message you posted there is no slash before the home. In order to access home by absolute pathes it would need /home/myusername/backupfolder/...
Reply With Quote
  #25  
By dazzlindonna on 02-28-2006, 04:00 AM
Right, and despite the fact that the error message doesn't show the / before home, the / does exist in the file before the word home.
Reply With Quote
  #26  
By LarryB on 02-28-2006, 04:07 AM
interesting. that is very strange. Wonder what user the cron is executing as. If the cron is executing as a jail'd user it won't be able to find the folder.
Reply With Quote
  #27  
By dazzlindonna on 02-28-2006, 04:11 AM
I don't know exactly what that means, but it sounds like a reasonable explanation. Ah well, back to manual backups for me.
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:55 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