New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retain log file at a safe place during recovery #21
Comments
+1 Maybe we should think about renaming the log files as well. I find it very confusing that both the original log file and the recovery log file have similar names. Maybe we should think about have a rear-(hostname).log and a rear-recover-(hostname).log ? We could have workflows set the prefered log file name (if the default is not ok). Also the location of the logfile could maybe be harmonized as well, I am still not very fond of using /tmp for this purpose. But having both logfiles in the same location seems useful. |
I see also the following options/aspects:
|
Ok, let's summarize what we would like to do:
|
will implement this in v1.17 |
post-pone this to rear-1.18 |
I will implement it. I think /mnt/local/root/ is o.k. but probably not really See also #706 I think only the plain log file is not fully sufficient. In the end what I like to keep is all what is needed In particular for professional support This is another reason why I would like to keep |
As a first step I implemented #706 But for this issue here I need a bit more time to think about how to do it. Because currently it is copied as an exit task I wonder if this is not yet sufficiently fail-safe - at least for normal error exits. I assume the exit tasks are called for any exit (i.e. also when there is builtin trap "DoExitTasks" 0 and "help trap" trap: trap [-lp] [arg signal_spec ...] ... If a SIGNAL_SPEC is EXIT (0) the command ARG is executed on exit from the shell. ... |
Was on Sourceforge as SF#3448325
Currently when "rear recover" runs successfully its log file /tmp/rear-.log in the ReaR recovery system is copied into /root/ on the recovered system.
But when "rear recover" fails, its log file is not saved to a save plave so that it is lost when the ReaR recovery system is finished.
For "BACKUP=NETFS" the "rear recover" log file should be saved in any case to the NETFS_URL to have it automatically at the same save place where the backup.tar.gz and the "rear mkbackup" log file and the ISO image already are.
To make sure a "rear recover" log file exists at the save place in any case even if "rear recover" breaks at a random stage,
it is perhaps best to write the "rear recover" log directly into a file at the save place as soon as this is possible (instead of copying it just before "rear recover" finishes).
The text was updated successfully, but these errors were encountered: