<?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>Wilson Mattos &#187; Tutorials</title>
	<atom:link href="http://www.wilsonmattos.com/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wilsonmattos.com</link>
	<description>Providing Technology Solutions</description>
	<lastBuildDate>Sun, 11 Jul 2010 20:21:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Protect Clickbank Product Download Pages</title>
		<link>http://www.wilsonmattos.com/how-to-protect-clickbank-product-download-pages</link>
		<comments>http://www.wilsonmattos.com/how-to-protect-clickbank-product-download-pages#comments</comments>
		<pubDate>Tue, 20 Oct 2009 07:24:57 +0000</pubDate>
		<dc:creator>Wilson Mattos</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wilsonmattos.com/?p=149</guid>
		<description><![CDATA[In a previous post, I talked about How to Automate AWeber Opt-in for Clickbank Sales, and I mentioned that it is a good idea (silly if you don&#8217;t) protect your download pages to ensure only legitimate customers who paid for your product can download it.
When I say &#8220;protect&#8221; your download pages, I do NOT mean [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In a previous post, I talked about <a href="http://www.wilsonmattos.com/how-to-automate-aweber-opt-in-for-clickbank-sales">How to Automate AWeber Opt-in for Clickbank Sales</a>, and I mentioned that it is a good idea (silly if you don&#8217;t) protect your download pages to ensure only legitimate customers who paid for your product can download it.</p>
<p>When I say &#8220;protect&#8221; your download pages, I do NOT mean create a crazy looking URL hoping nobody can &#8220;guess&#8221; it.  This is called &#8220;<strong>attempted security by obscurity</strong>&#8221; and it does NOT work!  All it takes is for someone to post the URL to your download page somewhere on the Internet and your &#8220;supposed security&#8221; is broken!  The worse part happens when that link is posted on a public page somewhere and Google finds it, indexes it, and makes it available to anyone who can perform a Google search.  <em>Still think your crazy-named download URLs are secure?</em></p>
<p>I have received many questions since I wrote my last article on how to truly protect the download page, so I decided to write this brief tutorial.  Although there are several products you can purchase to protect you downloads, this method does not require that you purchase anything at all&#8230;it&#8217;s FREE!</p>
<p>This is not something I invented.  In fact, this is clearly documented on the Clickbank site. However, sometimes it just helps if someone explains it a little differently&#8230;so here it is.  <img src='http://www.wilsonmattos.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h2>Step 1. Setup Your Clickbank Secret Key</h2>
<p>The &#8220;Secret Key&#8221; is used to encrypt information generated by the Clickbank shopping cart regarding the purchase so that you can validate it before displaying your download page as you will see shortly.  Make absolutely certain that this key is very random and is kept very secure!!!</p>
<p style="padding-left: 30px;">1.  Login to your Clickbank account</p>
<p style="padding-left: 30px;">2. Click on the &#8220;Account Settings&#8221; tab</p>
<p style="padding-left: 30px;">3. Click &#8220;My Site&#8221; on the sub-menu, below the tabs</p>
<p style="padding-left: 30px;">4. Scroll down to the &#8220;Advanced Tools&#8221; section and click &#8220;Edit&#8221;</p>
<p style="padding-left: 30px;">5. Enter a <strong>random</strong> &#8220;Secret Key&#8221; (up to 16 numbers and letters in ALL CAPS)</p>
<p style="padding-left: 30px;">6. Copy this key as you will need it in the next section</p>
<h2>Step 2. Edit Your Download Page</h2>
<p>You will need to edit your download page using your favorite text or HTML editor.  In order to make life simpler and avoid additional steps, your page should have a &#8220;.php&#8221; extension.  I name my pages &#8220;download.php&#8221; to make it easy to remember.  Name your page whatever you think makes sense.</p>
<p style="padding-left: 30px;">1. Put this code at the very top of your page</p>
<p style="padding-left: 30px;"><em>Note: I mean the VERY TOP&#8230;there should be nothing above it (not even a blank line)</em>.</p>
<pre style="padding-left: 60px;">&lt;?php

function cbValid() {
   $key='YOUR_SECRET_KEY';
   $rcpt=$_REQUEST['cbreceipt'];
   $time=$_REQUEST['time'];
   $item=$_REQUEST['item'];
   $cbpop=$_REQUEST['cbpop'];
   $xxpop=sha1("$key|$rcpt|$time|$item");
   $xxpop=strtoupper(substr($xxpop,0,8));

   if ($cbpop==$xxpop) {
      return 1;
   } else {
      return 0;
   }
}

if (cbValid() == "0") {
   header("Location: http://YOUR_SALES_PAGE_URL");
}
?&gt;</pre>
<p style="padding-left: 30px;">2. In the sample code above, replace YOUR_SECRET_KEY with the &#8220;Secret Key&#8221; you created above</p>
<p style="padding-left: 30px;">3. In the sample code above, replace YOUR_SALES_PAGE_URL with the URL you want to redirect anyone who tries to reach your download page without having purchased your product.  I typically set this to my sales page URL.</p>
<p style="padding-left: 30px;">4. OPTIONAL: Edit the &lt;head&gt; section of your page and add the following META tag to ensure the search engines don&#8217;t <em>index it:</em></p>
<p style="padding-left: 30px;"><em>Note: this is optional because the search engines will never be able to reach your download page, but is just an extra measure in case &#8220;something&#8221; goes wrong.</em></p>
<pre style="padding-left: 60px;">&lt;meta name="ROBOTS" content="NOINDEX,NOFOLLOW"&gt;</pre>
<p style="padding-left: 30px;">5. Save your download page and upload it to your server</p>
<p style="padding-left: 30px;">6. Set the new download page URL as the &#8220;Thank You Page&#8221; in your Clickbank product configuration</p>
<h2>Important Next Steps&#8230;</h2>
<p>Once you implement the above procedure your download page will be secure! Anyone trying to access it without actually making a purchase will be redirected to the URL you configured in the script above.  Try it yourself by just typing the URL in the browser and seeing what happens.</p>
<p>Protecting the download page from prying eyes is great, but <strong>you also need to protect the file download link</strong>, or that link can be shared as well and your efforts from above will be in vain.  Again, there are products to do this, but with some simple PHP code, you can do it for free.  I will save that tutorial for another post.  However, I will tell you that I use Amazon S3 to store and deliver my downloadable products.  If you are interested in learning more about how to use Amazon S3 to store and deliver content securely (including streaming video, images, downloadable files, etc), you can check out my <a title="Amazon S3 Tutorial webinar" href="http://fwd.cc/amazons3tutorial" target="_blank">Amazon S3 Tutorial Webinar</a> Recording, which teaches everything you need to know about using Amazon S3 securely in just one hour.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wilsonmattos.com/how-to-protect-clickbank-product-download-pages/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to Automate AWeber Opt-in for Clickbank Sales</title>
		<link>http://www.wilsonmattos.com/how-to-automate-aweber-opt-in-for-clickbank-sales</link>
		<comments>http://www.wilsonmattos.com/how-to-automate-aweber-opt-in-for-clickbank-sales#comments</comments>
		<pubDate>Thu, 03 Sep 2009 06:25:27 +0000</pubDate>
		<dc:creator>Wilson Mattos</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wilsonmattos.com/?p=85</guid>
		<description><![CDATA[This post has been removed at the request of AWeber.
For instructions on how to integrate Clickbank with AWever, please see these instructions on the AWeber site.
]]></description>
			<content:encoded><![CDATA[<p></p><p>This post has been removed at the request of AWeber.</p>
<p>For instructions on how to integrate Clickbank with AWever, please see <a href="http://www.aweber.com/faq/questions/235/How+Do+I+Integrate+Clickbank+With+AWeber%3F" target="_blank">these instructions</a> on the AWeber site.</p>
<p><!--<br />
If you are a Clickbank Merchant, you can very easily automate the process of opting your customers into your AWeber list through the sales process, without having to ask them to enter their name and email address again.  It is actually very simple to accomplish.</p>
<p>Now, before you even ask, let me tell you that I have seen many questions elsewhere as to whether a double opt-in is necessary after an actual purchase or not, in order to comply with CAN-SPAM regulations.  Some say that because someone has purchased your product, no double opt-in is necessary, while others claim you still need to double opt-in. I am NOT a lawyer and will not give you legal advice, so I will leave it up to you to decide.  The sample configuration I am providing here will work either way.</p>
<p>When you setup your product to be sold via Clickbank, you set up an "offer page" and a "download" page.  The download page is where Clickbank will send the buyer after they have paid for your product.  You should make this a .php page (such as download.php).  I will assume in the remainder of this post that you named it "download.php." Some of you may think that naming the file something simple will make your product insecure.  This is NOT the case.  If you do not know how to validate the purchase in order to protect your product, leave a comment below and I will write another post about it.  Naming your download page something cryptic is NOT security!</p>
<p>At the very top of the download.php file, paste this code:</p>
<blockquote><p><code><br />
<span style="font-size: x-small;" mce_style="font-size: x-small;">&lt;?php<br />
$cname=$_REQUEST['cname'];<br />
$cemail=$_REQUEST['cemail'];<br />
?&gt;</span><br />
</code></p></blockquote>
<p>then, just before the &lt;/body&gt; HTML tag, at the bottom of your page, paste in this code (see edits below):</p>
<blockquote><p><code><span style="font-size: x-small;" mce_style="font-size: x-small;"> &lt;iframe name="optiniframe" style="display:none" width="1" height="1"&gt;&lt;/iframe&gt;<br />
&lt;form id="optin" name="optin" target="optiniframe" style="display:none" method="post" action="http://www.aweber.com/scripts/addlead.pl"&gt;<br />
&lt;input type="hidden" name="unit" value="YOUR_LIST_NAME_HERE" /&gt;<br />
&lt;input type="hidden" name="redirect" value="SOME_THANKYOU_PAGE_HERE" /&gt;<br />
&lt;input type="hidden" name="meta_redirect_onlist" /&gt;<br />
&lt;input type="hidden" name="meta_adtracking" value="" /&gt;<br />
&lt;input type="hidden" name="meta_message" value="1" /&gt;<br />
&lt;input type="hidden" name="meta_required" value="from" /&gt;<br />
&lt;input type="hidden" name="meta_forward_vars" value="0" /&gt;<br />
&lt;input type="hidden" name="name" value="&lt;?php echo $cname; ?&gt;" /&gt;<br />
&lt;input type="hidden" name="from" value="&lt;?php echo $cemail; ?&gt;" /&gt;<br />
&lt;/form&gt;<br />
&lt;script language=javascript&gt;<br />
&lt;!      document.getElementById('optin').submit(); //  &gt;<br />
&lt;/script&gt;<br />
</span></code></p></blockquote>
<p>Now, edit the form code above  and change YOUR_LIST_NAME_HERE to the name of your list in AWeber and SOME_THANKYOU_PAGE_HERE to some URL on your site (this will not be displayed, so it can be any URL, preferably some simple HTML &#8211; no JavaScript pop-ups, etc).</p>
<p>That&#8217;s it! You can easily test this process either by going through the purchase process of your Clickbank product or by placing the product in &#8220;Test Mode&#8221; and making a test purchase.</p>
<p>If your list is configured for double opt-in, the customer will receive the opt-in confirmation email as if he/she has submitted the form on your site.  Double opt-in in AWeber is configured in &#8220;<strong>My List -&gt; Confirmed Opt-in</strong>&#8221; for each of your lists. If you turn this off, the customer will not receive your opt-in confirmation and wil be immediately subscribed.</p>
<p>Please let others know about this post and leave me a comment if you like the solution!<br />
&#8211;></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wilsonmattos.com/how-to-automate-aweber-opt-in-for-clickbank-sales/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Improve Your Landing Page Quality Score</title>
		<link>http://www.wilsonmattos.com/how-to-improve-your-landing-page-quality-score</link>
		<comments>http://www.wilsonmattos.com/how-to-improve-your-landing-page-quality-score#comments</comments>
		<pubDate>Mon, 16 Mar 2009 07:42:06 +0000</pubDate>
		<dc:creator>Wilson Mattos</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wilsonmattos.com/?p=29</guid>
		<description><![CDATA[When creating a Pay-Per-Click (PPC) campaign to test a new product or niche, you don&#8217;t want to spend a lot of time creating different landing pages for each Ad Group and/or keyword you want to target.  However, you need to make sure that your page is relevant to the user that clicks on your ad, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When creating a Pay-Per-Click (PPC) campaign to test a new product or niche, you don&#8217;t want to spend a lot of time creating different landing pages for each Ad Group and/or keyword you want to target.  However, you need to make sure that your page is relevant to the user that clicks on your ad, and that your landing page is relevant for the keywords you are bidding on so that your &#8220;Quality Score&#8221; is high, and your prices are low!</p>
<p>I am going to give you the exact instructions for improving your landing page quality score by automatically generating relevant page title, H1 headings, and text specific for each of your PPC Ad Groups without having to create additional landing pages.  This will help you test a new campaign very quickly.  This trick uses PHP code, but you don&#8217;t have to worry because I am going to make it as simple as copy and paste.  No previous PHP knowledge required!</p>
<p>Here we go:</p>
<p><strong>Step 1:</strong> Create your landing page using whatever method you are familiar with and name it &#8220;index.php&#8221;</p>
<p><strong>Step 2:</strong> Paste the following code at the very top of the &#8220;index.php&#8221; file</p>
<pre style="padding-left: 30px;">&lt;?php
  if ($_GET['keyword'] != "") {
    $keyword=ucwords(str_replace('-',' ',$_GET['keyword']));
  } else {
  $keyword="Default Phrase";
}
?&gt;</pre>
<p><em>Note: Update the 5th line to have your default text show up in case the parameter is not passed to index.php.  If you don&#8217;t know what this means, read the entire post and it will become clear.</em></p>
<p><strong>Step 3:</strong> Anywhere on the page where you would like to use the custom text, place the following code, instead of the content you put there when you created the page:</p>
<pre style="padding-left: 30px;">&lt;?php echo $keyword; ?&gt;</pre>
<p>Let&#8217;s say that your page title looked something like this:</p>
<pre style="padding-left: 30px;">&lt;title&gt;This is My Title&lt;/title&gt;</pre>
<p>You would change it to look like this instead:</p>
<pre style="padding-left: 30px;">&lt;title&gt;&lt;?php echo $keyword; ?&gt;&lt;/title&gt;</pre>
<p><strong>Step 4:</strong> Upload the &#8220;index.php&#8221; file to your server and you are ready to use it.  However, I will show you another improvement in a second, so make sure to keep on reading.</p>
<p>Access the page with a browser, and you should see that the &#8220;default phrase&#8221; you entered in line 5 of Step 2 shows up.</p>
<p>Assuming your web server is www.mydomain.com and that you uploaded your index.php file to the root directory, access the page like this:</p>
<pre style="padding-left: 30px;">http://www.mydomain.com/?page=new-custom-title</pre>
<p>You will now see that the title, and anything else (such as H1 heading) that you updated with the PHP code in Step 3 automatically updates on the page and shows up instead of the default text.</p>
<p><em>Note: Just separate the words in your phrase with &#8220;-&#8221; as I did in my example.</em></p>
<p>Now, when you create an ad group, you can use a URL that includes ?page=&#8230; to be super relevant to your keyword, which will help increase your Quality Score as well stick for the user whoc clicked in the ad.</p>
<p><strong>BONUS Step:</strong> I don&#8217;t like the &#8220;ugly&#8221; URLs I showed you above, so I created yet another small hack that allows me to have &#8220;better looking&#8221; URLs.  Just paste this in your &#8220;.htaccess&#8221; file.  If you don&#8217;t have one, just create one and put the following code in place, then upload to your server.</p>
<pre style="padding-left: 30px;">RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html index.php?page=$1 [NC,L]</pre>
<p>Now, you can have the same effect as the example above by accessing the file as a &#8220;.html&#8221; file.  For example:</p>
<pre style="padding-left: 30px;">http://www.mydomain.com/new-custom-title.html</pre>
<p>This code will automatically use the requested &#8220;.html&#8221; file name to generate the tags for you, as long as a real &#8220;.html&#8221; file with that name does not exist.  Again, just use &#8220;-&#8221; to separate the words.</p>
<p>You can do a lot more with this trick by using multiple variables to change text in multiple areas of the page with different text in each area.  The example above will get you started and I will leave the rest to your imagination!  <img src='http://www.wilsonmattos.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wilsonmattos.com/how-to-improve-your-landing-page-quality-score/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To Automate Your Web Server Backups</title>
		<link>http://www.wilsonmattos.com/how-to-automate-your-web-server-backups</link>
		<comments>http://www.wilsonmattos.com/how-to-automate-your-web-server-backups#comments</comments>
		<pubDate>Mon, 16 Mar 2009 05:40:50 +0000</pubDate>
		<dc:creator>Wilson Mattos</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[automated hosting account backups]]></category>
		<category><![CDATA[cpanel backups]]></category>
		<category><![CDATA[hosting account backups]]></category>
		<category><![CDATA[how to automate cpanel backups]]></category>
		<category><![CDATA[how to backup web server]]></category>
		<category><![CDATA[server backups]]></category>

		<guid isPermaLink="false">http://www.wilsonmattos.com/?p=3</guid>
		<description><![CDATA[Most people do not realize that their hosting provider does NOT backup their data. This is especially true of shared hosting...you know, the $10 per month type of accounts.  This short video tutorial will walk you though the step-by-step process for automating your hosting account (web server) backups.]]></description>
			<content:encoded><![CDATA[<p></p><p>Every once in a while I hear of someone losing their data because they neglected the fact that they need to perform backups on a regular basis.  One of friends calls me up one day and tells me she lost 10 years worth of pictures when her hard drive crashed and was begging for help. Luckily I was able to recover her pictures and other data, but she was lucky, because I had the right tools for the job and the drive was physically accessible.</p>
<p>When a web server crashes, it is a completely different story, because you are at the mercy of the hosting provider and you do not have physical access to the drive(s).  <strong>What most people do not realize is that their hosting provider does NOT backup their data.</strong> This is especially true of shared hosting&#8230;you know, the $10 per month type of accounts.  Well, now you know and I hope you will do something about it. Data protection isn&#8217;t fun, but neither is paying for insurance.  Consider your backups as insurance&#8230;it is a smart thing to do.</p>
<p>The best news is that is it very easy to automate this process.  I even created a short video with detailed instructions on how to get this done for cPanel-based hosting accounts.  The video is going to show you how to confiure the backup scripts on the server to perform daily backups, but that is just the first step.  In order for your backups to do you any good, you have to store them somewhere other than your server.  I show you how to do that as well.  If you have any questions, leave a comment on this page or ask me on Twitter (<a rel="nofollow" href="http://twitter.com/WilsonMattos" target="_blank">http://twitter.com/WilsonMattos</a>).</p>
<p style="text-align: center;"><h2 style="color: red;">Please visit website to view premium content</h2></p>
<p style="text-align: center;">
<h2>Resource Links</h2>
<p><strong>Auto FTP Manager: <a rel="nofollow" href="http://jumpclix.com/autoftp" target="_blank">Download Auto FTP Manager</a></strong></p>
<p><strong>cPanel-based Web Hosting: <a rel="nofollow" href="http://jumpclix.com/hostgator" target="_blank">Hostgator</a></strong></p>
<h2>Scripts</h2>
<p><strong>backup.sh</strong> (Note: everything goes in one line, just copy and paste from here):</p>
<p><textarea onclick="javascript:this.select();" cols="60">wget &#45;O /dev/null -q &#45;&#45;http-user=$1 &#45;&#45;http-password=$2 http://localhost:2082/frontend/x3/backup/dofullbackup.html &#45;&#45;post-data=&quot;dest=homedir&amp;email=$3&quot;</textarea></p>
<p><strong>Cron Job</strong> (Note: Do not remove the quotes):</p>
<p><textarea onclick="javascript:this.select();" cols="60">/bin/sh ~/backup.sh &quot;USERNAME&quot; &quot;PASSWORD&quot; &quot;EMAILADDRESS&quot;</textarea></p>
<h2>Video Transcript</h2>
<blockquote><p>In this short video I&#8217;m going to show you a very simple way to automatically back up all the data on your web hosting server including your website files, MySQL databases, blogs, etc.  So let&#8217;s go ahead and get started.</p>
<p>The very first step is to access the cPanel administration interface for your hosting account.  I&#8217;m using <a rel="nofollow" href="http://jumpclix.com/hostgator" target="_blank">HostGator</a> as my hosting provider, and I&#8217;m using the default HostGator skin.  The skin is the look and feel of your administration panel.  Your interface may look a little bit different depending on what skin you&#8217;ve chosen or who your hosting provider is, but it&#8217;ll have the same features that I am demonstrating here, like all of these icons, for example.</p>
<p>Find the &#8220;Find&#8221; box (I like to use it so I don&#8217;t have to scroll through all the icons) and type the word &#8220;File&#8221; in it.  Or just find the application called &#8220;File Manager.&#8221;  Go ahead and click on &#8220;File Manager,&#8221; and then click on &#8220;Go.&#8221;  When it comes up click the &#8220;New File&#8221; icon on the top left.  And then type the name &#8220;backup.sh&#8221;  Again, &#8220;backup.sh.&#8221;  Then click the &#8220;Create New File&#8221; button.  You will then be able to scroll down and find the &#8220;backup.sh&#8221; file you just created.  Notice it is zero bytes.  There&#8217;s nothing in it yet.  Check the box right next to it, and then let&#8217;s click the &#8220;Edit&#8221; button on the top of the screen.  Next,  click the &#8220;Edit&#8221; button on the window that comes up above the text editor.  Once the text editor is up, go ahead and copy the text that is underneath this video on this webpage in the box titled &#8220;backup.sh.&#8221;  Go ahead and just copy all of it and paste it right here, and do not make any modifications whatsoever to it, then go ahead and click on &#8220;Save Changes.&#8221;  Once that is done you can close the file manager window, and you can go ahead and close this window as well.</p>
<p>Now, let&#8217;s go back to our main cPanel window.  The next step is to search for the &#8220;cron&#8221; application.  There it is, &#8220;Cron Jobs.&#8221;  Go ahead and click on it and select the &#8220;Standard&#8221; button to schedule a job.  Now underneath this video there&#8217;s also a text box that is labeled &#8220;Cron Job.&#8221;  Go ahead and copy the contents of that box.  I&#8217;m going to just go ahead and type it here, and it&#8217;ll look like this.  And make sure to change the last three fields of this command.  The first one will be the user name, so my user name is this; my password, and then my e-mail address.  So go ahead and make sure you put values for yourself here.  The first couple of parts stay the same.  Then you put in your user name for cpanel.  This is your cPanel account, your cPanel password, and any e-mail address that you want the confirmation of your backup to be sent to.  Then you pick the date and time that this is going to occur.  So here you have the hour, so I have selected 3 AM.  Let&#8217;s go ahead and change it to 2 AM.  Actually, I want that to be 2:15 AM, so you select the hours and the minutes, so 2:15 AM.  I want to run it every day of every weekday, every month.  So the only changes here is the hours and minutes, and once I&#8217;m done I&#8217;m going to go ahead and &#8220;Save Crontab.&#8221;  That&#8217;s it.  I have now scheduled a job that will automatically back up my server on a daily basis.</p>
<p>So how do we get your backups?  Okay, so we go back to the main interface of the HostGator cPanel, and we&#8217;re going to go ahead and find an application called backups.  Here is the &#8220;Backups&#8221; application.  I&#8217;ll go ahead and click on it.  Then I will click on &#8220;Download or Generate a Full Backup.&#8221;  There are the backups that have automatically run.  These actually ran on November 18th, 2008, at 12:30am; 30 minutes past midnight November 20th; November 19th as well.  So in order for me to download the backups, I just click on the backup and save the file locally.  Now, as you can imagine this is another task for you to handle every day.  Not only do you have to download these backups, but you would also have to go ahead and go to file manager and delete them after you back them up, because otherwise they&#8217;re going to just fill up the disk space and take up all the disk space on your hosting account.  So let&#8217;s go ahead and automate this process as well.</p>
<p>The very first thing I&#8217;m going to do is I&#8217;m going to &#8220;My Documents,&#8221; and then I&#8217;m going to create a folder to store my backups.  So let me call this &#8220;Web Server Backups.&#8221;  You can call it whatever you like.  We&#8217;re going to use this in the next step.  And then I&#8217;m going to launch a little application called Auto FTP Manager.  I&#8217;ve included a link to this application below this video.  It&#8217;s a very cool little application, and they give you a free trial.  So what I&#8217;m using to record this video is the free trial.  And once you start the application a little wizard comes up.  And we&#8217;re going to choose &#8220;Create Automated Transfer Profile.&#8221;  It&#8217;s the second option, and I&#8217;m going to go ahead and click on &#8220;OK.&#8221;  What I want is an &#8220;Automated Transfer.&#8221;  I&#8217;ll go ahead and click on &#8220;Next.&#8221;  And then I have to browse where I want to store those backups.  So I just browse to the folder I created.  Again this doesn&#8217;t matter.  Call it whatever you&#8217;d like.  Click on &#8220;OK.&#8221;  And then I&#8217;ll choose &#8220;Next.&#8221;  &#8220;FTP Server&#8221; is the correct choice on this screen, so I&#8217;ll just go ahead and click on &#8220;Next.&#8221;  And then it wants me to type in the information for the FTP Server.  So I&#8217;ll just type in my domain information, and my user name, and my password.  Okay, and then I will select the FTP folder directory I want to back up.  I&#8217;ll just say slash – Now this is the next very important step here under select sub-folders and files to include or exclude, go ahead and click on &#8220;Configure.&#8221;  And the very first thing we want to do is click on &#8220;Deselect All.&#8221;  This is important.  You don&#8217;t want anything selected.  Now, if you have backups that you have already created like I have, for example, like I showed you before.  Then you want to check them to make sure that they get transferred, because otherwise they won&#8217;t get transferred the first time.  If you haven&#8217;t created a backup yet, because your scheduled job on the server that we just created hasn&#8217;t run, then don&#8217;t worry about this.  But I already have three backups, and I want them to be transferred.  So I&#8217;ll go ahead and put check boxes right next to those.  Click on &#8220;OK,&#8221; and the names of those backups were right here, so I knew what they were.  Go ahead and click on &#8220;Next.&#8221;  The default action here is not what we want.  We want the transfer files from my domain, whatever your domain is called, to your machine.  And then we want to select here the delete file from my domain after transfer.  This automatically does the cleanup for you that I talked about, so that you&#8217;re not filling out your entire quota on your hosting account.</p>
<p>Okay, then we have to set a filter, so that we transfer the right file types.  I&#8217;m going to go ahead and click on &#8220;Configure,&#8221; and I&#8217;m going to select &#8220;File Type.&#8221;  I&#8217;m going to say &#8220;Include&#8221; rather than exclude, so I would like to &#8220;Include.&#8221;  And then I&#8217;ll come here and type &#8220;.gz.&#8221;  So I want to add files of type &#8220;.gz.&#8221;  So it says now to include .gz.  And this will always just grab those files for you.  Then we&#8217;re going to go ahead and schedule this.  We don&#8217;t want to schedule just once, so we want to say &#8220;Daily.&#8221;  As you can see this is a pretty cool application.  You can set up custom intervals; monthly, weekly, whatever you want.  So I&#8217;m going say &#8220;Daily.&#8221;  It&#8217;s 12:42, so let&#8217;s go ahead and make it the 12:43 schedule.  It&#8217;s going to occur every &#8220;1&#8243; day, and it is enabled.  And then we&#8217;ll go ahead and click on &#8220;Next.&#8221;  We&#8217;ll specify a name for this profile.  Let me just call it HostGator, since this is what I&#8217;m backing up.  You can call it again whatever you want.  We don&#8217;t want to do anything after we&#8217;re finished.  We&#8217;re just going to go ahead and &#8220;Finish&#8221; this, and as you can see here you have an automatic transfer profile.  If you wanted to change a schedule or anything like that, you could right-click and edit that profile.  Let&#8217;s take a look at the scheduled profile, and this tells us when it&#8217;s going to run.  It&#8217;s about to run, so we just made that schedule; ten seconds.  This should now transfer those files, delete them from our hosting account, so that everything is cleaned up.  So here we go.  It&#8217;s running, and it shows us what is going to happen.  It&#8217;s scanning the files.  Look, it found the files.  It is transferring the files now.  It is transferring all my backup files.  And if we scroll here, file completed.  Everything&#8217;s completed.  Transfer completed and then file deleted.  And we can go ahead and close this log.  You can close this application.  It doesn&#8217;t actually terminate the application.  It stays running in your system tray.  This is required in order for the job to run next time.  And if we go to the scheduled profiles again, it says that in 23 hours, 59 minutes, and 20 seconds it&#8217;s going to run again.  So we want to make sure that this application stays running, so that the scheduled jobs can run.</p>
<p>If we go back to the HostGator cPanel, we should see that those backups are no longer there.  So we&#8217;ve cleaned up our home directory and removed the generated full backups.  We no longer have a backup here.  We&#8217;ve transferred them all.  If I go to my documents and look at my web server backups, I can see that the files are there.  This is my backup that I can use to restore my web server.  That&#8217;s how simple that is.  I hope you enjoyed the video and that this process serves you very well.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.wilsonmattos.com/how-to-automate-your-web-server-backups/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>
