I’ve moved sofaracing.com from the current hosting onto my sofaracing.co.uk hosting. The thing was a bit of a mess and because of which I didn’t want to move various bits accross but I did have a pretty old (and ugly - thanks Tiki) wiki which I wanted to keep the content. As with most things a bit of google-ing revealed a useful solution… A nice bit of open source software called HTTrack will make a complete local copy of any given webpage.
Workshed Uncategorized
After a completely accidental early morning ordering on Monday at 8:07am I’ve got a shiney new 16Gb iPhone in my hands! I indend to post up hacks and cool things as i find them, one such thing is that you can use the iPhone to remote control iTunes (really will have to get an Airport Express in the house!).
Workshed iPhone
As I have a rather large amount of webspace I decided it would be a good idea to backup the subversion repository to it. This provides good redundancy for a SVN/computer problem!
To achieve this i created the following script for my Debian server:
#!/bin/sh
#
# Description:SVN backup script
#
# The DATE-parameter tells date in format YYYY.MM.DD.
DATE=`date +20%y.%m.%d`
# The TIME-parameter tells time in format HHMMSS.
TIME=`date +%H%M%S`
# The BACKUPDIR-parameter specifices where we want to save our backups
BACKUPDIR=/backup_directory
# REPOS SVN
REPOS=/Repository_location
REPOS_OUTPUT=output_name_”$DATE”_”$TIME”
svnadmin dump $REPOS > $BACKUPDIR/$REPOS_OUTPUT.dump
tar cvzf $BACKUPDIR/$REPOS_OUTPUT.tgz $BACKUPDIR/$REPOS_OUTPUT.dump
HOST=’ftp.address.co.uk’
USER=username
PASSWD=password
FILE=$REPOS_OUTPUT.tgz
cd $BACKUPDIR
echo pwd
ftp -n -v $HOST << EOT
user $USER $PASSWD
put $FILE
quit
EOT
rm $BACKUPDIR/$REPOS_OUTPUT.tgz
rm $BACKUPDIR/$REPOS_OUTPUT.dump
exit 0
Workshed MiniITX