hi all,
I'm very confused as to why I am getting this error message when I run a cronjob for a backup script I'm working on:
The script leading up to this error is:
I'm really confused because I wrote this script modeled after another backup script that does not have this problem. I don't get why the output is showing me "\r/\r"
Any help appreciated!
I'm very confused as to why I am getting this error message when I run a cronjob for a backup script I'm working on:
Code:
mkdir: cannot create directory `/home/erind/socprojects_backups/10_19_2011\r/\r': No such file or directory
Code:
# ./SocProjects/cronjobs/weekly_fullbackup.sh # Backup script for SOC project files and mysql database, to be executed weekly. ################################# # Assign DTG and Date variables # # to $a & $b respectively # ################################# a=$(date +%T-%d_%m_%Y) b=$(date +%m_%d_%Y) ######################################## # Backup Site Directory - files and db # ######################################## ### echo command states the name of the directory being made for the current backup, ### where the filesystem/code and database backup copies will go. The mkdir command ### actually creates the directory. echo "mkdir /home/erind/socprojects_backups/".$b mkdir /home/erind/socprojects_backups/$b/
Any help appreciated!
Comment