<?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>EcoBuntu.org &#187; Programming</title>
	<atom:link href="http://www.ecobuntu.org/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ecobuntu.org</link>
	<description>Tech tips...</description>
	<lastBuildDate>Thu, 25 Jun 2009 09:14:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Backup directories with perl/tar</title>
		<link>http://www.ecobuntu.org/programming/backup-directories-with-perltar/</link>
		<comments>http://www.ecobuntu.org/programming/backup-directories-with-perltar/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 08:11:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://www.ecobuntu.org/?p=39</guid>
		<description><![CDATA[<br/>#!/usr/bin/perl -w use strict; use POSIX qw(strftime); my $target_directory=shift(@ARGV); chomp($target_directory); $target_directory =~ tr/\///d; print &#34;Zipping $target_directory/* ...\n&#34;; my $set_time = strftime &#34;%d-%m-%Y_%H%M&#34;, localtime; my $zipped_directory=$target_directory.&#34;_&#34;.$set_time.&#34;.tar.gz&#34;; my $command = &#34;tar -zpcvf &#34;.$zipped_directory.&#34; &#34;.$target_directory.&#34;/*&#34;; system($command); print(&#34;\n&#34;);]]></description>
			<content:encoded><![CDATA[<br/><pre class="brush: perl;">
#!/usr/bin/perl -w

use strict;
use POSIX qw(strftime);

my $target_directory=shift(@ARGV);
chomp($target_directory);
$target_directory =~ tr/\///d;
print &quot;Zipping $target_directory/* ...\n&quot;;
my $set_time = strftime &quot;%d-%m-%Y_%H%M&quot;, localtime;
my $zipped_directory=$target_directory.&quot;_&quot;.$set_time.&quot;.tar.gz&quot;;
my $command = &quot;tar -zpcvf &quot;.$zipped_directory.&quot; &quot;.$target_directory.&quot;/*&quot;;
system($command);
print(&quot;\n&quot;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ecobuntu.org/programming/backup-directories-with-perltar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
