Delta Upgrade

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search

The following page describe how to retreive an archive containing only changed files between two Dolibarr versions using the Git repository.

For the example, we take an upgrade from 11.0.1 to 11.0.2 but you can change the versions to suit your needs.


  • First, start by cloning the Dolibarr repository locally on your machine
git clone https://github.com/Dolibarr/dolibarr.git

A new directory named dolibarr containing the Dolibarr source code from all branches will be located on your current path.


  • Switch to the cloned repository
cd dolibarr


  • Create a local branch with the code from the latest released tag
git checkout tags/11.0.2 -b 11.0.2


  • Create an archive of the changed files between 11.0.1 and 11.0.2
git archive --output=dolibarr-delta-11.0.2.zip HEAD $(git diff --name-only tags/11.0.1 tags/11.0.2 --diff-filter=ACMRTUXB)

Your archive will be created inside the current dolibarr directory with the name dolibarr-delta-11.0.2.zip.