Fail.
$ for jobname in $(psql
-U bacula bacula -At -c 'SELECT DISTINCT name from job ;'); do echo "estimate
job=$jobname level=full" | sudo bconsole | egrep -B1 "OK estimate"; done >
/tmp/backupstat
$ [manual justify/concatenation of lines]
$ awk '{print $4, $11}' < /tmp/backupstat | sed 's/bytes=//g' | sort -rn -k2
foo-fd 302,445,614,884
bar-fd 34,774,854,747
[...]
~BAS
On Tue, 2008-08-05 at 09:46 -0400, Brian A. Seklecki wrote:
> Does anyone have a cheap hack? Building a list of jobs is easy (SQL),
> and piping it to bconsole estimate command is easy. The output would be
> hella-ugly though.
>
> It just seems like it would be a frequently asked question.
>
--
Brian A. Seklecki <bseklecki AT collaborativefusion DOT com>
Collaborative Fusion, Inc.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|