<?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 remote tar command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506513#M217547</link>
    <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt; I have tried backing up files from a HP's Box to a sun's box tapedrive using tar command as below.. but it give error..&lt;BR /&gt;&lt;BR /&gt;# tar -cvf &lt;FILE&gt; | remsh &lt;HOSTNAME&gt; dd of=/dev/rmt/0m bs=10k&lt;BR /&gt;tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] file1 file2...&lt;BR /&gt;0+0 records in&lt;BR /&gt;0+0 records out&lt;BR /&gt;&lt;BR /&gt;MaY iKnow wat is wrong? thanks&lt;BR /&gt;&lt;BR /&gt;cheers &lt;BR /&gt;Henry&lt;/HOSTNAME&gt;&lt;/FILE&gt;</description>
    <pubDate>Thu, 17 Mar 2005 00:41:00 GMT</pubDate>
    <dc:creator>Henry Chua</dc:creator>
    <dc:date>2005-03-17T00:41:00Z</dc:date>
    <item>
      <title>remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506513#M217547</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt; I have tried backing up files from a HP's Box to a sun's box tapedrive using tar command as below.. but it give error..&lt;BR /&gt;&lt;BR /&gt;# tar -cvf &lt;FILE&gt; | remsh &lt;HOSTNAME&gt; dd of=/dev/rmt/0m bs=10k&lt;BR /&gt;tar: usage  tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] file1 file2...&lt;BR /&gt;0+0 records in&lt;BR /&gt;0+0 records out&lt;BR /&gt;&lt;BR /&gt;MaY iKnow wat is wrong? thanks&lt;BR /&gt;&lt;BR /&gt;cheers &lt;BR /&gt;Henry&lt;/HOSTNAME&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 17 Mar 2005 00:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506513#M217547</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-03-17T00:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506514#M217548</link>
      <description>I would try&lt;BR /&gt;&lt;BR /&gt;remesh hostname "tar cvf &lt;FILE&gt;"&lt;BR /&gt;&lt;BR /&gt;You might want to consider openssh/secureshell, which can get this job done without risking network and system security.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/FILE&gt;</description>
      <pubDate>Thu, 17 Mar 2005 00:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506514#M217548</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-03-17T00:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506515#M217549</link>
      <description>As it says, tar usage is incorrect in your script. It&lt;BR /&gt;should be&lt;BR /&gt;&lt;BR /&gt;# tar -cvf tarfile.tar file1 file2...&lt;BR /&gt;&lt;BR /&gt;This should printout all the filenames it is archieving&lt;BR /&gt;(as verbose option  is used).&lt;BR /&gt;&lt;BR /&gt;I'm not sure why are you "pipe"'ing tar output to&lt;BR /&gt;remsh?&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2005 00:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506515#M217549</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-03-17T00:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506516#M217550</link>
      <description>Hi Guys, &lt;BR /&gt;&lt;BR /&gt;what I intend to do is to copy data from a HPUX box to a remote tape drive that is mounted on a Sun 5.1 system... Is this possible?&lt;BR /&gt;&lt;BR /&gt;Can I make the backup incremental?..the size of the source data is 40Gb... thanks!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2005 01:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506516#M217550</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-03-17T01:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506517#M217551</link>
      <description>- I agree with Steven ,  you should be using ssh instead of remsh...&lt;BR /&gt;A) First Question (from last post): &lt;BR /&gt;cd /localdir&lt;BR /&gt;tar cvf - . | remsh sunbox "cd /targetdir;tar xvf - "&lt;BR /&gt;B) Incremental question...&lt;BR /&gt;If you mean to "refresh only the files that change every day?" You can use "rsync" through an ssh pipe, and this would work very nicely for you.&lt;BR /&gt;&lt;BR /&gt;Would look something like (this is actually the command for Linux - assuming that HPUX one would be similar)&lt;BR /&gt;&lt;BR /&gt;rsync -avze ssh --delete /sourcedir/ sunbox:/targetdir/&lt;BR /&gt;&lt;BR /&gt;notes:&lt;BR /&gt;*The --delete flag is optional&lt;BR /&gt;*The trailing "/" are important!&lt;BR /&gt;*the "z" is for inline compression (optional)&lt;BR /&gt;&lt;BR /&gt;You can get rysnc at:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.3/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2005 09:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506517#M217551</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-03-17T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506518#M217552</link>
      <description>HPhost as ROOT:&lt;BR /&gt;&lt;BR /&gt;/sbin/mknod /tmp/stuffithere p&lt;BR /&gt;echo "+ +" &amp;gt;/.rhosts&lt;BR /&gt;cd directory to backup&lt;BR /&gt;tar -cvf /tmp/stuffithere .&lt;BR /&gt;&lt;BR /&gt;ON SUN box as ROOT:&lt;BR /&gt;&lt;BR /&gt;# rsh HPhost dd if=/tmp/stuffithere | dd of=/dev/rmt/0mn&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2005 09:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506518#M217552</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-03-17T09:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506519#M217553</link>
      <description>If you have ssh on both host you can use this&lt;BR /&gt;&lt;BR /&gt;tar -zcvf  -  /usr/local/bin/tar | ssh remote_host "dd of=/dev/rmt/0m"&lt;BR /&gt;&lt;BR /&gt;If not just use rsh instead.&lt;BR /&gt;&lt;BR /&gt;tar -zcvf  -  /usr/local/bin/tar | rsh remote_host "dd of=/dev/rmt/0m"&lt;BR /&gt;&lt;BR /&gt;For rsh the source system must be known in the .rhosts file of your sun system.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Thu, 17 Mar 2005 10:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506519#M217553</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2005-03-17T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506520#M217554</link>
      <description>AHHHH I see what is wrong in your command. You forgott one dash&lt;BR /&gt;&lt;BR /&gt;# tar -cvf  -  &lt;FILE&gt; | remsh &lt;HOSTNAME&gt; dd of=/dev/rmt/0m bs=10k&lt;BR /&gt;&lt;BR /&gt;Roland&lt;/HOSTNAME&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 17 Mar 2005 10:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506520#M217554</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2005-03-17T10:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506521#M217555</link>
      <description>tar cvfb - 20 files | remsh host dd of=/dev/rmt/0m bs=20b &lt;BR /&gt;&lt;BR /&gt;where files is the files you need to backup,&lt;BR /&gt;host is the remote host and the block size is 20(20*512b) on local(for tar) as well as the remote(for dd) systems.</description>
      <pubDate>Fri, 18 Mar 2005 05:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506521#M217555</guid>
      <dc:creator>Noel Miranda</dc:creator>
      <dc:date>2005-03-18T05:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506522#M217556</link>
      <description>Some notes i took about piped tar:&lt;BR /&gt;&lt;BR /&gt;Local:&lt;BR /&gt;&lt;BR /&gt;   # (cd $SRC; tar cf - . ) | (cd $DST; tar xf - )&lt;BR /&gt;&lt;BR /&gt;Remote:&lt;BR /&gt;&lt;BR /&gt;   # (cd $SRC; tar  cf - . ) | remsh $HOST "(cd $DST; tar  xf - )"&lt;BR /&gt;   # (cd $SRC; tar zcf - . ) | remsh $HOST "(cd $DST; tar zxf - )"&lt;BR /&gt;&lt;BR /&gt;   # (cd $SRC; tar cf - . ) | compress | \&lt;BR /&gt;       remsh $HOST "uncompress | (cd $DST; tar xf - )"&lt;BR /&gt;&lt;BR /&gt;   # (cd $SRC; tar cf - . ) | gzip -c  | \&lt;BR /&gt;       remsh $HOST "gzip -cd   | (cd $DST; tar xf - )"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Drawbacks:&lt;BR /&gt;   - in HPUX doesn't support largefile. (use GNU tar to support largefiles)&lt;BR /&gt;   - no "-xdev" option (like find) to restrict file to one filessytem (GNU tar propose this feature, switch -l)&lt;BR /&gt;&lt;BR /&gt;I upload some more notes comparing several methods of local and remote data copying (tar, cpio, dumps, rsync,...) under several OSes (manly HP-UX) with pros and contras. [sorry, it's mainly in spanish, but i think that anyone can at least understand the commands]&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alex</description>
      <pubDate>Fri, 18 Mar 2005 18:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506522#M217556</guid>
      <dc:creator>Alexandre Dumont_1</dc:creator>
      <dc:date>2005-03-18T18:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506523#M217557</link>
      <description>tar -cvf - &lt;FILE&gt; | remsh &lt;HOSTNAME&gt; dd of=/dev/rmt/0m bs=10k&lt;BR /&gt;&lt;BR /&gt;with the following command how do I determine the size of the blocksize used&lt;/HOSTNAME&gt;&lt;/FILE&gt;</description>
      <pubDate>Mon, 21 Mar 2005 23:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506523#M217557</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-03-21T23:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506524#M217558</link>
      <description>For tar the block size is by default 20 blocks  i.e. 20*512. As you have not specified the block size the default will be used. For the dd command you have specified the block size to be 10K.</description>
      <pubDate>Tue, 22 Mar 2005 00:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506524#M217558</guid>
      <dc:creator>Noel Miranda</dc:creator>
      <dc:date>2005-03-22T00:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: remote tar command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506525#M217559</link>
      <description>Hi Henry,&lt;BR /&gt;&lt;BR /&gt;Tar alone cant do it...you need to do several pipes to do it and during restoration you will also do the same...&lt;BR /&gt;&lt;BR /&gt;why not use fbackup instead.. just setup the rhost from remote host then its done... just use frecover to restore it to HP systems later.&lt;BR /&gt;&lt;BR /&gt;if you intend to restore it to a SUN box... just nfs mount your SUN Fs to HP server then do a frecover...&lt;BR /&gt;&lt;BR /&gt;Hope these helps.&lt;BR /&gt;&lt;BR /&gt;Jasper</description>
      <pubDate>Tue, 22 Mar 2005 04:28:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-tar-command/m-p/3506525#M217559</guid>
      <dc:creator>jasper_2</dc:creator>
      <dc:date>2005-03-22T04:28:43Z</dc:date>
    </item>
  </channel>
</rss>

