]> git.sur5r.net Git - bacula/bacula/commit
Implement new options in list command
authorEric Bollengier <eric@baculasystems.com>
Tue, 10 Nov 2015 15:05:48 +0000 (16:05 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:56:46 +0000 (09:56 -0800)
commit69fce50cdc73876639645f4c0aa5a4267d075dd8
tree7ac75b82bde7e3ac30b8f2c1b3e8b52074e4d71a
parent0e0616a9e45db7a32016985155056c3cc64bcab3
Implement new options in list command

It is possible to use the following arguments:
 - order=asc/desc
 - joberrors
 - jobstatus=T
 - client=xxx

*list jobs
+-------+--------------+---------------------+------+
| jobid | name         | starttime           | type |
+-------+--------------+---------------------+------+
|     1 | backup       | 2015-11-10 14:21:38 | B    |
|     2 | RestoreFiles | 2015-11-10 14:21:44 | R    |
|     3 | backup       | 2015-11-10 14:21:56 | B    |
|     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
+-------+--------------+---------------------+------+
*list jobs order=desc
+-------+--------------+---------------------+------+
| jobid | name         | starttime           | type |
+-------+--------------+---------------------+------+
|     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
|     3 | backup       | 2015-11-10 14:21:56 | B    |
|     2 | RestoreFiles | 2015-11-10 14:21:44 | R    |
|     1 | backup       | 2015-11-10 14:21:38 | B    |
+-------+--------------+---------------------+------+
*list jobs order=desc limit=1
+-------+--------------+---------------------+------+
| jobid | name         | starttime           | type |
+-------+--------------+---------------------+------+
|     4 | RestoreFiles | 2015-11-10 14:22:00 | R    |
+-------+--------------+---------------------+------+
bacula/src/dird/ua_output.c