Bacula-users

Re: [Bacula-users] Purge or prune jobs using their "jobid"

2014-10-17 11:57:24
Subject: Re: [Bacula-users] Purge or prune jobs using their "jobid"
From: Martin Simmons <martin AT lispworks DOT com>
To: ALI LARAB <larab_ali AT yahoo DOT fr>
Date: Fri, 17 Oct 2014 16:54:41 +0100
Try running the "List Volumes used by selected JobId" query command for those
jobs with JobStatus = T.

__Martin


>>>>> On Tue, 14 Oct 2014 11:11:03 +0100, ALI LARAB said:
> 
> Yes, I have used the purge commande. Two days after sending my mail, the 
> available space was decrised to 1%. No space in my disk to the ful backups of 
> the week-end. So, I have purged and deleted the old volumes by the bconsole, 
> and then deleted the corresponding files by the Shell.
> Now, I want to know why when I run the "list jobs" command, I have in the 
> result old jobs. 
> list jobs 
> Automatically selected
> Catalog: MyCatalog
> +--------+---------------+---------------------+----------+---------------+----------------+----------+
> | JobId  | Name          |    StartTime        |Type|Level| JobFiles      | 
> JobBytes       | JobStatus|
> +--------+---------------+---------------------+----------+---------------+----------------+----------+
> | 793    | canne         | 0000-00-00 00:00:00 | B |   D  |      0        | 0 
>              |        C |
> | 13,118 | pima2         | 0000-00-00 00:00:00 | B |   I  |      0        | 0 
>              |        C |
> | 13,121 | pima          | 0000-00-00 00:00:00 | B |   I  |      0        | 0 
>              |        C |
> | 5      | BackupCatalog | 2008-04-30 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 6      | basil         | 2008-05-01 02:05:03 | B |   I  |      40       | 
> 54,514,222     |        T |
> | 8      | BackupCatalog | 2008-05-01 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 9      | basil         | 2008-05-02 02:05:04 | B |   I  |      3,863    | 
> 55,320,734     |        T |
> | 10     | ciboul        | 2008-05-02 02:06:00 | B |   I  |      5,725    | 
> 479,359,015    |        T |
> | 11     | BackupCatalog | 2008-05-02 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 12     | basil         | 2008-05-03 02:05:04 | B |   I  |      4,872    | 
> 141,522,725    |        T |
> | 13     | ciboul        | 2008-05-03 02:05:10 | B |   I  |      5,719    | 
> 65,697,398,067 |        T | 
> | 14     | BackupCatalog | 2008-05-03 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 17     | BackupCatalog | 2008-05-04 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 18     | basil         | 2008-05-05 02:05:04 | B |   I  |      4,541    | 
> 90,850,195     |        T |
> | 19     | ciboul        | 2008-05-05 02:06:00 | B |   I  |      5,768    | 
> 65,766,895,554 |        T |
> | 20     | BackupCatalog | 2008-05-05 23:10:02 | B |   F  |      0        | 0 
>              |        E |
> | 21     | basil         | 2008-05-06 02:05:04 | B |   I  |      4,515    | 
> 92,678,574     |        T |
> | 22     | ciboul        | 2008-05-06 02:06:09 | B |   I  |      5,846    | 
> 65,816,913,928 |        T |
> | 23     | BackupCatalog | 2008-05-06 15:26:25 | B |   F  |      0        | 0 
>              |        E |
> | 32     | basil         | 2008-05-07 02:05:03 | B |   F  |      77,287   | 
> 10,820,420,535 |        T |
> | 33     | ciboul        | 2008-05-07 02:11:13 | B |   F  |      145,540  | 
> 61,445,682,018 |        T |
> | 38     | basil         | 2008-05-07 16:52:15 | B |   I  |      0        | 0 
>              |        f |
> | 39     | basil         | 2008-05-07 16:52:51 | B |   I  |      0        | 0 
>              |        f |
> | 42     | BackupCatalog | 2008-05-07 16:57:43 | B |   F  |      0        | 0 
>              |        E |
> | 48     | basil         | 2008-05-08 02:05:02 | B |   I  |      4,467    | 
> 118,325,691    |        T |
> 
> Do you think these jobs really take up space on disk?
> Did you know what to do ?
> 
> 
> 
> Le Vendredi 10 octobre 2014 12h01, Martin Simmons <martin AT lispworks DOT 
> com> a écrit :
>  
> 
> 
> You can also delete a single job from the catalog using
> 
> delete jobid=xxxx
> 
> As with the purge command, this does not delete the volume on disk.
> 
> __Martin
> 
> 
>>>>> On Thu, 9 Oct 2014 13:38:12 -0300, Ana Emília M. Arruda said:
> > 
> > Hello!
> > 
> > If you want to delete all the information about a job/volume, you can use
> > the "purge volume=xxxx". This command will delete all job, files, etc.,
> > information from catalog, but it will not delete your volume. It will set
> > the volume status to "purged" and this way the volume will be available for
> > other jobs.
> > 
> > Regards,
> > Ana
> > 
> > On Thu, Oct 9, 2014 at 1:07 PM, ALI LARAB <larab_ali AT yahoo DOT fr> wrote:
> > 
> > > I have used this command
> > > *purge files 154
> > >
> > > but the job with the id 154 still appears when I execute the command "list
> > > jobs."
> > >
> > >
> > >   Le Jeudi 9 octobre 2014 17h56, ALI LARAB <larab_ali AT yahoo DOT fr> a 
> > > écrit :
> 
> > >
> > >
> > > Hello.
> > > I run this command:
> > >
> > > list jobs
> > >
> > > +-----------+-------------------------+-----------------------------------+------------+-----------+-----------+------------+------------+
> > > | JobId     |           Name        |          StartTime                |
> > >  Type     |  Level   | JobFiles | JobBytes | JobStatus |
> > >
> > > +-----------+-------------------------+-----------------------------------+------------+-----------+-----------+-------------+-----------+
> > > | 793       |           cannelle    |          0000-00-00 00:00:00     |
> > > B        | D        | 0        | 0        |          C |
> > > | 13,118    |           piment2     |          0000-00-00 00:00:00     |
> > > B        | I        | 0        | 0        |          C |
> > > | 13,121    |           piment      |          0000-00-00 00:00:00     |
> > > B        | I        | 0        | 0        |          C |
> > > | 5        |           BackupCatalog |         2008-04-30 23:10:02     |
> > > B        | F        | 0        | 0        |          E |
> > > | 6        |           basilic      |          2008-05-01 02:05:03     |
> > > B        | I        | 40       | 54,514,222 |         T |
> > > | 8        |           BackupCatalog |         2008-05-01 23:10:02     |
> > > B        | F        | 0        | 0         |         E |
> > > | 9        |           basilic      |          2008-05-02 02:05:04     |
> > > B        | I        | 3,863    | 55,320,734 |         T |
> > >
> > > From the result of this order, there is still old jobs that takes up space
> > > on the disk (if I'm not mistaken).
> > > I want to delete or purge them.
> > > Do you know how to use the "purge" or "prune" command with the "jobid".
> > > For example, I want to purge the job with the id : 6. When I use purge, it
> > > give not me the name basilic because it does'nt exist now. So, I want to
> > > use its jobid.
> > >
> > > Thanks for your answers.
> > > Aly.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------------------------------------------------------
> > > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> > > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> > > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> > > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> > >
> > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > Bacula-users mailing list
> > > Bacula-users AT lists.sourceforge DOT net
> > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > >
> > >
> > 
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
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>