Profile resource

A Profile resource is a named set of ACLs that Console and User resources refer to, so several consoles share one definition of what they may do.

Examples

An operator profile

Profile {
  Name = operator
  Description = "Run and watch backups, restore to /tmp"
  Job ACL = *all*
  Client ACL = *all*
  Storage ACL = *all*
  Schedule ACL = *all*
  Pool ACL = *all*
  File Set ACL = *all*
  Catalog ACL = *all*
  Command ACL = status, list, llist, run, rerun, cancel, restore, messages, show, .api, .help, .jobs, .clients, .storages, .pools, .filesets, .bvfs_*
  Where ACL = /tmp/bareos-restores
}

Directives

DirectiveTypeDefaultSummary
NamenamerequiredName of the profile; Console and User resources refer to it with Profile.
DescriptionstringFree text describing what the profile is for.
Job ACLACL listWhich jobs this profile may use.
Client ACLACL listWhich clients this profile may use.
Storage ACLACL listWhich storages this profile may use.
Schedule ACLACL listWhich schedules this profile may use.
Pool ACLACL listWhich pools this profile may use.
Command ACLACL listWhich console commands this profile may use.
File Set ACLACL listWhich FileSets this profile may use.
Catalog ACLACL listWhich catalogs this profile may use.
Where ACLACL listWhich restore target paths (the where= of a restore) this profile may use.
Plugin Options ACLACL listWhich plugin option strings a job may be started with this profile may use.

Name

Key: name · Type: name · Required

Name of the profile; Console and User resources refer to it with Profile.

Profile {
  Name = "operator"
}

In the console:

configure add profile name=operator

Description

Key: description · Type: string

Free text describing what the profile is for.

Profile {
  Name = operator
  Description = "Run and watch backups"
}

In the console:

configure add profile name=operator description="Run and watch backups"

Job ACL

Key: jobacl · Type: ACL list

Which jobs this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Job ACL = backup-web, restore-files
}

In the console:

configure add profile name=operator jobacl="backup-web, restore-files"

Client ACL

Key: clientacl · Type: ACL list

Which clients this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Client ACL = web-fd, db-fd
}

In the console:

configure add profile name=operator clientacl="web-fd, db-fd"

Storage ACL

Key: storageacl · Type: ACL list

Which storages this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Storage ACL = File
}

In the console:

configure add profile name=operator storageacl=File

Schedule ACL

Key: scheduleacl · Type: ACL list

Which schedules this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Schedule ACL = WeeklyCycle
}

In the console:

configure add profile name=operator scheduleacl=WeeklyCycle

Pool ACL

Key: poolacl · Type: ACL list

Which pools this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Pool ACL = Full, Incremental
}

In the console:

configure add profile name=operator poolacl="Full, Incremental"

Command ACL

Key: commandacl · Type: ACL list

Which console commands this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use restore needs the dot commands the restore uses as well (for the GUI: .api, .help, .bvfs_* or .ovfs_*). On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Command ACL = status, list, llist, restore, .api, .help
}

In the console:

configure add profile name=operator commandacl="status, list, llist, restore, .api, .help"

File Set ACL

Key: filesetacl · Type: ACL list

Which FileSets this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  File Set ACL = LinuxAll
}

In the console:

configure add profile name=operator filesetacl=LinuxAll

Catalog ACL

Key: catalogacl · Type: ACL list

Which catalogs this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. A console that may use no catalog cannot list jobs or volumes. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Catalog ACL = MyCatalog
}

In the console:

configure add profile name=operator catalogacl=MyCatalog

Where ACL

Key: whereacl · Type: ACL list

Which restore target paths (the where= of a restore) this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. An empty list forbids every where= other than the job’s own; *all* allows any path. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Where ACL = /tmp/bareos-restores
}

In the console:

configure add profile name=operator whereacl=/tmp/bareos-restores

Plugin Options ACL

Key: pluginoptionsacl · Type: ACL list

Which plugin option strings a job may be started with this profile may use. The list holds names or regular expressions, separated by commas or given by repeating the directive; the first matching entry decides, an entry starting with ! forbids, *all* allows everything, and a name no entry matches is forbidden. On the Onesimus Director the catalog ACL (.acl) can narrow this list further, never widen it.

Profile {
  Name = operator
  Plugin Options ACL = python:module_name=bareos-fd-local-fileset
}

In the console:

configure add profile name=operator pluginoptionsacl=python:module_name=bareos-fd-local-fileset

See also: configuration reference, configure, show