<?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: Using scp command question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014190#M427124</link>
    <description>Mike,&lt;BR /&gt;scp is the doing the correct thing.&lt;BR /&gt;If it followed the links you would have to have the same mountpoint layout to copy the file to and then create the link.&lt;BR /&gt;&lt;BR /&gt;So scp copied the data linked to on the original machine.&lt;BR /&gt;&lt;BR /&gt;If you tar with absolute path, that is what happens. If you tar with relative path you can untar into a subdirectory and then move the data.</description>
    <pubDate>Wed, 15 Nov 2006 11:53:14 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-11-15T11:53:14Z</dc:date>
    <item>
      <title>Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014186#M427120</link>
      <description>When doing a recursive scp between servers, the scp command will change and file links to a directory name and copy the entire contents of the linked directory to it.&lt;BR /&gt; scp -r mydir remotehost:mydir&lt;BR /&gt;&lt;BR /&gt;Example, on local host:&lt;BR /&gt;lrwxr-xr-x   1 bin        bin             16 Nov 10 04:30 latest -&amp;gt; 2006-11-10,0&lt;BR /&gt;4:30&lt;BR /&gt;On remote host after scp:&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Nov 11 05:52 latest&lt;BR /&gt;&lt;BR /&gt;Is there a way to copy links as links ??</description>
      <pubDate>Wed, 15 Nov 2006 09:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014186#M427120</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2006-11-15T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014187#M427121</link>
      <description>Easiest way to preserve everything is probably to use tar...&lt;BR /&gt;&lt;BR /&gt;( cd localdir &amp;amp;&amp;amp; tar cf - ./mydir ) | ssh remotehost 'cd remotedir &amp;amp;&amp;amp; tar xf -'&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Nov 2006 10:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014187#M427121</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2006-11-15T10:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014188#M427122</link>
      <description>I guess there isn't anything within scp to copy links as they are then ??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Nov 2006 11:09:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014188#M427122</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2006-11-15T11:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014189#M427123</link>
      <description>Whenever I have links and/or need the permissions preserved exactly....I use the tar command as shown above.</description>
      <pubDate>Wed, 15 Nov 2006 11:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014189#M427123</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-11-15T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014190#M427124</link>
      <description>Mike,&lt;BR /&gt;scp is the doing the correct thing.&lt;BR /&gt;If it followed the links you would have to have the same mountpoint layout to copy the file to and then create the link.&lt;BR /&gt;&lt;BR /&gt;So scp copied the data linked to on the original machine.&lt;BR /&gt;&lt;BR /&gt;If you tar with absolute path, that is what happens. If you tar with relative path you can untar into a subdirectory and then move the data.</description>
      <pubDate>Wed, 15 Nov 2006 11:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014190#M427124</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-15T11:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014191#M427125</link>
      <description>Can anyone tell me what the command would be to ssh to a remote host, tar up the directory and copy it back ?? I'm not sure of the syntax to do that if possible.</description>
      <pubDate>Wed, 15 Nov 2006 12:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014191#M427125</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2006-11-15T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014192#M427126</link>
      <description>Essentially the same as what was shown above other than doing the ssh on the left side of the pipe:&lt;BR /&gt;&lt;BR /&gt;ssh remotehost 'cd remotedir &amp;amp;&amp;amp; tar cf - .' | (cd localdir &amp;amp;&amp;amp; tar xf -)</description>
      <pubDate>Wed, 15 Nov 2006 13:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014192#M427126</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-11-15T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp command question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014193#M427127</link>
      <description>Thanks alot guys... I used the suggested methods in the scripts to copy directories and it worked perfectly..</description>
      <pubDate>Wed, 15 Nov 2006 15:00:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-command-question/m-p/5014193#M427127</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2006-11-15T15:00:26Z</dc:date>
    </item>
  </channel>
</rss>

