I was having some issues with IP assignment which turned out to be my WiFi Range Extender, but in the meantime I wrote a simple script.
IP Address validation script
Kernel Version logging script
I keep my system up to date with apt-get (apt-get update & apt-get upgrade) as well as rpi-update but I wanted to keep a record of the kernel and when it updated so I created a simple script.
Kernel version logging script
Rsync to NAS drive
Although this is fairly specific to my setup, this may be a good starting point as an example of a script that creates a backup onto a Network Attached Storage (NAS) device. It uses the Raspberry Pi serial number to create a unique path so the same script can be used on more than one Pi.
Rsync backup script