<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Robert Kern &#187; Hosting</title> <atom:link href="http://www.robertkern.com/topics/hosting/feed" rel="self" type="application/rss+xml" /><link>http://www.robertkern.com</link> <description>PHP Web developer</description> <lastBuildDate>Tue, 07 Feb 2012 00:34:47 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <cloud
domain='www.robertkern.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' /> <item><title>Move data from one web server to another using wget</title><link>http://www.robertkern.com/hosting/move-data-from-one-web-server-to-another-using-wget.html</link> <comments>http://www.robertkern.com/hosting/move-data-from-one-web-server-to-another-using-wget.html#comments</comments> <pubDate>Thu, 28 Aug 2008 16:00:01 +0000</pubDate> <dc:creator>Robert Kern</dc:creator> <category><![CDATA[Hosting]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[wget]]></category><guid
isPermaLink="false">http://www.robertkern.com/?p=147</guid> <description><![CDATA[Recently I needed to move a large amount of data from one web server to another. I was moving about 50 websites to a new server. I didnt want to download all the data via FTP and then upload it to the new server (especially not from here in Honduras where the Internet isnt as [...]]]></description> <content:encoded><![CDATA[<p>Recently I needed to move a large amount of data from one web server to another.  I was moving about 50 websites to a new server.  I didnt want to download all the data via FTP and then upload it to the new server (especially not from here in Honduras where the Internet isnt as fast as I would have liked).  I didnt have SSH access to the old server due to shared hosting security issues.  How did I move it all in only a few minutes?<br
/> <span
id="more-147"></span><br
/> I had asked the host for a backup of my home directory which contained the data for all the sites.  Due to some annoying permissions problems, the backup they provided me didnt contain all the files (which I discovered as I begun doing the scheduled transfer).  The timezone differences meant that while I was working at a comfortable 8am, the time in NZ was around 2am.  I couldnt ask for another backup and expect to have it in time, so I had to think of a better way.<br
/> Then I remembered wget.  An amazing Unix tool that I use very often.  I usually only use it for http requests, and had forgotten it could do ftp as well.  So while I didnt have SSH access to the old server, I did have FTP access.  I used the following wget command to log into FTP and download every single file under my home directory to the new server (which I did have SSH access to as it is a VPS that I own):</p><p><strong>wget -r -N -l inf ftp://user:pwd@ftp.example.com/foldername</strong></p><p>Within a few minutes (the two servers were both based in Auckland and the transfer speed was incredibly fast) all the data had been transferred across.  I only had to re-organise the location of the data to the appropriate places, backup and import the MySQL databases to the new server and wa-la it was done.  Thankfully, the 50-odd sites are running on the Frondiz CMS which means that the installation on the new server was very quick (ie, I didnt have to setup 50 different sites in apache, just a few, one that contains lots of domain names).</p> ]]></content:encoded> <wfw:commentRss>http://www.robertkern.com/hosting/move-data-from-one-web-server-to-another-using-wget.html/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Frondiz CMS &#8211; Move to new server</title><link>http://www.robertkern.com/hosting/frondiz-cms-move-to-new-server.html</link> <comments>http://www.robertkern.com/hosting/frondiz-cms-move-to-new-server.html#comments</comments> <pubDate>Tue, 29 Jul 2008 17:00:09 +0000</pubDate> <dc:creator>Robert Kern</dc:creator> <category><![CDATA[Hosting]]></category> <category><![CDATA[frondiz]]></category> <category><![CDATA[linux]]></category><guid
isPermaLink="false">http://www.robertkern.com/?p=111</guid> <description><![CDATA[This is just a quick update regarding the move of the Frondiz CMS to the new server. Unfortunately, the backup provided by the old host was not complete!  A few sub-folders down there were no files.  I ended up downloading all the files by using wget to log into the old server via ftp which [...]]]></description> <content:encoded><![CDATA[<p>This is just a quick update regarding the move of the Frondiz CMS to the new server.</p><p>Unfortunately, the backup provided by the old host was not complete!  A few sub-folders down there were no files.  I ended up downloading all the files by using wget to log into the old server via ftp which proved to be a fast and reliable way of moving the files.</p><p>I placed a maintenance page up on the old server so that if anyone tries to access a site that is still running off the old server they will receive the maintenance message.  This will only apply if a DNS lookup has been cached and is still pointing to the old server.</p><p>I have changed the DNS for all Frondiz CMS sites to point to the new server (excluding emails which will remain on the old server for now).  I also setup a DNS monitor for every domain to notify me when the changes had taken place.  They have all successfully rolled over now (except for one which is out of my control and I will be contacting them to remind them to make the change at their end).</p><p>Everything seems to be working just fine on the new server now and I dont anticipate any issues.  If you do find any issues then please contact me ASAP.</p> ]]></content:encoded> <wfw:commentRss>http://www.robertkern.com/hosting/frondiz-cms-move-to-new-server.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Redirect to maintenance page</title><link>http://www.robertkern.com/hosting/redirect-to-maintenance-page.html</link> <comments>http://www.robertkern.com/hosting/redirect-to-maintenance-page.html#comments</comments> <pubDate>Tue, 29 Jul 2008 16:53:08 +0000</pubDate> <dc:creator>Robert Kern</dc:creator> <category><![CDATA[Hosting]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[mod_rewrite]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[server]]></category><guid
isPermaLink="false">http://www.robertkern.com/?p=109</guid> <description><![CDATA[I recently had to move a website to a new server.  While the DNS changes rolled over, I didnt want people to be able to access the site on the old server as I had already taken a backup and didnt want any more changes to be made. I used a .htaccess file to redirect [...]]]></description> <content:encoded><![CDATA[<p>I recently had to move a website to a new server.  While the DNS changes rolled over, I didnt want people to be able to access the site on the old server as I had already taken a backup and didnt want any more changes to be made.</p><p>I used a .htaccess file to redirect any request on the old site to a maintenance page:</p><p>RewriteEngine On<br
/> RewriteBase /<br
/> RewriteCond %{REQUEST_URI} !^/maintenance\.php$<br
/> RewriteRule ^(.*)$ /maintenance.php [R=307,L]</p><p>The above code redirects everything except the maintenance.php page to the maintenance.php page.</p><p>Its very useful to use scripts like this even when performing general maintenance on your site.  You could get even trickier by allowing your IP address to access the site while still blocking everyone else.  That way you can make sure your updates are working properly before &#8216;turning the site back on&#8217;.</p> ]]></content:encoded> <wfw:commentRss>http://www.robertkern.com/hosting/redirect-to-maintenance-page.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.robertkern.com @ 2012-02-07 00:29:14 -->
