<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>MovingWbicData</title><revhistory><revision><revnumber>4</revnumber><date>2013-03-08 10:28:26</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>3</revnumber><date>2007-07-13 09:49:40</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>2</revnumber><date>2007-07-11 17:11:07</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>1</revnumber><date>2007-07-11 17:10:19</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision></revhistory></articleinfo><section><title>Moving data from the WBIC to the CBU unix machines</title><para>See: <ulink url="http://www.cae.wisc.edu/site/public/?title=linux-sftp"/> </para><para><emphasis role="strong"> Note - you may get a message like <code>ssh_exchange_identification: Connection closed by remote host</code>; this might be because there are currently too many connections - <ulink url="http://www.raditha.com/blog/archives/000604.html"/> - or it may not</emphasis> </para><section><title>To get individual files</title><para>From a unix shell on the CBU system: </para><screen><![CDATA[sftp yourwbicusername@gate1.wbic.cam.ac.uk]]></screen><para>From there you can <code>ls</code>, get help with <code>?</code> and copy files with: </para><screen><![CDATA[> get a_wbic_file]]></screen><para>and get lots of files with: </para><screen><![CDATA[> get a_wbic_directory/*]]></screen></section><section><title>To get directories etc</title><para>Use scp.  For example: </para><screen><![CDATA[scp -r yourwbicusername@gate1.wbic.cam.ac.uk:my_directory .]]></screen><para>will copy the wbic directory <code>my_directory</code> and all files below to your current working directory (<code>.</code>) </para></section><section><title>And delete the files you've fetched</title><para><emphasis role="strong"> Check you have really got the data you think you have transferred, then:</emphasis> </para><para>Use ssh: </para><screen><![CDATA[ssh yourwbicusername@gate1.wbic.cam.ac.uk
rm -rf my_directory]]></screen><para><ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/methods/MovingWbicData/methods/MatthewBrett#">MatthewBrett</ulink> </para></section></section></article>