December 18, 2009

Backup folders to Amazon S3 automatically

After reading of Jeff Atwood’s data loss issues this past week I started thinking about the web servers I look after.  The servers are all backed up by the hosting provider – SiteHost – and I have a lot of faith in those backups (I work there, but I have also needed to restore some data in the past and it was flawless), but that didnt stop me from thinking it would be a good idea to start doing backups that I control.
I considered getting another VPS hosted in a separate data-centre and copying data over at frequent intervals (and I might do that at some stage so the traffic can be kept within NZ), but I already had an Amazon S3 account and use it for automated backups of the SVN repositories hosted with Storehouse.  So I wrote a little cli app (written in PHP) that tarballs, gzips, and copies the compressed folders up to S3.  The config file allows you to specify as many folders as you want and say whether you want them to be backed up daily, weekly, or monthly (these intervals can easily be changed and added to).

For detailed usage, keep reading.

Read the rest of this entry »

December 13, 2009

Reducing the payload: compression, minification, 204s

After removing all the extra HTTP requests you possibly can from your waterfall, it’s time to make sure that those that are left are as small as they can be. Not only this makes your pages load faster, but it also helps you save on the bandwidth bill. Your weapons for fighting overweight component include: compression and minification of text-based files such as scripts and styles, recompression of some downloadable files, and zero-body components. (A follow-up post will talk about optimizing images.)

via phpied.com

December 2, 2009

HTML5 Demos

For some quick demos of some of the new features included in the HTML5 spec, have a look at http://html5demos.com

November 21, 2009

‘New software version’ notifications for your site

“One of the great things about working at Google is that we get to take advantage of an enormous amount of computing power to do some really cool things. One idea we tried out was to let webmasters know about their potentially hackable websites. The initial effort was successful enough that we thought we would take it one step further by expanding our efforts to cover other types of web applications—for example, more content management systems (CMSs), forum/bulletin-board applications, stat-trackers, and so on.”

via googlewebmastercentral