Bacula-users

[Bacula-users] purge one job from client X == purge all jobs for the client X ?

2008-12-12 10:06:02
Subject: [Bacula-users] purge one job from client X == purge all jobs for the client X ?
From: Salvo PAESANO <salvo.paesano AT isb-sib DOT ch>
Date: Fri, 12 Dec 2008 15:49:13 +0100
bacula version: 2.4.3 (october 10)
bacula patches 2.4.3 (october 16) not applied


I wanted just to suppress one job, so I did this commande "purge
jobid=47", and finally it deleted all jobs for the given client !
Here is the output :

*purge jobid=47

This command is can be DANGEROUS!!!

It purges (deletes) all Files from a Job,
JobId, Client or Volume; or it purges (deletes)
all Jobs from a Client or Volume without regard
for retention periods. Normally you should use the
PRUNE command, which respects retention periods.
You have the following choices:
     1: files
     2: jobs
     3: volume
Choose item to purge (1-3): 2
The defined Client resources are:
     1: ibacula-fd
     2: lin-000-fd
     3: lin-010-fd
     4: lin-054-fd
     5: lin-051-fd
     6: router1-fd
     7: sua001-fd
Select Client (File daemon) resource (1-7): 2
Begin purging jobs from Client "lin-000-fd"
No Files found for client lin-000-fd to purge from MyCatalog catalog.
*list jobs
+-------+----------------------+---------------------+------+-------+----------+-----------------+-----------+
| JobId | Name                 | StartTime           | Type | Level |
JobFiles | JobBytes        | JobStatus |
+-------+----------------------+---------------------+------+-------+----------+-----------------+-----------+
|    59 | i-sua001-job         | 0000-00-00 00:00:00 | B    | I     |
     0 |               0 | C         |
|     1 | Client1              | 2008-10-22 23:05:02 | B    | F     |
     0 |               0 | f         |
|     2 | BackupCatalog        | 2008-10-22 23:10:02 | B    | F     |
     0 |               0 | E         |
|     3 | ibacula-job          | 2008-11-24 11:39:16 | B    | F     |
     0 |               0 | f         |
|     4 | ibacula-job          | 2008-11-24 17:26:30 | B    | F     |
137,021 |   3,845,690,391 | T         |
|     5 | ibacula-job          | 2008-11-25 00:06:17 | B    | I     |
    52 |      25,283,238 | T         |
|     6 | ibacula-job          | 2008-11-26 00:05:02 | B    | I     |
    80 |      27,694,412 | T         |
|     7 | ibacula-job          | 2008-11-27 00:05:03 | B    | I     |
    88 |      28,183,633 | T         |
|     8 | ibacula-job          | 2008-11-28 00:05:02 | B    | I     |
    87 |      30,888,083 | T         |
|     9 | RestoreFiles         | 2008-11-28 11:53:45 | R    | F     |
     1 |             230 | T         |
|    10 | RestoreFiles         | 2008-11-28 11:57:32 | R    | F     |
     1 |             230 | T         |
|    13 | ibacula-job          | 2008-11-29 09:28:25 | B    | F     |
137,024 |   4,634,751,361 | T         |
|    15 | ibacula-job          | 2008-12-02 00:07:21 | B    | I     |
   128 |   1,356,826,920 | T         |
|    17 | ibacula-job          | 2008-12-02 15:38:34 | B    | F     |
     0 |               0 | f         |
|    18 | ibacula-job          | 2008-12-02 15:41:51 | B    | F     |
     0 |               0 | f         |
|    19 | ibacula-job          | 2008-12-02 15:44:57 | B    | I     |
     0 |               0 | f         |
|    20 | ibacula-job          | 2008-12-02 15:46:42 | B    | I     |
     0 |               0 | f         |
|    21 | ibacula-job          | 2008-12-02 15:52:07 | B    | I     |
   109 |   1,359,318,031 | T         |
|    22 | i-lin-010-job        | 2008-12-02 16:57:49 | B    | F     |
     0 |               0 | f         |
|    23 | i-lin-010-job        | 2008-12-02 17:14:44 | B    | F     |
     0 |               0 | f         |
