Re: baculabackupreport script error
Bill Arlofski via Bacula-users <[email protected]>
| Newsgroups | gmane.comp.bacula.user |
|---|---|
| Message-ID | <fGRU58KgXcYVuIpmQW8WXTcJrxTOtBZSG08kpUclyklwfk4fg2DZwMI3D99e0j_XCRVFy3TEzooY0ukiZhXv7-_iD6gqhH6jsLnD-X4PIwM=@protonmail.com> |
On Thursday, October 17th, 2024 at 04:11, Chris Wilkinson <[email protected]> wrote: > I got your Python script working but only if I include the -C <baculabackupreport.ini> in the command line. Otherwise it complains that email is missing, cannot connect to dB and a few other things. It looks like it's not finding the configuration file that I put in my home directory. With -C it does find it. > > Is there no default for this parameter? > > -Chris Wilkinson Hello Chris, Since there are defaults for practically everything (eg: the db name, db user, db password, number of hours, days, etc), the only variable required which cannot have a default is the email address. This must be set on the command line, or as an environment variable, or in a [section] of a config file. Since the config file is not required, there is no default for it, and it can be located anywhere you like. I could think of no "correct" location for a default config file since there is Bacula Enterprise and several different package maintainers for Bacula Community, each choosing different places for "bacula stuff" to reside. :) Also, you will notice that in the example config file, the [DEFAULT] section is basically blank - because everything already has some default setting. If you have a different name for your Bacula catalog DB, or you have set a DB user other than the default 'bacula', or you have set a password other than the default "<no password>", then you can set them in the environment, on the command line, or in a specified [section] of a specified config file. So, if you specify just the -C /path/to/config/file and -S <name of [section] in config file>, everything else can be set/overridden in the config file, keeping your cron line nice and short/clean. :) Hope this helps, Bill -- Bill Arlofski [email protected] _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
signature.asc
(application/pgp-signature, 509 B)
-----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBzBAEBCAAnBYJnFBw6CZBIDTDab9XDQBYhBMuLnlBaSQiuSUbb6UgNMNpv 1cNAAAD7gAf/Stz3k+PjV+QpDjwMfR//JmnGPpR/3yd4z/+Ak6mz84ingW+L MpC6uRbsu3SfOXezVXg0Wk1Z3bhRdQ9LGhdY+doYW5LKhOlpI0m1VCDhbV/9 1nAk+Jyd4iU/cQyg/BRwZoraoak9mOpPjtNNyFLkOywOYSZswfNE06Mf7QMc A9p9j2qK+fGxTgFKo1v+vKPHpK/4FjLnFcnz0jgetcZmyrLC/Gp8G9g3s10A hme1IGVSb9p2aaJTJPCAyPk9IUCxaRSM/FBuSr1GwwiqTaZ/0ZvA0oWCDdOg w5u3YpnGVN6rOtfaRr+zarDK8bN0gNZPnu/jlNoHa3nAW5Sf3UkbqA== =F0KD -----END PGP SIGNATURE-----