Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Using SCP

I’m slowly migrating this blog to another server (and rewriting it to use mySQL instead of serialized objects at the same time). After about half an hour of trying to figure out the best way of transferring the whole blog/ directory from this server to the new one without using FTP I figured out a way of doing it with scp (thanks to this tutorial):

scp -r blog/ username@www.wherever.com:/home/username/public_html/

Simple when you know how, a right PITA when you don’t.

This is Using SCP by Simon Willison, posted on 9th July 2002.

View blog reactions

Next: Webdocs.org

Previous: XML-RPC debugging

3 comments

  1. You might also find rsync useful if it's available on the remote server -- it calculates checksums of the files you're copying across and then only moves over the changed bits of changed files. Having said this, if you're moving to a new server then it's likely to be a one-time-only affair. I use rsync so that I can hack on my local copy of kryogenix.org and then upload the changes to my external box with one command.

    sil - 9th July 2002 09:48 - #

  2. Why not FTP? The University servers support FTP, if you know how :P Seems you don't need that anyway, now that you have found SCP. Not got around to using it yet with windoze :P

    Mark - 9th July 2002 18:33 - #

  3. I worked out how to use secure FTP at about 2 o'clock last night, couldn't get normal FTP working though for some reason.

    Simon - 9th July 2002 20:05 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/07/09/usingScp

A django site