rsync – exclude files and folders

terminal.png

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’ »

The rsnapshot backup solution

terminal.png

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’ »

Confirm to shut down, reboot or log out in Openbox

openbox.png

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’ »

Make Wordpress Faster Part II

wordpress.png

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’ »

How to Delete Existing WordPress Post Revisions Stored/Saved

wordpress.png

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’ »

Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above

wordpress.png

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’ »

Openbox & GTK Theme: Darkness-Surreal

openbox.png

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:

darkness-surreal

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.

How to manually add items to dmenu

tux.png

Dmenu is one of my favorite parts of #! CrunchBang’s theme pack and pre-configured version of Openbox, as well as  wmii, and dwm on any distro, but it was always somewhat of a mystery to me how it actually picks up the programs it can find – well, that was until tonight, when I took a look at the associated scripts.

Continue reading ‘How to manually add items to dmenu’ »

Using dmenu in Pekwm and Openbox

openbox.png

During my recent stint trying out wmii, I’ve grown very quickly accustomed to dmenu. After only using it for a few hours, I fell in love with it: it is so convenient to launch an application when you don’t have your hands on the mouse; launch dmenu, just type a few letters from the application name, make sure you have the right app selected, press enter and your app shows up.

So I began to wonder whether it is possible to run dmenu or something similar in Openbox and Pekwm, and it is.

First, you’ll need to install dmenu. You can download the source code from the dwm/wmii website and install that (’sudo make clean install’ in Ubuntu).

Continue reading ‘Using dmenu in Pekwm and Openbox’ »

HOWTO: Create VirtualBox Image from Disk

VirtualBox.png

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.

Pages: Prev 1 2 3 4 5 6 7 8 ...63 64 65 Next