<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Copy a site's files from one host to another'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 04 Apr 2026 10:19:54 +0000</lastBuildDate>
    <item>
      <title>kitzelh said on 20/Oct/2009</title>
      <link>https://snipplr.com/view/21255/copy-a-sites-files-from-one-host-to-another</link>
      <description>&lt;p&gt;If you're able to ssh into both servers, then scp is simpler:&#13;
&#13;
 - ssh serveradmin@site2&#13;
 - enter password&#13;
 - rm -r domains/site2.com/html&#13;
 - scp -r serveradmin@site1:domains/site1.com/html domains/site2.com/&#13;
&#13;
If you're worried about bandwidth, then use tar z through a ssh pipe:&#13;
&#13;
 - ssh serveradmin@site2&#13;
 - enter password&#13;
 - cd domains/site2.com&#13;
 - rm -r html&#13;
 - ssh serveradmin@site1 "cd domains/site1.com/; tar czf - html" | tar xzf -&lt;/p&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:46:42 UTC</pubDate>
      <guid>https://snipplr.com/view/21255/copy-a-sites-files-from-one-host-to-another</guid>
    </item>
  </channel>
</rss>
