My question is more regarding best practices rather than how to do it.
I am looking to create a wrapping utility for LVM on Linux to automate the creation and management of snapshots. The basis of this idea was originally to backup my Minecraft server without doing full copies of the file structure every single time.
The most direct way to do this is execute the commands right from Java would be using processBuilder. My concern however is the reliability of the execution, especially when dealing with something like filesystem management commands. I am trying to remove any possibility of getting stuck in a limbo condition where Java says it's done but LVM has encountered an error or for that matter vice versa.
Is using the processBuilder class really the "best" way to go about an idea like this?
I would like your two cents on this and how I could create a reliable way to command something like LVM.
Aucun commentaire:
Enregistrer un commentaire