<?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: cpio. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439344#M6724</link>
    <description />
    <pubDate>Thu, 24 Aug 2000 08:39:23 GMT</pubDate>
    <dc:creator>Alex Glennie</dc:creator>
    <dc:date>2000-08-24T08:39:23Z</dc:date>
    <item>
      <title>cpio.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439340#M6720</link>
      <description>Dear all, &lt;BR /&gt;&lt;BR /&gt;  Please suggest me. How to use "cpio" backup files system and &lt;BR /&gt;restore all files/specify files system from tape.&lt;BR /&gt;&lt;BR /&gt;Thanks advance for your answer.&lt;BR /&gt;Worapoj P.</description>
      <pubDate>Thu, 24 Aug 2000 05:27:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439340#M6720</guid>
      <dc:creator>Worapoj P.</dc:creator>
      <dc:date>2000-08-24T05:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: cpio.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439341#M6721</link>
      <description>ITRC DOC ID KBAN00000271 has even more useful details, here's an extract though which maybe useful ?&lt;BR /&gt;&lt;BR /&gt;Full backup to a local tape using cpio:&lt;BR /&gt;&lt;BR /&gt;     A full backup from your root disk must include the hidden and special device files. At&lt;BR /&gt;     HPUX 10.x and 11.x find will automatically find hidden files so the -hidden option does&lt;BR /&gt;     not apply on 10.x and 11.x.&lt;BR /&gt;&lt;BR /&gt;     Running the following commands will write a full backup onto the target tape(s):&lt;BR /&gt;&lt;BR /&gt;          # cd /&lt;BR /&gt;          # /etc/shutdown -y 0 (single user mode is recommended)&lt;BR /&gt;          # find . -depth -xdev | cpio -ovcxB &amp;gt; /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;     Reading the contents of a cpio tape:&lt;BR /&gt;&lt;BR /&gt;        1.To determine what is written on the `cpio` tape: &lt;BR /&gt;&lt;BR /&gt;               # cpio -ictvB &amp;lt; /dev/rmt/0m&lt;BR /&gt;               # cpio -itvB &amp;lt; /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;          Note: The c option must be used in the input mode if it was used in the output&lt;BR /&gt;          mode. &lt;BR /&gt;&lt;BR /&gt;          Reading the contents of a tape may take a few minutes (6 or 7 seconds per&lt;BR /&gt;          megabyte) because the contents of the tape have to be read from the starting point&lt;BR /&gt;          all the way through to the end of that cpio archive. The cpio does not have an&lt;BR /&gt;          index or directory copy on tape, so the files that are listed are the files that are&lt;BR /&gt;          actually on the tape.&lt;BR /&gt;&lt;BR /&gt;        2.To create a file containing the list of files stored on the cpio archive: &lt;BR /&gt;&lt;BR /&gt;               # cpio -ictvB &amp;lt; /dev/rmt/0m &amp;gt; /tmp/index &lt;BR /&gt;&lt;BR /&gt;        3.Relative versus absolute paths: &lt;BR /&gt;&lt;BR /&gt;          If the file name listing starts with a / then the cpio archive is written in an absolute&lt;BR /&gt;          path format. This means that the files will be recovered to that absolute location, no&lt;BR /&gt;          matter what directory the cpio restore command is given from.&lt;BR /&gt;&lt;BR /&gt;          Absolute path:&lt;BR /&gt;&lt;BR /&gt;               100666 user   group   Apr  2  18:21:30  1999 /tmp/xyz&lt;BR /&gt;&lt;BR /&gt;          Relative path: &lt;BR /&gt;&lt;BR /&gt;               100666 user   group   Apr  2  18:21:30  1999 tmp/xyz&lt;BR /&gt;&lt;BR /&gt;     Restoring a cpio archive from tape:&lt;BR /&gt;&lt;BR /&gt;        1.Set your current directory to the destination directory. &lt;BR /&gt;&lt;BR /&gt;               # cd /dir&lt;BR /&gt;&lt;BR /&gt;          Files will only be restored relative to this destination directory if the were backed&lt;BR /&gt;          up with relative pathnames. If they were backed up with full pathnames, they will&lt;BR /&gt;          be restored to the same location they were backed up.&lt;BR /&gt;&lt;BR /&gt;        2.Restore the required set of files: &lt;BR /&gt;&lt;BR /&gt;               Restore all files: (Files will be restored under the working directory if the&lt;BR /&gt;               tape was written with relative paths.) &lt;BR /&gt;&lt;BR /&gt;                    # cpio -icvdxumB &amp;lt; /dev/rmt/0m &lt;BR /&gt;&lt;BR /&gt;               Restore files by pattern: &lt;BR /&gt;&lt;BR /&gt;                    # cpio -icvdxumB &amp;lt; /dev/rmt/0m `xyz/*` &lt;BR /&gt;&lt;BR /&gt;               Restore specific files: &lt;BR /&gt;&lt;BR /&gt;                    # cpio -icvdxumB &amp;lt; /dev/rmt/0m dir1... dir2...&lt;BR /&gt;                    dir3...</description>
      <pubDate>Thu, 24 Aug 2000 06:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439341#M6721</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-24T06:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: cpio.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439342#M6722</link>
      <description>Let's do with file system, /home with device file /dev/rmt/0m.&lt;BR /&gt;&lt;BR /&gt;To backup files, file system&lt;BR /&gt;# find /home -print| cpio -ocxBv &amp;gt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;To see a listing of files,&lt;BR /&gt;# cpio -icBvumd &amp;lt; /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;To restore a file, files from backup,&lt;BR /&gt;# cpio -icBudxv &amp;lt; /dev/rmt/0m&lt;BR /&gt;# cpio -icBxv /etc/passwd &amp;lt; /dev/rmt/0m</description>
      <pubDate>Thu, 24 Aug 2000 06:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439342#M6722</guid>
      <dc:creator>Insu Kim</dc:creator>
      <dc:date>2000-08-24T06:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: cpio.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439343#M6723</link>
      <description>Dear Alex, &lt;BR /&gt;&lt;BR /&gt;Where I can get DOC ID KBAN00000271 ? &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Worapoj P.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 08:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439343#M6723</guid>
      <dc:creator>Worapoj P.</dc:creator>
      <dc:date>2000-08-24T08:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: cpio.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439344#M6724</link>
      <description />
      <pubDate>Thu, 24 Aug 2000 08:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio/m-p/2439344#M6724</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-24T08:39:23Z</dc:date>
    </item>
  </channel>
</rss>

