<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: pv (Pipe Viewer) - Shell pipeline element to meter data passing through</title>
	<atom:link href="http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Thu, 18 Mar 2010 18:04:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Martin</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-3739</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 01 Oct 2009 16:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-3739</guid>
		<description>I recommend to use the &#039;rsync&#039; program together with the &#039;--progress&#039; (or &#039;-P&#039;) option if you want a progress bar while copying files.
This works with both local and network copy processes (like &#039;scp&#039; or &#039;rcp&#039;).

I just recently configured the following aliases for my bash shell (located in my $HOME/.bashrc):

alias rscp=&#039;rsync -aP --no-whole-file --inplace&#039;
alias rsmv=&#039;rscp --remove-source-files&#039;

Where &#039;rscp&#039; means &#039;cp&#039; with &#039;rsync&#039;. The &#039;-a&#039; (archive) option ensures that all file properties (date, permissions, owner, etc.) are copied, too. &#039;-P&#039; enables the progress bar. The next two options are a matter of taste but are usefull if you copy files to a USB stick: &#039;--inplace&#039; disables the usage of a hidden file for the partial data during the copy process. &#039;--no-whole-file&#039; re-enables the synchronisation modus, i.e. in this case: a previous partially copied file is continued instead of overwritten.

THe &#039;rsmv&#039; is the move version of &#039;rscp&#039; and simply adds &#039;--remove-source-files&#039; to delete the original files after the copy process.</description>
		<content:encoded><![CDATA[<p>I recommend to use the &#8216;rsync&#8217; program together with the &#8216;--progress&#8217; (or &#8216;-P&#8217;) option if you want a progress bar while copying files.<br />
This works with both local and network copy processes (like &#8217;scp&#8217; or &#8216;rcp&#8217;).</p>
<p>I just recently configured the following aliases for my bash shell (located in my $HOME/.bashrc):</p>
<p>alias rscp=&#8217;rsync -aP --no-whole-file --inplace&#8217;<br />
alias rsmv=&#8217;rscp --remove-source-files&#8217;</p>
<p>Where &#8216;rscp&#8217; means &#8216;cp&#8217; with &#8216;rsync&#8217;. The &#8216;-a&#8217; (archive) option ensures that all file properties (date, permissions, owner, etc.) are copied, too. &#8216;-P&#8217; enables the progress bar. The next two options are a matter of taste but are usefull if you copy files to a USB stick: &#8216;--inplace&#8217; disables the usage of a hidden file for the partial data during the copy process. &#8216;--no-whole-file&#8217; re-enables the synchronisation modus, i.e. in this case: a previous partially copied file is continued instead of overwritten.</p>
<p>THe &#8216;rsmv&#8217; is the move version of &#8216;rscp&#8217; and simply adds &#8216;--remove-source-files&#8217; to delete the original files after the copy process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santa</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-2788</link>
		<dc:creator>santa</dc:creator>
		<pubDate>Tue, 21 Apr 2009 07:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-2788</guid>
		<description>Hm - of course it is not that elegant, but  to simulate cp syntax one may use:

#!/bin/bash
if [ -d $2 ]; then
  pv $1 &gt; $2/$1
else
  pv $1 &gt; $2
fi</description>
		<content:encoded><![CDATA[<p>Hm - of course it is not that elegant, but  to simulate cp syntax one may use:</p>
<p>#!/bin/bash<br />
if [ -d $2 ]; then<br />
  pv $1 &gt; $2/$1<br />
else<br />
  pv $1 &gt; $2<br />
fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aftertaf</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-2757</link>
		<dc:creator>aftertaf</dc:creator>
		<pubDate>Thu, 16 Apr 2009 05:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-2757</guid>
		<description>Isaac:
Simple, beautiful, elegant.
It works and that&#039;s very very good :)

Thanks so much :)</description>
		<content:encoded><![CDATA[<p>Isaac:<br />
Simple, beautiful, elegant.<br />
It works and that&#8217;s very very good <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks so much <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Isaac</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-2712</link>
		<dc:creator>Isaac</dc:creator>
		<pubDate>Fri, 10 Apr 2009 19:50:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-2712</guid>
		<description>There&#039;s probably a better way to use pv to copy files, I&#039;ve used the following when I wanted to monitor copy progress:

pv big_file.tgz &gt; /some_dir/sub_dir/big_file.tgz

The only real annoyance doing it that way is having to specify the desitnation file name (whereas you would normally just specify the destination dir when using cp)</description>
		<content:encoded><![CDATA[<p>There&#8217;s probably a better way to use pv to copy files, I&#8217;ve used the following when I wanted to monitor copy progress:</p>
<p>pv big_file.tgz &gt; /some_dir/sub_dir/big_file.tgz</p>
<p>The only real annoyance doing it that way is having to specify the desitnation file name (whereas you would normally just specify the destination dir when using cp)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-2493</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Fri, 06 Mar 2009 16:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-2493</guid>
		<description>I&#039;m wondering about &#039;pv&#039; and &#039;cp&#039; too!</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering about &#8216;pv&#8217; and &#8216;cp&#8217; too!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aftertaf</title>
		<link>http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html/comment-page-1#comment-2253</link>
		<dc:creator>aftertaf</dc:creator>
		<pubDate>Wed, 21 Jan 2009 08:39:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/?p=610#comment-2253</guid>
		<description>Hi...

I&#039;m a half-n00b, half-bash user . . . .

Can I use pv to display progress in a cp command?
I cant figure out how and what to pipe exactly....</description>
		<content:encoded><![CDATA[<p>Hi&#8230;</p>
<p>I&#8217;m a half-n00b, half-bash user . . . .</p>
<p>Can I use pv to display progress in a cp command?<br />
I cant figure out how and what to pipe exactly&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
