Irish SEO,  Marketing & Webmaster Discussion

 

Ssh

This is a discussion on Ssh within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; Thanks guys although i'm really lost now. I'm new to Cron jobs and MysqlBackups etc. I've attached the Cron window ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 06-01-2008, 02:12 PM
Coder
 
Join Date: Sep 2007
Posts: 68
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
webman1 will become famous soon enough
Default

Thanks guys although i'm really lost now. I'm new to Cron jobs and MysqlBackups etc.

I've attached the Cron window option that i can see through my hosting365 CPanel.

How would i input the code above in here?

I know how to put together batch files etc. on windows but this has me lost

How do i input the -h switch?
Attached Images
File Type: jpg cron.jpg (13.3 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 06-01-2008, 02:16 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Free CSS book
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,097
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

Code:
mysql -u your_dblogin -pyour_password -h your_mysqlsubdomain.yourdomain.com your_db
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 06-01-2008, 02:19 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Free CSS book
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,097
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

Quote:
Originally Posted by sullyman1 View Post
Thanks guys although i'm really lost now. I'm new to Cron jobs and MysqlBackups etc.

I've attached the Cron window option that i can see through my hosting365 CPanel.

How would i input the code above in here?
You'd create a .sh file ... with those details from the code

you'd then point to this file /home/path/to/file.sh in your cron window


you'd put in maybe 30 0 * * * /home/path/to/file.sh into the image you showed us

this will run your script at midnight .. 30 minutes in ... every day .. every month .. every day of the week

I'd say to do it at half past ... as depending on the server load and what others are doing it could be quite high so I like to use non critical times to do backupts
__________________
Forbairt Media | Web Design & Development Galway / Dublin, Ireland - coming soon ... ( vague but descriptive isn't it )
Recent Work: Safari Club African Safari Holidays - Malawi Safaris
Other Stuff: FluffyLinkulator Rapid Inclusion Service Tools
Jumper Stuff: Task Drop's Official Geansai Gorm Website

Last edited by Forbairt; 06-01-2008 at 02:22 PM. Reason: added some more info on the time
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14 (permalink)  
Old 06-01-2008, 02:24 PM
Coder
 
Join Date: Sep 2007
Posts: 68
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
webman1 will become famous soon enough
Default

Thanks Forbairt. Will give the sh file a try soon today.

I've tried the -h option and i'm getting closer i think. It is now giving me the error that it cannot find table "MyDBName" with the following command

mysqldump -u MyUsername -pMyPassoword -h sql5.hosting365.ie MyDBName > testDB.sql

Any idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15 (permalink)  
Old 06-01-2008, 02:37 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Free CSS book
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,097
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

can you print out the exact error ? it wasn't to do with lock tables was it ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16 (permalink)  
Old 06-01-2008, 02:48 PM
Coder
 
Join Date: Sep 2007
Posts: 68
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
webman1 will become famous soon enough
Default

This is the error i received

-sh-3.00$ mysqldump: Couldn't find table: "MyDBName"
> -sh-3.00$

Not sure what you mean regarding lock tables
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17 (permalink)  
Old 06-01-2008, 02:51 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Free CSS book
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,097
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

I'm sorry to ask this ... but ...

you have changed "MyDBName" to the actual database name you are using ?


(it pained me to ask it sorry ... I'm just stumped otherwise)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18 (permalink)  
Old 06-01-2008, 02:54 PM
Coder
 
Join Date: Sep 2007
Posts: 68
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
webman1 will become famous soon enough
Default

yes i have changed the name to the actual DBName.

I'm looking at this script at moment to see will it work too
MySqlDump database backup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19 (permalink)  
Old 06-01-2008, 02:55 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
Recent Blog: Free CSS book
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,097
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

BTW ... I've also got to ask and it doesn't solve your problem via ssh .. but why not just use hosting 365's install of phpmyadmin to export your database ?

(but if you are requiring a regular cron job then that isn't the way to go)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20 (permalink)  
Old 06-01-2008, 03:10 PM
Coder
 
Join Date: Sep 2007
Posts: 68
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
webman1 will become famous soon enough
Default

I've tried using PHPMYAdmin already and have got it to export but when i try to import it into a new database, i receive errors so i thought i'd look into SSH etc.

The more i read, the more now i think that i have to setup daily cron jobs.

I'll email support @ Hosting to see have they any idea why the mysqldump command isn't working through putty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
ssh

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
changing permissons via ssh Cormac Server / Technical Administration Tips and Queries 5 15-08-2006 11:29 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 11:25 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0