<?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: Backup using TAR in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945333#M114560</link>
    <description>Ramkumar,&lt;BR /&gt;&lt;BR /&gt;It works but the file you called "tarname" would be in my disk not on the tape. This is the problem, after what you said I should do a tar cvf /dev/nst0 tarname to put on the tape, but I do not have disk space to create the "tarname" file. Do you undestand my problem ? &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
    <pubDate>Mon, 07 Apr 2003 17:21:29 GMT</pubDate>
    <dc:creator>Mauro_3</dc:creator>
    <dc:date>2003-04-07T17:21:29Z</dc:date>
    <item>
      <title>Backup using TAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945331#M114558</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to backup some directories using tar and bzip2. In my tape I should have 04_07_03.bz2 where 04_07_03 is the backup date. In this file I should have all the directories that I want to backup, for example /dir1, /dir2 and /dir3. If I have disk space I should copy each directory to /temp then compress /temp and then put on the tape, but I do not have space in my disk, so I want to do it using just one command line and with no need of /temp directory, so I have to put it directly on the tape, like:&lt;BR /&gt;tar cjvf /dev/nst0 /dir1 /dir2 /dir3, but using it I can not put the name in the file and I need it to indicate the backup date.&lt;BR /&gt;&lt;BR /&gt;Any ideas ?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Mon, 07 Apr 2003 17:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945331#M114558</guid>
      <dc:creator>Mauro_3</dc:creator>
      <dc:date>2003-04-07T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Backup using TAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945332#M114559</link>
      <description>Mauro,&lt;BR /&gt;&lt;BR /&gt;you can achieve a space saving, use this with "gnu tar" -&lt;BR /&gt;&lt;BR /&gt;$ tarname=`date +%m_%d_%y`.tar.bz2&lt;BR /&gt;&lt;BR /&gt;$ tar cjvf $tarname /dir1 /dir2 /dir3&lt;BR /&gt;&lt;BR /&gt;works fine for me with gnu tar.&lt;BR /&gt;&lt;BR /&gt;- ramd.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Apr 2003 17:16:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945332#M114559</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-07T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Backup using TAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945333#M114560</link>
      <description>Ramkumar,&lt;BR /&gt;&lt;BR /&gt;It works but the file you called "tarname" would be in my disk not on the tape. This is the problem, after what you said I should do a tar cvf /dev/nst0 tarname to put on the tape, but I do not have disk space to create the "tarname" file. Do you undestand my problem ? &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Mon, 07 Apr 2003 17:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945333#M114560</guid>
      <dc:creator>Mauro_3</dc:creator>
      <dc:date>2003-04-07T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Backup using TAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945334#M114561</link>
      <description>Mauro,&lt;BR /&gt;&lt;BR /&gt;while creating the tar bzip file, wouldn't writing to stdout and then redirecting that to the tape device help?&lt;BR /&gt;&lt;BR /&gt;i haven't tried this ever. so i might be silly in asking this question.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Mon, 07 Apr 2003 17:28:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945334#M114561</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-07T17:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Backup using TAR</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945335#M114562</link>
      <description>Mauro,&lt;BR /&gt;&lt;BR /&gt;can you explain to me how if the /dev/nst0 is your final tape file, you can create another file with the date as a name? maybe you could create another tape file /dev/`$tapename` using mknod and then write to that? &lt;BR /&gt;&lt;BR /&gt;Would that help either?&lt;BR /&gt;&lt;BR /&gt;So tell me, once you write to tape, the next time around when you mount the tape device, still the tape name would be /dev/nst0 isn't it? &lt;BR /&gt;&lt;BR /&gt;Initially i thought that you were avoiding creating an intermediate tar file before creating the zip file.&lt;BR /&gt;&lt;BR /&gt;or else, stick labels on the tapes to show the date of backup ;-))) i know i am asking for some good kicks in the back if i suggest this...&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Mon, 07 Apr 2003 17:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/backup-using-tar/m-p/2945335#M114562</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-07T17:59:45Z</dc:date>
    </item>
  </channel>
</rss>

