SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
--exclude-filelist ignored :(
Author Message
Post --exclude-filelist ignored :( 
Hi guys,

I've been using rdiff-backup for a while - but once in a while the
backup breaks for some odd reason (sometimes because I manually remove
files from the backup location (not from the rdiff-backup-data dir)).

What I do then, is remove the backup-data (and then unfortunately every
chance of restoring from X days ago) and start over with --force :(

(explanation below errormsg Smile
I've just had to do this, but now it complains like this:
/usr/bin/nice /usr/bin/rdiff-backup --force --exclude-device-files
--exclude-other-filesystems --exclude-filelist /root/exclfiles.txt
--exclude /etc/fstab / /backup/newroot
-----------------------------------------------------------------
Detected abilities for source (read only) file system:
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
-----------------------------------------------------------------
Detected abilities for destination (read/write) file system:
Characters needing quoting ''
Ownership changing On
Hard linking On
fsync() directories On
Directory inc permissions On
Access control lists Off
Extended attributes Off
Mac OS X style resource forks Off
Mac OS X Finder information Off
-----------------------------------------------------------------
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
259, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
229, in take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
281, in Backup
backup.Mirror(rpin, rpout)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line
38, in Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line
215, in patch
ITR(diff.index, diff)
File "/usr/lib/python2.3/site-packages/rdiff_backup/rorpiter.py",
line 279, in __call__
last_branch.fast_process(*args)
File "/usr/lib/python2.3/site-packages/rdiff_backup/backup.py", line
478, in fast_process
rp.delete()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line
852, in delete
else: self.conn.os.unlink(self.path)
OSError: [Errno 1] Operation not permitted: '/backup/newroot/etc/fstab'
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/backup/newroot/rdiff-backup-data/file_statistics.2004-11-06T08:51:21+01:00.data.gz',
mode 'wb' at 0x407b7d20 0x407bba4c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/backup/newroot/rdiff-backup-data/error_log.2004-11-06T08:51:21+01:00.data.gz',
mode 'wb' at 0x40513220 0x407c2b8c>> ignored
Exception exceptions.TypeError: "'NoneType' object is not callable" in
<bound method GzipFile.__del__ of <gzip open file
'/backup/newroot/rdiff-backup-data/mirror_metadata.2004-11-06T08:51:21+01:00.snapshot.gz',
mode 'wb' at 0x407b7ee0 0x407c2e2c>> ignored

my exclude filelist contains:
- /etc/lilo.conf
- /etc/fstab
- /var/tmp
- /var/log/netfilter.log
- /var/log/apache2/vhost_access_log
- /tmp
- /usr/portage/distfiles
- /var/lib/slocate/slocate.db.tmp

and it has worked - but now it complains as above.

The reason I don't want it to backup /etc/fstab is because I can
actually boot on the second harddrive and run with a system that will
never be older than the latest backup.

I've done chattr +i on /backup/newroot/etc/fstab - and that's why it's
dying - but the whole problem is - why does it even look at that file -
when I told it to ignore it?
I also tried adding "- /backup/newroot/etc/fstab" - but that didn't
change :(

I've tried v12.7 and 13.4 - both do it. What am I misunderstanding here?
--
Regards,
Klavs Klavsen, GSEC - kl < at > vsen.dk - http://www.vsen.dk
PGP: 7E063C62/2873 188C 968E 600D D8F8 B8DA 3D3A 0B79 7E06 3C62

"Those who do not understand Unix are condemned to reinvent it, poorly."
--Henry Spencer

Post --exclude-filelist ignored :( 
On Thu, 3 Nov 2011, temp wrote:

I'm having the exact same problem. rdiff-backup attempts to backup files even though they are listed in a file passed to the --exclude-filelist argument.

rdiff-backup 1.2.8

What is your rdiff-backup command line and what are the contents of your
exclude file?
Like any tool that uses include/exclude files (and in this case even
globbing include/excludes) the devil may very well be in the details.
Things like prefixed or suffixed slashes may not have the desired effect,
especially when compared to rsync.

--
Maarten

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB