Yes, this is being run as non-root. (And thanks...)
On Fri, Feb 25, 2011 at 1:17 PM, Andreas Olsson <email address hidden> wrote:
> I can confirm this error. I assume your backup is being run as a non- > root user? > > It would appear as if rdiff-backup is trying to read/list directories > before applying the --exclude rules. > > andreas@stilgar:~/temp$ mkdir -p from/alpha/beta/gamma > andreas@stilgar:~/temp$ sudo chown root:root from/alpha/beta/gamma/ > andreas@stilgar:~/temp$ sudo chmod 700 from/alpha/beta/gamma/ > andreas@stilgar:~/temp$ mkdir to > andreas@stilgar:~/temp$ rdiff-backup --exclude '**/alpha' from/ to/ > ListError alpha/beta/gamma [Errno 13] Permission denied: > 'from/alpha/beta/gamma' > andreas@stilgar:~/temp$ rm -rf to/* > andreas@stilgar:~/temp$ strace rdiff-backup --exclude '**/alpha' from/ to/ > 2>&1 | grep gamma > lstat("from/alpha/beta/gamma", {st_mode=S_IFDIR|0700, st_size=40, ...}) = 0 > open("from/alpha/beta/gamma", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = > -1 EACCES (Permission denied) > write(2, "ListError alpha/beta/gamma [Errn"..., 81ListError > alpha/beta/gamma [Errno 13] Permission denied: 'from/alpha/beta/gamma' > andreas@stilgar:~/temp$ > >
Yes, this is being run as non-root. (And thanks...)
On Fri, Feb 25, 2011 at 1:17 PM, Andreas Olsson <email address hidden> wrote:
> I can confirm this error. I assume your backup is being run as a non- stilgar: ~/temp$ mkdir -p from/alpha/ beta/gamma stilgar: ~/temp$ sudo chown root:root from/alpha/ beta/gamma/ stilgar: ~/temp$ sudo chmod 700 from/alpha/ beta/gamma/ stilgar: ~/temp$ mkdir to stilgar: ~/temp$ rdiff-backup --exclude '**/alpha' from/ to/ beta/gamma' stilgar: ~/temp$ rm -rf to/* stilgar: ~/temp$ strace rdiff-backup --exclude '**/alpha' from/ to/ from/alpha/ beta/gamma" , {st_mode= S_IFDIR| 0700, st_size=40, ...}) = 0 alpha/beta/ gamma", O_RDONLY| O_NONBLOCK| O_DIRECTORY| O_CLOEXEC) = beta/gamma' stilgar: ~/temp$
> root user?
>
> It would appear as if rdiff-backup is trying to read/list directories
> before applying the --exclude rules.
>
> andreas@
> andreas@
> andreas@
> andreas@
> andreas@
> ListError alpha/beta/gamma [Errno 13] Permission denied:
> 'from/alpha/
> andreas@
> andreas@
> 2>&1 | grep gamma
> lstat("
> open("from/
> -1 EACCES (Permission denied)
> write(2, "ListError alpha/beta/gamma [Errn"..., 81ListError
> alpha/beta/gamma [Errno 13] Permission denied: 'from/alpha/
> andreas@
>
>