Fileset Examples
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
In the example below, all guest VMs will be backed up:
Fileset {
Name= Azure-all-params-all-vms
Include {
Plugin="azure-vm: tenant_id=12345678-abcd-1234-efgh-0123456789ab subscription_id=abcdefgh-1234-abcd-1234-abcdefghijkl connection_key=DefaultEndpointsProtocol=https;AccountName=example;AccountKey=aBcdEfGhijKlMNOpqrstuvwxyZ012345;EndpointSuffix=core.windows.net application_id=87654321-1111-2222-3333-44444444444 application_secret=9qqqq~---------------------qw123456789d"
}
}
In the example below, all guest VMs will be backed up but this time the tenant_id, subscription_id, application_id, secret_id and connection_key are set inside a configuration file located at /opt/bacula/etc/bacula-vm.conf into a group named main
Note
In all the future examples, it will be assumed for less verbose Filesets, that tenant_id, subscription_id, application_id, secret_id and connection_key are set by the same configuration file and that the group main is the first available group.
Fileset {
Name= Azure-no-params
Include {
Plugin="azure-vm: group=main"
}
}
In the example below, a single guest VM with a name of “VM1” will be backed up.
Fileset {
Name= Azure-One-Vm
Include {
Plugin="azure-vm: vm=VM1"
}
}
In the example below, all guest VMs which have prod in their name will be backed up.
Fileset {
Name= Azure-prod
Include {
Plugin="azure-vm: include=(.*)prod(.*)"
}
}
In the example below, all guest VMs which have prod in their name but do not start with test will be backed up.
Fileset {
Name= Azure_no_test
Include {
Plugin="azure-vm: include=(.*)prod(.*) exclude=^test(.*)"
}
}
In the example below, all prod VMs will be backed up. All test VMs will be ignored except for a VM named exception.test
Fileset {
Name= Azure_prod_no_test_except
Include {
Plugin="azure-vm: include=(.*)prod(.*) exclude=(.*)test(.*) vm=exception.test"
}
}
Go back to: Plugin Configuration.