#3274 Issue open: REQUEST_RESTORE should signal when it is ready to¶
Labels: enhancement, sponsored
schlomo opened issue at 2024-07-11 13:18:¶
The REQUESTRESTORE backup method already supports non-interactive
usage via setting both the REQUESTRESTORE_FINISHED_FILE and also the
REQUESTRESTORE_ABORT_FILE variables.
This facilitates externally managed restore to happen "behinde the
scenes" when rear recover is run.
However, there is currently no easy way to know that the recovery process is ready for the actual restore to happen.
I suggest adding two new variables to facilitate this:
REQUESTRESTORE_READY_FILEpointing to a file that ReaR creates to indicate that the restore process can start.REQUESTRESTORE_READY_COMMANDto contain a list of commands that are run viaevalto signal that the restore process can start.
Things to fix with this work:
- expand comments in
default.confto explain that both the finished and abort files must be set for this feature to work
gdha commented at 2024-07-15 08:47:¶
@schlomo Please rename the variables to names which come closer to what is meant.
schlomo commented at 2024-07-15 09:49:¶
@gdha do you mean something like ˋREQUESTRESTORE_READY_TO_RESTORE_FILEˋ and ˋREQUESTRESTORE_READY_TO_RESTORE_COMMANDˋ?
[Export of Github issue for rear/rear.]