Bash Scripting

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bryce C.
Date:  
Subject: Bash Scripting
Hi,
Could anyone give me some help with some bash scripting. I'm trying to
write a script for an hourly back up but I don't know how to add a
timestamp in to the tar output file name. What I have currently (with
confidential parts hidden) is:

#!/bin/bash
su _USER_ -c "cd /home/_USER_; tar -czf
_NFSMOUNT_/_FILENAME_._COMPUTERNAME_._DATE_.tar.gz _DIRECTORYTOBU_/"

Anything with _TEXT_ is the ommitted text except for the _DATE_. Anyone
please?