Just a quick question, hope you might know the answer. I have setup a script
which will backup the Unix box every night (hostdump.sh). Now the backup
works fine, and part of it writes stdout & stderr from the script to a
logfile, which will take the following format:
/backuplogs/tigger.DevRmt0n.Level0.12.06.2001
/backuplogs - being the directory in which the logs will reside
tigger - the server name
DevRmt0n - the tape device
12.06.2001 - the date of backup
Now to invoke a backup, the following command is run:
# hostdump.sh 0 /dev/rmt/0n /backuplogs/tigger.Dev.Rmt0n.Level0.12.06.2001
tigger
I want to put this in a cron job, which I know how to do. However, the trick
is that I need to put some form of date manipulation within the cron job, so
that the backuplog name will reflect the date on which the backup is
executed. Do you have any ideas, on how I could achieve this.
Look forward to your response.
Andrew Clark