rdiff-backup tries to read/list directories, no matter --exclude rules.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rdiff-backup |
Unknown
|
Unknown
|
|||
rdiff-backup (Debian) |
Fix Released
|
Unknown
|
|||
rdiff-backup (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Binary package hint: rdiff-backup
I am using rdiff-backup to backup my system via an ssh connection. I have an unexpected informative error, and I don't know why I am getting it.
=======
Reading filelist /home/rwigle/
Sorting filelist /home/rwigle/
Exception '[Errno 13] Permission denied: '/home/
File "/usr/lib/
try: return function(*args)
File "/usr/lib/
return self.conn.
ListError .epsilon/server [Errno 13] Permission denied: '/home/
=======
The thing is that I have set --exclude-
The protection on .epsilon/server is as follows
drwx------ 2 root root 4.0K 2010-11-10 14:54 server
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: rdiff-backup 1.2.8-5ubuntu2
ProcVersionSign
Uname: Linux 2.6.32-28-generic x86_64
Architecture: amd64
Date: Fri Feb 25 11:21:46 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
PATH=(custom, user)
LANG=en_CA.utf8
SHELL=/bin/bash
SourcePackage: rdiff-backup
Changed in rdiff-backup (Debian): | |
status: | Unknown → Confirmed |
Changed in rdiff-backup (Debian): | |
status: | Confirmed → Fix Released |
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 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/ 2>&1 | grep gamma from/alpha/ beta/gamma" , {st_mode= S_IFDIR| 0700, st_size=40, ...}) = 0 alpha/beta/ gamma", O_RDONLY| O_NONBLOCK| O_DIRECTORY| O_CLOEXEC) = -1 EACCES (Permission denied) beta/gamma' stilgar: ~/temp$
andreas@
andreas@
andreas@
andreas@
ListError alpha/beta/gamma [Errno 13] Permission denied: 'from/alpha/
andreas@
andreas@
lstat("
open("from/
write(2, "ListError alpha/beta/gamma [Errn"..., 81ListError alpha/beta/gamma [Errno 13] Permission denied: 'from/alpha/
andreas@
The test above was performed with the currenty natty version rdiff-backup 1.2.8-5ubuntu3.
This seems to be from the same root cause as http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 508063