rollback
public void rollback(Path muleDistroLocation,
CommandOptions commandOptions)
throws IOException
Rolls back a Mule Runtime distribution upgrade from a backup if any exists. Copies back all the files stored in the backup to
their original location, leaving the Mule distribution in the same state as when the backup was created. The files are taken
out of the backup folder according to the upgrade configuration, in a sort of cherry-picked fashion rather than a bulk dump
copy of everything under the backup location.
- Specified by:
rollback in interface RollbackService
- Parameters:
muleDistroLocation - path to the Mule distribution to be roll-back.
commandOptions - configuration options for the rollback process.
- Throws:
IOException - if an I/O error occurs.
IllegalStateException - if there's no backup for the rollback of the given Mule distro.