    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>2skies.com :: Mirroring with wget</title>
        <link>http://2skies.com/docs/Mirroring_with_wget</link>
        <description>Hosting-Development-Support :: Experience the difference</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:support@2skies.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>

<!-- show a header for the current publication type -->
        <h2>library</h2>


<div class="xar-mod-head"><span class="xar-mod-title">web development and webmaster best practice + Linux/Nix (general)</span></div>

<table border="0" cellpadding="1" cellspacing="0">
<tr>
    <td valign="top">
        Browse in :
   </td>
   <td valign="top">

                                    <a href="http://2skies.com/docs/">All</a>

                 &gt;                     <a href="http://2skies.com/docs/c43/">Documentation</a>

                 &gt;                     <a href="http://2skies.com/docs/c68/">knowledge base</a>
<br />

                                    <a href="http://2skies.com/docs/">All</a>

                 &gt;                     <a href="http://2skies.com/docs/c71/">Subject</a>

                 &gt;                     <a href="http://2skies.com/docs/c73/">Software</a>

                 &gt;                     <a href="http://2skies.com/docs/c121/">Linux/Nix (general)</a>
<br />

                                    <a href="http://2skies.com/docs/c68-121/">Any of these categories</a>

                -                    <a href="http://2skies.com/docs/c68+121/">All of these categories</a>
<br />
</td>
</tr>
</table>






<div class="xar-alt-outline xar-fullwidth">
    <div class="xar-accent-outline xar-fullwidth">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td align="left" valign="top" class="xar-normal">
                    <span class="xar-title"> Mirroring with wget</span>
                   <br />
                    <div align="right">
                        <span class="xar-sub">  </span>
                    </div>
                    <br />
                    <br />
                    <p>Ever needed to pull down a simple website in one fell swoop? Well, there are tons of tools out there for different GUI operating systems like Windoze and MacOS but I prefer the simplicity of wget, especially when I can start it remotely on my *nix server.</p>
<p>The simple command below will archive all the pages of the specified site and pack them neatly into a directory that will work from your browser.</p>
<pre class="xml">wget -m -k -K -E http://www.domain.tld/ -o wgetlog.txt <br /></pre>
<p>Brief explanation fo the options we're employing:</p>
<p>-m,  --mirror             shortcut for -N -r -l inf --no-remove-listing.</p>
<p>-k,  --convert-links      make links in downloaded HTML point to local files.</p>
<p>-K,  --backup-converted   before converting file X, back up as X.orig.</p>
<p>-E,  --html-extension        save HTML documents with `.html' extension.</p>
<p>Finally, as I dislike all of the info scrolling down my screen, I instruct wget to write it to a log for later review.</p>
<p>-o,  --output-file=FILE    log messages to FILE.</p>                    <br />
                    <span class="xar-quote">  </span>
</td>
           </tr>
       </table>
   </div>
</div>

<p>
Updated:  05 Apr 10 07:33</p>
<br />
   <table border="0" width="95%">
       <tr>
           <td align="left">
                    <a href="http://2skies.com/docs/Lighttpd_behind_a_proxy">&lt;
 prev </a>
&nbsp;
           </td>
           <td align="right">
               &nbsp;
                    <a href="http://2skies.com/docs/Multiple_php_pools_and_their_advantages">
 next &gt;</a>
</td>
       </tr>
   </table>
</channel>
</rss>
