!/bin/bash
DAY=(date +%m)
TIME=TIME.tar.gz
CONFIG_FILE=/archive/files_to_backup
DESTINATION=/archive/DAY
mkdir -p $DESTINATION
if [ -f CONFIG_FILE does not exist"
echo
exit
fi
FILE_NO=1
exec < ? -eq 0 ]
do
if [ -f FILE_NAME ]
then
FILE_LIST="FILE_NAME"
else
echo
echo "[DESTINATION $FILE_LIST 2>/dev/null
echo "archive completed"
exit
网友评论