<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139812#M800545</link>
    <description>Thanks. sorry about my typo.</description>
    <pubDate>Tue, 09 Dec 2003 09:58:34 GMT</pubDate>
    <dc:creator>Cathy Arora</dc:creator>
    <dc:date>2003-12-09T09:58:34Z</dc:date>
    <item>
      <title>tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139802#M800535</link>
      <description>Hi All;&lt;BR /&gt;I have to backup two directories on the tape.&lt;BR /&gt;I am not sure what the commnad should be if I wanted to do it at the same time without overlaying the information.&lt;BR /&gt;I do have to do tar because I have got ASCii and binary files all over the place in these directories.&lt;BR /&gt;So here it is the Q- copying /dev and copy /home/kk&lt;BR /&gt;to /dev/rmt/0M and keeping the same tree- first /dev and then /home/kk.&lt;BR /&gt;&lt;BR /&gt;Thanks all &lt;BR /&gt;I appreciate your help.</description>
      <pubDate>Tue, 09 Dec 2003 09:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139802#M800535</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-12-09T09:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139803#M800536</link>
      <description>The general syntax would be&lt;BR /&gt; &lt;BR /&gt;cd /&lt;BR /&gt;tar cvf /dev/rmt/0m /home/kk&lt;BR /&gt; &lt;BR /&gt;When you restore, ensure you are in the / directory before you start.  Don't necessarily expect the files in /dev to make any sense if you restore to another machine.</description>
      <pubDate>Tue, 09 Dec 2003 09:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139803#M800536</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-09T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139804#M800537</link>
      <description>Cathy,&lt;BR /&gt;&lt;BR /&gt;You are best off using a scratch tape and putting both directories on a single tape.&lt;BR /&gt;&lt;BR /&gt;tar -cvf  /dev/rmt/0mn ./relativepath1 ./relativepath2 &lt;BR /&gt;&lt;BR /&gt;tar -cvf  /dev/rmt/0m ./relativepath1 ./relativepath2&lt;BR /&gt;will rewind the tape at the end of the archive.&lt;BR /&gt;&lt;BR /&gt;You will over write on the tape itself unless you can read to the end of the first archive tar -tvf  /dev/rmt/0mn and then start where you want to.  That is a pain.&lt;BR /&gt;&lt;BR /&gt;I tend to put all of my needs into a tar file on the disk, gzip it and tar the zip to a tape... &lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 09 Dec 2003 09:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139804#M800537</guid>
      <dc:creator>Tim Sanko</dc:creator>
      <dc:date>2003-12-09T09:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139805#M800538</link>
      <description>thnaks&lt;BR /&gt;But this syntax only copy one one directory I have to copy two directories on one tape( since I have only one tape) without overlaying two directories.&lt;BR /&gt;Thanks again,&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 09:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139805#M800538</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-12-09T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139806#M800539</link>
      <description>I think that Mark omitted the /dev directory, what you want is&lt;BR /&gt;&lt;BR /&gt;tar cvf /dev/rmt/0m /dev /home/kk&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;tar cvf /dev/rmt/0m dev home/kk&lt;BR /&gt;&lt;BR /&gt;The 1st form uses absolute paths, can only be restored to the same path.&lt;BR /&gt;The 2nd form uses relative paths, can be restored anywhere under the current directory.&lt;BR /&gt;&lt;BR /&gt;BTW, files in /dev are generally special files and may not be much use when restored - they may need to be recreated.&lt;BR /&gt;&lt;BR /&gt;-- Graham&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 09:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139806#M800539</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-12-09T09:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139807#M800540</link>
      <description>The commands will put both directories on the tape. I would do it relative beacause I am a paranoid person.</description>
      <pubDate>Tue, 09 Dec 2003 09:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139807#M800540</guid>
      <dc:creator>Tim Sanko</dc:creator>
      <dc:date>2003-12-09T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139808#M800541</link>
      <description>Thanks graham!&lt;BR /&gt; &lt;BR /&gt;I did omit the /dev directory.&lt;BR /&gt;&lt;BR /&gt;Just to clarify, you can put as many directories as you like on the command line and they will all be backed up onto the one tape, just as you like&lt;BR /&gt; &lt;BR /&gt;tar cvf /dev/rmt/0m /dev /home/kk&lt;BR /&gt; &lt;BR /&gt;If you do it from "/" and restore from "/" you will be absoultely fine.  Unless I've made another typo :)</description>
      <pubDate>Tue, 09 Dec 2003 09:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139808#M800541</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-09T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139809#M800542</link>
      <description>Thanks all, &lt;BR /&gt;sorry I am being a pain but what is all that rmt/0m and rmt/0n. &lt;BR /&gt;should I do rmt/0n and not rmt/0m becuase it will rewinf the tape and ovelay the info.&lt;BR /&gt;I am paranoid too and do want to loose data.&lt;BR /&gt;dev was an example it is my application dierectory(/export)&lt;BR /&gt;Thanks so much guys.&lt;BR /&gt;Please clear that for me.</description>
      <pubDate>Tue, 09 Dec 2003 09:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139809#M800542</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-12-09T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139810#M800543</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you do tar cvf /dev/rmt/0m /dev /home/kk, you have first /dev and then /home on the tape. The rewind takes place, after tar finishes copying the files onto tape and not before!! So you are save. And test the data with tar tv to be sure, it is correctly on the tape!!.&lt;BR /&gt;&lt;BR /&gt;be happy,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Dec 2003 09:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139810#M800543</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2003-12-09T09:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139811#M800544</link>
      <description>Don't panic Cathy!&lt;BR /&gt; &lt;BR /&gt;The 0mn device just means that the tape won't rewind when you have finished copying EVERYTHING.  Of course this is a bit stupid for you  because it will just rewind when you take the tape out so ignore all that.  However, kernels patched recently enough will insist that you use the 0mn device so just go with it.&lt;BR /&gt; &lt;BR /&gt;When you specify two or more directories on the "tar" command line, they all get written as one stream to the tape and none will get in the way of any others.  &lt;BR /&gt; &lt;BR /&gt;I find it often helps before doing anything that you are particularly nervous of,  to take a deep breath and exhale slowly and possibly go on a short vacation to a tropical island.  However, in this case, it really isn't necessary!  Everything will be fine :)</description>
      <pubDate>Tue, 09 Dec 2003 09:58:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139811#M800544</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-09T09:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139812#M800545</link>
      <description>Thanks. sorry about my typo.</description>
      <pubDate>Tue, 09 Dec 2003 09:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139812#M800545</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-12-09T09:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: tar</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139813#M800546</link>
      <description>Good advice Mark.</description>
      <pubDate>Tue, 09 Dec 2003 10:02:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar/m-p/3139813#M800546</guid>
      <dc:creator>Cathy Arora</dc:creator>
      <dc:date>2003-12-09T10:02:53Z</dc:date>
    </item>
  </channel>
</rss>

