Bacula-users

Re: [Bacula-users] Cleanup removed jobs from storrage

2015-10-23 11:07:35
Subject: Re: [Bacula-users] Cleanup removed jobs from storrage
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Ana Emília M. Arruda <emiliaarruda AT gmail DOT com>
Date: Fri, 23 Oct 2015 13:05:49 -0200 (BRST)
Hello Jonas,

There is a dbcheck utility with "-f" option that you can try to delete orphaned entries in your database.

If you have "autoprune=yes" configured in your clients, then bacula has already been pruning your jobs and files according to your file and job retention periods for the clients. This is the safely way. But you also has the purge command that deletes files, jobs or volumes without regarding to the retention periods.

If you removed the clients and jobs configurations from your .conf files and restarted bacula, then you will not have then for future backups, but files, volumes and jobs for these old clients will be in catalog. If you are sure about deleting them from catalog, you need the delete commnad (if you delete a volume, all the jobs and files associated to it are also deleted from catalog. If you do not delete the volume file from your filesystem, you will always be able to restore files using bextract utility).
Ana / Jonas: I think the problem here is he deleted volume information from Bacula catalog and but they are still in the Archive Device - disk.
The must direct solution would be removing them from bash (rm). Just make sure you are not using them anymore with an list media (bconsole).

Regards,
===========================================================================
Heitor Medrado de Faria - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Do you need Bacula training? http://bacula.us/video-classes/
I do Bacula training and deploy in any city of the world. More information: http://bacula.us/
===========================================================================

Best regards,
Ana



On Fri, Oct 23, 2015 at 10:26 AM, Jonas Meier <jmeier AT futurelab DOT ch> wrote:
Hi All

We have Bacula 5.2.6 running on Debian Jessie. As a device back end we use a simple ext4 file system (Media Type = File). A few months ago we removed much servers. At this time I don't really know how Bacula works and just removed the jobs and client configurations from bacula-dir.conf and restarted the daemons.

Now the servers runs out of space and I discovered, that my removal didn't freed any space on the filesystem. Same in the mysql database, when I run "select distinct(name) from Job;", all old jobs are included. Now I search a way to clean-up the stuff on the filesystem and the database. I recovered the old bacula-dir configuration from git and tried to purge one of the old job over bacula-console, but it stops with "No Files found for client NameOfServer to purge from MyCatalog catalog."

Is there a tool or command to clean up something like that?

Thanks, Jonas





------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>