Backup a file with date Nov 24, 2013 • guidedmissile FILENAME=’/var/tmp/test.txt’ # OUTPUT=${FILENAME}$(date +”%Y_%m_%d_%H:%M:%S”) cp ${FILENAME} ${OUTPUT} gzip -9 ${FILENAME} # gzip -d {FILENAME}”.gz” # unzip command