MavEtJu's Distorted View of the World

Bacula client-side user exclusion flag

Posted on 2008-04-13 15:00:09, modified on 2008-04-13 15:00:00
Tags: Bacula, Networking

Today I finished my "Bacula client-side user exclusion flag"patch. Let me explain what it is:

So in proper english: A way for end-users to exclude certain directories from being backed up. Without the need to hassle the system administrator, or to be able to edit system specific files.

How it works: In your FileSet add the option IgnoreDir:

FileSet {
    Name = "Remote Specified"
    Include {
	Options {
	    signature = MD5
	}
	File = "\\</etc/bacula-include"
	IgnoreDir = .nobackup
    }
    Exclude {
	File = "\\</etc/bacula-exclude"
    }
}
And if my /etc/bacula-include contains:
/usr/local/etc
/etc
/home
I can drop files called .nobackup in directories I don't want to backup:
[~] edwin@>find . -name .nobackup
cvs/ports/.nobackup
temp/.nobackup
tmp/.nobackup
www/cache/.nobackup

| Share on Facebook | Share on Twitter
Comments:
From: [email protected]
URL: http://nicolinux.org
Posted on: 2009-01-13 05:17:18
CommentHi,

I like your patch. How's the inclusion process going? I hope it will be available in 2.4.4.

Stefan
Reply-

Leave a comment
Back to the main page