<?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>MYHREN.ORG &#187; Technolgy</title>
	<atom:link href="http://www.myhren.org/category/technolgy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myhren.org</link>
	<description>Move along, there is nothing to see</description>
	<lastBuildDate>Mon, 16 Nov 2009 21:27:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using rsync to update a samba share from windows</title>
		<link>http://www.myhren.org/2009/02/05/using-rsync-to-update-a-samba-share-from-windows/</link>
		<comments>http://www.myhren.org/2009/02/05/using-rsync-to-update-a-samba-share-from-windows/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 20:29:22 +0000</pubDate>
		<dc:creator>Robert Myhren</dc:creator>
				<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.myhren.org/2009/02/05/using-rsync-to-update-a-samba-share-from-windows</guid>
		<description><![CDATA[I have used this technique to migrate a windows fileserver to a ubuntu samba server.  Rsync is a brilliant tool that uses a delta-algorithm to transfer files. This makes it easy to keep folders synchronized across networks.
First I mounted the the windows share on my linux box using this command. Note the iocharset and codepage. [...]]]></description>
			<content:encoded><![CDATA[<p>I have used this technique to migrate a windows fileserver to a ubuntu samba server.  Rsync is a brilliant tool that uses a delta-algorithm to transfer files. This makes it easy to keep folders synchronized across networks.</p>
<p>First I mounted the the windows share on my linux box using this command. Note the iocharset and codepage. These are to keep my Norwegian characters normal <img src='http://www.myhren.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> cifs  <span style="color: #000000; font-weight: bold;">//</span>winserv<span style="color: #000000; font-weight: bold;">/</span>share <span style="color: #000000; font-weight: bold;">/</span>mount_dir <span style="color: #660033;">-o</span> <span style="color: #007800;">username</span>=johndoe,<span style="color: #007800;">password</span>=blabla,<span style="color: #007800;">iocharset</span>=utf8,<span style="color: #007800;">codepage</span>=cp850</pre></div></div>

<p>Then, I used rsync to copy them into the new folders. Note the exclude, this is because /exports is a NetApp file system mounted via NFS, and I don’t want to include these backup dir’s into them mess.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rsync <span style="color: #660033;">--verbose</span>  <span style="color: #660033;">--progress</span> <span style="color: #660033;">--stats</span> <span style="color: #660033;">--recursive</span> <span style="color: #660033;">--times</span> <span style="color: #660033;">--perms</span> <span style="color: #660033;">--links</span> <span style="color: #660033;">--delete</span> <span style="color: #660033;">--exclude</span> <span style="color: #ff0000;">'.snapshot'</span> <span style="color: #000000; font-weight: bold;">/</span>source_dir <span style="color: #000000; font-weight: bold;">/</span>dest_dir</pre></div></div>

<p>Voila!</p>
<p>Ps. Add the option &#8211;dry-run to have  a preview of what’s to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhren.org/2009/02/05/using-rsync-to-update-a-samba-share-from-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find &amp; copy</title>
		<link>http://www.myhren.org/2009/02/05/find-copy/</link>
		<comments>http://www.myhren.org/2009/02/05/find-copy/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 19:01:48 +0000</pubDate>
		<dc:creator>Robert Myhren</dc:creator>
				<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.myhren.org/2009/02/05/find-copy</guid>
		<description><![CDATA[I had a need to get find a few files that had been added or modified within the last 14 days and make a backup of those files.
Not to big of a problem, except that they were hidden amongst 90,000+ other files.
Find to the rescue! The operation comes in two parts.
First I need to create [...]]]></description>
			<content:encoded><![CDATA[<p>I had a need to get find a few files that had been added or modified within the last 14 days and make a backup of those files.<br />
Not to big of a problem, except that they were hidden amongst 90,000+ other files.</p>
<p>Find to the rescue! The operation comes in two parts.</p>
<p>First I need to create a mirror of the directory structure.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>exports<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-mtime</span> <span style="color: #660033;">-14</span> <span style="color: #660033;">-type</span> d <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>

<p>Then we backup the files</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>exports<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-mtime</span> <span style="color: #660033;">-14</span> <span style="color: #660033;">-type</span> f <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-pf</span> <span style="color: #ff0000;">'{}'</span> <span style="color: #ff0000;">'/root/backup/{}'</span> \;</pre></div></div>

<h6></h6>
<h6>Source:<br />
<a title="http://linux.dsplabs.com.au/find-replicate-mirror-copy-complex-directory-and-file-structure-using-hard-links-p44/" href="http://linux.dsplabs.com.au/find-replicate-mirror-copy-complex-directory-and-file-structure-using-hard-links-p44/">http://linux.dsplabs.com.au/find-replicate-mirror-copy-complex-directory-and-file-structure-using-hard-links-p44/</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.myhren.org/2009/02/05/find-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New messenger logon.</title>
		<link>http://www.myhren.org/2005/09/19/new-messenger-logon/</link>
		<comments>http://www.myhren.org/2005/09/19/new-messenger-logon/#comments</comments>
		<pubDate>Mon, 19 Sep 2005 05:20:34 +0000</pubDate>
		<dc:creator>Robert Myhren</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.myhren.org/2005/09/19/new-messenger-logon/</guid>
		<description><![CDATA[I have changed my Microsoft msn id today. From now on, I am on myhren_at_gmail.com. (Replace the _at_ with @). I changed the logon as I never use the hotmail adr. Please update your msn list.
]]></description>
			<content:encoded><![CDATA[<p>I have changed my Microsoft msn id today. From now on, I am on myhren_at_gmail.com. (Replace the _at_ with @). I changed the logon as I never use the hotmail adr. Please update your msn list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhren.org/2005/09/19/new-messenger-logon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
