Re: Amrecover hangs after restore
"Stefan G. Weichinger" <[email protected]>
| Newsgroups | gmane.comp.archivers.amanda.user |
|---|---|
| Message-ID | <[email protected]> |
Am 14.12.20 um 22:13 schrieb Nathan Stratton Treadway: >>> So, what's on line 135 of the bak-indices-configs script? >>> >> That is a very long if else fi thing, wordwrap off: >> ------------------------------------------- >> if [ $PARTS_WRITTEN -gt 0 ]; then >> if [ $DUMMY -eq 1 ] ; then > > Seems like the only occurrence of "-gt" is in the $PARTS_WRITTEN line. > > The output you quoted in your earlier email mentions > Parts written = >> dd.report.Dailys-17 > . Does that mean that the PARTS_WRITTEN variable actaully contained the value > ">> dd.report.Dailys-17"? That would definitely not parse out well in > the if condition... > > If add quotes around the variable (i.e. you change that line to > if [ "$PARTS_WRITTEN" -gt 0 ]; then > ), I think that would prevent the script from erroring out at that > spot (and is generally a good idea). A general sidenote here: for years already I think of creating some "amanda-helpers" repository to collect, share and develop such scripts and tools. I even started that, I nearly forgot: https://github.com/stefangweichinger/amanda-helpers ;-) not much content so far. In other projects the project team of the code helps to host such stuff ... Just an idea or suggestion. It would make it easier to contribute and improve.