My machine id is:
FreeBSD isca.dyndns.org 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Sat May 14 11:09:57 EDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

I am trying to use rsync to backup some photographic files. When I run my script ./Photos.sh on the smbfs file system ~/testmnt it errors with the following message.

[isca]rsync sudo ./Photos.sh ~/testmnt/
rsync: readdir("/disk2/home/munn/testmnt/BillMorocco/Sahara"): Bad file descriptor (9)
rsync error: some files could not be transferred (code 23) at main.c(789)
[isca]rsync

The rsync logfile contains the following:

Directory /disk2/home/munn/testmnt/
/usr/local/bin/rsync -rptgovR --exclude-from=./excludes14021 --delete --backup --backup-dir=/photos//Jun0605 /disk2/home/munn/testmn
t/ /photos//testrsync
building file list ... done
IO error encountered -- skipping file deletion
/disk2/home/munn/testmnt/BillMorocco/Sahara/

sent 6206 bytes  received 26 bytes  12464.00 bytes/sec
total size is 593701823  speedup is 95266.66

Googling on the bad file descriptor message, there are a couple of messages noting the same problem and asking for help. So far as I can see there were no responses.

I have one additional observation. If I delete one file from the directory /disk2/home/munn/testmnt/BillMorocco/Sahara then the script runs perfectly. It doesn't matter what file is deleted.

If I copy the directory structure from the XP machine to the FreeBSD one, the script works perfectly.

Obviously I have a workaround ... the excludes file with the entry Sahara ignores the failing directory but I would prefer to understand the error.

Any help or suggestions would be appreciated ....

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to