Rsync over samba mounts (bad file descriptor)

Wayne Swart Wayne at za24.com
Fri Jul 7 10:34:22 GMT 2006


I tried with a window, it does the same thing :/

-----Original Message-----
From: Tony Abernethy [mailto:tony at servacorp.com] 
Sent: Friday, July 07, 2006 12:15 PM
To: Wayne Swart; rsync at lists.samba.org
Subject: RE: Rsync over samba mounts (bad file descriptor)

rsync -avuz
The -a wants most all of the UNIX permission
	(which do NOT exist on a samba mount)

Easiest way is to try copying from the samba mount to a local filesystem
and see which attributes you can actually copy.
(man cp  to see how to spell things)
(You have my congrats if you get more than just one timestamp (to even
seconds))

Repeat, you will almost certainly want a window on the timestamps.

> -----Original Message-----
> From: rsync-bounces+tony=servacorp.com at lists.samba.org
> [mailto:rsync-bounces+tony=servacorp.com at lists.samba.org]On Behalf Of
> Wayne Swart
> Sent: Friday, July 07, 2006 4:34 AM
> To: rsync at lists.samba.org; tony at servacorp.com
> Subject: RE: Rsync over samba mounts (bad file descriptor)
>
>
> Hi Tony
>
> Thanks for the speedy reply.
>
> Yes, the windows server is mounted on the BSD machine like you explained.
>
> I don't really mind to preserve date / time stamps on the files,
> or permissions.
>
> Surely there must be a way to get this to work.
>
> Copying the whole folder (folder at a time) to the BSD machine,
> and then sync it to the Linux box works, but its very time
> consuming, and definitely not the way to do it.
>
> Wayne
>
> -----Original Message-----
> From: Tony Abernethy [mailto:tony at servacorp.com]
> Sent: Friday, July 07, 2006 11:17 AM
> To: Wayne Swart; rsync at lists.samba.org
> Subject: RE: Rsync over samba mounts (bad file descriptor)
>
> Some things fast off the top of my head
> (flames invited where I'm wrong;)
>
> I am assuming:
> Files live on the Window server.
> smb mounted onto the BSD server
> (It does what it can, but it's a few cards shy of a full deck)
> There is a buch of whatever in Windows ACLs, but
> there is enough UNIX permission stuff MISSING that you can expect trouble.
> (Neither is an extension of the other. THey are different)
>
> You will probably want a window on the timestamps since DOS
> cannot represent
> odd seconds.
> You will likely to an all or nothing gizmo regarding ownerships.
> You will likely get the single-user attitude of DOS in order to
> make things
> work.
> Likely, the owner and group of everything in the mount is whoever mounted
> it.
> (Which naturally has nothing to do with who "owns" it on the Windows
> machine)
>
> If it were me, I would set multiple [names] in the target /etc/rsyncd.conf
> where the distinguishing difference was the uid= and gid=
>
> Good Luck ;)
> With luck, you should even get some actually helpful answers from
> the list.
>
>
> > -----Original Message-----
> > From: rsync-bounces+tony=servacorp.com at lists.samba.org
> > [mailto:rsync-bounces+tony=servacorp.com at lists.samba.org]On Behalf Of
> > Wayne Swart
> > Sent: Friday, July 07, 2006 3:41 AM
> > To: rsync at lists.samba.org
> > Subject: Rsync over samba mounts (bad file descriptor)
> >
> >
> > Hello everyone
> >
> > I am trying to do incremental backups using rsync and SSH.
> >
> > I have a windows server with two shares on it that I want to sync
> > remotely to another machine.
> >
> >
> > [----------------]
> > | windows server |
> > [----------------]
> >
> > [----------------]
> > | FreeBSD server |
> > [----------------]
> >
> > [----------------]
> > | SuSe server    |
> > [----------------]
> >
> >
> > I have two samba mounted shares on the BSD server, and then sync
> > those samba mounts from the BSD machine to the Linux machine.
> >
> > Now the problem:
> >
> > When my rsync starts building its file list it gets a lot of "Bad
> > File Descriptor" Errors, and does not do incremental syncs.
> >
> > Is there a way around this? (Without running cygwin on the
> > Windows server).
> >
> > I am running my rsync with the following flags: -avuz
> >
> > Your help is appreciated.
> >
> >
> > Wayne Swart
> > Systems Administrator
> > ZA Internet Solutions
> > http://www.za24.co.za
> > +2712 663 1800
> >
> > --
> > To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
>
> --
> To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html




More information about the rsync mailing list