whats the best practice for this?
sure i can delete the config, but i also want the client out of the clients-table within the databasebackend of the server.
should i delete from the database ? (in my case mysql) (but shouldn't bacula handle this somehow)
dpkg -l | grep bacula
ii bacula-common 5.0.2-2.2+squeeze1 network backup, rec overy and verification - common support files
ii bacula-common-pgsql 5.0.2-2.2+squeeze1 network backup, rec overy and verification - PostgreSQL common files
ii bacula-console 5.0.2-2.2+squeeze1 network backup, rec overy and verification - text console
ii bacula-console-qt 5.0.2-2.2+squeeze1 Bacula Administrati on Tool Console
ii bacula-director-common 5.0.2-2.2+squeeze1 network backup, rec overy and verification - Director common files
ii bacula-director-pgsql 5.0.2-2.2+squeeze1 network backup, rec overy and verification - PostgreSQL storage for Director
ii bacula-fd 5.0.2-2.2+squeeze1 network backup, rec overy and verification - file daemon
ii bacula-sd 5.0.2-2.2+squeeze1 network backup, rec overy and verification - storage daemon
ii bacula-sd-pgsql 5.0.2-2.2+squeeze1 network backup, rec overy and verification - PostgreSQL SD tools
dbcheck
tool can remove obsolete Client records, among other things. Shut down the director before you run it.I believe the procedure is simply, in
bconsole
:where
foo.example.com-fd
is the name of the file storage server you want to destroy. This will take care of removing related jobs, but I am not sure (yet?) that it will remove related file records. One can hope, and if that fails thendbcheck
can be used.Do note that
dbcheck
is really, really slow and should be used only if you are stuck in MySQL land. In PostgreSQL there is a much more efficientdbcheck.sql
script that can be run directly in a SQL console, and that will keep changes inside a transaction so you can review changes before committing. Pretty amazing stuff, butdbcheck
should not be needed in normal Bacula operation, according to the upstream documentation. To quote that manual:So really, you should only need the
delete
command to destroy an old client, at least in theory.