<?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: Detect directory or file changes in *nix</title>
	<atom:link href="http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/</link>
	<description>Adding more reasons to celebrate Open Source.</description>
	<lastBuildDate>Mon, 14 May 2012 12:58:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Rsync</title>
		<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/comment-page-1/#comment-8233</link>
		<dc:creator>Rsync</dc:creator>
		<pubDate>Fri, 20 Apr 2012 06:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://linuxadminzone.com/?p=137#comment-8233</guid>
		<description>&lt;strong&gt;Rsync...&lt;/strong&gt;

[...]Detect directory or file changes in *nix &#124; Linux Admin Zone[...]...</description>
		<content:encoded><![CDATA[<p><strong>Rsync&#8230;</strong></p>
<p>[...]Detect directory or file changes in *nix | Linux Admin Zone[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valeriu Palos</title>
		<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/comment-page-1/#comment-328</link>
		<dc:creator>Valeriu Palos</dc:creator>
		<pubDate>Tue, 15 Dec 2009 13:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://linuxadminzone.com/?p=137#comment-328</guid>
		<description>I added a new, much faster method of doing this on my post:
http://journal.valeriu.me/169/recursive-filedirectory-change-detection/</description>
		<content:encoded><![CDATA[<p>I added a new, much faster method of doing this on my post:<br />
<a href="http://journal.valeriu.me/169/recursive-filedirectory-change-detection/" rel="nofollow">http://journal.valeriu.me/169/recursive-filedirectory-change-detection/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valeriu Palos</title>
		<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/comment-page-1/#comment-313</link>
		<dc:creator>Valeriu Palos</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://linuxadminzone.com/?p=137#comment-313</guid>
		<description>Here is what I usually put in my scripts:
http://journal.valeriu.me/169/recursive-filedirectory-change-detection/

Beware though, that on very big folders (with hundreds or thousands of files) this may prove to be inefficient! The ideal solution would be to have control on the agent that changes those files and to simply change a variable somewhere when changes are applied. Unfortunately this is rarely the case.</description>
		<content:encoded><![CDATA[<p>Here is what I usually put in my scripts:<br />
<a href="http://journal.valeriu.me/169/recursive-filedirectory-change-detection/" rel="nofollow">http://journal.valeriu.me/169/recursive-filedirectory-change-detection/</a></p>
<p>Beware though, that on very big folders (with hundreds or thousands of files) this may prove to be inefficient! The ideal solution would be to have control on the agent that changes those files and to simply change a variable somewhere when changes are applied. Unfortunately this is rarely the case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valeriu Palos</title>
		<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/comment-page-1/#comment-312</link>
		<dc:creator>Valeriu Palos</dc:creator>
		<pubDate>Fri, 06 Nov 2009 07:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://linuxadminzone.com/?p=137#comment-312</guid>
		<description>Sure, instead of using 

stat -t $DIR 

you can make a checksum for the entire directory (recursively) like this:

find $DIR &#124; while read f; do echo `stat -t $f`; done &#124; sha1sum

Now, whenever something changes inside $DIR, the checksum will change. Also note that you can add the -L option to find, to also follow symlinks if you want.

Cheers</description>
		<content:encoded><![CDATA[<p>Sure, instead of using </p>
<p>stat -t $DIR </p>
<p>you can make a checksum for the entire directory (recursively) like this:</p>
<p>find $DIR | while read f; do echo `stat -t $f`; done | sha1sum</p>
<p>Now, whenever something changes inside $DIR, the checksum will change. Also note that you can add the -L option to find, to also follow symlinks if you want.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prl</title>
		<link>http://linuxadminzone.com/detect-directory-or-file-changes-in-linuxunix/comment-page-1/#comment-296</link>
		<dc:creator>prl</dc:creator>
		<pubDate>Wed, 26 Aug 2009 22:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://linuxadminzone.com/?p=137#comment-296</guid>
		<description>Oh man, just ran into a snag... Apparently, stat doesn&#039;t take into account activity in subdirectories, of which I have hundreds and need to sync them all.  Any ideas?</description>
		<content:encoded><![CDATA[<p>Oh man, just ran into a snag&#8230; Apparently, stat doesn&#8217;t take into account activity in subdirectories, of which I have hundreds and need to sync them all.  Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

