<?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: Backup A Directory With Email</title>
	<atom:link href="http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/feed/" rel="self" type="application/rss+xml" />
	<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/</link>
	<description>The Rants of a UC Berkeley Student</description>
	<lastBuildDate>Sat, 20 Feb 2010 04:47:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Misunderestimated Email Backup Script at not.upbylunch</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-1601</link>
		<dc:creator>Misunderestimated Email Backup Script at not.upbylunch</dc:creator>
		<pubDate>Thu, 20 Apr 2006 11:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-1601</guid>
		<description>[...] Another email backup script to rival EvilCoder&#8217;s script. So have fun and use it with a cronjob to make it easier. And please change the information in the file so I don&#8217;t get a bunch of your backups. [...]</description>
		<content:encoded><![CDATA[<p>[...] Another email backup script to rival EvilCoder&#8217;s script. So have fun and use it with a cronjob to make it easier. And please change the information in the file so I don&#8217;t get a bunch of your backups. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Python Email Backup Script at not.upbylunch</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-1579</link>
		<dc:creator>Python Email Backup Script at not.upbylunch</dc:creator>
		<pubDate>Wed, 12 Apr 2006 22:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-1579</guid>
		<description>[...] EvilCoder&#8217;s Perl Email Backup script now has competition!  import os import smtplib import tarfile from email import Encoders from email.MIMEBase import MIMEBase from email.MIMEMultipart import MIMEMultipart [...]</description>
		<content:encoded><![CDATA[<p>[...] EvilCoder&#8217;s Perl Email Backup script now has competition!  import os import smtplib import tarfile from email import Encoders from email.MIMEBase import MIMEBase from email.MIMEMultipart import MIMEMultipart [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-931</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 17 Oct 2005 10:47:46 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-931</guid>
		<description>The &#039;wanted&#039; function determines which files are added to the tar archive. It basically acts as a filter. Since this script was designed to add all files in a directory, the filter is wide open -- it performs no match/check.

You can add a match/check by using logical operations as so:

sub wanted {
/(php&#124;css&#124;html)$/i &amp;&amp; $tar-&gt;add_files($File::Find::name);
}

The above subroutine uses a case-insensitive regular expression to check if the filename ends in either php, css, or html.

I haven&#039;t actually tried this code, but it should work. If not, tell me and I&#039;ll figure out why.</description>
		<content:encoded><![CDATA[<p>The &#8216;wanted&#8217; function determines which files are added to the tar archive. It basically acts as a filter. Since this script was designed to add all files in a directory, the filter is wide open &#8212; it performs no match/check.</p>
<p>You can add a match/check by using logical operations as so:</p>
<p>sub wanted {<br />
/(php|css|html)$/i &amp;&amp; $tar-&gt;add_files($File::Find::name);<br />
}</p>
<p>The above subroutine uses a case-insensitive regular expression to check if the filename ends in either php, css, or html.</p>
<p>I haven&#8217;t actually tried this code, but it should work. If not, tell me and I&#8217;ll figure out why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-930</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 17 Oct 2005 08:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-930</guid>
		<description>Hi Stephen, thanks for the script.  I tried changing it around a little but was unsuccessful (not well versed in perl quite yet).  What I&#039;m trying to do is get the script to only include files with a .php, .css, .html file extensions.  Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi Stephen, thanks for the script.  I tried changing it around a little but was unsuccessful (not well versed in perl quite yet).  What I&#8217;m trying to do is get the script to only include files with a .php, .css, .html file extensions.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-470</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Wed, 11 May 2005 05:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-470</guid>
		<description>Thanks for the link, mk!

It looks like GeSHi might be more efficient than Enscript. I&#039;ll test the plugin when I get a chance.</description>
		<content:encoded><![CDATA[<p>Thanks for the link, mk!</p>
<p>It looks like GeSHi might be more efficient than Enscript. I&#8217;ll test the plugin when I get a chance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mk</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-468</link>
		<dc:creator>mk</dc:creator>
		<pubDate>Tue, 10 May 2005 09:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-468</guid>
		<description>look for http://dev.wp-plugins.org/wiki/GeshiSyntaxColorer 
maybe you&#039;ll like my coloring plugin in advance :-)</description>
		<content:encoded><![CDATA[<p>look for <a href="http://dev.wp-plugins.org/wiki/GeshiSyntaxColorer" rel="nofollow">http://dev.wp-plugins.org/wiki/GeshiSyntaxColorer</a><br />
maybe you&#8217;ll like my coloring plugin in advance <img src='http://stephen.evilcoder.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-467</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 09 May 2005 22:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-467</guid>
		<description>Yup! Unfortunately, the plugin doesn&#039;t cache the pretty code formatting -- every time this post is loaded, it must re-generate the markup. Under normal loads, this is acceptable, but I&#039;m afraid that, with a steady stream of visits, it&#039;ll lag down my server. Unfortunately I can&#039;t come up with a good way to cache the formatting. *sigh*

This script has proven to be especially useful in recent days, as I&#039;ve been able to have automatic backups of important directories on my server and laptop automatically saved on gmail. Combined with the + tagging -- your_email_addy+some_random_tag@gmail.com -- this script is a lifesaver.</description>
		<content:encoded><![CDATA[<p>Yup! Unfortunately, the plugin doesn&#8217;t cache the pretty code formatting &#8212; every time this post is loaded, it must re-generate the markup. Under normal loads, this is acceptable, but I&#8217;m afraid that, with a steady stream of visits, it&#8217;ll lag down my server. Unfortunately I can&#8217;t come up with a good way to cache the formatting. *sigh*</p>
<p>This script has proven to be especially useful in recent days, as I&#8217;ve been able to have automatic backups of important directories on my server and laptop automatically saved on gmail. Combined with the + tagging &#8212; <a href="mailto:your_email_addy+some_random_tag@gmail.com">your_email_addy+some_random_tag@gmail.com</a> &#8212; this script is a lifesaver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kath</title>
		<link>http://stephen.evilcoder.com/2005/05/07/backup-a-directory-with-email/comment-page-1/#comment-466</link>
		<dc:creator>Kath</dc:creator>
		<pubDate>Mon, 09 May 2005 17:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://stephen.evilcoder.com/archives/2005/05/07/backup-a-directory-with-email#comment-466</guid>
		<description>It&#039;s pretty and colorful now! xD</description>
		<content:encoded><![CDATA[<p>It&#8217;s pretty and colorful now! xD</p>
]]></content:encoded>
	</item>
</channel>
</rss>
