<?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: Script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759831#M259130</link>
    <description>Why can not you use NFS for this requirement simply?&lt;BR /&gt;&lt;BR /&gt;Or else write a script to find files which are new today and put into a file called /tmp/files2copy-svr2.&lt;BR /&gt;&lt;BR /&gt;First copy the file and then get the files available in that file. &lt;BR /&gt;&lt;BR /&gt;Else use rsync for this.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
    <pubDate>Tue, 28 Mar 2006 04:39:23 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2006-03-28T04:39:23Z</dc:date>
    <item>
      <title>Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759827#M259126</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;I need help to made a script that copy to one server to a other some file, but only ineed copy only the new ones. no all files&lt;BR /&gt;who can do that with out copy all files ?&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;srv1 /tmp/data1, data2 etc.. copy svr2 /tmp/data2 the data2 is data new for this day&lt;BR /&gt;&lt;BR /&gt;Thank You !!!&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:52:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759827#M259126</guid>
      <dc:creator>Isaac_4</dc:creator>
      <dc:date>2006-03-27T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759828#M259127</link>
      <description>Looks like rsync will be best suited for this job...since it copies only new and changed files instead of all thus saving network bandwidth. See the man page for rsync(1).&lt;BR /&gt;&lt;BR /&gt;cheers!</description>
      <pubDate>Mon, 27 Mar 2006 14:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759828#M259127</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-03-27T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759829#M259128</link>
      <description>Or use the built in command rdist:&lt;BR /&gt;&lt;BR /&gt;Here's how I sync /home/bwpadm user to DR site:&lt;BR /&gt;&lt;BR /&gt;From cron:&lt;BR /&gt;&lt;BR /&gt;15 01 * * *     /app/admin/drp/update-binaries.sh &amp;gt;/tmp/update-binaries.cron 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&lt;BR /&gt;# Keep the DRP copy of the bwpadm up-to-date.&lt;BR /&gt;# Currently the files are in:&lt;BR /&gt;#&lt;BR /&gt;#       /home/bwpadm/DR&lt;BR /&gt;#&lt;BR /&gt;# See the rdist(1M) distfile for a list of exclusions.&lt;BR /&gt;&lt;BR /&gt;DRPDIR=/app/admin/drp&lt;BR /&gt;DRPHOST=svr102&lt;BR /&gt;&lt;BR /&gt;HOST=`/usr/bin/uname -n`&lt;BR /&gt;mount | grep /home &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;  then&lt;BR /&gt;  /usr/sbin/vgexport -p -s -v -m /home/bwpadm/DR/vg10.map /dev/vg10&lt;BR /&gt;  ( su - bwpadm -c "rdist -f $DRPDIR/distfile bwpadm"; ) 2&amp;gt;&amp;amp;1 |\&lt;BR /&gt;  tee $DRPDIR/drp.log 2&amp;gt;&amp;amp;1 |\&lt;BR /&gt;  mailx -s "bwpadm DRP rdist output" sysadm&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# cat /app/admin/drp/distfile&lt;BR /&gt;BWPDR  = ( svr102 )&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# File systems to be copied over to the DR host.&lt;BR /&gt;# Don't use -R in install - so as not to remove files on destination host&lt;BR /&gt;BWPADM   = /home/bwpadm&lt;BR /&gt;&lt;BR /&gt;bwpadm: ( ${BWPADM} ) -&amp;gt; ( ${BWPDR} )&lt;BR /&gt;        install -w ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Mar 2006 15:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759829#M259128</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-03-27T15:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759830#M259129</link>
      <description>Rsync available at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.4/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/rsync-2.6.4/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Siddhartha</description>
      <pubDate>Tue, 28 Mar 2006 04:35:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759830#M259129</guid>
      <dc:creator>Siddhartha M</dc:creator>
      <dc:date>2006-03-28T04:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759831#M259130</link>
      <description>Why can not you use NFS for this requirement simply?&lt;BR /&gt;&lt;BR /&gt;Or else write a script to find files which are new today and put into a file called /tmp/files2copy-svr2.&lt;BR /&gt;&lt;BR /&gt;First copy the file and then get the files available in that file. &lt;BR /&gt;&lt;BR /&gt;Else use rsync for this.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 28 Mar 2006 04:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759831#M259130</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-28T04:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759832#M259131</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use the find command with -ctime, -mtime, atime parameters then copy it to the other server using scp/rcp/ftp/sftp etc...&lt;BR /&gt;&lt;BR /&gt;your command would look like this.&lt;BR /&gt;&lt;BR /&gt;find /tmp -name "data?" -mtime +1 -exec scp {} user@svr2:/tmp/{} \};&lt;BR /&gt;&lt;BR /&gt;good luck ..hope this helps..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/3759832#M259131</guid>
      <dc:creator>bebravo</dc:creator>
      <dc:date>2006-03-28T05:00:17Z</dc:date>
    </item>
  </channel>
</rss>

