<?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 Shell/perl script to sync data between remote systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442002#M357430</link>
    <description>Hi &lt;BR /&gt;    I am looking for a solution other than "rsync" to copy files between two systems.&lt;BR /&gt;&lt;BR /&gt;I will be given a file which would contain enteries&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;1.  abc      11111      c&lt;BR /&gt;2.  bbb      22222      d&lt;BR /&gt;3.  ccc      33333      c&lt;BR /&gt;4.  ddd      44444      d&lt;BR /&gt;&lt;BR /&gt;So all the columns which say 'c" have to be copied to remote system.&lt;BR /&gt;&lt;BR /&gt;The ones which say "d" have to be deleted and I need to maintain a log of what was done. &lt;BR /&gt;&lt;BR /&gt;rsync is not an option as its slow. Does any one have any ideas how to accomplish this?&lt;BR /&gt;&lt;BR /&gt;Thnks&lt;BR /&gt;S&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Jun 2009 22:51:45 GMT</pubDate>
    <dc:creator>ShivKumar_1</dc:creator>
    <dc:date>2009-06-17T22:51:45Z</dc:date>
    <item>
      <title>Shell/perl script to sync data between remote systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442002#M357430</link>
      <description>Hi &lt;BR /&gt;    I am looking for a solution other than "rsync" to copy files between two systems.&lt;BR /&gt;&lt;BR /&gt;I will be given a file which would contain enteries&lt;BR /&gt;&lt;BR /&gt;---------------------------------------&lt;BR /&gt;1.  abc      11111      c&lt;BR /&gt;2.  bbb      22222      d&lt;BR /&gt;3.  ccc      33333      c&lt;BR /&gt;4.  ddd      44444      d&lt;BR /&gt;&lt;BR /&gt;So all the columns which say 'c" have to be copied to remote system.&lt;BR /&gt;&lt;BR /&gt;The ones which say "d" have to be deleted and I need to maintain a log of what was done. &lt;BR /&gt;&lt;BR /&gt;rsync is not an option as its slow. Does any one have any ideas how to accomplish this?&lt;BR /&gt;&lt;BR /&gt;Thnks&lt;BR /&gt;S&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jun 2009 22:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442002#M357430</guid>
      <dc:creator>ShivKumar_1</dc:creator>
      <dc:date>2009-06-17T22:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shell/perl script to sync data between remote systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442003#M357431</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Why not 'rsync' which minimizes traffic by sending only what has changed?  It handles deleted files, too.&lt;BR /&gt;&lt;BR /&gt;If you are periodically refreshing an entire directory on a target server, you could craft a script that deletes the directory contents on the target; creates an archived copy of everything in the source directory (e.g. a 'tar'ball) on the source server; transfers the archive to the target server; and installs it there.  This can all be done using 'ssh' for security, too.&lt;BR /&gt;&lt;BR /&gt;Otherwise, I have to ask, is this merely an academic exercise?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 17 Jun 2009 23:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442003#M357431</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-17T23:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shell/perl script to sync data between remote systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442004#M357432</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;As James said, I do not think rsync is a bad&lt;BR /&gt;option at all. It looks like your task&lt;BR /&gt;might be a school assignment :)&lt;BR /&gt;&lt;BR /&gt;I used it at many commercial companies with&lt;BR /&gt;lot of success and throughput was never an &lt;BR /&gt;issue (unless your network is saturated &lt;BR /&gt;already).&lt;BR /&gt;&lt;BR /&gt;Plus, there are a whole lot of tools to use&lt;BR /&gt;with rsync. Some of them are here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://unix.freshmeat.net/search/?Go.x=1&amp;amp;Go.y=1&amp;amp;q=rsync&amp;amp;section=projects" target="_blank"&gt;http://unix.freshmeat.net/search/?Go.x=1&amp;amp;Go.y=1&amp;amp;q=rsync&amp;amp;section=projects&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As well, rsync has many options. How are&lt;BR /&gt;you using it currently? What are the flags&lt;BR /&gt;you use on the command line?&lt;BR /&gt;&lt;BR /&gt;Anyway, if you want some other alternatives:&lt;BR /&gt;&lt;BR /&gt;Commercial software SyncDat:&lt;BR /&gt;&lt;A href="http://www.dataexpedition.com/syncdat/features.html" target="_blank"&gt;http://www.dataexpedition.com/syncdat/features.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Open-source (some of them are for Linux only):&lt;BR /&gt;Unison      &lt;A href="http://www.cis.upenn.edu/~bcpierce/unison/" target="_blank"&gt;http://www.cis.upenn.edu/~bcpierce/unison/&lt;/A&gt;&lt;BR /&gt;plsync      &lt;A href="http://sourceforge.net/projects/plsync/" target="_blank"&gt;http://sourceforge.net/projects/plsync/&lt;/A&gt;&lt;BR /&gt;Zumastor    &lt;A href="http://www.zumastor.org/" target="_blank"&gt;http://www.zumastor.org/&lt;/A&gt;&lt;BR /&gt;PowerFolder &lt;A href="http://sourceforge.net/projects/powerfolder-/" target="_blank"&gt;http://sourceforge.net/projects/powerfolder-/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Ruby script:&lt;BR /&gt;&lt;A href="http://eigenclass.org/hiki/cheap+rsync" target="_blank"&gt;http://eigenclass.org/hiki/cheap+rsync&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;WARNING: There is also a commercial product called PowerFolder for Microsoft Windows.&lt;BR /&gt;Do not mix it up with the SourceForge&lt;BR /&gt;project!&lt;BR /&gt;&lt;BR /&gt;So, if you really want to use some other, plain Shell or Perl script, it is probably&lt;BR /&gt;easiest to implement some kind of diff(1)&lt;BR /&gt;or and or cmp(1) commands to check if local and remote files are different and if so,&lt;BR /&gt;copy a new one.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 18 Jun 2009 00:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442004#M357432</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-06-18T00:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell/perl script to sync data between remote systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442005#M357433</link>
      <description>&lt;!--!*#--&gt;&amp;gt; rsync is not an option as its slow.&lt;BR /&gt;&lt;BR /&gt;Says who?  (And that's "it's".)&lt;BR /&gt;&lt;BR /&gt;If you don't like rsync, how _were_ you&lt;BR /&gt;planning to copy files to and/or delete files&lt;BR /&gt;on the (unspecified) "remote system"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Does any one have any ideas how to&lt;BR /&gt;&amp;gt; accomplish this?&lt;BR /&gt;&lt;BR /&gt;I might write a shell script to do it.  Why&lt;BR /&gt;don't you?</description>
      <pubDate>Thu, 18 Jun 2009 02:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-perl-script-to-sync-data-between-remote-systems/m-p/4442005#M357433</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-06-18T02:48:47Z</dc:date>
    </item>
  </channel>
</rss>

