<?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>Screaming Code Monkey &#187; terminal</title>
	<atom:link href="http://screamingcodemonkey.com/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://screamingcodemonkey.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 21 May 2012 09:16:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>My Delicious Links (May 13th &#8211; June 17th)</title>
		<link>http://screamingcodemonkey.com/my-delicious-links-may-13th-june-17th/</link>
		<comments>http://screamingcodemonkey.com/my-delicious-links-may-13th-june-17th/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 22:03:48 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[Delicious]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[checklist]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=321</guid>
		<description><![CDATA[<p>These are My Delicious links for May 13th through June 17th:</p>

Theme Development Checklist &#171; WordPress Codex &#8211; 
5 tips for using AJAX in WordPress &#8211; WordPress Hardcore &#8211; 
7 Simple and Useful Command-Line Tips &#124; Nettuts+ &#8211; 

]]></description>
			<content:encoded><![CDATA[<p>These are <a href='http://delicious.com/jghazally' title='My Delicious Account'>My Delicious</a> links for May 13th through June 17th:</p>
<ul>
<li><a href="http://codex.wordpress.org/Theme_Development_Checklist">Theme Development Checklist &laquo; WordPress Codex</a> &#8211; </li>
<li><a href="http://www.wphardcore.com/2010/5-tips-for-using-ajax-in-wordpress/">5 tips for using AJAX in WordPress &#8211; WordPress Hardcore</a> &#8211; </li>
<li><a href="http://net.tutsplus.com/tutorials/other/7-simple-and-useful-command-line-tips/">7 Simple and Useful Command-Line Tips | Nettuts+</a> &#8211; </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/my-delicious-links-may-13th-june-17th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate a site for testing</title>
		<link>http://screamingcodemonkey.com/duplicate-a-site-for-testing/</link>
		<comments>http://screamingcodemonkey.com/duplicate-a-site-for-testing/#comments</comments>
		<pubDate>Mon, 17 May 2010 06:48:13 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-e-commerce]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[duplicating a site]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=322</guid>
		<description><![CDATA[So I've been asked how and what I use to duplicate WordPress sites for testing purposes. I do this fairly regularly on my own site and sites I host for clients and friends,, I recently found a new trick using SSH to make the mysql backups too which I'll go through.]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been asked how and what I use to duplicate WordPress sites for testing purposes. I do this fairly regularly on my own site and sites I host for clients and friends,, I recently found a new trick using SSH to make the mysql backups too which I&#8217;ll go through. I assume you have a fairly straight forward install of WordPress in this post since if you have something customized you probably know the importance in backups and have your own system in place. I work mainly on WordPress sites but most of these commands can be used for backing up other websites,, there is only one last extra step when setting up your WordPress site locally that is important.</p>
<p>Some of you may ask &#8216;Why is duplicating a WordPress site necessary?&#8217;</p>
<ul>
<li>Well I do it to test upgrades of wp-e-commerce, to make sure things don&#8217;t break after an upgrade and serves as a file backup if I ever need one in the future.</li>
<li>They are also useful for backups</li>
<li>It also comes in handy when developing new functionality specific to a site</li>
</ul>
<p>A few things to note, if you are unfamiliar with SSH and terminal then I&#8217;d suggest you learning a little about that.. SSH is a more secure form if FTP, and it allows you to perform some functions that are either impossible or slow to do via FTP.  Just Google &#8216;basic SSH commands&#8217; and you should get some good info&#8230; I also just read a good &#8216; <a href="http://net.tutsplus.com/tutorials/other/7-simple-and-useful-command-line-tips/">7 usefull terminal commands</a> &#8216; article on nettuts recently which I would highly recommend bookmarking.<br />
I also assume you are running MAMP on your mac or XAMP on your PC and are familiar with using it.. If you are not and you are wanting to learn about being a web developer than you should Google them and download and install them.</p>
<h3>Obtaining the files</h3>
<p>1. Login to your server via SSH:<br />
<code><br />
ssh Username@mywebsite.com<br />
</code><br />
you will then be prompted to enter in your password.</p>
<p>2. Navigate to just outside your websites folder then use the zip command to zip up your files ( this might take awhile depending on the size of your site)<br />
<code><br />
zip -r mybackup.zip mysite/<br />
</code><br />
3. Move this file to a place accessible via a webbrowser (downloading it via SSH or FTP will take longer- I put it in the site the make sure to delete it once I&#8217;ve downloaded it)<br />
<code><br />
mv mybackup.zip mysite/mybackup.zip<br />
</code><br />
4. In a web browser navigate to http://mysite.com/mybackup.zip and download it.. Once it&#8217;s downloaded i usually move it into a folder outside of site so other people can&#8217;t download it instead of deleting it. Ie mv mysite/backup/mybackup.zip mybackup.zip</p>
<p>5. Now that we have the files it&#8217;s time to export the database, there&#8217;s a few ways of doing this.. I used to just use phpMyAdmin but there&#8217;s an even easier way if your already logged into SSH. All you need is the database host (usually localhost but can sometimes be different), username, password and database name.<br />
In SSH type:<br />
<code><br />
mysqldump --host=mysql.mysite.com --user=username --password=password --all-databases &gt; mysite_db.sql<br />
</code><br />
Once that&#8217;s done you should have a new sql file called mysite_db.sql repeat step 3 and 4 to download the file to your local computer.</p>
<h3>Using the files</h3>
<p>Cool now you should have two files on your computer that&#8217;s all we need to install a working version of your WordPress site locally.<br />
Steps for installing are rather straight forward,</p>
<p>1. In your localhost environment unzip the mybackup.zip file so you have localhost/mybackup</p>
<p>2. In your localhost/mybackup/wp-config.php change your WP_USER, WP_PASS,WP_DB, and WP_HOST values to suit your localhost environment.</p>
<p>3. So now we have the files ready it&#8217;s time to make the database.. Login to your localhost phpMyAdmin and create a new database mysitedb then in the upper right corner select import and navigate to the files we downloaded (mysite_db.sql) and hit import</p>
<p>4. WordPress stores two options called &#8216;siteurl&#8217; and &#8216;home&#8217; which need to be changed otherwise if you try to login or view your site you will keep being sent to your real site online! This part confused the hell out of me the first time I tried it but was so aparent afterwards~ In your wp_options table search for the value siteurl and home then change them to the new location ie http://localhost/mybackup</p>
<p>Once this is done you should be ready to test your upgrades, work on modifications etc&#8230; Note sometimes you might get permissons errors on your wp-content folders, I usually resolve this issue by checking the sections in wp-admin&gt;wordpress&gt;miscellaneous section. You might also get the dreaded 500 Internal Server Error, in which case I usually delete the .htaccess rules or modify them slightly&#8230;</p>
<p>Well I hope you find this useful. I&#8217;m sure I&#8217;ll be reading this article again the next time I have to do a backup <img src='http://screamingcodemonkey.com/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Good luck and happy coding!</p>
<p>Best<br />
Jeff</p>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/duplicate-a-site-for-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>From the web ,,,</title>
		<link>http://screamingcodemonkey.com/from-the-web-7/</link>
		<comments>http://screamingcodemonkey.com/from-the-web-7/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:06:53 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[Delicious]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=134</guid>
		<description><![CDATA[<p>These are my links for October 29th through October 30th:</p>

Command Line &#8211; OS X Daily &#8211; 
StudioPress &#8250; Support &#8211; 
500 Internal Server Error &#8211; 500 Internal Server Error

]]></description>
			<content:encoded><![CDATA[<p>These are my links for October 29th through October 30th:</p>
<ul>
<li><a href="http://osxdaily.com/category/command-line/">Command Line &#8211; OS X Daily</a> &#8211; </li>
<li><a href="http://www.studiopress.com/support/">StudioPress &rsaquo; Support</a> &#8211; </li>
<li><a href="http://feeds.delicious.com/v2/rss/jghazally">500 Internal Server Error</a> &#8211; 500 Internal Server Error</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/from-the-web-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the web ,,,</title>
		<link>http://screamingcodemonkey.com/from-the-web-4/</link>
		<comments>http://screamingcodemonkey.com/from-the-web-4/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 08:09:45 +0000</pubDate>
		<dc:creator>jghazally</dc:creator>
				<category><![CDATA[Delicious]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[japan]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.screamingcodemonkey.com/?p=66</guid>
		<description><![CDATA[<p>These are my links for August 15th through August 18th:</p>

Japan Rail pass -JTB Oceania International NZ- &#8211; Economy 	Green
Useful Mac OS X Terminal Commands &#171; Art Of Geek &#8211; sudo apachectl graceful
Pain in the Tech : Installing MySQL on Mac OS X &#8211; 

]]></description>
			<content:encoded><![CDATA[<p>These are my links for August 15th through August 18th:</p>
<ul>
<li><a href="http://www.jtboi.co.nz/travel_info/jrpass.htm?gclid=CKrey77UrJwCFRIcawodtx1-jg">Japan Rail pass -JTB Oceania International NZ-</a> &#8211; Economy 	Green</li>
<li><a href="http://artofgeek.com/2006/09/22/useful-mac-os-x-terminal-commands/">Useful Mac OS X Terminal Commands &laquo; Art Of Geek</a> &#8211; sudo apachectl graceful</li>
<li><a href="http://paininthetech.com/2009/06/14/installing-mysql-mac-os-x">Pain in the Tech : Installing MySQL on Mac OS X</a> &#8211; </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://screamingcodemonkey.com/from-the-web-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

