rsync and smb.
Peter
peter at pean.org
Wed Aug 1 08:59:34 PDT 2007
Hello,
I'm trying to back up some things from my windows to the FreeBSD fileserver by
mounting a share with mount_smbfs and then running rsync but I get some strange
errors:
rsync: readdir("/mnt/2007/20070415-2"): Bad file descriptor (9)
rsync: readdir("/mnt/2007/20070713-1"): Bad file descriptor (9)
I searched google for some answers and found that this is a more or less common
problem. I found a PR on this but that was back in 4.10-RELEASE and I'm running
6.2-RELEASE. http://www.freebsd.org/cgi/query-pr.cgi?pr=78953
This also describes my problem pretty well:
http://lists.freebsd.org/pipermail/freebsd-questions/2005-June/089471.html
my script:
#!/bin/sh
echo "Mounting IMG share"
mount_smbfs -o ro -I 172.25.0.12 //peter at wintendo/IMG/ /mnt
echo "syncing with share"
rsync -uavz --ignore-existing --delete-before /mnt/ /home/peter/photo-backup/IMG
/
echo "unmounting share"
umount /mnt
echo "Good bye"
More information about the freebsd-fs
mailing list