I think it'd be easier to write a script like the following:
# Backup Script
tar -czf $BACKUPDIR/$TODAY/backup.tgz $DIRTOBACKUP
I'm a bash scripting newbie... But that script should
work - just make sure you change the DIRTOBACKUP value, as it is currently set to /home, which is the directory which will be backed up in this case.
I recommend you set this script to run using crontab. For a quick tutorial which should teach you what you want to do, read this: http://www.tech-geeks.org/contrib/md...ntab-howto.htm