| 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 | |
| 834 | Apparently not (to date), although it is said that this issue in in the queue.[[BR]] |
| 835 | |
| 836 | However, 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 | {{{ |
| 839 | mymondoroot=<your favourite squirrel hole> |
| 840 | myrundate=`date +%F` |
| 841 | mylogprefix=$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 |
| 843 | lretcode=$? |
| 844 | grep -v -e "^---evalcall---" -e "^---progress-form---" $mymondoroot/$mylogprefix-mondorun.log >$mymondoroot/$mylogprefix-mondorun.txt |
| 845 | kwrite $mymondoroot/$mylogprefix-mondorun.txt 2>/dev/null & |
| 846 | cp -v /var/log/mondoarchive.log $mymondoroot/$mylogprefix-mondoarchive.log |
| 847 | cp -v /var/cache/mindi/mondorescue.iso $mymondoroot/images/$mylogprefix-mondoboot.iso |
| 848 | echo -e "\n Mondo ended - exitcode $lretcode \n" | xmessage -center -timeout 0 -buttons OK:0 -default OK -file - & |
| 849 | }}} |