Logo
  • New in Bacula Enterprise ⭐
  • FUNDAMENTALS
  • PLANNING AND PREPARATION
  • INSTALLATION
  • USER INTERFACES
  • DEDICATED BACKUP SOLUTIONS
  • CONFIGURATION
  • MANAGEMENT
  • SECURITY AND THREAT ANALYSIS
  • ADVANCED FEATURES USAGE
  • PERFORMANCE FINE TUNING
  • INFRASTRUCTURE RECOVERY
  • UPGRADE AND REMOVAL
  • TROUBLESHOOTING
  • FAQ
  • TECHNICAL REFERENCE
  • RELEASE NOTES
bsysdoc
  • »
  • Plugin EntryPoints

Plugin EntryPoints

This section will describe each of the entry points (subroutines) within the plugin that the plugin must provide for Bacula, when they are called and their arguments. As noted above, pointers to these subroutines are passed back to Bacula in the pFuncs structure when Bacula calls the loadPlugin() externally defined entry point.

  • newPlugin(bpContext *ctx)
  • freePlugin(bpContext *ctx)
  • getPluginValue(bpContext *ctx, pVariable var, void *value)
  • setPluginValue(bpContext *ctx, pVariable var, void *value)
  • handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
  • startBackupFile(bpContext *ctx, struct save_pkt *sp)
  • endBackupFile(bpContext *ctx)
  • startVerifyFile(bpContext *ctx, struct save_pkt *sp)
  • startRestoreFile(bpContext *ctx, const char *cmd)
  • createFile(bpContext *ctx, struct restore_pkt *rp)
  • setFileAttributes(bpContext *ctx, struct restore_pkt *rp)
  • endRestoreFile(bpContext *ctx)
  • pluginIO(bpContext *ctx, struct io_pkt *io)
  • bool checkFile(bpContext *ctx, char *fname)
  • bRC queryParameter(bpContext *ctx, struct query_pkt *qp)

Possible Next Steps

Go to Bacula Plugin Entrypoints.

Go back to Bacula FD Plugin API.

Go back to Developer Guide.


© Copyright 2025, Bacula Systems.

Built with Sphinx using a theme provided by Read the Docs.