Are you able to export this directory using a different protcal?

Alternitivly, if you definatly want to use SMB, you could look at SMB
hosting a virtual file system which is then mounted locally.

I have done this via SSH and used hdiutil on Mac OS X to mount a virtual
file system stored as a file on the SSH server. I have found this solution
works quite well when you need to push data using rsync and the file
system or operating system at the other end will not meet your meta data
requirments.

Just another possibility.


>On Thu, 2008-11-06 at 11:08 +0100, Christian Pinedo wrote:
>> I'm trying to use a remote SMB/CIFS share to backup a local directory
>> tree. I use rsync "version 3.0.4 protocol version 30" and mount.cifs
>> "1.10" with a kernel 2.6.18. The directory I'm trying to backup is quite
>> big and has a lot of files inside.

>
>Since rsync expects a lot from the filesystem, it occasionally runs into
>incompatibilities with network filesystems. You will probably have
>better luck running rsync on the actual destination machine (either over
>ssh or as a daemon), if possible.
>
>> [root@linux dir]# du -hs .
>> 50G .
>> [root@linux dir]# find . -type f | wc -l
>> 41929
>>
>> I get the following error when I try to use rsync:
>>
>> [root@linux /]# mount -t cifs //SERVER/backup /media/backup -o
>> credentials=/root/.credentials,rw
>>
>> [root@linux /]# /usr/local/bin/rsync -aq --whole-file --force --delete
>> --backup --backup-dir=/media/backup/incremental/$(date +%Y-%m-%d) /dir
>> /media/backup/current
>>
>> rsync: mkstemp "/media/backup/current/dir/files/.file.mp3.rqE1s8"
>> failed: No such file or directory (2)
>> rsync: mkstemp "/media/backup/current/dir/files/.file.mp3.NxYdH6"
>> failed: No such file or directory (2)
>> rsync: mkstemp "/media/backup/dir/files/.file.mp3.jkbgXp" failed: No
>> such file or directory (2)

>
>Please reduce the set of source files to the minimum with which you can
>reproduce the errors, run rsync under "strace -f", and send the output.
>That will show the interaction between rsync and the filesystem leading
>up to the errors and help me determine which is at fault.
>
>Matt
>
>--
>Please use reply-all for most replies to avoid omitting the mailing list.
>To unsubscribe or change options:
>https://lists.samba.org/mailman/listinfo//rsync
>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html



--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html