<?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 TO COPY DATA TO REMOTE SYSTEM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763724#M389331</link>
    <description>can you ssh/scp to the remote system?  If so this is simple&lt;BR /&gt;scp /etc/XXX &lt;REMOTE system=""&gt;:/&lt;TARGET location=""&gt;&lt;/TARGET&gt;&lt;/REMOTE&gt;</description>
    <pubDate>Thu, 10 Mar 2011 13:58:00 GMT</pubDate>
    <dc:creator>Larry Klasmier</dc:creator>
    <dc:date>2011-03-10T13:58:00Z</dc:date>
    <item>
      <title>SCRIPT TO COPY DATA TO REMOTE SYSTEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763722#M389329</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I want to copy some data (file and directory) from one server to remoter server through script. &lt;BR /&gt;Anybody help me to find out the scripts.&lt;BR /&gt;&lt;BR /&gt;File:&lt;BR /&gt;===&lt;BR /&gt;/etc/XXX&lt;BR /&gt;/etc/YYY&lt;BR /&gt;&lt;BR /&gt;Any model script for this please give me.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;BR /&gt;&lt;BR /&gt;VINAY&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 13:27:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763722#M389329</guid>
      <dc:creator>HP UNIX Professionals</dc:creator>
      <dc:date>2011-03-10T13:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT TO COPY DATA TO REMOTE SYSTEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763723#M389330</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use scp command with -r option to copy directories. &lt;BR /&gt;&lt;BR /&gt;scp -r /etc/xxx ip:/etc/yyy&lt;BR /&gt;&lt;BR /&gt;another way is using tar with ssh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tar cvf - /etc/xxx | ssh ip "( cd /etc/yyy ; tar xvf - )"&lt;BR /&gt;&lt;BR /&gt;or rsync with ssh, after creating public keys and distributing between servers&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/rsync -avz -e ssh /etc/xxx/* user@target_ip:/etc/yyy/&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2011 13:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763723#M389330</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2011-03-10T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT TO COPY DATA TO REMOTE SYSTEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763724#M389331</link>
      <description>can you ssh/scp to the remote system?  If so this is simple&lt;BR /&gt;scp /etc/XXX &lt;REMOTE system=""&gt;:/&lt;TARGET location=""&gt;&lt;/TARGET&gt;&lt;/REMOTE&gt;</description>
      <pubDate>Thu, 10 Mar 2011 13:58:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763724#M389331</guid>
      <dc:creator>Larry Klasmier</dc:creator>
      <dc:date>2011-03-10T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT TO COPY DATA TO REMOTE SYSTEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763725#M389332</link>
      <description>Hi VINAY,&lt;BR /&gt;&lt;BR /&gt;I don't know what do you mean by "script", but if there are no special conditions, following can be used:&lt;BR /&gt;&lt;BR /&gt;machineA# cd /etc/YYY&lt;BR /&gt;machineA# ssh machineB -n "cd /etc/XXX; tar cpf - ." | tar xvf -&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;Jan</description>
      <pubDate>Thu, 10 Mar 2011 14:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763725#M389332</guid>
      <dc:creator>OSY Unix 1-4-2 (A-Team)</dc:creator>
      <dc:date>2011-03-10T14:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT TO COPY DATA TO REMOTE SYSTEM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763726#M389333</link>
      <description>To have it automated with no password prompt, as is necessary for the script, you'll want to set up a public key pair for SSH/SCP.&lt;BR /&gt;&lt;BR /&gt;You'd simply set no password on the private key, and insure that the permissions on the private key file are such that only the account associated with the script can read it. You can also restrict the key to support only this connection and command using options in the authorized_keys file.</description>
      <pubDate>Thu, 10 Mar 2011 14:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy-data-to-remote-system/m-p/4763726#M389333</guid>
      <dc:creator>mvpel</dc:creator>
      <dc:date>2011-03-10T14:13:43Z</dc:date>
    </item>
  </channel>
</rss>

