<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:s="http://www.techrepublic.com/search" xmlns:dc="http://purl.org/dc/elements/1.1/"  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
    <title><![CDATA[Discussion on File system migrations using tar and dump ]]></title>
    <link><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830]]></link>
    <atom:link rel="hub" type="application/rss+xml" href="http://pubsubhubbub.appspot.com/" />
    <atom:link rel="self" type="application/rss+xml" href="http://www.techrepublic.com/forum/discussions/102-349830/rss" />

    <description><![CDATA[]]></description>
    <language>en-us</language>
    <lastBuildDate>2013-05-24T19:14:45-07:00</lastBuildDate>
             

    <item>
        <title><![CDATA[Use 'rsync' to handle FS copying (among other things)]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3520635]]></link>
        <description><![CDATA[There's a very simple way to do this, whether all within the same machine or across a network:  Use 'rsync' -- one of the handiest commands around.With the partition for the existing FS mounted, and the new partition (already formatted) mounted &amp; ready, all you need is this:rsync -avx  old-fs-mount-point/  new-fs-mount-point/--and take note of the trailing '/' characters -- they're significant.If the destination is on a different system, then use this form:rsync -avx  old-fs-mount-point/  user@host:new-fs-mount-point/--or go the other way:rsync -avx  user@host:old-fs-mount-point/  new-fs-mount-point/The 'a' switch is critical; it means do an &quot;archive&quot; type of copy, i.e., everything, symlinks &amp; all.  The 'x' switch is important for copying file systems this way; it means &quot;don't cross file system boundaries&quot;, i.e., copy only &quot;this partition&quot; and skip over any partitions mounted in the source FS tree.  The 'v' is optional; it means list each directory and file on the terminal as it's copied.  (Adding a -P switch will give each file a percent complete status as well.)'rsync' has many useful options, too.  One valuable one is '--exclude=' which tells 'rsync' to skip particular files or directories when copying.  ('-x' is really an '--exclude' for a FS mounted internal to your FS being copied -- and you don't have to figure out where/what they are.)It makes no difference to 'rsync' if the FS is mounted as a straight partition or as an LVM volume, or even as either type mounted on a remote machine across the network.  It's also efficient, but that's mostly a benefit if you're updating a previous copy...]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3520635]]></guid>
        <dc:creator><![CDATA[Brainstorms]]></dc:creator>
        <pubDate>Wed, 09 Nov 2011 16:28:58 -0800</pubDate>
    </item>
             

    <item>
        <title><![CDATA[Simplified Commands]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3517601]]></link>
        <description><![CDATA[Given the defaults and options that 'tar' supports, the command:     tar cf - data01 | gzip -c | (cd /db01; gunzip -c | tar xvf - )can be simplified to:     tar cz data01 | ( cd /db01; tar xzv )You can substitute 'j' for'z' and use 'bzip2' compressionWithout the data compression it becomes:     tar c data01 | ( cd /db01; tar xv )Not to be picky, but us IT folks are really lazy and HATE to type!]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3517601]]></guid>
        <dc:creator><![CDATA[brf531@...]]></dc:creator>
        <pubDate>Tue, 01 Nov 2011 14:32:35 -0700</pubDate>
    </item>
             

    <item>
        <title><![CDATA[cp]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3515705]]></link>
        <description><![CDATA[I have successfully done this sort of thing with cp -ax.]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/discussions/102-349830-3515705]]></guid>
        <dc:creator><![CDATA[bjswm@...]]></dc:creator>
        <pubDate>Wed, 26 Oct 2011 21:44:09 -0700</pubDate>
    </item>
    </channel>
</rss>

