Problems with rsync scripting
I'm having a problem scripting rsync since updating from Snow Leopard to Mavericks. I had an Applescript that would backup a USB thumb drive with rsync. It stopped working after the upgrade. The odd thing is that the exact same rsync command works from the command line. I re-wrote the backup script as a .sh file. Same problem. I can run the script from Textwrangler and it works. Running it from the file gives the same error.
The rsync command:
rsync -azv --ignore-existing --delete --exclude='.*' '/Volumes/No Name/' '/Users/scott/Documents/Documents/Backup_USB_Drive/Backup_New/'
The error:
building file list ... rsync: link_stat "/Volumes/No Name/." failed: Invalid argument (22)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
Help. How do I make this work?
iMac G5 2GHz, FCE HD 3.5, Mac OS X (10.4.9)