[Bacula-users] Excluding files and directories recursive
2011-11-04 09:34:13
Hi!
I have defined:
FileSet {
Name = "bacula"
@/etc/bacula/clients/include/linux.inc
@/etc/bacula/clients/include/fileset.exc
}
where "linux.inc" is:
Include {
Options {
signature = MD5
xattrsupport = yes
onefs = yes
}
File = "\\|/bin/sh -c 'df -TlP | tail -n +2 | grep
\"ext\\|reiserfs\\|ufs\\|xfs\\|zfs\" | grep -v \"/BACKUP/\" | awk
\"{print \\$7}\"'"
Exclude Dir Containing = .exclude
}
and "fileset.exc":
Exclude {
File = /var/lib/bacula
File = /var/lib/mysql
File = /var/lib/nfs
File = /var/lib/postgresql
File = /var/lock
File = /var/run
File = /lib/init/rw
File = /BACKUP
File = /HOME
File = /home
File = /dev
File = /proc
File = /sys
File = /tmp
File = /.journal
File = /.fsck
}
now, backing up bacula itself I get errors:
2011-11-04 01:10:09 bacula-fd JobId 8007: Could not stat
"/var/lib/postgresql/9.1/main/base/19190/27367": ERR=No such file or
directory
Since this is an excluded path "/var/lib/postgresql" I'd assume it
to be excluded, but it is included again by the script creating the
includes, leading to:
FileSet {
Name = "bacula"
Include {
Options {
signature = MD5
xattrsupport = yes
onefs = yes
}
File = / /boot /var/lib/postgresql
Exclude Dir Containing = .exclude
}
Exclude {
File = /var/lib/bacula
File = /var/lib/mysql
File = /var/lib/nfs
File = /var/lib/postgresql
File = /var/lock
File = /var/run
File = /lib/init/rw
File = /BACKUP
File = /HOME
File = /home
File = /dev
File = /proc
File = /sys
File = /tmp
File = /.journal
File = /.fsck
}
}
Any idea why /var/lib/postgresql is descended into?
And how do I exclude it the right way?
--
Thomas
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Bacula-users] Excluding files and directories recursive,
Thomas Schweikle <=
|
|
|