Checks to see if an upgrade to the HashBackup executable is available and optionally installs the new version.
$ hb upgrade [-n] [--force]
With no options, the upgrade command will check the upgrade servers to see if a newer version of HashBackup is available and will display the change log. The change log explains changes made since the version you are currently running. Upgrade will then ask if you want to install this new version. If not, it exits. If you do want to install, it downloads the executable from the HashBackup LLC upgrade servers, verifies the file signature to ensure authenticity, and installs the new version, renaming the current executable as hb.bak.
The -n option performs all of these steps, including the download and signature verify, but does not replace the hb executable.
With the --force option, upgrade performs all steps and does not ask for confirmation. This is typically used in a cron job to periodically download and automatically install upgrades.
To ensure the program you are downloading is an authentic version of HashBackup, the download package is signed with a private key during the build process. The upgrade command uses the matching public key to verify the file signature. This process makes it nearly impossible for upgrade to install a corrupt or fake version of hb.