rsyncing a SMBFS fiole system
munn at umd.edu
Mon Jun 6 14:26:23 GMT 2005
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
root at isca.dyndns.org:/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
rsync error: some files could not be transferred (code 23) at main.c(789)
The rsync logfile contains the following:
/usr/local/bin/rsync -rptgovR --exclude-from=./excludes14021 --delete
--backup --backup-dir=/photos//Jun0605 /disk2/home/munn/testmn
building file list ... done
IO error encountered -- skipping file deletion
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
Any help or suggestions would be appreciated ....
More information about the freebsd-questions