Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Plugins/Modules/Addons

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 6th February 2010, 05:02
jmp51483 jmp51483 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Would you mind giving me a hand??

I'm receiving the following error when trying to use your script... any ideas??

./back-res: line 238: [: -gt: unary operator expected
mysql.general_log
note : The storage engine for the table doesn't support optimize
mysql.slow_log
note : The storage engine for the table doesn't support optimize
Reply With Quote
Sponsored Links
  #12  
Old 6th February 2010, 22:27
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Smile Optimize not suported by the database

Quote:
Originally Posted by jmp51483 View Post
I'm receiving the following error when trying to use your script... any ideas??

./back-res: line 238: [: -gt: unary operator expected
mysql.general_log
note : The storage engine for the table doesn't support optimize
mysql.slow_log
note : The storage engine for the table doesn't support optimize
This is because that particular database is not supporting the optimize option of mysql. This is an error which does NOT really interfere with the backup option, the database is still backed up, you can check this by looking at the database archive from that day.

This appears because I've included an optimize function of all databases before back up.
Reply With Quote
  #13  
Old 6th February 2010, 22:28
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Smile

Quote:
Originally Posted by HyperAtom View Post
Amazing script, works like a charm thanks go0ogl3
You welcome!
Reply With Quote
  #14  
Old 7th February 2010, 01:53
jmp51483 jmp51483 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by go0ogl3 View Post
This is because that particular database is not supporting the optimize option of mysql. This is an error which does NOT really interfere with the backup option, the database is still backed up, you can check this by looking at the database archive from that day.

This appears because I've included an optimize function of all databases before back up.

Hey thanks for the response!

I was more a bit worried about this part

./back-res: line 238: [: -gt: unary operator expected

Line 238 has to do with:

if [ "$pfs" -gt "$maxp" ] ;then

Is this rendering the space check inoperable??

Thanks for this script though, it's amazing!
Reply With Quote
  #15  
Old 9th February 2010, 06:40
jmp51483 jmp51483 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Would this work if I built another server completely identical, and then copied the files from one to the other... and restored.. almost creating a mirror situation?
Reply With Quote
  #16  
Old 10th February 2010, 18:32
bseibenick bseibenick is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I am getting the "./back-res: line 238: [: -gt: unary operator expected" error as well.

I am running CentOS 5.4 if that helps.

Things seem to be backing up...

Brian
Reply With Quote
  #17  
Old 11th February 2010, 22:30
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Wink

Quote:
Originally Posted by jmp51483 View Post
Hey thanks for the response!

I was more a bit worried about this part

./back-res: line 238: [: -gt: unary operator expected

Line 238 has to do with:

if [ "$pfs" -gt "$maxp" ] ;then

Is this rendering the space check inoperable??

Thanks for this script though, it's amazing!
It's possible to render the space check inoperable. I'm not sure why you get this message. This error happens only if one of the $pfs or $maxp is inexistent, is not a number, or is a decimal number (ex: 10.5)

I've tested this script on Ubuntu 9.04 and 9.10 and more versions of Slackware (10.2 up to 13.0) and it's working as expected, no errors.
If you can read this: http://gd.tuwien.ac.at/linuxcommand.org/wss0100.php and use "set" to see where the error is, post it here and I'll try to make the script better if I can.

Thank you for using this script and for providing feedback.

Edit: Can you please tell me what linux are you using? This will help me I hope to make the script better and more portable.

Last edited by go0ogl3; 11th February 2010 at 22:44. Reason: Forgot something
Reply With Quote
  #18  
Old 11th February 2010, 22:34
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Smile

Quote:
Originally Posted by jmp51483 View Post
Would this work if I built another server completely identical, and then copied the files from one to the other... and restored.. almost creating a mirror situation?
If you don't forget some usefull dir the response is yes. Be carefull to NOT include the /proc or other stuff which is automagically created at kernel start.

Thank you for feedback.
Reply With Quote
  #19  
Old 11th February 2010, 22:41
go0ogl3 go0ogl3 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Thanks: 5
Thanked 39 Times in 6 Posts
Smile

Quote:
Originally Posted by bseibenick View Post
I am getting the "./back-res: line 238: [: -gt: unary operator expected" error as well.

I am running CentOS 5.4 if that helps.

Things seem to be backing up...

Brian
I hope I'll have some time in this weekend to improve the script. I'm downloading CentOS and I will test the script to see what I'm missing. I think it must be something related to the bash settings used.

Thank you for your time.
Reply With Quote
  #20  
Old 11th February 2010, 23:41
jmp51483 jmp51483 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by go0ogl3 View Post
It's possible to render the space check inoperable. I'm not sure why you get this message. This error happens only if one of the $pfs or $maxp is inexistent, is not a number, or is a decimal number (ex: 10.5)

I've tested this script on Ubuntu 9.04 and 9.10 and more versions of Slackware (10.2 up to 13.0) and it's working as expected, no errors.
If you can read this: http://gd.tuwien.ac.at/linuxcommand.org/wss0100.php and use "set" to see where the error is, post it here and I'll try to make the script better if I can.

Thank you for using this script and for providing feedback.

Edit: Can you please tell me what linux are you using? This will help me I hope to make the script better and more portable.

I am currently running Ubuntu 9.10. I will follow up with more shortly.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
how to restore Ispconfig from backup db na0lb Installation/Configuration 4 24th September 2008 09:51
Restore backup ISPConfig leeeonardo General 4 18th April 2007 21:21
Restore ispconfig complete backup statiic General 1 15th January 2007 11:32
Backup restore on ispconfig misterm Installation/Configuration 0 19th December 2005 00:32


All times are GMT +2. The time now is 09:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.