Thats Tops: whatever I think about as cool enough to blog it

Choose a Topic:

Archive for January, 2008

A busy day

Thursday, January 31st, 2008

I had an overall busy day today rushing into several meetings with late time preparations in between. Right like someone does like it! Right? 😐

But the good news is that in between, I was able to solve a few things today. And finally … surprise surprise … Google did answer my request sending me details for a new Google AdSense Account! Not sure what was wrong with the old one, but now it is working again. Yeah! 🙂

And last but not least, the very best thingy of today – When coming home, I found the confirmation for the flight reservations, I had made the other day with British Airways, for my later trip into the USA this year. Thats Tops!!

Doing it yourself

Wednesday, January 30th, 2008

Unfortunately there seems to be no sunshine without shade! So even moving to Media Temple was easy doing and since being there I had no issues anymore, I started to feel annoyed about them not offering a working home directory backup utility like the prior provider did within his CPanel.

Just I thought complaining about will not really help you to get your back-ups done and so I decided  to write my own little replacement script for it. Perhaps someone will be happy using it too …

#!/bin/bash
# FTP Backup by Michael Lohmar
# Script: ftpbackup.sh
# Author: Michael Lohmar
# Contact? info@mikelo.com

if [ $# != 3 ];then
echo “”
echo “Shell script for backing up one given domain.”
echo “Usage: $(basename $0) domain_to_backup [FTP/NOFTP] [DEL/NODEL]”
echo “”
exit
fi

version=1.0

##### INSTALL INSTRUCTIONS: STEP 1 #####
##### START ENTER YOUR INFO HERE #####

serverip=yourserver.com
# Your remote servers IP address
# EG: serverip=192.168.1.1

serveruser=youruser
# The FTP login for the remote server
# EG: serveruser=bob

serverpass=yourpassword
# The FTP password for the remote server
# EG: serverpass=mypassword

localdir=/home/your/local/folder
# WHERE LOCAL FILES ARE TO BACKUP
# NO TRAILING SLASH
# EG: localdir=/backup/folder/daily

sourcedir=/home/your/source/folder
# WHERE LOCAL FILES ARE TO BACKUP
# NO TRAILING SLASH
# EG: localdir=/domain/source/folder

remotedir=your/remote/folder
# FTP directory where you want to save files to
# This directory must exist on the FTP server!
# NO TRAILING SLASH
# EG: remotedir=/serverdirectory

##### END YOUR INFO HERE #####

##### INSTALL INSTRUCTIONS: STEP 2 #####
# CHMOD the script to 755: # chmod 755 ftpbackup.sh

# Add the script to a scheduled cron job to run as often as you like (if wished!)

# In SSH do crontab -e, then paste in the following
# 0 6 * * 0,1,3,5 /home/admin/ftpbackup.sh
# This does a FTP backup every second day of the week, lookup cronjobs for more info on setting dates and times.
# Don’t forget to substitue the path info to the script with your details
##### INSTALL COMPLETE #####
# DO NOT MODIFY ANYTHING BELOW #

host=`hostname`
cd $sourcedir

echo “Starting FTP Backup on ” $host

# Creating a local tar.gz Archive
tar cfvz $localdir/$1_`date +%y_%m_%d`.tar.gz $1

# Transfer the tar.gz Archive to remote server
if [ $2 == FTP ];then
cd $localdir
echo “user $serveruser $serverpass
cd $remotedir
bin
verbose
put $1_`date +%y_%m_%d`.tar.gz
” | ftp -i -n $serverip
fi

# Delete local tar.gz Archive again
if [ $3 == DEL ];then
rm $localdir/$1_`date +%y_%m_%d`.tar.gz
fi

echo “Ftp backup complete on ” $host
exit 0

A Mission?

Tuesday, January 29th, 2008

I got a aware of a special offer of a Samsung SyncMaster 223BW 22″ at a local electronic market. That sounds like a must “mission” to me and I really hope I will have the time today to grab one. Guess it will look very cool and sexy next to it’s little brother with 20″ I do already own, in nice neat “Dual Head” configuration. :-))

Still no answer from Google belonging to my AdSense Account! But they did send me New Years Greetings instead today ….

Got one!!!

Google AdSense

Sunday, January 27th, 2008

Today I received the second request to actualize my Google AdSense account with the pin they had send me earlier … they have?

At lease I wouldn’t aware that I have got one and therefore I entered there pages trying to request a new pin as mentioned within their email. Hm … the button was “greyed out” and I thought perhaps I just need to specify wrong one and they will offer me to send a correct new pin again?!

Far away from that! Now they locked me out!! Not sure this makes many sense at all … What do you think?

Now we will see how long they will need to process my unlock request.

Apple again!

Saturday, January 26th, 2008

Guess it’s not necessay to mention that I got another email …. but more important!

Since I updated to the most recent iPod firmware on sunday I have the feeling that my iPod does not finally cut off when I tell it to do?! For a few minutes I can hear a low rustling like the amplifier is running idle, until the normal time out seems to cut it down finally. Is someone else aware of that?