<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Our Geek Space &#187; ftp</title>
	<atom:link href="http://blog.moove-it.com/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.moove-it.com</link>
	<description>be free to express yourself...</description>
	<lastBuildDate>Thu, 26 Jan 2012 19:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Transferring directory trees over ftp</title>
		<link>http://blog.moove-it.com/transferring-directory-trees-over-ftp/</link>
		<comments>http://blog.moove-it.com/transferring-directory-trees-over-ftp/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 01:48:12 +0000</pubDate>
		<dc:creator>Gian Zas</dc:creator>
				<category><![CDATA[infraestructure]]></category>
		<category><![CDATA[moove-it]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.moove-it.com/?p=171</guid>
		<description><![CDATA[Imagine all the people having to live without ssh and an assigned job related to hosting migrations with low bandwidth access, what a painfull world&#8230; Ok, get up! it was only a nightmare, but if a strange reason causes you must accomplish that task you may wish get/put directories recursively from/to a ftp server. The [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine all the people having to live without ssh and an assigned job related to hosting migrations with low bandwidth access, what a painfull world&#8230;</p>
<p>Ok, get up! it was only a nightmare, but if a strange reason causes you must accomplish that task you may wish <strong><span style="color: #3366ff;">get/put</span></strong> directories recursively from/to a <span style="color: #3366ff;"><strong>ftp server</strong></span>.</p>
<p>The bad news are that the <strong><span style="color: #3366ff;">FTP protocol</span></strong> doesn&#8217;t supports this operation, you can get only an individual file or a group of files that expands some wildcard expression, but you can&#8217;t get/put recursively an entire directory.</p>
<p>Luckily <span style="color: #3366ff;"><strong><a title="ncftp" href="http://www.ncftp.com/ncftp/">ncftp</a></strong></span> saves the day, it&#8217;s a free <strong><span style="color: #3366ff;">ftp client</span></strong> (free as in beer and free as non-private), that supports many features like background processing and directory tree copy.</p>
<p>So, to <strong><span style="color: #3366ff;">GET</span></strong> the contents a whole directory tree just invoke <span style="color: #3366ff;"><strong>ncftpget</strong></span> command:</p>
<pre>$&gt; ncftpget -R -u &lt;user_account&gt; ftp.moove-it.com /home/gian/migration_h /remote_directory</pre>
<p>* -R copy a whole directory<br />
* ftp.xxx.x is the remote ftp server<br />
* /home/yyy is the local destination<br />
* and /remote_xx is the ftp directory to be transfered</p>
<p><strong><span style="color: #3366ff;">PUT</span></strong> a directory is trivial too, just invoke the <strong><span style="color: #3366ff;">ncftpput</span></strong> command:</p>
<pre>$&gt; ncftput -R -u &lt;user_account&gt; ftp2.moove-it.com /home/gian/migration_h /remote_directory</pre>
<p>be happy!</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://blog.moove-it.com/transferring-directory-trees-over-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

