#1797 PR merged: Do not print each files restores by TSM in main output

Labels: enhancement, fixed / solved / done

schabrolles opened issue at 2018-05-07 12:47:

Relax-and-Recover (ReaR) Pull Request Template

Please fill in the following items before submitting a new pull request:

Pull Request Details:
  • Type: Enhancement

  • Impact: Low

  • Reference to related issue (URL):

  • How was this pull request tested?

  • SLES12SP2 on POWER with TSM
  • Brief description of the changes in this pull request:

By default, TSM logs every file restored in the main output.
This produces a huge and difficult to read ReaR logfile.
The purpose of this PR is to

  • improve ReaR output readability
  • redirect TSM output to an external log file

jsmeix commented at 2018-05-08 08:17:

Right now I noticed that the backup restore log file is not copied
into the recreated system into /var/log/rear/recover/
cf. usr/share/rear/wrapup/default/990_copy_logfile.sh
which copies all in $VAR_DIR/layout/ and $VAR_DIR/recovery/
but things in $TMP_DIR are intentionally not copied.

Perhaps it is better when in general a backup restore log file
is in $VAR_DIR/recovery/ (and not in $TMP_DIR) to get
the backup restore log file automatically copied into the
recreated system?

jsmeix commented at 2018-05-08 08:20:

Now I noticed that a backup restore log file
is in $VAR_DIR/recovery/ would not be copied
for the 'restoreonly' workflow so that I need to think
a bit more carefully how to get the backup restore log file
properly copied into the recreated system...

schabrolles commented at 2018-05-08 08:34:

@jsmeix,
I also think about that (copy the restore log file in the recreated system) and arrives at the same conclusion => not as easy.... If you have a good idea, please tell me.

jsmeix commented at 2018-05-08 08:57:

@schabrolles
just merge this one with TSM-restore.log (instead of TSM_restore.log)
and later - as time permits - I will do a separated pull request to also
get backup restore log files properly copied into the recreated system.

jsmeix commented at 2018-05-08 11:55:

FYI:
We have
usr/share/rear/restore/RSYNC/default/800_copy_restore_log.sh
but it copies to the old place /root (I will clean it up).


[Export of Github issue for rear/rear.]