7
01
2009
If you don’t have MacOS X 10.5 (Leopard) but as well starving for a nice and easy backup then try this shell script. MacOS X provides some simple command line tools for doing a convinient backup out of the box. I wrote a little shell script which sports RSYNC to do regular backups and even archive deleted files for a certain time.
Simply modify your source and destination folder in this script and call it regularly. This can be done with cron. Your contrab entry should look something like this:
0 */2 * * * /Users/youraccount/pmt.sh > /dev/null 2>&1
This will start the script every full 2 hours. Should be sufficient.
#!/bin/bash
# poor man's timemachine backup script
# Author:
# $Date: 2009-01-07 13:46:08 +0100 (Wed, 07 Jan 2009) $
# $Author: fzurell $
# $Revision: 93 $
# $HeadURL: http://fzurell@svn.explain-it.org/trunk/tools/pmt.sh $
# this is where your backup will go
# hence the special character " " ... must be quoted with \
BACKUPDIR=/Volumes/Time\ Machine/pmt
# This is the folder where the Backup should start from
# it will be backed up recursivly
SOURCE=/Users/fzurell/Music
####################################################################
LANG=de_DE.UTF-8
WDAY=`date +%A`
MDAY=`date +%d`
# if you call this script without any parameter
# then deleted files will be archived for one week
# you can optionally choose to keep them one month
case $1 in
"woche")
BDAY=$WDAY
;;
"monat")
BDAY=$MDAY
;;
"--help")
echo "Usage: $0 [woche | monat]"
exit 10
;;
*)
BDAY=$WDAY
;;
esac
if [ ! -d "$BACKUPDIR" ]; then
exit 1
fi
/usr/bin/rsync -a -q --delete -b --backup-dir="$BACKUPDIR/$BDAY" "$SOURCE" "$BACKUPDIR/BACKUP"
if [ $? -eq 0 ]; then
say "Your Backup finished successfully."
else
say "Sorry, there went something wrong with your Backup."
fi
Comments : No Comments »
Categories : Geeky, Software
Tags: Backup, rsync, timemachine
26
11
2008
Comments : 10 Comments »
Categories : Geeky, Software
Tags: 1Password, Geeky, Software
10
11
2008
Comments : No Comments »
Categories : Geeky, Software
Tags: Geeky, GTD, Software, Things
7
10
2008
Last weekend I reinstalled MacOS X Leopard on my MacBook Pro for it had some strange errors I couldn’t get rid of. Of course I did a Time Machine backups ahead to have my data safe during reinstallation. I didn’t chose to restore my personal account from a Time Machine backup during the installation as I wanted a clean and fresh system with all programs and settings setup up new and manually. This time I selected to create FileVault user account. This means my home folder is actually an encrypted image file. This image file will be descrypted and mounted as my home directory during login and gets automatically closed and encrypted when I log out.
This worked very well for the first hours. But then during manual installation of some programs and copying my backed up files a kernel panic occured with the grey screen of death. That’s the last thing you wanna see when you have a mounted encrypted image.
After reboot I still was able to login and everything looked OK. But my keychain was damaged. This wasn’t a big problem for the moment as there where only a few apps which made entries there. I repaired the broken keychain and everything was OK.
Then, after finishing my restore I tried to delete the old Time Machine backups from my external disks. This isn’t as easy as it seems. Just dragging it into the Trash bin and empty the Trash will take hours as the Backup consists of million of files. I tried that before….
This time I tried to delete the Backups.backupdb folder from the disk with simple Unix commands (rm -rf ). But this doesn’t work firsthand. Even as superuser I wasn’t able to delete the files. Always got a “no permission” error message. I then checked the usual suspects mds (Spotlight Metadata Service) and hidden file attributes (xattribs). But that didn’t helped.
Finally I connected the disk to another MacBook with the old Tiger 10.4 MacOS X and tried to erase the files over there. This worked well. So Tiger doesn’t care about special settings of these files and did it’s job.
After that I tried to start a fresh and clean backup with Time Machine again. But Time Machine told me that it couldn’t do a backup of a FileVault secured home folder while the user is logged in. This is logical but sad. As this is a laptop computer and I’m the only user I’m almost always logged in when this machine is on. And to extra log off to have a backup done is not really practical. So I decided to kick FileVault for a convinient Time Machine backup. This took a lot of space on my hard disk during the unencryption and about 2 hours.
But now everything is fresh and clean and even PictureSync is working properly again.
Comments : 1 Comment »
Categories : Geeky, Software
Tags: Backup, Geeky, Leopard, Software, Time Maschine
21
08
2008
Comments : 7 Comments »
Categories : Geeky, Software
Tags: Geeky, Software
21
07
2008
If you need an temporary internet connection on the run and don’t have a special data rate on your mobile contract then maybe the Vodafone Websession is what you need.
This is a special mobile accesss point for session based internet connections. You will be charged on you normal telephon bill our via websession voucher. All you need is some special settings for the connection

You can choose to get 30 minutes, 1 hour our 24 hour session. For the 30 minutes session you’ll pay 1,95 EUR which isn’t quite cheap. But if you don’t have any data rate booked on your contract you’ll surely pay about 20 EUR per 1 MByte!!!
Normaly Vodafone is selling the Websession package with special UMTS/3G hardware like an USB-Stick or 3G ExpressCard. But if you got a mobile phone with an UMTS/3G modem which is recognized by your computer you’re all done. All you need is set up some special connection settings
Here are the “secret” settings:

APN: event.vodafone.de
username: my_username
password: mypassword
telephone number: *99***1#


Comments : No Comments »
Categories : Geeky
Tags: Geeky, MacOS X, Vodafone, Websession
18
04
2008
Comments : 4 Comments »
Categories : Geeky, Software
Tags: Leopard, Recent, Stacks