Problem using this script: Ubuntu gives the following error $'\r': command not found
#what to backup
backup_files="/home/minecraft/multicraft/jar"
#where to backup to
dest="/"
#create archive filename
day=$(date +%F)
#hostname=$(Set a hostname)
archive_file=$day.tgz
#print start status mesage
echo "Backing up $backup_files to $dest/$archive_file"
date
echo
#backup the files using tar
tar czf $dest/$archive_file $backup_files
#print end status message
echo
echo
echo "Backup finished"
date
#listing the files in $dest to check file sizes
echo "The Destination Path:"
ls -lah $dest
What causes this error and is there a simple fix?