<?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 compressing all the small files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540549#M369337</link>
    <description>Hi techiees,&lt;BR /&gt;&lt;BR /&gt;/tmp getting full due to  many small files, so is there any way to compress all the files into one archive and then again compress by gzip&lt;BR /&gt;&lt;BR /&gt;Could any body help me out on this...&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Nov 2009 17:22:41 GMT</pubDate>
    <dc:creator>gany59</dc:creator>
    <dc:date>2009-11-26T17:22:41Z</dc:date>
    <item>
      <title>compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540549#M369337</link>
      <description>Hi techiees,&lt;BR /&gt;&lt;BR /&gt;/tmp getting full due to  many small files, so is there any way to compress all the files into one archive and then again compress by gzip&lt;BR /&gt;&lt;BR /&gt;Could any body help me out on this...&lt;BR /&gt;Thanks in advance&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 17:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540549#M369337</guid>
      <dc:creator>gany59</dc:creator>
      <dc:date>2009-11-26T17:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540550#M369338</link>
      <description>Hi,&lt;BR /&gt;I don't have a system to test but I think&lt;BR /&gt;You could try something start by&lt;BR /&gt;find /tmp -size &amp;lt; size of small files &amp;gt;| tar cvf backup_smallfile.tar &lt;BR /&gt;or &lt;BR /&gt;find /tmp -size &amp;lt; size of small files &amp;gt;| xargs tar cvf backup_smallfile.tar | gzip -c &amp;gt; backup.tar.gz&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 26 Nov 2009 17:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540550#M369338</guid>
      <dc:creator>smatador</dc:creator>
      <dc:date>2009-11-26T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540551#M369339</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Yep, that's how I'd do it.</description>
      <pubDate>Thu, 26 Nov 2009 17:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540551#M369339</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2009-11-26T17:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540552#M369340</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The '/tmp' filesystem is intended for use by the operating system.  Generally, the files placed within are small lock files and socket files.  '/var/tmp' is the proper repository for application temporary files.&lt;BR /&gt;&lt;BR /&gt;How many is "many"?  How "small" is small?  How old are the files and what are they?&lt;BR /&gt;&lt;BR /&gt;You can configure your server to remove the contents of the '/tmp' directory at startup.  It sounds like you need to do some cleanup.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 26 Nov 2009 17:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540552#M369340</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-26T17:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540553#M369341</link>
      <description>Many files in the size  1200128 are generated before a month  and many zero size files are generated before a week..&lt;BR /&gt;&lt;BR /&gt;i just really confused how to compress all these files into one archive</description>
      <pubDate>Thu, 26 Nov 2009 17:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540553#M369341</guid>
      <dc:creator>gany59</dc:creator>
      <dc:date>2009-11-26T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540554#M369342</link>
      <description>If i tried the below commands , it will show the error like &lt;BR /&gt;find /tmp -size 1024 | tar cvf backup_smallfile.tar&lt;BR /&gt;Attempt to create archive of no files. Nothing dumped.&lt;BR /&gt;&lt;BR /&gt;please let me know on this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 17:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540554#M369342</guid>
      <dc:creator>gany59</dc:creator>
      <dc:date>2009-11-26T17:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540555#M369343</link>
      <description>I think you need to change the find command :&lt;BR /&gt;&lt;BR /&gt;find /tmp -type f -size -1024c | &lt;BR /&gt;&lt;BR /&gt;(for file smaller than 1024 char)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 26 Nov 2009 18:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540555#M369343</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2009-11-26T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540556#M369344</link>
      <description>Hi&lt;BR /&gt;while i am trying this command also ,, it shows the error&lt;BR /&gt;&lt;BR /&gt;find /tmp -type f -size -1024c | tar cvf backup_smallfile.tar&lt;BR /&gt;Attempt to create archive of no files. Nothing dumped.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2009 18:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540556#M369344</guid>
      <dc:creator>gany59</dc:creator>
      <dc:date>2009-11-26T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540557#M369345</link>
      <description>try&lt;BR /&gt;find /tmp -type f -size -1024c | xargs tar cvf backup_smallfile.tar&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 26 Nov 2009 18:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540557#M369345</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2009-11-26T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540558#M369346</link>
      <description>As JRF mentioned, you should just remove these files, possibly based on age.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Attempt to create archive of no files. Nothing dumped.&lt;BR /&gt;&lt;BR /&gt;As I say below, you can't use HP-UX's tar.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;smatador: find /tmp -size &lt;SIZE of="" small="" files=""&gt; | tar cvf backup_smallfile.tar&lt;BR /&gt;&lt;BR /&gt;You are not going to be able to use tar with find.  The correct tools are pax(1), cpio(1) or GNU tar.&lt;BR /&gt;find /tmp -size -10000 | pax -w | gzip &amp;gt; backup.tar.gz&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Jean-Luc: find /tmp -type f -size -1024c | xargs tar cvf backup_smallfile.tar&lt;BR /&gt;&lt;BR /&gt;Again, you need to give up on tar.&lt;/SIZE&gt;</description>
      <pubDate>Thu, 26 Nov 2009 20:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540558#M369346</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-26T20:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: compressing all the small files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540559#M369347</link>
      <description>Another thread where someone wanted to use tar with find:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1362972" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1362972&lt;/A&gt;</description>
      <pubDate>Thu, 26 Nov 2009 23:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/compressing-all-the-small-files/m-p/4540559#M369347</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-26T23:30:16Z</dc:date>
    </item>
  </channel>
</rss>

