<?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>mcBachmann.de TechBlog &#187; file manager</title>
	<atom:link href="http://blog.mcbachmann.de/tag/file-manager/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mcbachmann.de</link>
	<description>Der Blog zur Website ;-)</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:12:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>file-management: fdupes with hardlinks</title>
		<link>http://blog.mcbachmann.de/linux/file-management-fdupes-with-hardlinks</link>
		<comments>http://blog.mcbachmann.de/linux/file-management-fdupes-with-hardlinks#comments</comments>
		<pubDate>Wed, 19 Aug 2009 20:26:54 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[file manager]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=359</guid>
		<description><![CDATA[Fdupes is a very useful tool &#8211; it searches your harddisk for duplicated files and helps you to keep it structured. Currently, it only supports deleting duplicated files, which is not suitable for my music collection, because I want to store the same music in different places (eg. to make a collection for different reasons [...]]]></description>
			<content:encoded><![CDATA[<p>Fdupes is a very useful tool &#8211; it searches your harddisk for duplicated files and helps you to keep it structured. Currently, it only supports deleting duplicated files, which is not suitable for my music collection, because I want to store the <em>same</em> music in <em>different</em> places (eg. to make a collection for different reasons like music for a wedding and so on). One possibility would be to add tags to the music. But this would take very long to search through all and you can&#8217;t just copy the preselected files with just a filemanager. The solution is: fdupes should hardlink instead of deleting. <span id="more-359"></span></p>
<div class="warn"><em>WARNING: Use this only if you have a backup. The patch is new and not tested on a wide basis. This means it can destroy all your files! It also has no interactive modus. <strong>Use it on your own risk.</strong></em></div>
<p>Thanks to <a href="http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg674644.html">Javier FernÃ¡ndez-Sanguino PeÃ±a</a> its now possible to hardlink instead of delete duplicates (currently this is only available for <strong>deb</strong>-package-managers).</p>
<p>First you need to get these 3 files from a <a href="http://ftp.debian.org/debian/pool/main/f/fdupes/">Debian FTP</a>:</p>
<ul>
<li>fdupes_1.50-PR2-2.diff.gz</li>
<li>fdupes_1.50-PR2-2.dsc</li>
<li>fdupes_1.50-PR2.orig.tar.gz</li>
</ul>
<p>Than download the whole patch from this website: <a href="http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg674644.html">Bug#284274: Patch for the hardlink replacement bug request</a> and save it as <strong>fdupes.patch</strong>.</p>
<p>If your system is not already prepared to compile software, you&#8217;ll need at least the following packages:</p>
<ul>
<li>build-essential</li>
<li>devscripts</li>
<li>debhelper</li>
<li>dpatch</li>
</ul>
<p>After that run this command to extract the source:</p>
<blockquote><p><code>dpkg-source -x fdupes_1.50-PR2-2.dsc</code></p></blockquote>
<p>Then change to the source directory and apply the patch:</p>
<blockquote><p><code>cd fdupes-1.50-PR2<br />
patch -p1 <../fdupes.patch</code></p></blockquote>
<p>Now compile the source and make a debian package with the following command:</p>
<blockquote><p><code>debuild -us -uc</code></p></blockquote>
<p>After that you can install/upgrade the package easily with <strong>dpkg</strong>:</p>
<blockquote><p><code>cd ..<br />
sudo dpkg -i fdupes*deb</code></p></blockquote>
<p>Happy hardlinking - the new switch is <strong>"-L"</strong>.</p>
<p>  Sven</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/file-management-fdupes-with-hardlinks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

