Amazon RDS Example
In the example below, the Scan Plugin is used to detect and configure backup jobs for Amazon RDS instances via the RDS Plugin installed on the Bacula Client client-fd. Each RDS instance detected will be handled by a separate Job and Fileset. The Job directives will be defined via the JobDefs named BackupsToDisk.
/opt/bacula/working# sudo -u bacula /opt/bacula/bin/scan_plugin \
--client client-fd \
--plugin amazon-rds \
--jobdefs BackupsToDisk \
--job J_%p_%v \
--commit_and_reload \
--plugin_option abort_on_error \
--plugin_option config_file=/opt/bacula/etc/amazon-rds.settings
Report for scan_plugin 0.8 client-fd:amazon-rds
----------------------------------------------
Client: client-fd
Plugin: amazon-rds
Objects Added: 1
---------------------------------------------
~ updated, = kept, + added, X removed, D disabled
---------------------------------------------
+ J_amazon-rds_ins-db-pgl
----------------------------------------------
Status: Configuration applied and reloaded
The following configuration will be created:
Job {
Name = "J_amazon-rds_ins-db-pgl"
Description = "{\"description\":\"Generated by scan_plugin. Do not edit.\",\"id\":\"client-fd:amazon-rds\",\"instance\":\"ins-db-pgl\",\"parameter\":\"instance\",\"plugin\":\"amazon-rds\",\"uuid\":\"uuid=client-fd:amazon-rds:ins-db-pgl\",\"version\":\"0.8\"}"
Type = "Backup"
Client = "client-fd"
Fileset = "F_client-fd_amazon-rds_ins-db-pgl"
JobDefs = "BackupsToDisk"
}
Fileset {
Name = "F_clinet-fd_amazon-rds_ins-db-pgl"
Description = "{\"description\":\"Generated by scan_plugin. Do not edit.\",\"id\":\"client-fd:amazon-rds\",\"instance\":\"ins-db-pgl\",\"parameter\":\"instance\",\"plugin\":\"amazon-rds\",\"uuid\":\"uuid=client-fd:amazon-rds:ins-db-pgl\",\"version\":\"0.8\"}"
Include {
Options {
}
Plugin = "amazon-rds: instance=\"ins-db-pgl\" config_file=/opt/bacula/etc/amazon-rds.settings abort_on_error"
}
}
See also
Previous articles:
Go back to: Examples.