Koozali.org: home of the SME Server

backupscript fails

erland

backupscript fails
« on: April 11, 2004, 09:02:05 PM »
Hi All !

I have a setup with two identical hd's, one is for backup. I have this script running in cron.daily :

if [ -e /home/e-smith/files/ibays/winfinans/files/backup.txt ]; then

mount /ddev/hdc3 /back

rsync -a --delete /home/e-smith/files/ibays/ /back/home/e-smith/files/ibays

unmount /back

rm /home/e-smith/files/ibays/winfinans/files/backup.txt

fi

the script returns this error "/back/home/e-smith/files/ibays is a directory"

What am I doing wrong ?

regards Erland