bash Snapshot File alias

I just created this useful bash function for snapshotting a timestamped version of a file:

 snapshotFile() { 
   DT=`date "+%Y%m%d"`
   cp -i "$1" "${1}-${DT}" 
 }

This will create a copy of the file with today’s date as a suffix.