set_portable_backup(&ff_pkt->bfd); /* disable Win32 BackupRead() */
}
- if (ff_pkt->cmd_plugin) {
+ if (ff_pkt->cmd_plugin && !ff_pkt->no_read) {
do_plugin_set = true;
/* option and cmd plugin are not compatible together */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2012 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
static void update_ff_pkt(FF_PKT *ff_pkt, struct save_pkt *sp)
{
+ ff_pkt->no_read = sp->no_read;
ff_pkt->delta_seq = sp->delta_seq;
if (sp->flags & FO_DELTA) {
ff_pkt->flags |= FO_DELTA;
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2012 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
struct stat statp; /* System stat() packet for file */
int32_t type; /* FT_xx for this file */
uint32_t flags; /* Bacula internal flags */
+ bool no_read; /* During the save, the file should not be saved */
bool portable; /* set if data format is portable */
bool accurate_found; /* Found in accurate list (valid after check_changes()) */
char *cmd; /* command */
bVarVersion = 17,
bVarDistName = 18,
bVarBEEF = 19,
- bVarPrevJobName = 20
+ bVarPrevJobName = 20,
+ bVarPrefixLinks = 21
} bVariable;
/* Events that are passed to plugin */
#define FD_PLUGIN_MAGIC "*FDPluginData*"
-#define FD_PLUGIN_INTERFACE_VERSION 5
+#define FD_PLUGIN_INTERFACE_VERSION 6
typedef struct s_pluginInfo {
uint32_t size;
bool dereference; /* follow links (not implemented) */
bool null_output_device; /* using null output device */
bool incremental; /* incremental save */
+ bool no_read; /* Do not read this file when using Plugin */
char VerifyOpts[20];
char AccurateOpts[20];
char BaseJobOpts[20];