]>
git.sur5r.net Git - bacula/bacula/commit
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    |
+-------+--------------+---------------------+------+