Bacula-users

Re: [Bacula-users] sorting output bconsole

2009-10-16 17:39:02
Subject: Re: [Bacula-users] sorting output bconsole
From: Jose Perez <jvoorhees1 AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 16 Oct 2009 16:35:36 -0500
Hi:

On Fri, Oct 16, 2009 at 4:03 PM, Terry L. Inzauro
<tinzauro AT ha-solutions DOT net> wrote:
> Does bconsole support sorting of output?   For instance, can bconsole sort 
> the output of "list volumes pool=FullPool" by size
> or date?
>
I don't think this is possible but you could some bash script to sort:

-----init of bconsole.sh script ---
#!/bin/bash
bconsole <<EOF
messages
list jobs
EOF
----end of bash script ---

$ ./bconsole.sh | dos2unix | awk '{ print $15 }' | sort -n

That is just an idea (I use a lot of this kind of scripts with
bconsole). Right know I'm not sure if 15th (from $15 in awk command)
column of 'list jobs' output contains bytes size of the backup.

I hope this helps

> kind regards,
>
>
> Terry
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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>