|    24 | i-lin-010-job        | 2008-12-02 17:21:58 | B    | F     |
724,185 | 385,888,954,808 | T         |
|    25 | ibacula-job          | 2008-12-03 00:06:42 | B    | I     |
    64 |   1,474,594,602 | T         |
|    27 | i-lin-010-job        | 2008-12-03 01:22:25 | B    | I     |
11,180 |   3,367,020,606 | T         |
|    28 | RestoreFiles         | 2008-12-03 11:34:32 | R    | F     |
     1 |             233 | T         |
|    29 | i-lin-054-job        | 2008-12-03 17:07:32 | B    | F     |
707,324 |  93,512,082,501 | T         |
|    30 | ibacula-job          | 2008-12-04 00:07:19 | B    | I     |
   113 |   1,602,759,713 | T         |
|    32 | i-lin-010-job        | 2008-12-04 01:08:56 | B    | I     |
262,855 | 231,440,274,831 | T         |
|    33 | i-lin-054-job        | 2008-12-04 04:07:07 | B    | I     |
    69 |      17,592,199 | T         |
|    34 | i-lin-054-job        | 2008-12-04 13:55:22 | B    | F     |
707,362 |  93,568,851,544 | T         |
|    35 | ibacula-job          | 2008-12-05 00:05:47 | B    | I     |
   127 |   2,963,606,314 | T         |
|    37 | i-lin-010-job        | 2008-12-05 01:35:04 | B    | I     |
236,397 | 200,708,636,554 | T         |
|    38 | i-lin-054-job        | 2008-12-05 04:39:05 | B    | I     |
   399 |      30,416,935 | T         |
|    39 | i-router1-job        | 2008-12-05 17:07:49 | B    | F     |
 3,074 |      52,528,843 | T         |
|    40 | ibacula-job          | 2008-12-05 21:05:46 | B    | F     |
137,031 |   6,787,651,689 | T         |
|    42 | i-lin-010-job        | 2008-12-06 18:05:07 | B    | F     |
726,216 | 386,664,122,410 | T         |
|    43 | i-lin-054-job        | 2008-12-06 21:56:21 | B    | F     |
707,404 |  93,632,705,552 | T         |
|    44 | i-router1-job        | 2008-12-07 01:09:57 | B    | F     |
 3,074 |      52,528,843 | T         |
|    45 | i-lin-051-job        | 2008-12-08 16:55:42 | B    | F     |
336,442 | 203,589,921,850 | T         |
|    46 | ibacula-job          | 2008-12-09 00:07:56 | B    | I     |
   218 |   4,621,173,148 | T         |
|    48 | i-lin-010-job        | 2008-12-09 16:59:25 | B    | I     |
277,435 | 212,455,311,752 | T         |
|    49 | i-router1-job        | 2008-12-09 19:39:21 | B    | I     |
     4 |         322,277 | T         |
|    50 | ibacula-job          | 2008-12-10 00:05:02 | B    | I     |
   102 |   3,135,009,110 | T         |
|    52 | i-lin-010-job        | 2008-12-10 01:18:38 | B    | I     |
11,215 |   3,416,737,148 | T         |
|    53 | i-router1-job        | 2008-12-10 01:22:41 | B    | I     |
     2 |             693 | T         |
|    54 | i-sua001 NightlySave | 2008-12-10 13:12:16 | B    | F     |
417,871 |  11,314,676,287 | T         |
|    55 | ibacula-job          | 2008-12-11 00:05:54 | B    | I     |
   107 |   3,214,706,331 | T         |
|    57 | i-lin-010-job        | 2008-12-11 01:06:32 | B    | I     |
120,658 |  91,265,687,203 | f         |
|    58 | i-router1-job        | 2008-12-11 02:04:53 | B    | I     |
     0 |               0 | R         |
+-------+----------------------+---------------------+------+-------+----------+-----------------+-----------+

Do you have a idea how purge only one job and not all?

thanks to all
Salvo



-- 
********************************************************************
Salvo PAESANO

Swiss Institute of Bioinformatics
1, rue Michel Servet
CH-1211 Genève 4
Switzerland
Tel: (+41 22) 379 58 33
Fax: (+41 22) 379 58 58
E-mail: Salvo.Paesano AT isb-sib DOT ch
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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>