Answered by Sayyidi Habib Umar bin Hafiz (may Allah protect him and benefit us by him).
Can you recommend books containing the biographies of the masters of the Ba Alawi?
You can read al-Mashra` al-Rawī, Ghurar al-Bahā’ al-Ḍawī and Sharḥ al-`Ayniyyah. These are some of the books that contain biographies of many of the Imams of the Ba Alawi path that have been published. These books and similar books (some of which have not yet been published) may be read.
Studying history in general and the accounts of the pious specifically teaches you many lessons and has the effect of rectifying the heart and filling it with love for and attachment to the friends of Allah and a loathing for those whom He loathes. All of this brings one closer to Allah.