]> git.ipfire.org Git - thirdparty/bacula.git/commit
metaplugin: Add accurate mode query.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Wed, 25 Aug 2021 14:52:53 +0000 (16:52 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
commitecbb5b3d6039c7630e6e1a1979a6cba130a87735
treeacf7aaf7c174d6bcac7da7458be16f47928bb91c
parentd90208cdfe45e9f3199de86a31427d8711dc1a6a
metaplugin: Add accurate mode query.

This patch implements a basic accurate mode query to the metaplugin
protocol. In this extension the backend can issue `CHECK:$fname`
command followed by a standard `STAT:...` and `TSTAMP:...` commands
to ask Bacula if it should backup $fname in this job.
The metaplugin will response with simple "OK", you should backup this
file or "SEEN" it before, backup is not required. This feature will work
with Accurate jobs only. If job is not accurate then user will get
an error job message.
bacula/src/plugins/fd/Makefile.inc.in
bacula/src/plugins/fd/pluginlib/Makefile
bacula/src/plugins/fd/pluginlib/metaplugin.cpp
bacula/src/plugins/fd/pluginlib/metaplugin.h
bacula/src/plugins/fd/pluginlib/pluginlib.h
bacula/src/plugins/fd/pluginlib/ptcomm.cpp
bacula/src/plugins/fd/pluginlib/ptcomm.h