Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Aug 2007 16:58:49 +0200
From:      Peter <peter@pean.org>
To:        freebsd-fs@freebsd.org
Subject:   rsync and smb.
Message-ID:  <46B09FA9.9080503@pean.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46B09FA9.9080503>