<?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: GZIP in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322711#M34646</link>
    <description>I was in / directory.&lt;BR /&gt;&lt;BR /&gt;Now I'm in the same directory and I do : &lt;BR /&gt;&lt;BR /&gt;rm -fr /tmp&lt;BR /&gt;&lt;BR /&gt;[root@localhost /]# gunzip -c /backup/backup.cgz|cpio -id /tmp&lt;BR /&gt;6481003 blocks&lt;BR /&gt;&lt;BR /&gt;But no /tmp directrory is created&lt;BR /&gt;&lt;BR /&gt;Please advice&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Dec 2008 14:44:52 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2008-12-15T14:44:52Z</dc:date>
    <item>
      <title>GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322706#M34641</link>
      <description>Hi guys &lt;BR /&gt;&lt;BR /&gt;I've created a backup file with following command:&lt;BR /&gt;&lt;BR /&gt;find . -depth -print | cpio -ocv | gzip &amp;gt; /backup/backup.cgz&lt;BR /&gt;&lt;BR /&gt;Now I want to restore some files from the archive.&lt;BR /&gt;&lt;BR /&gt;I was struggling with finding how can I do a partial restore.&lt;BR /&gt;For example I need to restore only /dev directory.&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 12 Dec 2008 21:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322706#M34641</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2008-12-12T21:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322707#M34642</link>
      <description>Try this:&lt;BR /&gt;gunzip -c /backup/backup.cgz|cpio -idx /dev/*&lt;BR /&gt;&lt;BR /&gt;Please try restoring another directory before extracting the /dev, to test.</description>
      <pubDate>Fri, 12 Dec 2008 23:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322707#M34642</guid>
      <dc:creator>Shoghi Martinez G.</dc:creator>
      <dc:date>2008-12-12T23:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322708#M34643</link>
      <description>ooops no x option in linux.</description>
      <pubDate>Fri, 12 Dec 2008 23:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322708#M34643</guid>
      <dc:creator>Shoghi Martinez G.</dc:creator>
      <dc:date>2008-12-12T23:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322709#M34644</link>
      <description>&lt;!--!*#--&gt;&amp;gt; gunzip -c /backup/backup.cgz|cpio -idx /dev/*&lt;BR /&gt;&lt;BR /&gt;It's hard to believe that an unquoted&lt;BR /&gt;wildcard like&lt;BR /&gt;      /dev/*&lt;BR /&gt;on the command line would do anything like&lt;BR /&gt;what you want.</description>
      <pubDate>Sat, 13 Dec 2008 00:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322709#M34644</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-13T00:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322710#M34645</link>
      <description>When you created the backup, what was the current directory, i.e., what was "."?  If that was really the command you used to create the backup, then it wasn't "/", because then the archive would attempt to include /backup/backup.cgz itself, and either generate an error when it tried to do so, or never finish.  Perhaps you're leaving out parts of the find with which you excluded /backup/backup.cgz?&lt;BR /&gt;&lt;BR /&gt;Anyway, you can find out the names of the files in the backup with&lt;BR /&gt;&lt;BR /&gt;gunzip -c &amp;lt; /backup/backup.cgz | cpio -t&lt;BR /&gt;&lt;BR /&gt;If you really did use "find . -depth -print", then the names will all begin with "./".  Specify the directory you want to retrieve beginning with that "./", e.g.,&lt;BR /&gt;&lt;BR /&gt;gzip -c &amp;lt; /backup/backup.cgz | cpio -i ./foo&lt;BR /&gt;&lt;BR /&gt;Remember that the extracted directory will be relative to your current directory (result of pwd) when you run the command.</description>
      <pubDate>Mon, 15 Dec 2008 02:02:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322710#M34645</guid>
      <dc:creator>Stephen P. Schaefer</dc:creator>
      <dc:date>2008-12-15T02:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322711#M34646</link>
      <description>I was in / directory.&lt;BR /&gt;&lt;BR /&gt;Now I'm in the same directory and I do : &lt;BR /&gt;&lt;BR /&gt;rm -fr /tmp&lt;BR /&gt;&lt;BR /&gt;[root@localhost /]# gunzip -c /backup/backup.cgz|cpio -id /tmp&lt;BR /&gt;6481003 blocks&lt;BR /&gt;&lt;BR /&gt;But no /tmp directrory is created&lt;BR /&gt;&lt;BR /&gt;Please advice&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2008 14:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322711#M34646</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2008-12-15T14:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322712#M34647</link>
      <description>&amp;gt; But no /tmp directrory is created&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] you can find out the names of the&lt;BR /&gt;&amp;gt; files in the backup with&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;Read that part again.  Repeat as needed.</description>
      <pubDate>Mon, 15 Dec 2008 15:00:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322712#M34647</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-15T15:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322713#M34648</link>
      <description>[root@localhost /]# gzip -c &amp;lt; /backup/backup.cgz | cpio -i ./tmp&lt;BR /&gt;cpio: warning: skipped 49742 bytes of junk&lt;BR /&gt;cpio: warning: skipped 15654 bytes of junk&lt;BR /&gt;cpio: premature end of file&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2008 15:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322713#M34648</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2008-12-15T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP</title>
      <link>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322714#M34649</link>
      <description>xref Stephen Scheafer : "the archive would attempt to include /backup/backup.cgz itself, and either generate an error when it tried to do so, or never finish." &lt;BR /&gt;&lt;BR /&gt;Looks like you're cpio archive didn't complete properly. Are you sure you didn't see warning/error messages when backing up or is the backup line you quote in a cron script directing messages to /dev/null?&lt;BR /&gt;&lt;BR /&gt;I tend to prefer using tar myself. It has gzip and bzip2 functionality built into it, so the backup line you use above would look something like this:&lt;BR /&gt;&lt;BR /&gt;GZIP&lt;BR /&gt;# tar -czvf /backup/backup.tgz .&lt;BR /&gt;&lt;BR /&gt;BZIP2&lt;BR /&gt;# tar -cjvf /backup/backup.tbz2 .&lt;BR /&gt;&lt;BR /&gt;Again you need to ensure that the archive file being created is not part of the directory structure being archived otherwise you have problems.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Dec 2008 17:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/gzip/m-p/4322714#M34649</guid>
      <dc:creator>Brendan Peter Murphy</dc:creator>
      <dc:date>2008-12-15T17:16:02Z</dc:date>
    </item>
  </channel>
</rss>

