Better rsync backup script

#!/bin/bash
# Basic backup script
# Written in February 2010
 
# Set to q to disable verbosity
VERBOSITY="v"
 
# The program we're using to backup
PROGRAM="rsync"
 
# The arguments to the program
OPTIONS="-aHP$VERBOSITY"
 
# The remote machine we're backing up
SERVER="max"
 
# The local disk to back up to
DISK="/mnt/disk"
 
# An array of shares on $SERVER to back up
SHARES=(
  hr
  finance
  clients
  operations
  newsvn
  svn
  backup/jira
  backup/svn/noah
  backup/dbbackups/kontrol_live
  backup/dbbackups/god
)
 
# The magic
for share in ${SHARES[*]}; do
  echo "Backup of $share beginning at" `date`
  $PROGRAM $OPTIONS $PROGRAM://$SERVER/$share/ $DISK/$share/
  echo "Backup of $share completed at" `date`
done