<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tar taking 2 hrs for filesystem with deep directory structure in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777384#M54785</link>
    <description>&lt;P&gt;&amp;gt;tar -cvf /temp_backup/backup.tar &amp;nbsp;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using a tar pipeline, you don't have to write to the 6.7 GB tarfile and then read back from it.&amp;nbsp; You just send that data through the pipe.&lt;/P&gt;&lt;P&gt;Assuming you are later doing a "tar -xf"&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2015 05:09:17 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2015-08-24T05:09:17Z</dc:date>
    <item>
      <title>Tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6776981#M54782</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;We have a VM in which we want do local copy of 6.7GB .&lt;/P&gt;&lt;P&gt;Taking more than 2 hrs to copy .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the fastest way to copy data from one filesystem to another ?&lt;/P&gt;&lt;P&gt;Have tried throught tar -cvf its taking almost 1.5 hrs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2015 13:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6776981#M54782</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2015-08-21T13:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777060#M54783</link>
      <description>&lt;P&gt;&amp;gt; [...] with deep directory structure&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Define "deep".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Taking more than 2 hrs to copy .&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; When you "copy" _how_, exactly?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; As usual, showing actual commands with their actual output can be&lt;BR /&gt;more helpful than vague descriptions or interpretations.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Have tried throught tar -cvf its taking almost 1.5 hrs.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I assume that that's only half (or less) of your actual command.&amp;nbsp; I&lt;BR /&gt;normally use a "tar" pipeline for such jobs.&amp;nbsp; I don't know if it affects&lt;BR /&gt;the speed much, but I would not use "v" (on either side of the "tar"&lt;BR /&gt;pipeline), _especially_ for a large job.&amp;nbsp; If there's some kind of error,&lt;BR /&gt;I'd like to see the message, not have it get lost in voluminous "tar v"&lt;BR /&gt;output.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2015 00:57:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777060#M54783</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-08-22T00:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777379#M54784</link>
      <description>&lt;P&gt;Hi Steven ,&lt;/P&gt;&lt;P&gt;We need &amp;nbsp;/backup of 6.7GB to be copied to /temp_backup on same VM ( Redhat linux 6.1 )&lt;/P&gt;&lt;P&gt;cd /backup&lt;/P&gt;&lt;P&gt;tar -cvf /temp_backup/backup.tar &amp;nbsp;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 04:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777379#M54784</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2015-08-24T04:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777384#M54785</link>
      <description>&lt;P&gt;&amp;gt;tar -cvf /temp_backup/backup.tar &amp;nbsp;*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using a tar pipeline, you don't have to write to the 6.7 GB tarfile and then read back from it.&amp;nbsp; You just send that data through the pipe.&lt;/P&gt;&lt;P&gt;Assuming you are later doing a "tar -xf"&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777384#M54785</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-08-24T05:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777392#M54786</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tar pipeline ? Can you please share the same&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:35:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777392#M54786</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2015-08-24T05:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777638#M54787</link>
      <description>&lt;P&gt;&amp;gt;tar pipeline?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd /temp_backup&lt;/P&gt;&lt;P&gt;tar -cf - -C /backup . | tar -xf -&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777638#M54787</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-08-24T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777642#M54788</link>
      <description>&lt;P&gt;&amp;gt; We need&amp;nbsp; /backup of 6.7GB to be copied to /temp_backup on same VM&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Do you want a giant "tar" file at the destination, or do you want a&lt;BR /&gt;file tree like the source file tree?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; cd /backup&lt;BR /&gt;&amp;gt; tar -cvf /temp_backup/backup.tar&amp;nbsp; *&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That will give you the giant "tar" file.&amp;nbsp; Again, I'd omit "v".&amp;nbsp; Also,&lt;BR /&gt;"*" will not catch "hidden" files (".login", and so on).&amp;nbsp; If I wanted a&lt;BR /&gt;giant "tar" file, I'd do:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( cd /backup ; tar cf /temp_backup/backup.tar . )&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If the bottleneck in your scheme is the disk-writing speed, and your&lt;BR /&gt;CPU is speedy. then you might save some time by compressing the data.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( cd /backup ; tar cf - . | gzip -c &amp;gt; /temp_backup/backup.tgz )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; On a modern GNU/Linx system, GNU "tar" probably has built-in&lt;BR /&gt;compression options, but using an explicit compression program in the&lt;BR /&gt;pipeline (as shown above) works on systems with older and/or less&lt;BR /&gt;capable "tar" programs.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.gnu.org/software/tar/manual/html_node/gzip.html#SEC134" target="_blank"&gt;http://www.gnu.org/software/tar/manual/html_node/gzip.html#SEC134&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Tar pipeline ? Can you please share the same&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Your Forum/Web search found nothing useful?&amp;nbsp; One example (of many):&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://h30499.www3.hp.com/t5/x/x/m-p/3966579" target="_blank"&gt;http://h30499.www3.hp.com/t5/x/x/m-p/3966579&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Substituting "&amp;amp;&amp;amp;" for ";" in those example pipelines can improve&lt;BR /&gt;behavior when errors occur.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 17:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6777642#M54788</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-08-24T17:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: tar taking 2 hrs for filesystem with deep directory structure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6782701#M54792</link>
      <description>&lt;P&gt;Since you're on the same machine - cpio might be your friend.&lt;/P&gt;&lt;P&gt;Run this as root:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cd &amp;lt;sourcedirectory&amp;gt;&lt;/P&gt;&lt;P&gt;find . | cpio -pdmvu &amp;lt;destdirectory&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex: sourcedirectory = /src, destdirectory = /dest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$&amp;gt; cd /src&lt;/P&gt;&lt;P&gt;$&amp;gt; find . | cpio -pdmvu /dest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- This might run faster than tar - I would suspect that it would.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 19:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/tar-taking-2-hrs-for-filesystem-with-deep-directory-structure/m-p/6782701#M54792</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2015-09-08T19:01:04Z</dc:date>
    </item>
  </channel>
</rss>

