[CentOS] Cronjob script with date stamp?

Thu Oct 25 15:42:58 UTC 2007
Warren Young <warren at etr-usa.com>

Scott Ehrlich wrote:
> 
> - Have the script dump the results of the job to a text file.  I tried 
> this with /path/to/dump my switches -v >> /home/me/dump.log
> 
> But that just produced an empty file.

Try appending "2>&1" (without the quotes) to that command.

> - Have the dump file be date-stamped with the date it was executed.  

FILENAME=my-backup-`date +%Y%m%d`.dump