Bacterial photosynthesis does not produce oxygen. This kind of photosynthesis is referred to as Anoxygenic photosynthesis.
Water isn't utilized as a source of reducing power.
Instead, hydrogen can be obtained from a variety of inorganic and organic compounds, such as H2S and aliphatic compounds, or it can be obtained directly.
Rhodospirillum is characterized by anoxygenic photosynthesis. It is a bacteria that photosynthesize without oxygen.