#!/bin/bash
#
#********************************************************************
#Author:		QH
#QQ: 			1625317303
#Date: 			2019-03-16
#FileName:		backup.sh
#Mail: 			1625317303@qq.com
#Description:		The test script
#Copyright (C): 	2019 All rights reserved
#********************************************************************
SOURCE="/scripts"
DEST=/data/A`date +%F`
BEGINCOLOR="\e[1;35m"
ENDCOLOR="\e[0m"

echo -e "${BEGINCOLOR}Starting backup....$ENDCOLOR"
sleep 3
cp -av $SOURCE $DEST
echo -e "${BEGINCOLOR}Backup is finished$ENDCOLOR"

unset SOURCE DEST BEGINCOLOR ENDCOLOR

....