I'm trying a simple bash script to backup my source files from my website root directory to my
#!/bin/bash #START TIME=`date +%b-%d-%y` FILENAME=backup-$TIME.tar.gz SRCDIR="var/www/html/My_Site" DESDIR="/home/backups/files" tar cpzfP $DESDIR/$FILENAME $SRCDIR #END
tar: /var/www/html/My_Site\r: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors
I cross checked for Whitespaces in each line of code, there are none.
Cross checked the folder permission for both SRC and DES, its 0777.
I'm not getting any idea as to why I get
Cannot stat: No such file or directory.