<?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: File compression to a different dir dynamically in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145737#M156441</link>
    <description>The following will also work:&lt;BR /&gt;&lt;BR /&gt;# gzip &amp;lt; /dir/inputfile &amp;gt; /dir/outputfile.gz</description>
    <pubDate>Tue, 16 Dec 2003 09:17:02 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2003-12-16T09:17:02Z</dc:date>
    <item>
      <title>File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145720#M156424</link>
      <description>Can anyone tell me if there is a way of dynamically compressing files to another filesystem using either compress or gzip WITHOUT having to cp the uncompressed file to the target dir first.&lt;BR /&gt;&lt;BR /&gt;i.e &lt;BR /&gt;&lt;BR /&gt;I start with &lt;BR /&gt;/mountpoint1/file1.dbf&lt;BR /&gt;&lt;BR /&gt;I want to end up with &lt;BR /&gt;/mountpoint1/file1.dbf&lt;BR /&gt;and&lt;BR /&gt;/mountpoint2/file1.dbf.Z&lt;BR /&gt;&lt;BR /&gt;It is for performing a disk backup, but I do not want to copy the file to mountpoint2 and then compress it. I would like the compression program to read /mountpoint1/file1.dbf as a source and create /mountpoint2/file1.dbf.Z as an archive in it's compressed size leaving /mountpoint1/file1.dbf intact.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Russ&lt;BR /&gt;&lt;BR /&gt;We are running 10.20</description>
      <pubDate>Tue, 16 Dec 2003 07:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145720#M156424</guid>
      <dc:creator>HP System Handle Owner</dc:creator>
      <dc:date>2003-12-16T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145721#M156425</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;cd /newfile_system&lt;BR /&gt;&lt;BR /&gt;compress /explicit_path/filename &lt;BR /&gt;&lt;BR /&gt;this should put the compressed file into the directory you are located in when you run the command , I cant test this at moment but you could with some small file :-) John.</description>
      <pubDate>Tue, 16 Dec 2003 07:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145721#M156425</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2003-12-16T07:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145722#M156426</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Take a look at this thread, and the answer from  Kenneth Platz.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3212" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=3212&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 16 Dec 2003 07:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145722#M156426</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-12-16T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145723#M156427</link>
      <description>Russ,&lt;BR /&gt;&lt;BR /&gt;From looking at the man page, it appears that gzip will do what you require:&lt;BR /&gt; &lt;BR /&gt;gzip -c /mountpoint1/file1.dbf &amp;gt; /mountpoint2/file1.dbf.Z&lt;BR /&gt;&lt;BR /&gt;I would suggest trying a little test scenario first.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 16 Dec 2003 07:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145723#M156427</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-16T07:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145724#M156428</link>
      <description>Using the "-c" switch with "gunzip" causes output to go to the standard output so you can do "gzip -c myfile &amp;gt; /somewhere/else/completely/newfile.z"&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2003 07:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145724#M156428</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-16T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145725#M156429</link>
      <description>gzip -c /mountpoint1/file1.dbf &amp;gt; /mountpoint2/file1.dbf.gz&lt;BR /&gt;&lt;BR /&gt;As you are talking about database files, be aware that the 'standard' gzip doesn't handle files &amp;gt; 2Gb though.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Tue, 16 Dec 2003 07:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145725#M156429</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-12-16T07:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145726#M156430</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I confirm what Pete wrote ... You can even read from standard input to be sure that compress will not open your file directly :&lt;BR /&gt;&lt;BR /&gt;cat /mountpoint1/file1.dbf | compress &amp;gt; /mountpoint2/file1.dbf.Z&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 16 Dec 2003 07:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145726#M156430</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-16T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145727#M156431</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;you can use -c option with compress command as well as gzip :-) John.</description>
      <pubDate>Tue, 16 Dec 2003 07:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145727#M156431</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2003-12-16T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145728#M156432</link>
      <description>why not&lt;BR /&gt;&lt;BR /&gt;gzip -9 -c /ABSOLUTE/filename &amp;gt; /ABSOLUTE/BACKUP/filename.gz&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2003 07:27:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145728#M156432</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-12-16T07:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145729#M156433</link>
      <description>We do have source files over 2Gb. Does this mean using compress ?&lt;BR /&gt;&lt;BR /&gt;I guess it discounts gzip. We only have standard gzip&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Russ</description>
      <pubDate>Tue, 16 Dec 2003 07:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145729#M156433</guid>
      <dc:creator>HP System Handle Owner</dc:creator>
      <dc:date>2003-12-16T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145730#M156434</link>
      <description>Russ,&lt;BR /&gt;&lt;BR /&gt;Get the gnu version:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.5/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 16 Dec 2003 07:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145730#M156434</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-16T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145731#M156435</link>
      <description>Actually, I believe that modern gzip &amp;gt;= version 1.3 does support files larger than 2GB.</description>
      <pubDate>Tue, 16 Dec 2003 07:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145731#M156435</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-16T07:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145732#M156436</link>
      <description>With standard unix utilities you can do the following:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/pipe p&lt;BR /&gt;&lt;BR /&gt;dd if=/tmp/pipe of=/ABSOLUTE/BACKUP/filename.gz&lt;BR /&gt;&lt;BR /&gt;gzip -9 -c /ABSOLUTE/filename &amp;gt; /tmp/pipe&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Tue, 16 Dec 2003 08:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145732#M156436</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-12-16T08:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145733#M156437</link>
      <description>Did you perhaps mean "mknod" and not "mkdir" there Massimo :)</description>
      <pubDate>Tue, 16 Dec 2003 08:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145733#M156437</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-16T08:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145734#M156438</link>
      <description>geee... looks like i must stop writing while sleeping :)&lt;BR /&gt;&lt;BR /&gt;Thanks for the correction!&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Tue, 16 Dec 2003 08:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145734#M156438</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-12-16T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145735#M156439</link>
      <description>&lt;BR /&gt;If you cat the file and pipe it to gzip or compress, then redirect the standard output to the destination, you avoid large file problems.&lt;BR /&gt;&lt;BR /&gt;cat dbfile.dbf | gzip &amp;gt; /backup_dir/dbfile.dbf.gz&lt;BR /&gt;&lt;BR /&gt;[ I think they really meant mkfifo, which can be used in conjunction with gzip/compress and tar to copy compressed versions of  big files from a remote system.  If you want to be really flash, you can use a named pipe as an archive device file for your database. ]</description>
      <pubDate>Tue, 16 Dec 2003 09:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145735#M156439</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2003-12-16T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145736#M156440</link>
      <description>Actually Steve,&lt;BR /&gt; &lt;BR /&gt;Massimo's mkdir/mknod tempory mind block is creating a named pipe.  "mknod" is the way to create such niceties :)</description>
      <pubDate>Tue, 16 Dec 2003 09:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145736#M156440</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-16T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145737#M156441</link>
      <description>The following will also work:&lt;BR /&gt;&lt;BR /&gt;# gzip &amp;lt; /dir/inputfile &amp;gt; /dir/outputfile.gz</description>
      <pubDate>Tue, 16 Dec 2003 09:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145737#M156441</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-12-16T09:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145738#M156442</link>
      <description>... quickly looks at mknod man page... so it is! Well I never knew that.  Thank you for pointing that out.&lt;BR /&gt;/usr/bin/mkfifo appears to be a specific subset of /usr/sbin/mknod that anybody can run, not just the super-user.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Dec 2003 09:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145738#M156442</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2003-12-16T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: File compression to a different dir dynamically</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145739#M156443</link>
      <description>Actually i screwed up again, it lets anyone mknod filename p , 0 points today again I think.</description>
      <pubDate>Tue, 16 Dec 2003 09:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-compression-to-a-different-dir-dynamically/m-p/3145739#M156443</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2003-12-16T09:27:37Z</dc:date>
    </item>
  </channel>
</rss>

