<?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>UH.LEE.KA &#187; ntop</title>
	<atom:link href="http://www.uhleeka.com/blog/tag/ntop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uhleeka.com/blog</link>
	<description>If you think nobody cares about you, try missing a few car payments.</description>
	<lastBuildDate>Wed, 25 Aug 2010 01:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Limiting network file transfer throughput with rsync</title>
		<link>http://www.uhleeka.com/blog/2009/10/limiting-network-file-transfer-throughput-with-rsync/</link>
		<comments>http://www.uhleeka.com/blog/2009/10/limiting-network-file-transfer-throughput-with-rsync/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:42:32 +0000</pubDate>
		<dc:creator>uhleeka</dc:creator>
				<category><![CDATA[Installs and Configs]]></category>
		<category><![CDATA[ntop]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.uhleeka.com/blog/?p=404</guid>
		<description><![CDATA[To transfer a large amount of data (200GB) across a 100mbps network without saturating the connection, I used rsync with the &#8211;bwlimit=KBps flag. Transferring from Windows to Ubuntu 9.04, I first mounted the windows share: sudo mkdir /mnt/winshare sudo mount -t smbfs -o username=user,password=pass //winserver/share /mnt/winshare Next, run rsync with a specified bwlimit. Optionally, unmount [...]]]></description>
			<content:encoded><![CDATA[<p>To transfer a large amount of data (200GB) across a 100mbps network without saturating the connection, I used <strong>rsync</strong> with the <strong>&#8211;bwlimit=KBps</strong> flag.</p>
<p>Transferring from Windows to Ubuntu 9.04, I first mounted the windows share:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo mkdir /mnt/winshare
sudo mount -t smbfs -o username=user,password=pass //winserver/share /mnt/winshare</pre></div></div>

<p>Next, run <strong>rsync</strong> with a specified <strong>bwlimit</strong>. Optionally, unmount the share</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo rsync -vrR --delete --delete-excluded --bwlimit=6144 /mnt/winshare/* /destination/
sudo umount /mnt/winshare</pre></div></div>

<p><span id="more-404"></span><br />
Note that the bwlimit is in <strong>kilobytes</strong> not kilobits &#8212; 6144 KB ~= 48 Mbps.  Also note that the bwlimit is limiting the I/O bandwidth&#8230;whatever that means.</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>    --bwlimit=KBPS          limit I/O bandwidth; KBytes per second</pre></div></div>

<p>NTop (<a href="http://www.ntop.org" target="_blank">http://www.ntop.org</a>) is great for tracking bandwidth usage:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo apt-get update
sudo apt-get install ntop</pre></div></div>

<p>Set the administrative account password for ntop to run under:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo ntop -A</pre></div></div>

<p>Start the service:</p>

<div class="uhleeka_codebox"><div class="uhleeka_codebox_in"><pre>sudo /etc/init.d/ntop start</pre></div></div>

<p>Browse the reports on the default port, 3000.  http://yourserver:3000/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uhleeka.com/blog/2009/10/limiting-network-file-transfer-throughput-with-rsync/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

