I'm using a backup script on my server that uses ditto and I keep getting the following error:
ditto: /Volumes/BKP/Daily_bkp.051114/VM Share/Machine/Backups/backup_copies.cmd: Invalid argument
This is my code
/usr/bin/ditto -V --rsrc "$VMSHARE" "$DLY_BKP/VM Share" > $DLOG 2> $TMPLOG err=$?
I'm using double quotes to deal with the spaces in the directory name and this file is the only one ditto is having an issue with. I checked the backup and it actually backed up the file no problem, so I'm stumped as to why I keep getting this error. The file doesn't ever change and I've made sure nothing is using it at the time of the backup.
Any help will be appreciated. Thanks.