<?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: FreeBSD Full / Incremental Filesystem Dump Shell Script</title>
	<atom:link href="http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/</link>
	<description>Tech in a Galagzee, Not So Far Away.</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:13:07 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-20804</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Tue, 09 Mar 2010 08:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-20804</guid>
		<description>You could create a cronjob that copies the resulting dump file to another system after the dump completes. Or, dump over SSH could be integrated to the script. Here&#039;re some notes about dump over SSH I have that might be useful:

push dump of &lt;strong&gt;/usr&lt;/strong&gt;:
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>dump -0Luanf - /usr | bzip2 | ssh root@targetsystem dd of=/bak/dumps/usrdump_20100309.bz2</li><li></li></ol></div></pre><!--END_DEVFMTCODE-->
or
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>dump -0Luanf - /usr | gzip | ssh root@targetsystem dd of=/bak/dumps/usrdump_20100309.gz</li><li></li></ol></div></pre><!--END_DEVFMTCODE-->

To pull:
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>ssh backupuser@sourcesystem /sbin/dump -0uanLf - /usr | bzip2 | dd of=/bak/dumps/usrdump_20100309.bz2</li><li></li></ol></div></pre><!--END_DEVFMTCODE-->

And to restore..
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>bzcat usrdump_20100309.bz2 | restore -i -f -</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></description>
		<content:encoded><![CDATA[<p>You could create a cronjob that copies the resulting dump file to another system after the dump completes. Or, dump over SSH could be integrated to the script. Here&#8217;re some notes about dump over SSH I have that might be useful:</p>
<p>push dump of <strong>/usr</strong>:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>dump -0Luanf - /usr | bzip2 | ssh root@targetsystem dd of=/bak/dumps/usrdump_20100309.bz2</li><li></li></ol></div></pre><!--END_DEVFMTCODE--><br />
or<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>dump -0Luanf - /usr | gzip | ssh root@targetsystem dd of=/bak/dumps/usrdump_20100309.gz</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p>To pull:<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>ssh backupuser@sourcesystem /sbin/dump -0uanLf - /usr | bzip2 | dd of=/bak/dumps/usrdump_20100309.bz2</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p>And to restore..<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title=""><div class="devcodeoverflow"><ol><li></li><li>bzcat usrdump_20100309.bz2 | restore -i -f -</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carnivora</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-20801</link>
		<dc:creator>carnivora</dc:creator>
		<pubDate>Tue, 09 Mar 2010 07:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-20801</guid>
		<description>hi Ville,

any idea do you have an idea how can  i add script to scp this dump to another server?

Thanks</description>
		<content:encoded><![CDATA[<p>hi Ville,</p>
<p>any idea do you have an idea how can  i add script to scp this dump to another server?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-20595</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Fri, 05 Mar 2010 09:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-20595</guid>
		<description>You&#039;re welcome!

I found a &lt;a href=&quot;http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-02/msg00299.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;post by Jerry McAllister&lt;/a&gt; to be very enlightening regarding restoring dumps. His post is specifically about reducing a partition size, but because the only way to shrink a partition is to make a dump of it and then restore it (to a smaller partition), he outlines the process very well.</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome!</p>
<p>I found a <a href="http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-02/msg00299.html" target="_blank" rel="nofollow">post by Jerry McAllister</a> to be very enlightening regarding restoring dumps. His post is specifically about reducing a partition size, but because the only way to shrink a partition is to make a dump of it and then restore it (to a smaller partition), he outlines the process very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carnivora</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-20590</link>
		<dc:creator>carnivora</dc:creator>
		<pubDate>Fri, 05 Mar 2010 07:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-20590</guid>
		<description>Hi,

i already use this script and it works!
thanks for the great script.

but how can i restore from the dump? any idea?

thanks.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i already use this script and it works!<br />
thanks for the great script.</p>
<p>but how can i restore from the dump? any idea?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9996</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Sat, 01 Aug 2009 05:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9996</guid>
		<description>The tarball is now available for download (see then note above the displayed script).

I also clarified few points in the script&#039;s documentation.</description>
		<content:encoded><![CDATA[<p>The tarball is now available for download (see then note above the displayed script).</p>
<p>I also clarified few points in the script&#8217;s documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9992</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Sat, 01 Aug 2009 02:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9992</guid>
		<description>Hello,

Indeed, the actual code should read:

&lt;code&gt;
eval &quot;local fspath=[backslash]$${fsname}path&quot;
&lt;/code&gt;
In other words, there should be a backslash in front of the first dollar sign. The WordPress code display script wasn&#039;t displaying it correctly; I&#039;ve fixed it now. Thanks for pointing it out!

Later today I&#039;ll post the script in a tarball to make sure nothing is modified by the blog code display.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Indeed, the actual code should read:</p>
<p><code><br />
eval "local fspath=[backslash]$${fsname}path"<br />
</code><br />
In other words, there should be a backslash in front of the first dollar sign. The WordPress code display script wasn&#8217;t displaying it correctly; I&#8217;ve fixed it now. Thanks for pointing it out!</p>
<p>Later today I&#8217;ll post the script in a tarball to make sure nothing is modified by the blog code display.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James K.</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9988</link>
		<dc:creator>James K.</dc:creator>
		<pubDate>Sat, 01 Aug 2009 01:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9988</guid>
		<description>Hi,
Thanks for the nice script - however, I&#039;m keep getting an error &quot;local: 0: bad variable name&quot;.  It seems your script is having difficult time evaluating &quot;fspath&quot; from eval &quot;local fspath=$${fsname}path&quot;.  Any idea?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the nice script &#8211; however, I&#8217;m keep getting an error &#8220;local: 0: bad variable name&#8221;.  It seems your script is having difficult time evaluating &#8220;fspath&#8221; from eval &#8220;local fspath=$${fsname}path&#8221;.  Any idea?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9602</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Tue, 21 Jul 2009 06:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9602</guid>
		<description>I have posted yet another update of the script that streamlines the code further. It introduces a configuration variable to select between the start of week either on Sunday or Monday. 

Further changes have been made to logging, and processes such as attempting to compress the dump file or cull the old dump files are now not executed if the dump itself does not succeed.

I also realized that dump command allows maximum of nine incremental updates. For that reason it is not meaningful to allow infinite runs of the program. Now, instead, the program allows one dump - level 0 or an incremental dump - to be created per day. 

I&#039;m now satisfied with the script myself, and unless I discover bugs in it, 1.5 is likely the final version.</description>
		<content:encoded><![CDATA[<p>I have posted yet another update of the script that streamlines the code further. It introduces a configuration variable to select between the start of week either on Sunday or Monday. </p>
<p>Further changes have been made to logging, and processes such as attempting to compress the dump file or cull the old dump files are now not executed if the dump itself does not succeed.</p>
<p>I also realized that dump command allows maximum of nine incremental updates. For that reason it is not meaningful to allow infinite runs of the program. Now, instead, the program allows one dump &#8211; level 0 or an incremental dump &#8211; to be created per day. </p>
<p>I&#8217;m now satisfied with the script myself, and unless I discover bugs in it, 1.5 is likely the final version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9583</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Mon, 20 Jul 2009 21:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9583</guid>
		<description>I have posted an update of the script that fixes one rather significant bug: level 0 dump would not be created at the start of the week (it would, however, have been created on first &quot;incremental&quot; date).

The only functional correction was to remove one extra space (ECMA languages stick hard..) from &quot;local dumplevel = 0&quot; to &quot;local dumplevel=0&quot;. I also made various logging enhancements. The most recent version of the script has been posted.</description>
		<content:encoded><![CDATA[<p>I have posted an update of the script that fixes one rather significant bug: level 0 dump would not be created at the start of the week (it would, however, have been created on first &#8220;incremental&#8221; date).</p>
<p>The only functional correction was to remove one extra space (ECMA languages stick hard..) from &#8220;local dumplevel = 0&#8243; to &#8220;local dumplevel=0&#8243;. I also made various logging enhancements. The most recent version of the script has been posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ville Walveranta</title>
		<link>http://my.galagzee.com/2009/07/17/freebsd-dump-filesystem-shell-script/comment-page-1/#comment-9461</link>
		<dc:creator>Ville Walveranta</dc:creator>
		<pubDate>Fri, 17 Jul 2009 05:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://my.galagzee.com/?p=232#comment-9461</guid>
		<description>Note that this is a Bourne shell script as indicated by the first line of the script even though the WordPress highlights it as &quot;bash&quot;.</description>
		<content:encoded><![CDATA[<p>Note that this is a Bourne shell script as indicated by the first line of the script even though the WordPress highlights it as &#8220;bash&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
