How to backup your website

June 16, 2009 – 11:08 pm

Hard Drive in Flames

Everyone knows (or should by now) that cheap web hosts (Bluehost, Dreamhost, MediaTemple, etc.) don’t backup your data for you. So you’d better do it yourself. If you’re on any respectable host, you should have ssh access to the box.

Connect to your box via ssh and run the following commands to create a backup of your site.


cd ~
mkdir Backup
nohup zip -r Backup/YYYY-MM-DD-HHMM.zip www/ > backup_log.txt &

(Replace YYYY with the 4-digit year, MM with the 2-digit month, HH with the 24-hour format of the hour, and MM with the 2-digit minute)

cd ~ navigates to your home folder

mkdir Backup creates the backup directory in which the backups will be stored

nohup is short for no hangup and allows processes started by users at the terminal to continue running even after the user logs out

zip is a program which combines many files into one and compresses them to make the end result even more portable

-r tells zip to burrow into all subdirectories in order to grab all of the files

Backup/YYYY-MM-DD-HHMM.zip is the path to the backup file

www/ is the directory to backup (it may be html, htdocs, httpdocs, etc. on your box)

> backup_log.txt redirects all output from zip to the backup_log.txt file so you can review the file later

& tells linux to run the zip program in the background so that you can logout or perform other tasks without killing the process

Now all you need to do is download that zipped file. Use your favorite SFTP client to login to your box and snag it. I recommend FileZilla Client for all platforms. If you’re looking for an FTP server, FileZilla Server is perfect.

That’s the last time I buy from Dell

June 13, 2009 – 4:08 pm

Dell Logo

Regrettably, Dell has canceled your recent order for a Dell Nuvi 275T GPS or Nuvi 265WT GPS

Dear Customer,

This is to notify you that, regrettably, Dell has canceled your recent order for a Dell Nuvi 275T GPS or Nuvi 265WT GPS. Due to our error, the system was shown online at an incorrect price and was far below the correct price for that product, Because of the large difference in price, we have not reinstated your order, but we invite you to visit www.dell.com to re-order this item at the correct price.

As specifically noted on our web pages, catalogs, ads, and customer order documentation, Dell reserves the right to cancel any orders resulting from such errors.

We truly value our relationship and reputation with our customers, and we realize the negative impact from these types of errors.

Please be assured that we are working hard to try and prevent these problems going forward.

We are sorry for any inconvenience that our error may have caused.

Regards,
Dell Employee and Education Personal Purchase Programs

Thank you for being a Dell Customer


I think they mean ex-Dell Customer.

When companies make this mistake, they need to stand behind the company and stand up for their customers. If companies realized how much future business they lost from stupid mistakes like this they would honor the deal in an instant.

In the last five years I purchased two laptops from Dell for a total of $4,000. That’s $800/year that Dell will not be getting from me. Think about how many other loyal customers Dell ticked off with this stupid customer disservice move. I would wager that Dell is revoking this deal for at least 1,000 of their customers. Let’s assume that 10% of those customers spend as much as I do on Dell products.

10% of 1,000 is 100 customers. $800/customer/year * 100 customers = $80,000/year that Dell has lost to its competitors.

The deal was for a Garmin Nuvi 265WT which retails on Amazon.com for $217.84 (at the time of this post) and was being sold on Dell’s site for $130 + tax. That difference is $87.84 and at 1,000 customers that’s $87,840. In just over one year, Dell would have broke even by honoring this deal and now has lost many valuable customers.

What a stupid move. Way to go, Dell!

It pays to be pink. At least Garmin thinks so.

May 27, 2009 – 11:06 pm

For my mother’s birthday I purchased a TomTom One 130. The updated maps had the other half of my road, so I was happy it could navigate more efficiently. Tonight I stumbled across a new site called DealWaiter. I plugged in “Garmin Nuvi” and it had a few results but also had a link to buy it immediately on Amazon.com. I’m sure that link is purely platonic, right? Hah! It turns out the Garmin Nuvi 250 comes in two colors: pink and silver.

I was blown away by the price difference:

Amazon.com - Garmin Nuvi 250 - Price comparison between silver and pink versions

Amazon.com - Garmin Nuvi 250 - Price comparison between silver and pink versions

Silver: $109.99
Pink: $471.99
——————–
Difference: $362.00

The difference alone could purchase
3.3 units of the silver model!

Garmin isn’t the only company who discriminates based on color. Want a black Mac? Better have some “I’m rich!” money laying around. Apple used to have both black and white MacBooks and the typical difference was $100+.

What ridiculous discrepancies have you found?

