You are not logged in.
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
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
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
Thanks for the quick responses, but so far nothing helped :
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
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