Re: [Bacula-users] Procedure to remove properly client

2018-01-17 Thread Rolf Halmen
Hi John, that's a bit trickier, and I don't have code for that, but I've seen it done. After doing the database bit, you can do something like this: foreach (volume-file); do     if (file not listed in database); then         delete     else         keep I wouldn't call it elegant, but it

Re: [Bacula-users] Procedure to remove properly client

2018-01-17 Thread John Naggets
Thanks Rolf for the details and SQL query you use for that purpose. I am currently testing this out. By the way there is no "-y" option on my Bacula version (7.4.4) so I used use "-v" for verbose instead. I suppose this takes quite some time as I have quite a few clients and it''s still running.

Re: [Bacula-users] Procedure to remove properly client

2018-01-17 Thread Rolf Halmen
Hi John, turns out we're cheating. mysql -u bacula -p${BACULAMYSQLPW} -e "DELETE FROM Client WHERE Name='${FDHOSTNAME}';" bacula dbcheck -b -f -y -c /etc/bacula/bacula-dir.conf So we're just deleting the client, and then let bacula get the database back into a consistent state. Depending on

Re: [Bacula-users] Number of files mismatch!

2018-01-17 Thread Kern Sibbald
Your tape seems to be bad or overwritten. I suggest to try a bls on the tape and see if it really has any data on it.  The Bacula SD thinks the tape is empty. On 16.01.2018 08:22, krashoverr...@free.fr wrote: Hi again, Quick feedback, yesterday while I was writing this mail, i started