>> > Hello, >> > >> > I had to remove several clients (fds) from my bacula setup and I found >> > no intructions on how to do this properly. Can someone please help me out? >> > What I want to achieve is that all database entries related to those >> > clients (clients, jobs, files,...) will be removed as this is quiet some >> > data. >> > My best guess was to delete those clients including >> > jobs,filesets,schedules and also their dedicated storage devices and >> > pools from the config files and then run dbcheck to remove orphaned >> > entries but this didn't work as dbcheck reported no orphaned >> > Clients/Jobs/.. but they are still in the DB when I check via SQL and >> > the Clients are also still listed when prompted to select a Client in >> > 'restore' mode. >> > >> > I'm using Bacula 5.0.2 with Mysql on Debian Squeeze 64. >> > >> > Regards, >> > >> > Martin >> > > Whenever I remove a client I delete all it's configuration and run reload in > bconsole. Then remove the database entry manualy and run a dbcheck. > > psql -c "delete from client where name='client-name'" bacula > dbcheck -f -b -c /etc/bacula/bacula-dir.conf > > I use postgresql but the query should be the same for mysql. > > Machiel.
Hello Machiel, thank you, I might give this a shot eventhough I didn't want to use direct SQL commands because I deleted around 30 clients and I don't want to delete the wrong clients from the db. Regards, Martin -- Wavecon GmbH | Ludwigstraße 2 | 90763 Fuerth HR/HRN: 10780 | GF: Cemil Degirmenci Ust-ID: DE251398082| Fon +49 911 120 6581 Fax: +49 911 212 923 3 | Web: wavecon.de Mail + Jabber: mreiss...@wavecon.de ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users