[CentOS] add time to log file for cron job

Sat May 24 02:20:10 UTC 2014
Tim Dunphy <bluethundr at gmail.com>

Hey all,

I'm trying to figure out a way to insert a timestamp into a log file I'm
creating for a cron job I'm setting up:

/usr/bin/rsync -v --min-size=1 -rlpgo -O --inplace /home/myuser/Get*
root at xx.x.xx.xx:/mnt/bravotv/media/compass  2>&1 >& /tmp/rsync_user.log

I've googled this but all I could find are tips on how to add the time and
date to the name of the log file itself, not to the contents of the log.


Any tips or pointers would be great.

Thanks
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B