eth-cscs / manta

Another CLI for Alps
https://eth-cscs.github.io/manta/
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Add hooks to the migrate options #16

Closed miguelgila closed 7 months ago

miguelgila commented 7 months ago

This PR makes manta capable of running scripts before and after each migrate restore or migrate backup operations. These optional scripts run in the same host where manta is running and with the same permissions of the user launching them, and can be used to inject additional operations in the workflow. For instance, one could consider the following workflow:

Clearly all of this could be done by running scripts before and after of calling the manta binary, but I think integrating it in the operations themselves improves the process and makes it more robust.