You are not logged in.

#1 2011-10-28 15:10:31

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

[SOLVED] rdiff-backup --exclude option not working

Hi there,


i`m trying to exclude a specific folder from my rdiff-backup, but it gets backed up every time:

this is the command:

/usr/bin/rdiff-backup --max-file-size 5073741824 --print-statistics --terminal-verbosity 4 --preserve-numerical-ids --exclude /home/robert/Dokumente --exclude /tmp --exclude /dev --exclude /mnt --exclude /media --exclude /proc --exclude /sys / /mnt/BACKUP_ROOT/

The exclusion of "/home/robert/Dokumente" just does not work. Any ideas?


Thanks in advance,

Robert

Last edited by RobertBuhren (2011-10-28 18:13:48)

Offline

#2 2011-10-28 15:27:46

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] rdiff-backup --exclude option not working

Just an educated guess, but try adding --include /home/robert before any of the --exclude clauses.  If that doesn't work, you could try instead using --include-globbing-filelist with something like:

- /home/firecat53/mail
- /home/firecat53/Dropbox
- /home/firecat53/.mozilla/**/Cache
- /home/firecat53/.thumbnails
- /home/firecat53/media/videos
- /home/firecat53/media/music
- /home/firecat53/.VirtualBox
- /home/firecat53/**cache
- /home/firecat53/**Cache
- /home/firecat53/**temp
- /home/firecat53/**Temp
- /home/firecat53/.wine
- /home/firecat53/.local/tmp
/home/firecat53
/etc
/var/lib/bitlbee
/var/lib/mpd
/var/spool/cron
- /

Scott

Offline

#3 2011-10-28 15:42:35

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] rdiff-backup --exclude option not working

i used  --exclude-globbing-filelist filelist

filelist is:

/dev
/proc
/sys
/home/*/chroots
/home/*/packages
/home/*/svn-packages
/home/*/tmp
/var/cache/pacman/pkg/*
/var/cache/pkgtools/*
/tmp/*
/srv/backup
/srv/repo
/srv/tmp
/var/spool/*
/var/tmp

Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2011-10-28 17:03:23

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: [SOLVED] rdiff-backup --exclude option not working

Thanks for the quick responses, but so far nothing helped hmm :

so far i tried the following:

/usr/bin/rdiff-backup --max-file-size 5073741824 --print-statistics --terminal-verbosity 4 --preserve-numerical-ids --include /home/robert --exclude /home/robert/Dokumente --exclude /tmp --exclude /dev --exclude /mnt --exclude /media --exclude /proc --exclude /sys / /mnt/BACKUP_ROOT/
/usr/bin/rdiff-backup --max-file-size 5073741824 --print-statistics --terminal-verbosity 4 --preserve-numerical-ids --exclude-globbing-filelist exclude_list / /mnt/BACKUP_ROOT/

with an exclude_list like this :

/dev
/proc
/sys
/mnt
/media
/home/robert/Dokumente/*
/var/cache/pacman/pkg/*
/var/cache/pkgtools/*
/tmp/*
/var/spool/*
/var/tmp

and also with an exclude_list like this :

/dev
/proc
/sys
/mnt
/media
/home/robert/Dokumente
/var/cache/pacman/pkg/*
/var/cache/pkgtools/*
/tmp/*
/var/spool/*
/var/tmp

Always with the same result: The folder /home/robert/Dokumente is copied in the backup with all it`s content.....

Have i completely misunderstood how the include/exclude options work, or is this a bug?
I`m using

[root@robert-laptop ~]# rdiff-backup --version
rdiff-backup 1.2.8

Any ideas appreciated,

Robert

Offline

#5 2011-10-28 18:13:19

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: [SOLVED] rdiff-backup --exclude option not working

I found the solution: apparently, the --max-file-size option cannot be used together with --exclude or --include

http://savannah.nongnu.org/bugs/?29808

;/ sadly there seems no more active development in rdiff-backup so that this propably won`t be fixed.

Regards,

Robert

Offline

Board footer

Powered by FluxBB