August 25, 2009, 5:16 pm

rsync is cool. What would be even cooler would be excluding particular files or even a whole folder from the backup process.
That’s no problem using the rsync ‘–exclude’ option.
Lets say you don’t want to backup some log directories on your box via rsync. Sure, there are some log files (perhaps Apache logs) that you want to keep but others you won’t such as a Ruby on Rails production log.
Perhaps there are files containing your DB password, such as a PHP mysqli connection file. Although needed on the main server, it is not needed on the backup.
A folder I always exclude when completing an rsync on my home folder is the ’sources’ directory: I don’t need copies of the source code I have download.
Let’s see how to exclude that directory.
Continue reading ‘rsync – exclude files and folders’ »
August 25, 2009, 2:09 pm

Rsnapshot is a filesystem snapshot utility for making backups of local and remote systems. Using rsync and hard links, it is possible to keep multiple, full backups instantly available. The disk space required is just a little more than the space of one full backup, plus incrementals. See the rsnapshot web site for more information.
A good read is the Rsnapshot HOWTO
Continue reading ‘The rsnapshot backup solution’ »
August 21, 2009, 11:07 pm

I am clumsy and at times inattentive. Especially after a hard day’s work, I sometimes perform actions on my computer without giving them much thought. I close an application, whereas I only wanted to close the current page; I accidentally save older versions of files and overwrite my latest version in the process; or I reboot my computer when I wanted to log out or shut down. Sometimes my mouse slips and accidentally clicks “shut down” in the Openbox menu, allowing me to see all my unsaved OpenOffice documents disappear before me. I’m sure I’m not the only one who has such moments (or at least I hope so ).
Continue reading ‘Confirm to shut down, reboot or log out in Openbox’ »
August 21, 2009, 2:01 pm

This is an addendum to Make Wordpress Load Much Faster. Just a few more tips to get more speed out of your Apache/Wordpress installation.
Continue reading ‘Make Wordpress Faster Part II’ »
August 21, 2009, 1:41 pm

For users who had disabled or turned off post revisions tracking or versions history feature in WordPress (added since WordPress 2.6), it is also made sense to delete and remove all existing stored post revisions and changes made on pages stored in the database in order to reduce the wp_posts table size, especially when there is already tons of revisions or changes been kept.
Continue reading ‘How to Delete Existing WordPress Post Revisions Stored/Saved’ »
August 21, 2009, 1:40 pm

Another new feature in WordPress blog publishing system added since WordPress version 2.6 is post revisions tracking similar to version control system, which provides Wiki-like style tracking of edits been made onto the posts or pages. Post revisions tracking allows bloggers and authors to view who, on when, made what changes to any post or page, with ability to compare for differences between each saved versions, or revert back to older version.
Continue reading ‘Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above’ »
August 21, 2009, 1:03 pm

The following is a theme I’ve made/modified by combining DarknessReturns-Clearklooks (both the GTK and Openbox theme that comes with Crunchbang) with Clearlooks Compact GTK and Surreal openbox themes.
The GTK theme borrows elements from Clearlooks Compact to make the DarknessReturns much smaller, though, not quite as small as Clearlooks Compact.
The OpenBox theme is mostly Surreal, but I stole the menu from DarknessReturns’ Openbox theme.
Obligatory Screenshot:

Click for Larger
Download here: http://tuxtraining.com/files/darkness-surreal.tar.gz
Icon Theme is ALLBLACK.
and tar -xzvf darkness-surreal.tar.gz in your ~/.themes folder and chose the theme with you gtk theme changer and obconf.
August 17, 2009, 12:27 pm

Not quite sure what to backup from a computer I am currently fixing I decided to turn a virus laden XP install into a VirtualBox image on my desktop machine at home.
Enter dd, ssh, and VirtualBox.
After a little reading I came up with this single line to extract the live image from the disk, move it to my desktop machine, and convert it to a 20G VirtualBox image. First I booted from a live disc, mounted the drive I wanted and ran the following:
sudo dd if=/dev/hda | ssh user@xxx.xxx.xxx.xxx vboxmanage convertdd stdin virusxp.vdi 21474836480
Now upon return if they find I’ve missed anything I can just boot it up and retrieve it for them, and after a month or so after they’ve verified they’re happy with it, just easily delete the machine.