<?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: Why tar Can Not Back Up All in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537348#M900565</link>
    <description>Hi Steven, &lt;BR /&gt;&lt;BR /&gt;This is is easy. Actually all 3 are being backed up but since you are using a rewind device the first two are overwritten each time.&lt;BR /&gt;If you will switch to /dev/rmt/c2t0d0BESTn, things will be better.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
    <pubDate>Wed, 06 Jun 2001 18:53:02 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-06-06T18:53:02Z</dc:date>
    <item>
      <title>Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537346#M900563</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script to get tar to backup 3 directories, but only the last directory files are backed up.  I wonder why and would like to have some comment.&lt;BR /&gt;&lt;BR /&gt;The codes are like:&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd /disk7/aaa&lt;BR /&gt;tar cvf /dev/rmt/c2t0d0BEST /disk7/aaa&lt;BR /&gt;#&lt;BR /&gt;cd /disk8/bbb&lt;BR /&gt;tar cvf /dev/rmt/c2t0d0BEST /disk8/bbb&lt;BR /&gt;#&lt;BR /&gt;cd /disk3/ccc&lt;BR /&gt;tar cvf /dev/rmt/c2t0d0BEST /disk3/ccc&lt;BR /&gt;#&lt;BR /&gt;#eof&lt;BR /&gt;---------------------------------------&lt;BR /&gt;&lt;BR /&gt;So only /disk3/ccc files being backed up.   That measn only last line of codes is executed.&lt;BR /&gt;Is it strange?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Wed, 06 Jun 2001 18:46:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537346#M900563</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2001-06-06T18:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537347#M900564</link>
      <description>You must use the no-rewind tape device in order for your backup to work properly.  Replace the /dev/rmt/c2t0d0BEST with /dev/rmt/c2t0d0BESTn and your backups will work.&lt;BR /&gt;&lt;BR /&gt;Without the no-rewind device file the tape is getting rewound after each tar session, thus each backup overwrites the previous and you are only left with the last backup.&lt;BR /&gt;&lt;BR /&gt;Do the step above and it will work for you.</description>
      <pubDate>Wed, 06 Jun 2001 18:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537347#M900564</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-06T18:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537348#M900565</link>
      <description>Hi Steven, &lt;BR /&gt;&lt;BR /&gt;This is is easy. Actually all 3 are being backed up but since you are using a rewind device the first two are overwritten each time.&lt;BR /&gt;If you will switch to /dev/rmt/c2t0d0BESTn, things will be better.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Wed, 06 Jun 2001 18:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537348#M900565</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-06T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537349#M900566</link>
      <description>Steven:&lt;BR /&gt;&lt;BR /&gt;In addition to the above, you could do :&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/.... -C /disk7/aaa -C /disk8/bbb -C /disk9/ccc etc.&lt;BR /&gt;&lt;BR /&gt;check:&lt;BR /&gt;man tar&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Wed, 06 Jun 2001 18:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537349#M900566</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2001-06-06T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537350#M900567</link>
      <description>Thanks for all the help.&lt;BR /&gt;&lt;BR /&gt;BTW, can someone explain what c2t0b0BESTb and nb means?&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Wed, 06 Jun 2001 19:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537350#M900567</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2001-06-06T19:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537351#M900568</link>
      <description>The normal device file c?t?d?BEST are AT&amp;amp;T best density&lt;BR /&gt;The c?t?d?BESTb are Berkely best density&lt;BR /&gt;You add the 'n' c?t?d?BESTn or c?t?d?BESTnb and that makes them no-rewind device files.  &lt;BR /&gt;&lt;BR /&gt;As to the difference between AT&amp;amp;T and Berkeley, I'm not sure.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jun 2001 19:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537351#M900568</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-06T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537352#M900569</link>
      <description>Hi Steven, Patrick:&lt;BR /&gt;&lt;BR /&gt;You can man mt for a very explanation of the berkeley and AT&amp;amp;T tape behavior.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Wed, 06 Jun 2001 20:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537352#M900569</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-06T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537353#M900570</link>
      <description>Thanks for the point in the right direction for AT&amp;amp;T vs. Berkeley, Clay.  That does explain it pretty well.</description>
      <pubDate>Wed, 06 Jun 2001 22:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537353#M900570</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-06-06T22:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537354#M900571</link>
      <description>One additional point: start using the lssf command instead of ls -l or ll for all device files.  The names of device files are subject to change so you need a tool to actually decode what the major/minor numbers actually mean.</description>
      <pubDate>Thu, 07 Jun 2001 01:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537354#M900571</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-06-07T01:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537355#M900572</link>
      <description>Thanks for the help and I get what I want -- all are tar up.&lt;BR /&gt;&lt;BR /&gt;However, I don't get it is it is still in absolute path that is not what I desire.   Otherwise I simply use tar with all directories.&lt;BR /&gt;&lt;BR /&gt;While I cd to proper directory, and have tar to backup, how come I still get absolute path with slash?&lt;BR /&gt;&lt;BR /&gt;Anyway to get a relative path in this case?</description>
      <pubDate>Thu, 07 Jun 2001 12:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537355#M900572</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2001-06-07T12:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537356#M900573</link>
      <description>Hi Steve,&lt;BR /&gt;In order to backup with tar directories with relative path, once in the directory use . in your tar:&lt;BR /&gt;cd /home; tar -cvf {tapedevice} .&lt;BR /&gt;&lt;BR /&gt;It will archive from this directory as ./files...&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Thu, 07 Jun 2001 13:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537356#M900573</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-06-07T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why tar Can Not Back Up All</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537357#M900574</link>
      <description>Hello Steven,&lt;BR /&gt;&lt;BR /&gt;One more option.&lt;BR /&gt;&lt;BR /&gt;Continue to use the same devicefile you have always used before. Instead, use tar with the&lt;BR /&gt;'-r' option. This will append a new file to the end of the archive without regard to its current position. This is most helpful if you rewind or eject the tape and then need to add more to it later.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;tar -rvf /dev/rmt/c4d0t0BEST yourfile&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;Curt</description>
      <pubDate>Thu, 07 Jun 2001 15:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-tar-can-not-back-up-all/m-p/2537357#M900574</guid>
      <dc:creator>Curt Thompson</dc:creator>
      <dc:date>2001-06-07T15:10:14Z</dc:date>
    </item>
  </channel>
</rss>

