Simple rotation backup with tar

To do a simple backup in a few lines, that mantains a history of the past 7 days, you can use this simple script:

# fecha has a formated date
fecha=`date +"%d-%m-%Y"`
# Backup and gzip the directory
tar zcvf /backups/trunk-$fecha.tgz /var/www/repository
# Rotate the logs, delete older than 7 days
find /backups/ -mtime +7 -exec rm {} \;

You are invited to post your little, simple though useful scripts.