Install Specific Commit

Status
Not open for further replies.

PBXMePlz

Member
Mar 1, 2019
102
10
18
31
So currently from what I've seen in order to do a restore, the recommendation is the source be updated to the latest, a backup be taken (rsync or tar specific directories), a new install be made, and a restore initiated.

The dilemma is this destroys one part of the value in historical backups, as historical backups will be older versions of the source environment. As a result, I would like to test backing up the source environment as is, along with getting the Commit value stored in System Status, and in the restore environment insure that specific commit is installed.

I've seen that it is possible to browse to specific commits via https://github.com/fusionpbx/fusionpbx/commit/<commit hash>; what would be the quickest way from point A to point B with regards to downloading this commit, and installing it.
I've been reading through the install.sh (https://github.com/fusionpbx/fusionpbx-install.sh/blob/master/debian/resources/fusionpbx.sh). There seems to be the ability to change branches, but I would love to get as granular as specific commits if possible.
Am I realistically going to have to write my own install script? At the size and effort put into the current install.sh I don't know if that's realistically feasible, but I'm not currently seeing an intuitive way to install a specific commit. Even pulling an old version of the install.sh is likely just going to pull and install master.

Thanks!
 
Status
Not open for further replies.