<?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: copy files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448893#M358428</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;rsync's advantages are that it will skip files already copied.&lt;BR /&gt;&lt;BR /&gt;The -e option can be used to run teh data stream through ssh, which encrypts it.&lt;BR /&gt;&lt;BR /&gt;Example code:&lt;BR /&gt;&lt;BR /&gt; rsync -avH --stats --delete -e ssh /var/httpd/ $othernode:/var/httpd/&lt;BR /&gt;&lt;BR /&gt;othernode is the target node. --delete deletes files from the target server that have been deleted on the source server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 29 Jun 2009 09:34:19 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2009-06-29T09:34:19Z</dc:date>
    <item>
      <title>copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448891#M358426</link>
      <description>I have two servers ( in different network ) , server A will copy ( scp ) files to server B regularly , as the connection between these two servers is not very stable , so sometimes the files in server B is missing , or the file size is not consistency  , the reason may be due to the line disconnection / unstable ,  can advise if I want to make sure the files are copied to server B ( or lower the file transfer failure rate ) ,  what is the best way / method ? can suggest the script ? thx&lt;BR /&gt;&lt;BR /&gt;p.s. I may be use the script / method in other unix-like distro. except HP , can advise a method that applicable to other system ?</description>
      <pubDate>Mon, 29 Jun 2009 08:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448891#M358426</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-06-29T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448892#M358427</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;You can use rsync and run it until you see that all files are copied succesfully. The utility verifies copy result.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 29 Jun 2009 08:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448892#M358427</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2009-06-29T08:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448893#M358428</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;rsync's advantages are that it will skip files already copied.&lt;BR /&gt;&lt;BR /&gt;The -e option can be used to run teh data stream through ssh, which encrypts it.&lt;BR /&gt;&lt;BR /&gt;Example code:&lt;BR /&gt;&lt;BR /&gt; rsync -avH --stats --delete -e ssh /var/httpd/ $othernode:/var/httpd/&lt;BR /&gt;&lt;BR /&gt;othernode is the target node. --delete deletes files from the target server that have been deleted on the source server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 29 Jun 2009 09:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448893#M358428</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-29T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448894#M358429</link>
      <description>rsync is ideal for this purpose but both sides must have rsync installed (it is add-on software for HP-UX) and also ssh installed if you want to encrypt the transmission. Get the HP version of rsync from:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/searchProducts.do" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/searchProducts.do&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;If ssh is not installed on your system, get a copy from:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jun 2009 11:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448894#M358429</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-06-29T11:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448895#M358430</link>
      <description>the replies ,&lt;BR /&gt;&lt;BR /&gt; What I need to do is simply use rsync to copy file to server B is OK ? or I need to write a script like&lt;BR /&gt;&lt;BR /&gt;rsync from serverA to serverB &lt;BR /&gt;&lt;BR /&gt;if error code = 0  # that mean successful copy to server B &lt;BR /&gt; then remove the file&lt;BR /&gt;if not  equal to 0 , &lt;BR /&gt;                then keep the file &lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 03:00:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448895#M358430</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-06-30T03:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448896#M358431</link>
      <description>you do not need to create logic like that for checking file existence or if it is correctly copied or not. All you need is to tell the server and filename where it is going to be copied to/from and the local file name. That is it. The rest of the logic is built into rsync itself. It is the beauty of it.</description>
      <pubDate>Tue, 30 Jun 2009 03:30:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448896#M358431</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-06-30T03:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448897#M358432</link>
      <description>Hi,&lt;BR /&gt;To know more about rsync see the below link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sunsite.ualberta.ca/Documentation/Misc/rsync-2.6.6/rsync.1.html" target="_blank"&gt;http://www.sunsite.ualberta.ca/Documentation/Misc/rsync-2.6.6/rsync.1.html&lt;/A&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;A href="http://www.samba.org/rsync/documentation.html" target="_blank"&gt;http://www.samba.org/rsync/documentation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 30 Jun 2009 03:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448897#M358432</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-30T03:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448898#M358433</link>
      <description>thx replies ,&lt;BR /&gt;&lt;BR /&gt;I tested it , it seems very fine , can advise this method is good for the case when there are many many files need to be copy to server B and also all these files are very small in size ( less than 1 K byte ) ? thx</description>
      <pubDate>Tue, 30 Jun 2009 05:32:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448898#M358433</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-06-30T05:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: copy files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448899#M358434</link>
      <description>sorry to have one more question &lt;BR /&gt;&lt;BR /&gt;I would like to add such request , if the files are successful copy to server B , then make a file copy to local directory /tmp/backup then remove it or simply move it to /tmp/backup , so that I know what files are successfully copied. &lt;BR /&gt;&lt;BR /&gt;I tried the below method ,  it can copy file to /tmp/ora_file but do not make backup to /tmp/backup or remove the files , can advise how can I  change it ? thx &lt;BR /&gt;&lt;BR /&gt; rsync -avH  --delete  -b --backup-dir=/tmp/backup -e ssh * root@192.168.0.3 :/tmp/ora_file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2009 07:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-files/m-p/4448899#M358434</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-06-30T07:13:20Z</dc:date>
    </item>
  </channel>
</rss>

