Changes between Version 109 and Version 110 of FAQ


Ignore:
Timestamp:
Jul 12, 2012, 6:53:29 PM (13 years ago)
Author:
bs27975
Comment:

Add Q46 for reducing verbosity via grep.

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v109 v110  
    827827
    828828Documentation suggests if you simply want to generate this ''mondo'' boot iso file, execute a small mondoarchive run only, such as by using -I /etc.
     829
     830== Q46 mondoarchive (non-gui) is quite chatty - can the verbosity level be reduced?
     831
     832''Answer gleaned from docs / wiki / mailing lists / trac by B.S.''[[BR]]
     833
     834Apparently not (to date), although it is said that this issue in in the queue.[[BR]]
     835
     836However, the output can be trimmed reasonably well by grep'ping the output to remove the progress (?) messages. Something like the following seems to work sufficiently well:[[BR]]
     837
     838{{{
     839mymondoroot=<your favourite squirrel hole>
     840myrundate=`date +%F`
     841mylogprefix=$myrundate-`hostname`-mup
     842( /usr/bin/time -f '\nTime Elapsed: %E Command: %C' mondoarchive -OViN9z -s 4710m -p "$mylogprefix" -E "/cdrom|/media|/mnt" -d $mymondoroot/images -S $mymondoroot/scratch -T $mymondoroot/tmp ) | tee $mymondoroot/$mylogprefix-mondorun.log
     843lretcode=$?
     844grep -v -e "^---evalcall---" -e "^---progress-form---" $mymondoroot/$mylogprefix-mondorun.log >$mymondoroot/$mylogprefix-mondorun.txt
     845kwrite $mymondoroot/$mylogprefix-mondorun.txt 2>/dev/null &
     846cp -v /var/log/mondoarchive.log $mymondoroot/$mylogprefix-mondoarchive.log
     847cp -v /var/cache/mindi/mondorescue.iso $mymondoroot/images/$mylogprefix-mondoboot.iso
     848echo -e "\n Mondo ended - exitcode $lretcode \n" | xmessage -center -timeout 0 -buttons OK:0 -default OK -file - &
     849}}}