<?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 Ignite images in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400138#M681920</link>
    <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;find . -type f -mtime 2 -exec cp {} /ignite/source_image destination_IP:/dir/&lt;BR /&gt;&lt;BR /&gt;1) . will search your file from root directiory insted of . you can give your source path /ignite or where your file is resaiding. &lt;BR /&gt;2) cp will not copy your file one server to other in this case you have to use scp or rcp to copy your file into another server.&lt;BR /&gt;&lt;BR /&gt;find /opt/ignite/ -type f -mtime 2 -exec rcp destination_IP:/dir ()\;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
    <pubDate>Tue, 14 Apr 2009 09:50:07 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2009-04-14T09:50:07Z</dc:date>
    <item>
      <title>Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400132#M681914</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My scripting skills are rusty from and I need some pointers.&lt;BR /&gt;I need a simple shell script that copies my Ignite images to another server and removes the previous Images before the copy operation starts.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;Francis</description>
      <pubDate>Tue, 14 Apr 2009 07:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400132#M681914</guid>
      <dc:creator>Francis Flan</dc:creator>
      <dc:date>2009-04-14T07:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400133#M681915</link>
      <description>Here's what I was thinking:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;rm IgniteServer_IP:/path_to_ignite/2009*&lt;BR /&gt;&lt;BR /&gt;I want to copy only the most recent image (created within 48hrs) since i keep the last two ignites. How would I use the find command to select this?&lt;BR /&gt;Something like this perhaps?&lt;BR /&gt;find . -type f -mtime 2 -exec cp....</description>
      <pubDate>Tue, 14 Apr 2009 08:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400133#M681915</guid>
      <dc:creator>Francis Flan</dc:creator>
      <dc:date>2009-04-14T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400134#M681916</link>
      <description>&amp;gt;I want to copy only the most recent image (created within 48hrs).  How would I use the find command to select this?&lt;BR /&gt;&amp;gt;find . -type f -mtime 2 -exec cp&lt;BR /&gt;&lt;BR /&gt;You would use: -mtime -2&lt;BR /&gt;-mtime 2 is for 2 to 3 days.</description>
      <pubDate>Tue, 14 Apr 2009 09:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400134#M681916</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-14T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400135#M681917</link>
      <description>Thanks Dennis.&lt;BR /&gt;Could you complete this last line to copy the file?&lt;BR /&gt;&lt;BR /&gt;Something like this perhaps:&lt;BR /&gt;&lt;BR /&gt;find . -type f -mtime 2 -exec cp {}  /ignite/source_image  destination_IP:/dir/</description>
      <pubDate>Tue, 14 Apr 2009 09:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400135#M681917</guid>
      <dc:creator>Francis Flan</dc:creator>
      <dc:date>2009-04-14T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400136#M681918</link>
      <description>By default make_net_recovery keep 2 archives. See the man page: &lt;BR /&gt;&lt;BR /&gt; -n number_archives&lt;BR /&gt;                Specifies the number of archives that should remain on the server at any given time.  The default is two (2)&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Tue, 14 Apr 2009 09:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400136#M681918</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2009-04-14T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400137#M681919</link>
      <description>&amp;gt;Could you complete this last line to copy the file?&lt;BR /&gt;find . -type f -mtime 2 -exec rcp {}  destination_IP:/dir/ +&lt;BR /&gt;&lt;BR /&gt;I'm not sure -exec will work and you may have to write a script:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;rcp $* destination_IP:/dir/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With a script, you can also remove the files after copying them.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 09:37:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400137#M681919</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-14T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400138#M681920</link>
      <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;find . -type f -mtime 2 -exec cp {} /ignite/source_image destination_IP:/dir/&lt;BR /&gt;&lt;BR /&gt;1) . will search your file from root directiory insted of . you can give your source path /ignite or where your file is resaiding. &lt;BR /&gt;2) cp will not copy your file one server to other in this case you have to use scp or rcp to copy your file into another server.&lt;BR /&gt;&lt;BR /&gt;find /opt/ignite/ -type f -mtime 2 -exec rcp destination_IP:/dir ()\;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 14 Apr 2009 09:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400138#M681920</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-04-14T09:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400139#M681921</link>
      <description>I've tried both of these and they execute without errors but no files are copied.&lt;BR /&gt;&lt;BR /&gt;find /var/srcdir/ -type f -mtime 2 -exec rcp dest_ip:/var {}\;&lt;BR /&gt;find /var/srcdir/ -type f -mtime 2 -exec rcp {} dest_ip:/var \;</description>
      <pubDate>Tue, 14 Apr 2009 11:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400139#M681921</guid>
      <dc:creator>Francis Flan</dc:creator>
      <dc:date>2009-04-14T11:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400140#M681922</link>
      <description>Hi Francis:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I've tried both of these and they execute without errors but no files are copied.&lt;BR /&gt;&lt;BR /&gt;find /var/srcdir/ -type f -mtime 2 -exec rcp dest_ip:/var {}\;&lt;BR /&gt;find /var/srcdir/ -type f -mtime 2 -exec rcp {} dest_ip:/var \;&lt;BR /&gt;&lt;BR /&gt;What happens if you simply do:&lt;BR /&gt;&lt;BR /&gt;# find /var/srcdir/ -type f -mtime 2 -print&lt;BR /&gt;&lt;BR /&gt;...do you in fact, get any output?  Using an unsigned argument to '-mtime' means _EXACTLY_ two (2) in this case.  You probably want to use:&lt;BR /&gt;&lt;BR /&gt;# find /var/srcdir/ -type f -mtime +2 ...&lt;BR /&gt;&lt;BR /&gt;As Dennis noted, making the '-exec' argument a script that does the copy and then on success _removes_ the copied file is probably the desired approach.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Apr 2009 11:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400140#M681922</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-14T11:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400141#M681923</link>
      <description>&amp;gt;JRF: Using an unsigned argument to '-mtime' means _EXACTLY_ 2&lt;BR /&gt;&lt;BR /&gt;Exactly 2 days means: 2 &amp;lt;= X &amp;lt; 3 days&lt;BR /&gt;Anywhere from 48 to one second less than 72 hours.  With -2 and +2 on each of the two sides.  Unless you use UNIX95=FIDDLE_WITH_FIND_TIMES:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1306285" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1306285&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1271016&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 11:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400141#M681923</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-14T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400142#M681924</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: Exactly 2 days means: 2 &amp;lt;= X &amp;lt; 3 days&lt;BR /&gt;&lt;BR /&gt;Yes, that's true and probably expressed better than the manpages for 'find' discuss the n, -n and +n arguments.  My point, however, was that Francis may be not have realized that using 'n' alone might too strictly restrict his expectations.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 12:25:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400142#M681924</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-14T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400143#M681925</link>
      <description>&amp;gt;JRF: that's true and probably expressed better than the manpages for 'find' discuss the n, -n and +n arguments.&lt;BR /&gt;&lt;BR /&gt;It is expressed better because the manpage is broken and documents the UNIX95=FIDDLE_WITH_FIND_TIMES option, not the default.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;My point was that Francis may be not have realized that using 'n' alone might too strictly restrict his expectations.&lt;BR /&gt;&lt;BR /&gt;Yes, I already mentioned that, so I assumed that wasn't your point.</description>
      <pubDate>Tue, 14 Apr 2009 12:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400143#M681925</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-14T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400144#M681926</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis:  It is expressed better because the manpage is broken and documents the UNIX95=FIDDLE_WITH_FIND_TIMES option, not the default.&lt;BR /&gt;&lt;BR /&gt;OK, then how about getting the 'find()' manpages improved?  You have been able to jump-start issues like this before :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Apr 2009 12:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400144#M681926</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-14T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400145#M681927</link>
      <description>find /var/srcdir/ -type f -mtime -2 -print returns with the correct file.&lt;BR /&gt;(I hadn't heard of minus values for -mtime before)&lt;BR /&gt;&lt;BR /&gt;Adding the -exec rcp part at the end  and is coming back with &lt;BR /&gt;find /var/srcdir/ -type f -mtime -2 -exec rcp dest_ip:/dir {} \;&lt;BR /&gt;remshd: Couldn't look up address for your host&lt;BR /&gt;remshd: Login incorrect.&lt;BR /&gt;&lt;BR /&gt;The hosts files on both servers are correct and they resolve just fine.&lt;BR /&gt;inetd.&lt;BR /&gt;inetd.conf has&lt;BR /&gt;kshell stream tcp6 nowait root /usr/lbin/remshd remshd -K&lt;BR /&gt;klogin stream tcp6 nowait root /usr/lbin/rlogind rlogind -K&lt;BR /&gt;&lt;BR /&gt;Do I need .rhosts and hosts.equiv files to use rcp?</description>
      <pubDate>Tue, 14 Apr 2009 13:16:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400145#M681927</guid>
      <dc:creator>Francis Flan</dc:creator>
      <dc:date>2009-04-14T13:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400146#M681928</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You ask: Do I need .rhosts and hosts.equiv files to use rcp?&lt;BR /&gt;&lt;BR /&gt;These files may need to be changed if the name resolution environment is different at restore time.&lt;BR /&gt;&lt;BR /&gt;I find it easier to move these files around as tar files personally. You could still use the find commands to pick and build the tar files.&lt;BR /&gt;&lt;BR /&gt;I found rcp sometimes introduced errors which compromise the integrity of the ignite backups.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 14 Apr 2009 13:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400146#M681928</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-14T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400147#M681929</link>
      <description>Hi :&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Do I need .rhosts and hosts.equiv files to use rcp?&lt;BR /&gt;&lt;BR /&gt;Yes, see the manpages for 'rcp'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 14 Apr 2009 13:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400147#M681929</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-14T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Ignite images</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400148#M681930</link>
      <description>&amp;gt;JRF: how about getting the 'find' manpages improved? You have been able to jump-start issues like this before :-)&lt;BR /&gt;&lt;BR /&gt;If you looked at threadId=1271016, you'll see  you already thanked me for that.  :-)</description>
      <pubDate>Tue, 14 Apr 2009 23:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-ignite-images/m-p/4400148#M681930</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-04-14T23:00:26Z</dc:date>
    </item>
  </channel>
</rss>

