Bash Scripting

Bryce C. plug-discuss@lists.plug.phoenix.az.us
13 Apr 2002 11:36:27 -0700


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?