Options
Options |
Required |
Default |
Info |
Example |
---|---|---|---|---|
client <val> |
Yes |
Bacula Director Client resource name |
|
|
parameter <val> |
No |
Plugin object parameter name. |
|
|
plugin <val> |
Yes |
Bacula Plugin name |
|
|
plugin_option <val>… |
Yes |
Plugin options |
|
|
uuid <val> |
No |
client:plugin |
UUID of the execution |
|
exclude <val>… |
No |
Pattern for object exclusion |
|
|
include <val>… |
No |
Pattern for object inclusion |
|
|
object-exclude <val>… |
No |
String for object exclusion |
|
|
object-include <val>… |
No |
String for object inclusion |
|
|
commit_and_reload |
No |
No |
Apply the new configuration to the Director |
|
directive <val>… |
No |
Bacula Director Job directive |
|
|
fileset <val> |
No |
F_%c_%p_%v |
Bacula Director FileSet name template |
|
fs_option <val>… |
No |
Bacula Director FileSet Option directive |
|
|
hook <val> |
No |
Execute a script for each new/old object |
|
|
job <val> |
No |
J_%c_%p_%v |
Bacula Director Job name template |
|
jobdefs <val> |
Yes |
Bacula Director JobDefs resource name |
|
|
remove_jobs |
No |
No |
Remove resources that are no longer necessary |
|
scan_option <val>… |
No |
Use a specific set of plugin option for the scan |
|
|
use_uuid |
No |
No |
Use object UUID in the FileSet Plugin command |
|
Options in the table with a … can be used multiple times on the command
line. Other options for the format output and the command line parsing are
available with the --help
option.
The parameter option shouldn’t be required. If it is not the case, contact Bacula Systems Support.
The plugin_option parameter can be used as many times as you wish, with all the options you should have configured for the plugin specified in the plugin parameter. Check the specific documentation for the plugin to correctly setup the plugin_option values. They should be similar to the ones you use in the plugin line in the FileSet resource for the plugin.
The JobDefs is used to ease the configuration of the new Jobs created by the Scan Plugin.
JobDefs {
Name = BackupsToDisk
Type = Backup
Pool = DiskBackup365
Level = Incremental
Messages = Default
Storage = DiskAutochanger
MaximumConcurrentJobs = 5
}
Specific options can be added with the --directive** parameter
, e.g.:
--directive Priority=10 --directive MaximumRunTime=5h
By default, when an object is no longer available (like if a virtual machine is
deleted), the Scan Plugin will disable the corresponding Job. With the
--remove_job
option, the Job and the Fileset can be deleted from the
configuration.
- The
--job
and--fileset
parameters can use the following shortcuts: %c : Client name
%p : Plugin name
%v : Object name
Example:
--job %c-%p-%v --fileset fileset-%p-%v
The Scan Plugin will automatically adjust the name if the result string is too long or already exists.
See also
Go back to Scan Plugin Installation
Go back to Scan Plugin Usage
Go to Scan Plugin Examples
Go back to the main Automatic Object Integration (Scan Plugin) page.