Fileset Examples
In the example below, all the Nova servers and all the existent volumes (not in-use by Nova servers) will be backed up:
Fileset {
Name = "Openstack_all_instances-fileset"
Include {
Plugin = "openstack: OS_AUTH_URL=http://11.11.11.111:2222/v3 OS_USERNAME=admin OS_PASSWORD=123456 OS_USER_DOMAIN_NAME=Default OS_PROJECT_NAME=admin proxy_server=12345678-aaaa-bbbb-cccc-012345678901"
}
}
See also
For more details about: proxy_server
and the OS_* parameters, see: General Parameters.
Note
In the next examples it is assumed that the user copied or symlinked the project OpenStack RC file as /opt/bacula/etc/openstack.conf
.
In the example below, a single Nova server named “nfs-instance1” will be backed up.
Fileset {
Name = "Openstack_nfs_instance1-fileset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server=nfs-instance1"
}
}
See also
For more details about server
, see: Backup Parameters.
In the example below, using the server_include
option, both the Nova servers named nfs-instance1 and nfs-instance2 will be backed up.
Fileset {
Name = "Openstack_nfs_instance1_instance2-filset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server_include=nfs-instance[12]"
}
}
See also
For more details about server_include
, see: Backup Parameters.
In the example below, using the server_include
option, all the Nova servers whose names start with “nfs-” will be backed up.
Fileset {
Name = "Openstack_all_nfs_instances-fileset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server_include=nfs-.*"
}
}
In the example below, using both the server_include
and the server_exclude
options, all the Nova servers whose names begin with “nfs-” will be backed up, excpet the Nova server named nfs-instance1.
Fileset {
Name = "Openstack_all_nfs_instances_not_nfs_instance1-fileset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server_include=nfs-.* server_exclude=nfs-instance1"
}
}
See also
For more details about server_exclude
, see: Backup Parameters.
In the example below, using both the server_include
and the server_exclude
options, and the server
option, all the Nova servers whose names begin with “nfs-” and the Nova server named “prod-main” will be backed up, except the Nova servers
named nfs-instance1 and nfs-instance2.
Fileset {
Name = "Openstack_all_nfs_instances_and_prod-main_and_not_nfs_instance1-fileset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server_include=nfs-.* server_exclude=nfs-instance[12] server=prod-main"
}
}
In the example below, using the server_include
and the cinder_volume_backup
options, the Nova servers whose names begin with “nfs-” will be backed up as well as all volumes not attached to any Nova server.
These volumes have its status as “available” in the OpenStack server.
Fileset {
Name = "Openstack__all_nfs_instances_and_available_volumes-fileset"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 cinder_volume_backup=1 server_include=nfs-.* "
}
}
See also
For more details about cinder_volume_backup
, see: Backup Parameters.
In the example below, using the server_include
and the volume
options, the Nova servers whose names begin with “nfs-” will be backed up as well a single cinder volume named secrets.
Fileset {
Name = "Openstack_nfs_i"
Include {
# Using authentication from /opt/bacula/etc/openstack.conf
Plugin = "openstack: proxy_server=12345678-aaaa-bbbb-cccc-012345678901 server_include=nfs-.* volume=secrets"
}
}
See also
For more details about: volume
, see: Backup Parameters.
See also
Previous articles:
Go back to: Configuration.