<?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 command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830966#M88862</link>
    <description>Hi Mauro,&lt;BR /&gt;&lt;BR /&gt;I don't know different sizes of directories, but perhaps you can try this:&lt;BR /&gt;&lt;BR /&gt;%tar cvf /home/opt.tar /opt &lt;BR /&gt;compress /home/opt.tar&lt;BR /&gt;%tar cvf /home/var.tar /var &lt;BR /&gt;compress /home/var.tar&lt;BR /&gt;%tar cvf /home/work.tar /work &lt;BR /&gt;compress work.tar&lt;BR /&gt;%tar cvf /home/temp.tar /home/*.Z (files compressed)&lt;BR /&gt;&lt;BR /&gt;Regards, Vicente.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 22 Oct 2002 15:24:40 GMT</pubDate>
    <dc:creator>Vicente Sanchez_3</dc:creator>
    <dc:date>2002-10-22T15:24:40Z</dc:date>
    <item>
      <title>TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830963#M88859</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to backup some files in a tar file, named day_of_month.tar and send to the tape. But I do not have free space to create this tar file in my hard disk and then send to tape. So, is there a way of creating this file on the tape without using a temp file in the hard disk ?&lt;BR /&gt;&lt;BR /&gt;I??m doing this:&lt;BR /&gt;&lt;BR /&gt;%tar cvf /home/temp.tar /opt /var /work&lt;BR /&gt;%tar cvf /dev/rmt/0mn /home/temp.tar&lt;BR /&gt;&lt;BR /&gt;I want to avoid the creation of temp.tar.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Tue, 22 Oct 2002 15:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830963#M88859</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2002-10-22T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830964#M88860</link>
      <description>tar -cvf /dev/rmt/0m /opt /var /work&lt;BR /&gt;&lt;BR /&gt;is all you require</description>
      <pubDate>Tue, 22 Oct 2002 15:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830964#M88860</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-10-22T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830965#M88861</link>
      <description>Hi Mauro,&lt;BR /&gt;&lt;BR /&gt;You can just tar them directly to the tape drive&lt;BR /&gt;&lt;BR /&gt;tar cvf /dev/rmt/0mn /opt /var /work&lt;BR /&gt;&lt;BR /&gt;They will not be in a tar file on the tape but just the actual files archived with absolute pathnames.&lt;BR /&gt;So if you think you may want to extract them to another location, you may wish to tar them up as relative pathnames as follows:&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;tar cvf /dev/rmt/0mn ./opt ./var ./work&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 22 Oct 2002 15:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830965#M88861</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-10-22T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830966#M88862</link>
      <description>Hi Mauro,&lt;BR /&gt;&lt;BR /&gt;I don't know different sizes of directories, but perhaps you can try this:&lt;BR /&gt;&lt;BR /&gt;%tar cvf /home/opt.tar /opt &lt;BR /&gt;compress /home/opt.tar&lt;BR /&gt;%tar cvf /home/var.tar /var &lt;BR /&gt;compress /home/var.tar&lt;BR /&gt;%tar cvf /home/work.tar /work &lt;BR /&gt;compress work.tar&lt;BR /&gt;%tar cvf /home/temp.tar /home/*.Z (files compressed)&lt;BR /&gt;&lt;BR /&gt;Regards, Vicente.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Oct 2002 15:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830966#M88862</guid>
      <dc:creator>Vicente Sanchez_3</dc:creator>
      <dc:date>2002-10-22T15:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830967#M88863</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I agree with all but these way I am going to have a lot files in the tape instead of just one. With just one file I could set the day of the backup, for example, I want to have in the tape a file called 10_22_2002.tar that contains all the files that I did backup. It helps me if I need to restore some file.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Tue, 22 Oct 2002 17:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830967#M88863</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2002-10-22T17:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: TAR command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830968#M88864</link>
      <description>Hi Mauro,&lt;BR /&gt;&lt;BR /&gt;To help identify the date the tar was written to the tape, you can do something like this:&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;DATEFILE=$(date +%m_%d_%Y)&lt;BR /&gt;touch $DATEFILE&lt;BR /&gt;tar cvf /dev/rmt/0m $DATEFILE ./opt ./var ./work&lt;BR /&gt;rm $DATEFILE&lt;BR /&gt;&lt;BR /&gt;Whenever you want to see the date the tar was created, simply do:&lt;BR /&gt;tar tf /dev/rmt/0m | head -1&lt;BR /&gt;&lt;BR /&gt;Running this today creates an empty file named 10_22_2002.  It will be the first file on the tape and will be listed by the "tar tf /dev/rmt/0m | head -1" command.&lt;BR /&gt;&lt;BR /&gt;This means your tar will contain an extra file (10_22_2002) but it's an empty file that shouldn't present a problem.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 22 Oct 2002 18:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-command/m-p/2830968#M88864</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-22T18:25:56Z</dc:date>
    </item>
  </channel>
</rss>

