Hi all, I'm new to rsync and have a problem I cannot resolve even after plowing through the lists. I have an rsync server setup with an rsync client. I am trying to backup a directory structure that is over four levels deep. Rsync does great until it hits that fourth level. Then it errors out for each file in that fourth level similar to this: rsync: recv_generator: mkdir "/dansguardian/lists/blacklists/violence" (in Masada1) failed: Permission denied (13) rsync: stat "/dansguardian/lists/blacklists/violence" (in Masada1) failed: Permission denied (13) As long as the directory structure is not more than three levels deep rsync does fine in this setup. Additional info: rsync version: 2.6.8 protocol version 29 server OS: FreeBSD 6.2 (FreeNAS flavor) client OS: Fedora 2.6.18-1.2798.fc6 Any thoughts? Thanks, Chris -- Chris Nighswonger Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org
Chris Nighswonger wrote:> Hi all, > I'm new to rsync and have a problem I cannot resolve even after > plowing through the lists. > > I have an rsync server setup with an rsync client. I am trying to > backup a directory structure that is over four levels deep. Rsync does > great until it hits that fourth level. Then it errors out for each > file in that fourth level similar to this: > > rsync: recv_generator: mkdir "/dansguardian/lists/blacklists/violence" > (in Masada1) failed: Permission denied (13) > rsync: stat "/dansguardian/lists/blacklists/violence" (in Masada1) > failed: Permission denied (13) > > As long as the directory structure is not more than three levels > deep rsync does fine in this setup. > > Additional info: > > rsync version: 2.6.8 protocol version 29 > server OS: FreeBSD 6.2 (FreeNAS flavor) > client OS: Fedora 2.6.18-1.2798.fc6 > > Any thoughts? > > Thanks, > Chris >What's the ls -la output on the directory where rsync quits?? I've used rsync many levels deep, and have never heard of this issue. I do notice you're using FreeNAS, could it be an issue with that?? What's the entire rsync command you're using. Thanks! Mark Schoonover *** Winner of the 2008 Best Psychic Award IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816
Chris Nighswonger wrote:>> What's the ls -la output on the directory where rsync quits?? > > # ls -la /mnt/Masada1/dansguardian/lists/blacklists > total 6 > drw-r--r-- 2 masada bkupagent 512 Nov 28 22:25 . > drwxr-xr-x 9 masada bkupagent 2560 Feb 16 10:00 ..Try setting other rwx and see what happens.> >> I've used >> rsync many levels deep, and have never heard of this issue. I do >> notice you're using FreeNAS, could it be an issue with that?? > > That is possible. I have searched their lists as well and turned up > nothing except some seemingly unrelated permissions issues. I would > think that since the setup works ok 2 or 3 levels it should work on n > levels ok as well. The error does show up in the rsync log on the > FreeNAS server. > >> What's the entire >> rsync command you're using. > > rsync --verbose --progress --stats --compress --recursive --times > --links "/etc/dansguardian" "masada@192.168.0.75::Masada1"Are you trying to run this via cron??> > Note: I have no password set for this user account in an attempt to > reduce the variables in this problem. > > Thanks for the help Mark. > > Chris
On 2/16/07, Matt McCutchen <hashproduct+rsync@gmail.com> wrote:> On 2/16/07, Chris Nighswonger <cnighswonger@foundations.edu> wrote: > > # ls -la /mnt/Masada1/dansguardian/lists/blacklists > > total 6 > > drw-r--r-- 2 masada bkupagent 512 Nov 28 22:25 . > > drwxr-xr-x 9 masada bkupagent 2560 Feb 16 10:00 .. > > The missing "x" permissions on "." prevent anyone except root from > accessing stuff inside the directory. Make sure that the user running > the rsync daemon has "x" permission on every directory in > "/mnt/Masada1".Thanks, Matt. It did turn out to be a permissions issue, but on the client directory. Take a look at my last reply to the list for my full explaination of what I found out. I cannot explain why, maybe someone with more experience can. Chris -- Chris Nighswonger Network & Systems Director Foundations Bible College & Seminary www.foundations.edu www.fbcradio.org