<?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: MySQL Snapshot from a full disk. Tar over ssh</title>
	<atom:link href="http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/</link>
	<description>You will probably want some waders, a pickaxe, and one of those hats with a light on it before you go in here.</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:39:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Toby</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1597</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Wed, 29 Mar 2006 23:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1597</guid>
		<description>Don&#039;t forget (GNU) tar has the -C (change directory) option for this purpose, so in your example you could write

cartman&gt; tar -C /usr/local/mysql -cvf - data &#124; ssh stan ‘sudo tar -C /usr/local/mysql -xf -’</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget (GNU) tar has the -C (change directory) option for this purpose, so in your example you could write</p>
<p>cartman&gt; tar -C /usr/local/mysql -cvf &#8211; data | ssh stan ‘sudo tar -C /usr/local/mysql -xf -’</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bergen</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1594</link>
		<dc:creator>Eric Bergen</dc:creator>
		<pubDate>Wed, 29 Mar 2006 03:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1594</guid>
		<description>GNU Tar has the -z and -j flag for optional gzipping/bzipping.</description>
		<content:encoded><![CDATA[<p>GNU Tar has the -z and -j flag for optional gzipping/bzipping.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Moore</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1592</link>
		<dc:creator>Chris Moore</dc:creator>
		<pubDate>Wed, 29 Mar 2006 02:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1592</guid>
		<description>I&#039;m always finding this one-line bash script useful:

echo some:set:of:data:in:one:line &#124; while read LINE; do FIRST=`echo $LINE &#124; cut -d: -f1`; SECOND=`echo $LINE &#124; cut -d: -f2`; echo $SECOND $FIRST; done

This script will spit out &quot;set some&quot;. 

The general usefulness is that you can parse input to this script, line for line. It&#039;s pretty easy to parse out pieces in various ways and then use them for some command you need the values for. Combine this with some output and error handling/redirection and you can whip together some quick-n-dirty solutions :)</description>
		<content:encoded><![CDATA[<p>I&#8217;m always finding this one-line bash script useful:</p>
<p>echo some:set:of:data:in:one:line | while read LINE; do FIRST=`echo $LINE | cut -d: -f1`; SECOND=`echo $LINE | cut -d: -f2`; echo $SECOND $FIRST; done</p>
<p>This script will spit out &#8220;set some&#8221;. </p>
<p>The general usefulness is that you can parse input to this script, line for line. It&#8217;s pretty easy to parse out pieces in various ways and then use them for some command you need the values for. Combine this with some output and error handling/redirection and you can whip together some quick-n-dirty solutions <img src='http://ebergen.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Hollins</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1589</link>
		<dc:creator>Luke Hollins</dc:creator>
		<pubDate>Tue, 28 Mar 2006 17:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1589</guid>
		<description>I have had some issues with rsync between differing systems but it&#039;s generally OK. In situations where you&#039;re paying by the bit it&#039;s very useful. For stuff tar misses I am thinking for example on FreeBSD of file flags from chflags and ACLs from get/setfacl.</description>
		<content:encoded><![CDATA[<p>I have had some issues with rsync between differing systems but it&#8217;s generally OK. In situations where you&#8217;re paying by the bit it&#8217;s very useful. For stuff tar misses I am thinking for example on FreeBSD of file flags from chflags and ACLs from get/setfacl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1588</link>
		<dc:creator>Sheeri</dc:creator>
		<pubDate>Tue, 28 Mar 2006 14:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1588</guid>
		<description>My trick is df -h and du -sh.  Always figure out the size of what you&#039;re tar&#039;ing up!!!  Blindly tar&#039;ing and coming back to find the disk is full is not responsible sysadmining.  If you have a script to backup like that, a few simple tests to make sure you won&#039;t run out of space (using df and du) are in order.

As well, you can tar &#124; gzip -c and that will zip the input as it comes in, as opposed to tar&#039;ing and then gzip&#039;ing.  Unfortunately, bzip2 doesn&#039;t have a feature like that, as it compresses better.</description>
		<content:encoded><![CDATA[<p>My trick is df -h and du -sh.  Always figure out the size of what you&#8217;re tar&#8217;ing up!!!  Blindly tar&#8217;ing and coming back to find the disk is full is not responsible sysadmining.  If you have a script to backup like that, a few simple tests to make sure you won&#8217;t run out of space (using df and du) are in order.</p>
<p>As well, you can tar | gzip -c and that will zip the input as it comes in, as opposed to tar&#8217;ing and then gzip&#8217;ing.  Unfortunately, bzip2 doesn&#8217;t have a feature like that, as it compresses better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Bergen</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1584</link>
		<dc:creator>Eric Bergen</dc:creator>
		<pubDate>Mon, 27 Mar 2006 22:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1584</guid>
		<description>Which os specific flags are you talking about?

I have tried rync in the past. It has proved to be more difficult than tar over ssh due to version mis matches and crashing :(</description>
		<content:encoded><![CDATA[<p>Which os specific flags are you talking about?</p>
<p>I have tried rync in the past. It has proved to be more difficult than tar over ssh due to version mis matches and crashing <img src='http://ebergen.net/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Hollins</title>
		<link>http://ebergen.net/wordpress/2006/03/26/snapshot-from-a-full-disk-tar-over-ssh/comment-page-1/#comment-1582</link>
		<dc:creator>Luke Hollins</dc:creator>
		<pubDate>Mon, 27 Mar 2006 18:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://ebergen.net/wordpress/?p=105#comment-1582</guid>
		<description>Only drawback with tar is it drops OS-specific flags. Have you tried rsync for this? it can cut down on the traffic I use it to make remote backups to machines on slow links.</description>
		<content:encoded><![CDATA[<p>Only drawback with tar is it drops OS-specific flags. Have you tried rsync for this? it can cut down on the traffic I use it to make remote backups to machines on slow links.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

