<?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: Problem with remote backup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822344#M86804</link>
    <description>Sorry, I shouldn't have said 'cron'.&lt;BR /&gt;&lt;BR /&gt;I haven't got that far. At the unix prompt, when I run the script it doesn't work. However, when I cut and paste line by line the commands into a shell, it works.&lt;BR /&gt;&lt;BR /&gt;Could it be because of terminal settings?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Oct 2002 18:26:54 GMT</pubDate>
    <dc:creator>James Phillips</dc:creator>
    <dc:date>2002-10-09T18:26:54Z</dc:date>
    <item>
      <title>Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822338#M86798</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm getting the following error with I use the following script:&lt;BR /&gt;&lt;BR /&gt;Tar: end of tape&lt;BR /&gt;Tar: to continue, enter device/file name when ready or null string to quit.&lt;BR /&gt;&lt;BR /&gt;This is the script I'm using:&lt;BR /&gt;&lt;BR /&gt;----------Begin---------&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;MAILBODY=/tmp/body&lt;BR /&gt;&lt;BR /&gt;/usr/bin/date &amp;gt; $MAILBODY&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ftp -i -n ftphost &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; $MAILBODY 2&amp;gt;&amp;gt;$MAILBODY&lt;BR /&gt;user anonymous pass anon&lt;BR /&gt;bin&lt;BR /&gt;put "| tar cvf - `find /d00 -name '*.Z'`" d00.tar&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;/usr/bin/cat $MAILBODY | /usr/bin/mailx -s "PRD Daily Backup" sysadmin@oag-bvg.gc.ca&lt;BR /&gt;&lt;BR /&gt;---------END-----------&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to fix it?&lt;BR /&gt;&lt;BR /&gt;The commands in the script work interactively.&lt;BR /&gt;They fail when within the script however.&lt;BR /&gt;&lt;BR /&gt;James Phillips&lt;BR /&gt;phillijs@oag-bvg.gc.ca</description>
      <pubDate>Wed, 09 Oct 2002 15:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822338#M86798</guid>
      <dc:creator>James Phillips</dc:creator>
      <dc:date>2002-10-09T15:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822339#M86799</link>
      <description>that is the normal message tar sends when it senses the end of the tape you are writing to and request another.  Since you are likely running our of room on the tape, it would be tough to script something to handle this with a single tape drive... any chance you can use either a different device with larger tape, or in the case of a DAT drive maybe go for a higher capacity DAT tape... assuming the drive will cope with it...&lt;BR /&gt;&lt;BR /&gt;what is the size of the archive and the capacity of the tape / tape drive?&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Wed, 09 Oct 2002 15:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822339#M86799</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-09T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822340#M86800</link>
      <description>oops.. that first reply is likely off target.  Sorry.&lt;BR /&gt;&lt;BR /&gt;looking at it again...</description>
      <pubDate>Wed, 09 Oct 2002 15:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822340#M86800</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-09T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822341#M86801</link>
      <description>May be I am wrong, do you need to give "cvf" as the tar option? Because if you give "f" you have to specify the device file name. &lt;BR /&gt;If you want to do the tar on the file then I think you do not need the "-" sign after the cvf.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Wed, 09 Oct 2002 16:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822341#M86801</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-10-09T16:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822342#M86802</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;The "-" is provided to send the tar to stdout.&lt;BR /&gt;&lt;BR /&gt;The output is piped to 'put' and d00.tar is the name of the remote file.&lt;BR /&gt;&lt;BR /&gt;When I run this script from the prompt it works. However, it doesn't work when launched from cron.&lt;BR /&gt;&lt;BR /&gt;Any help/advice would be greatly appreciated.</description>
      <pubDate>Wed, 09 Oct 2002 17:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822342#M86802</guid>
      <dc:creator>James Phillips</dc:creator>
      <dc:date>2002-10-09T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822343#M86803</link>
      <description>what is your cron entry?</description>
      <pubDate>Wed, 09 Oct 2002 17:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822343#M86803</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-09T17:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822344#M86804</link>
      <description>Sorry, I shouldn't have said 'cron'.&lt;BR /&gt;&lt;BR /&gt;I haven't got that far. At the unix prompt, when I run the script it doesn't work. However, when I cut and paste line by line the commands into a shell, it works.&lt;BR /&gt;&lt;BR /&gt;Could it be because of terminal settings?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Oct 2002 18:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822344#M86804</guid>
      <dc:creator>James Phillips</dc:creator>
      <dc:date>2002-10-09T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822345#M86805</link>
      <description>I have been able to reproduce your error on my server... interestingly it seems to depend on what you are trying to find.  Example...&lt;BR /&gt;&lt;BR /&gt;put "|tar cvf - `find /etc -name hosts`" d00.tar&lt;BR /&gt;&lt;BR /&gt;fails with your error&lt;BR /&gt;&lt;BR /&gt;if I change the directory to say /tmp and pick a different file, the script works.  If I execute the job line by line on the command line, it also works.  I don't have a solid answer yet, but it looks to be user/permission based?&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Wed, 09 Oct 2002 19:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822345#M86805</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-09T19:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with remote backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822346#M86806</link>
      <description>still scratching my head on how this is working... or not working.  In the earlier example attempting to run your code and use /etc/hosts fails.  If I copy the hosts file to /tmp and then shift the script to run the find from the directory with everything else the same (except my user now owns the hosts file in /tmp), your code works.  Can you verify the ownership and permissions of what you are working in and maybe make some changes that will get this to work.  Again... I really don't know why this will not work.  You may want to close this thread and repost with an update to suck in some fresh attention&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Wed, 09 Oct 2002 20:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-remote-backup/m-p/2822346#M86806</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-09T20:09:34Z</dc:date>
    </item>
  </channel>
</rss>

