<?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>Il blog di Gas &#187; bash</title>
	<atom:link href="http://www.lucagasperini.com/blog/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lucagasperini.com/blog</link>
	<description>Solo un altro sito WordPress</description>
	<lastBuildDate>Fri, 04 Nov 2011 15:04:13 +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>Move files with zenity progress bar</title>
		<link>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/</link>
		<comments>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 14:52:09 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=799</guid>
		<description><![CDATA[I&#8217;m playing with a script that moves files between two directories and does that by piping two tar commands, so called Fast Copy. You need zenity to see the progress bar, it is a work in progress as there are some bugs, eg when you click &#8220;cancel&#8221; the two tar child processes are not killed [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m playing with a script that moves files between two directories and does that by piping two tar commands, so called <a href="http://en.gentoo-wiki.com/wiki/Fast_Copy">Fast Copy</a>.</p>
<p>You need zenity to see the progress bar, it is a work in progress as there are some bugs, eg when you click &#8220;cancel&#8221; the two tar child processes are not killed for some reason, I couldn&#8217;t get the correct exit code that probably gets lost somewhere.</p>
<p>Probably in the future I&#8217;ll write a better notification.Suggestions and modifications are wellcome.</p>
<p>&nbsp;</p>
<p>&nbsp;<br />
<iframe src="http://pastebin.com/embed_iframe.php?i=AehWbP5c" style="border:none;width:100%"></iframe><br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2011-move-files-with-zenity-progress-bar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Move files in bash with tar and progress bar</title>
		<link>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/</link>
		<comments>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 13:14:57 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/?p=710</guid>
		<description><![CDATA[Example gas@caldaia ~ $ my_move source_dir/ dest_dir/ 43.5GB at 61.0MB/s eta: 59s 91% [=========== ] You need to install &#8220;command line progress bar&#8221;, in gentoo it can be installed with emerge bar in ubuntu the deb can be grabbed here and installed with gdebi. my_move: #! /bin/sh SOURCE="$1" DEST="$2" SIZE=$(du -sb "$SOURCE"&#124;awk '{print $1}') (cd [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Example</strong><br />
<code>gas@caldaia ~ $ my_move source_dir/ dest_dir/<br />
  43.5GB at   61.0MB/s  eta:   59s   91% [===========   ]</code></p>
<p>You need to install &#8220;command line progress bar&#8221;, in gentoo it can be installed with <em>emerge bar</em> in ubuntu the deb can be grabbed <a href="http://sourceforge.net/projects/clpbar/">here</a> and installed with gdebi.</p>
<p>my_move:<br />
<code>#! /bin/sh<br />
SOURCE="$1"<br />
DEST="$2"<br />
SIZE=$(du -sb "$SOURCE"|awk '{print $1}')<br />
(cd "$SOURCE" &#038;&#038; tar -cf - *)|bar -s $SIZE| (cd "$DEST" &#038;&#038; tar -xBpf -)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2010-move-files-in-bash-with-tar-and-progress-bar/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Kiss WordPress Upgrade Script</title>
		<link>http://www.lucagasperini.com/blog/2007-kiss-wordpress-upgrade-script/</link>
		<comments>http://www.lucagasperini.com/blog/2007-kiss-wordpress-upgrade-script/#comments</comments>
		<pubDate>Fri, 06 Apr 2007 20:26:52 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/2007-kiss-wordpress-upgrade-script/</guid>
		<description><![CDATA[Description This is a KISS ( Keep It Simple Stupid ) script to backup and upgrade to the latest version your wordpress blog.You will need a shell / ssh to run this script ( tested on standard linux bash ). Features No configuration needed Full Database Backup Full blog root backup excluding the backup directory [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Description</strong></p>
<p>This is a KISS ( Keep It Simple Stupid ) script to backup and upgrade to the latest version your wordpress blog.You will need a shell / ssh to run this script ( tested on standard linux bash ).</p>
<p><strong>Features</strong></p>
<ul>
<li>No configuration needed</li>
<li>Full Database Backup</li>
<li>Full blog root backup excluding the backup directory</li>
<li>Automagic blog upgrade</li>
<li>Easily written and hence easily adaptable</li>
</ul>
<p><strong>Installation</strong></p>
<p>open a shell and &#8220;cd&#8221; to your wordpress blog root path ( the one that contains wp-admin directory or wp-config.php for example)<br />
<code>wget http://www.lucagasperini.com/wpautoupgrade.sh<br />
chmod u+x wpautoupgrade.sh</code></p>
<p><strong>Usage</strong></p>
<p>open a shell and &#8220;cd&#8221; to your wordpress blog root path<br />
<code>sh wpautoupgrade.sh</code><br />
Now point your browser to http://www.example.com/wp-admin/upgrade.php</p>
<p><strong>Restore</strong></p>
<p>I have an idea for doing things the KISS way but no time for now so you have to do things manually . The backup performed is standard so you can simply follow the <a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup">codex</a>.</p>
<p><strong>Notes</strong></p>
<ul>
<li>Two different backups are made , content and sql table, they are stored in /pathtoblog/backup.</li>
<li>To download your blog backup file point your browser to http://www.example.com/backup/files.tar.gz. </li>
<li>To download your sql table backup point your browser to http://www.example.com/backup/sql.gz</li>
<li>All backups are kept and are not backed-up ( buckups don&#8217;t contain older backups). This mean that over time the backup directory can potentially become huge.Check it and delete older ones</li>
<li>I didn&#8217;t want this script to call the upgrade.php autamatically cause it means no feedback at all.</li>
<li>If you don&#8217;t have a standard wordpress install don&#8217;t use this script. For example if you use a Debian package to install wordpress this script won&#8217;t work because the deb has been debianized and all config have been moved to /etc/wordpress rather than standard /blogroot</li>
<li>If it doesn&#8217;t work is your fault <img src='http://www.lucagasperini.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2007-kiss-wordpress-upgrade-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple apes</title>
		<link>http://www.lucagasperini.com/blog/2007-multiple-apes/</link>
		<comments>http://www.lucagasperini.com/blog/2007-multiple-apes/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 19:24:53 +0000</pubDate>
		<dc:creator>gas</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.lucagasperini.com/blog/2007-multiple-apes/</guid>
		<description><![CDATA[As a reminder , the [tag]bash[/tag] command to use for decompressing a bunch of monkey&#8217;s audio ape files in a directory: ls &#124;while read line; do mac "$line" "$line".wav -d; done;]]></description>
			<content:encoded><![CDATA[<p>As a reminder , the [tag]bash[/tag] command to use for decompressing a bunch of monkey&#8217;s audio ape files in a directory:<br />
<code>ls |while read line; do mac "$line" "$line".wav -d;  done;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lucagasperini.com/blog/2007-multiple-apes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