How do you watch your television shows?

May 25, 2009 – 6:46 pm

Old TV Set

Midway through Heroes: Season 3 I realized how quickly video streaming technology has evolved in the last few years. Think about the multitude of ways you can now get your fix.

EDIT:
Loren brought to my attention another category which I left off entirely, which is software/hardware combos for consuming the aforementioned services:

Just 15 years ago that list was a lot smaller: TV, video rental stores, VCR.

What’s your favorite viewing service?

Vote for The Celebrity Apprentice

May 10, 2009 – 8:52 pm

Who will win The Celebrity Apprentice?

  • Joan Rivers (83%, 5 Votes)
  • Annie Duke (17%, 1 Votes)

Total Voters: 6

Loading ... Loading ...

Search on Walmart.com: What’s the point?

April 19, 2009 – 3:43 pm

My back yard is full of bare spots so I thought it was time to re-seed. Since Walmart is usually cheaper than the competition, I check there first when I need something. I searched for “grass seed” on Walmart.com and got results that couldn’t have been more off.

Read the rest of this entry »

View Source of HTML Email in Microsoft Outlook

April 15, 2009 – 1:43 pm

Outlook Logo

For some reason, Microsoft decided it would be fun to make it nearly impossible to view the HTML source of an email in Outlook.

Below are the convoluted steps to make it accessible. Most of the steps are for the initial setup which makes a new icon available from the quick access toolbar. After you set that up it’s fairly straightforward.

Read the rest of this entry »

Use Google As a Crutch For Your Cheap Website Host

April 7, 2009 – 9:44 pm


Almost every site I create nowadays relies heavily on JavaScript. Having to load in all those scripts can really bog your web server down. Instead of serving those static files yourself, why not use Google? It provides a free service called Google AJAX Libraries that hosts all of the popular JavaScript libraries.

Google makes this very easy by providing a dead-simple API.

Here’s a quick example of how to load jQuery 1.3.2:

<script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1.3.2");</script>

If you don’t want to use Google’s loader, they provide a direct link to the script for each library.

Using this service in parallel with Amazon S3, my Bluehost-hosted site now runs significantly faster at almost no additional cost.

Check out Google’s available AJAX libraries.

Keep getting kicked off Windows XP after you log in?

March 23, 2009 – 9:13 pm

Viruses can be tricky. Even if your anti-virus software is kept up-to-date on a daily basis it may not catch the newest threats. What would you do if a virus infected your computer? That depends. Can you run a virus scan? Can you even login? I ran into that problem and came out victorious.

Read the rest of this entry »

Speed Up That Cheap Website with Cheap Amazon S3

March 16, 2009 – 7:47 pm


Do you have an economy-grade website host? Me too. BlueHost is great for only $6.95 per month but its response times and transfer rates are terrible. Fear not — Amazon S3 to the rescue. For pennies a day you can supplement your cheap website host using Amazon’s Simple Storage Service (S3).

Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.

Amazon S3 provides a simple web services interface that can be used to store and retrieve any amount of data, at any time, from anywhere on the web. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers.

It is simple. So simple.

  • Sign up for an account.
  • Download and install the awesome S3 Firefox Organizer (S3Fox) Firefox add-on.
  • Upload the files you want to be served up like hotcakes.
  • Update the links in your HTML files to point to the new location.
    Example: http://s3.amazonaws.com/jeremy/blog/images/large_bandwidth_sucking_header.jpg
    Note that the example is intended to show the format of the URL and does not point to a valid resource.

Too good to be true? Nope. The S3 files are served up lickety split and best of all it takes the load off of your cheap host which allows it to function much more efficiently. So far I have moved my site’s header and the LightBox JS file. Why didn’t I move the other JS files and images? Because Google hosts all of the popular JavaScript libraries for free.

How much does it cost?
Very little, unless your site becomes wildly popular. 1 million requests costs one dollar plus 17 cents per GB transfered. That’s right. 1,000,000 GET requests = $1.00 + $0.17/GB.

Let’s assume the average size of the elements being served from your Amazon S3 bucket is 10KB.
10KB = 0.01MB = 0.00001GB
1,000,000 requests x 0.00001GB = 10GB
10GB x $0.17/GB = $1.70
1,000,000 requests x $0.01/10,000 requests = $1.00
Total Download Cost: $2.70

Your cheap site can now support 1,000,000 requests per month for a whopping $9.65 ($6.95 for BlueHost and $2.70 for Amazon S3). And if your site gets Dugg or on the front page of Reddit, Amazon S3 will scale without sweating a drop.