wildfly-extras / prospero

Prospero is a tool combining Galleon feature packs and wildfly-channels to provision and update Wildfly server.
Apache License 2.0
9 stars 24 forks source link

Rollback changes in case of unsucessful apply stage #708

Open spyrkob opened 1 week ago

spyrkob commented 1 week ago

Before applying changes to a server, backup the state of the server in a <SERVER_HOME>.update.old folder. The backup is done using hardlinks if the file system allows it to save disk space.

If the update fails due to IOException, we try and restore the server state. If the update is interrupted, either by the user or a program crash, the original state will be available for the user to perform manual restore.