Keeping Jenkins LTS on Mac

Hello i would like to host a jenkins server on a mac device and i am concerned about keeping it up 2 date with security fixes and upgrading strategy.

So to install jenkins on a mac you need to install it via hombrew. When upgrading I know that its good to keep a backup of the homefolder. But how should i upgrade ?

  1. Should i upgrade it via homebrew, the Jenkins UI, or manually? (what exactly happens when clicking upgrade in the UI?)
  2. What happens when the new version breaks, is restoring the home folder enough or do i need to fiddle with the .war or jenkins binaries too?

Would be glad if someone can give me a few pointers atleast

Most likely the best approach would be to upgrade via the Jenkins UI. This will upgrade the jenkins.war file to the new version (you can also upgrade and install plugins via the Jenkins UI). If the new version breaks, the update of the war file generally will leave the most recent version’s war file in JENKINS_HOME as a backup so you can revert if needed.