Hello Myles,
On 1/16/24 18:47, MylesDearBusiness via Bacula-users wrote:
Hello, Bacula experts.
I was pleasantly surprised to see the CDP plugin is part of the community
edition. I'm hoping to take full advantage of this.
I'm running it on a Ubuntu 22.04.3 LTS bare metal cloud server.
After looking at the main reference manual section 47.1, I still have questions:
- If I want to specify multiple users to be monitored, do I just have multiple Plugin =
"cdp: userHome=/home/<username>" directives in my director FileSet / Include
configuration?
I would put only one plugin line and multiple userHome directories (or user=)
Plugin = "cdp: user=eric user=myles"
- Is it legal to specify a number of Plugin directives in my FileSet Include block as
well as multiple "File = /path/to/dir-to-monitor" directives all together ?
Yes, it will work
- I'm seeing evidence that my /root/.cdp-sdir is the only place where the spool directory is created (I'm
running my fd as root), despite me having multiple "cdp: userHome" lines, so what exactly are
the semantics of this directive? The documentation says that this points to the home directory of the cdp
user, which presumably would be the user running the fd, and the place where the spool directory is
placed, but I want to monitor multiple places, including user home directories and key places such as
/var/lib/mysql where I didn't think the Plugin = "cdp: user=<username>" directive was
appropriate, so I'm using the userHome directive for these cases. Hope it works.
The .cdp-sdir is used by the cdp daemon that is monitoring your files, you
should have one in each user directory.
- I don't see /opt/bacula/bin/cdp-client running continuously on my /bin/ps -Af
command output, am I expected to launch this myself at startup?
Yes, it should be started, I believe that we have a GUI to run it, but it can be
started with your session as well.
Since I'm seeing evidence that spooling is happening, with the config I've
described, in what cases is this client automatically run? For example, is this
client only run when a job is launched? What is the recommended way of setting
this up?
No, it runs when the user is logged in, files that are modified are copied in
the spool directory, and the Bacula job will come from time to time to backup
all versions and do some cleanup. Doing so, the CDP will work even if you
are not connected to the network.
- Since the Linux cdp uses the inotify API, whose man page states is not
recursive, am I assured that when I specify a directory that CDP will tell
inotify to monitor all its subdirectories as well?
Yes, this part is handled by the cdp daemon. I would recommend to not monitor
hundred of thousand directories, but really where you work.
- ChatGPT insists that in the file daemon configuration each directory to back up may be specified
in a separate "Plugin {cdp: userHome=/home/<username>} block but I see nothing in the
documentation that corroborates this, it also says that when specifying in this way, the director
FileSet block may have just a single plugin line referencing no directories{ Options {...} Plugin =
"cdp"}. Is my just my AI hallucinating or does this configuration work ?
I would rather trust the users list, the code or both, but not chatgpt for that
:-)
Best Regards,
Eric
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users