Sun
11
Jul
2010
Today I finally managed to set up an incremental backup for my workstation. What do we need? Well, nothing more than rdiff-backup, an opensource command line tool with all the powers you need.
it just backups. and your last backup is always available 1:1 at the destination (no strange storage formats etc., just dirs and files). Diffs and metadata are stored separately. So if you want a backup that does its job, is plain, is easy to restore, has no unneccessary features and "just works" than rdiff-backup is the right tool for you.
Here a small bash script I write to accomplish the mission:
#!/bin/bash
P=/home/soenke
DESTINATION=mydestionationserver.local
INCLUDE="
$P/Documents
$P/.gnupg
"
echo "$INCLUDE" | rdiff-backup --include-filelist-stdin --exclude $P/ $P/ $DESTINATION::/home/soenke/backup
Mon
24
May
2010
Google search is now also possible via SSL. If you are paranoid like me you might wanna have it enabled by default - while there are several firefox plugins around there, here's how to do it on your own:
<Url type="text/html" method="GET"
template="http://www.google.com/search"to<Url type="text/html" method="GET" template="https://www.google.com/search">
This tutorial is also valid for other OSes, but you may have to find the appropiate locations / directories yourself ;)
I've been using my own google search xml for ages anyway to change the default language to english because it's annoying to have auto-geo-autodetected language search results everytime esp. if
you search for technical things most of your time (Yes you could also set your preferred language in google, stay logged in all the time, let your cookies survive browser restarts etc, but that's
no option for me). To accomplish this, just add a param line to the xml file like this: <Param name="hl" value="en"/>
Sat
09
Aug
2008
I just had the need for an Iterator that can sort itself by a user defined callback.
My special use case is that the DirectoryIterator of PHP does not sort the file list so it's pretty random. But my program logic relies on files being sorted by filename.
So here's the little class: