Web Host News, Hints and Tips

  • Common SSH Commands Every Web Developer Should Know

    Posted on 04 03 2011 by David in Hosting with 0 comments

    imageclick for details
    Migrating data and backing up files should be easier. SSH is the answer.

    It’s a hugely time consuming process to backup databases and files on your web server. Logging in via phpMyAdmin, selecting the database pressing export and hoping that you don’t get a php memory error after around 5 minutes of waiting for the download to appear.

    It’s also massively time consuming backing up your Wordpress installation via FTP with 1,000’s of small files. Because your FTP program is limiting the number of files you can download to around 4 at any one time, what should be a very quick download end’s up taking hours, not because of the size, but because of the quantity.

    Imagine being able to tell the server to .zip up all the files into a handy backup called mywebsite.todaysdate.zip and downloading it in one go. Or being able to tell the server to download the database script (of any size) into a text document, then zip it up and download? The time saved by you would be astronomical. You could spend more time looking into Google Analytics, or concentrating on producing new, quality content for your website. Most importantly you’d backup more often! Now we can’t enough backup’s can we.

    Fortunately it’s possible to do all these things using SSH. SSH is a command line tool (well kinda) that allows you to preform many simple and advanced actions on your web server. It’s one of those tools that you always wish you’d known how to do years ago.

    If you’re on a mac you already have the ability to SSH through Terminal. On a PC you can download a program called Putty for free.

    Someone’s kindly put together a list of SSH commands you start using today. Simply visit http://www.sshcommands.co.uk

    Make the most of your time.

    Top

Leave a comment

user pic
Top