<?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: rcp or rsync in an efficient way (Script problem) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792475#M80083</link>
    <description>You stated this:&lt;BR /&gt;&lt;BR /&gt;The speed of the WAN is 0.5GB(GigaBytes)/hr. Hence, if there's 50GB of filesystems to be copied over the WAN, it would take 100 hours i.e approx 5 days to copy stuffs over.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But earlier you stated you expected 800GB.&lt;BR /&gt;&lt;BR /&gt;That's 16 TIMES greater than 50GB. Using that figure it would, based upon your calculations, 80 days to make the initial transfer. Now, if this is true, the data change that could occur, might cause the transfer of data change to be exponentially larger than the initial transfer.&lt;BR /&gt;&lt;BR /&gt;Imagine this: You are transfering a file while it is being modified. How will this change me checked, and the data transfered?&lt;BR /&gt;&lt;BR /&gt;I'd suggest you consider, although expensive, purchasing EMC and use srdf to accomplish this.&lt;BR /&gt;&lt;BR /&gt;Unless you are into writing software that would revolutionize the world, I think you need a "hardware" solution.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 26 Aug 2002 01:21:35 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-08-26T01:21:35Z</dc:date>
    <item>
      <title>rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792465#M80073</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;I would like to perform a remote copying over the WAN by using rcp or rsync. There's 100 filesystems which needs to be copied over the WAN. Once copied, these filesystems would need to be kept in sync(changes occuring on a source machines should be reflected and the destination machine. &lt;BR /&gt;&lt;BR /&gt;This is how I've done it:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;for i in `cat file1`&lt;BR /&gt;do &lt;BR /&gt;   rcp -p -r mickey.willowglen.com:$i /destination_filesys &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;OR &lt;BR /&gt;#cat myscript.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;for i in `cat file1`&lt;BR /&gt;do&lt;BR /&gt;   rsync -avz --delete mickey.willowglen.com:$i /destination_filesys &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;I then invoked these script in multiples by running them at the background&lt;BR /&gt;#myscript &amp;gt; tmpFile &amp;amp;&lt;BR /&gt;But that did not improve the situation.&lt;BR /&gt;&lt;BR /&gt;Is there a more efficient/better way of performing such remote copying/ or sync-up, with so many filesystems involved??&lt;BR /&gt;&lt;BR /&gt;Could someone please help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Aug 2002 04:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792465#M80073</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-08-23T04:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792466#M80074</link>
      <description>You say "WAN", which is probably low speed. If so, the WAN is the bottle-neck, not the filesystems/disks, so you should do the remote copy operations sequentially (one after the other) instead of pin parallel.&lt;BR /&gt;&lt;BR /&gt;Famous words: If you are in a hurry, you should take it easy.</description>
      <pubDate>Fri, 23 Aug 2002 09:09:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792466#M80074</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-08-23T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792467#M80075</link>
      <description>Hi,&lt;BR /&gt;Better use FTP for initial file transfer and rsync for updating the files.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Fri, 23 Aug 2002 09:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792467#M80075</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-08-23T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792468#M80076</link>
      <description>Frank, Siva,&lt;BR /&gt;&lt;BR /&gt;I'm expecting 800GB of filesystems to be transferred using the WAN, and later perform the incremental updates using rsync.&lt;BR /&gt;&lt;BR /&gt;I ran the script in parallel by feeding the script with different input files i.e&lt;BR /&gt;#cat inpufile_1&lt;BR /&gt;/fs10/my_circuits/&lt;BR /&gt;/circuits_project/simulations/&lt;BR /&gt;&lt;BR /&gt;#cat inputfile_2&lt;BR /&gt;/fs11/xxx/&lt;BR /&gt;/fs13/yyy/&lt;BR /&gt;&lt;BR /&gt;#myscript inputfile_1 &amp;gt; tmpFile_1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;#myscript inputfile_2 &amp;gt; tmpFile_2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Are there any other ways which I can exploit the info on the threads/number of rsync/rcp/ftp processes running, then invoke more of such process if the number of running process has not exceeded the threshold?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 23 Aug 2002 09:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792468#M80076</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-08-23T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792469#M80077</link>
      <description>Hi,&lt;BR /&gt;I recommend not to start multiple sessions for multiple files as this will cause heavy congestion in your WAN and will slow down ( will cause more delay for the packets )the &lt;BR /&gt;realtime traffic services like telnet , rlogin&lt;BR /&gt;etc. Telnet will hang for example.&lt;BR /&gt;&lt;BR /&gt;Only way is to do sequentially even if it takes&lt;BR /&gt;a night. 100files/1 night&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Fri, 23 Aug 2002 09:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792469#M80077</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-08-23T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792470#M80078</link>
      <description>Hi does anyone have any recommendations on how the script could be improved in such situations?&lt;BR /&gt;&lt;BR /&gt;I did the following, where file1 contains the list of 100 filesystems:&lt;BR /&gt;&lt;BR /&gt;for i in `cat file1`&lt;BR /&gt;do&lt;BR /&gt;   numProcess=`ps -ef|grep rsync|wc -l&lt;BR /&gt;   if [numProcess &amp;lt; 10 ]&lt;BR /&gt;   then&lt;BR /&gt;      rsync -avz mickey.willowglen.com:$i /destination_filesystems&lt;BR /&gt;   else&lt;BR /&gt;      sleep 300&lt;BR /&gt;   fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;The script would copy or incrementally update all 100 filesystems, but with 10 filesystems at a time. &lt;BR /&gt;&lt;BR /&gt;Could anyone help me out on making improvements to such scripts, at the same time achieving efficient throughput time over the WAN?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 23 Aug 2002 10:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792470#M80078</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-08-23T10:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792471#M80079</link>
      <description>As we mentioned, we, U.SivaKumar and I, advise to do it one filesystem at a time, so please do not ask us how to do it for multiple filesystem at a time.&lt;BR /&gt;&lt;BR /&gt;What is the speed of the WAN? Please clearly specify bits versys bytes, etc..</description>
      <pubDate>Fri, 23 Aug 2002 11:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792471#M80079</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-08-23T11:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792472#M80080</link>
      <description>Frank,&lt;BR /&gt;The speed of the WAN is 0.5GB(GigaBytes)/hr. Hence, if there's 50GB of filesystems to be copied over the WAN, it would take 100 hours i.e approx 5 days to copy stuffs over. &lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thanks</description>
      <pubDate>Sun, 25 Aug 2002 02:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792472#M80080</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-08-25T02:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792473#M80081</link>
      <description>Given the speed of your WAN, this is a pointless exercise using rsync. You can probably shave some time by compressing the data before transmitting but really your fastest data tranfer method is a media transfer via Federal Express.</description>
      <pubDate>Mon, 26 Aug 2002 01:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792473#M80081</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-26T01:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792474#M80082</link>
      <description>&lt;BR /&gt;My suggestion for you would be using rsync cos' it is very efficient for file transfer.  I've tested rsync against ftp and found that rsync is significantly more efficient than ftp.  In addition, the other advantages of rsync I could think of are,&lt;BR /&gt;&lt;BR /&gt;1. It will not send un-modified files.  Meaning that if only 2G out of the 800GB data were updated, then rsync will send out these 2G updated files only.&lt;BR /&gt;&lt;BR /&gt;2. Rsync can perform compression before sending out files. This is good for slower networks.&lt;BR /&gt;&lt;BR /&gt;Just try transferring a 10GB using rcp, ftp and rsync then you'll see the difference in raw transferring speed !!!</description>
      <pubDate>Mon, 26 Aug 2002 01:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792474#M80082</guid>
      <dc:creator>Philip Chan_1</dc:creator>
      <dc:date>2002-08-26T01:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: rcp or rsync in an efficient way (Script problem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792475#M80083</link>
      <description>You stated this:&lt;BR /&gt;&lt;BR /&gt;The speed of the WAN is 0.5GB(GigaBytes)/hr. Hence, if there's 50GB of filesystems to be copied over the WAN, it would take 100 hours i.e approx 5 days to copy stuffs over.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But earlier you stated you expected 800GB.&lt;BR /&gt;&lt;BR /&gt;That's 16 TIMES greater than 50GB. Using that figure it would, based upon your calculations, 80 days to make the initial transfer. Now, if this is true, the data change that could occur, might cause the transfer of data change to be exponentially larger than the initial transfer.&lt;BR /&gt;&lt;BR /&gt;Imagine this: You are transfering a file while it is being modified. How will this change me checked, and the data transfered?&lt;BR /&gt;&lt;BR /&gt;I'd suggest you consider, although expensive, purchasing EMC and use srdf to accomplish this.&lt;BR /&gt;&lt;BR /&gt;Unless you are into writing software that would revolutionize the world, I think you need a "hardware" solution.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 26 Aug 2002 01:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rcp-or-rsync-in-an-efficient-way-script-problem/m-p/2792475#M80083</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-08-26T01:21:35Z</dc:date>
    </item>
  </channel>
</rss>

