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,074 Posts
33 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
  #188  
By LarryB on 01-24-2007, 04:38 AM
I saw this line: /bin/sh^M and thought that you prolly used an editor that fuxed the script.
Reply With Quote
  #189  
By Ashley on 04-19-2007, 07:35 PM
I know this is a really old thread, but I don't think my issue warrants a new one.

I'm getting this error with the script:
/bin/sh: /home/<USERNAME>/backup/backupscript.sh: cannot execute binary file

I've checked all the permissions and settings, and gone through it all again countless times. I've checked with my host and they say it's a problem with the file, but since everyone else has no trouble I am not sure whether that's true. Does anyone have any insight into this?
Thanks
Reply With Quote
  #190  
By Stump on 04-22-2007, 04:48 PM
Make sure the first line is #!/bin/sh

If it isn't, make sure you edit it using a text editor that understand UNIX line endings (one of my favorites here) so you don't get the ^M character at the end of the line that tends to break stuff.
Reply With Quote
  #191  
By Ryan on 04-22-2007, 06:48 PM
And even if you aren't using a text editor that understands UNIX, you can correct that by running the following command in shell:

dos2unix backupscript.sh
Reply With Quote
  #192  
By b65ran on 04-22-2007, 07:17 PM
Problem with directadmin

This doesn't work in my case. I am using directadmin. Can anybody help me how to do it with directadmin please.

Thanks.
Reply With Quote
  #193  
By Soliloquy on 04-22-2007, 11:18 PM
I installed this script on a rather large medical forum a couple of months ago, and it seemed to be working ok at the time. I happened to check on the directory this morning and found all three zip files were only 20 bytes large, and the .sql files they contained were blank. The script has been running on time and creating zip files, just not saving any actual data. Could this be because of the size of the database? The backups I have saved to disk are around 25meg, I'm sure it would be larger now.

Any ideas?
Reply With Quote
  #194  
By bdude on 04-23-2007, 08:51 AM
Quote:
Originally Posted by b65ran View Post
This doesn't work in my case. I am using directadmin. Can anybody help me how to do it with directadmin please.

Thanks.

Directadmin? That's a windows server ain't it - this script won't work on windows
Reply With Quote
  #195  
By b65ran on 04-24-2007, 12:11 AM
Quote:
Originally Posted by bdude View Post
Directadmin? That's a windows server ain't it - this script won't work on windows
No it's not a windows server. It is centos. Do you have any idea is it gonna work in there or not ?
Reply With Quote
  #196  
By Ashley on 04-24-2007, 01:22 AM
Not sure what I did [maybe it was changing the file encoding or removing a space after the shebang] but I've got it to work! Now to get an automated transfer to my backup host going... Thanks all for the help
Reply With Quote
  #197  
By Will on 04-24-2007, 03:58 AM
Quote:
Originally Posted by Ashley View Post
Not sure what I did [maybe it was changing the file encoding or removing a space after the shebang] but I've got it to work! Now to get an automated transfer to my backup host going... Thanks all for the help
Isnt it amazing when you dont know what you do it just works? lol thats what happend to me

Congrats! haha
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 03:08 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