Libya's oil guard brigades, which control Ras Lanuf and Es Sider, two major export terminals closed since 2014, are working with the unity government's state oil company, NOC, and preparing to reopen fields to pump crude again, a spokesman said on July 8.

The spokesman for Ibrahim Jathran's Petroleum Facilities Guards (PFG) forces did not give any details whether that would include reopening the two ports soon. Starting shipments there would restore a potential 600,000 barrels per day (Mbbl/d) of crude export capacity.

The PFG position followed an announcement by the National Oil Corp., or NOC, that it would merge with a rival company, one set up by a competing government established in eastern Libya.

Militant attacks, fighting between rival factions and a conflict between two rival governments have kept Libya's oil production at about 350 Mbbl/d, or less than one-quarter of its output before the 2011 uprising that ousted longtime ruler Muammar Gaddafi and began years of instability.

"The commander of Petroleum Facilities Guards (PFG), Ibrahim Jathran, has announced that oil will be pumped soon and oil fields of the oil crescent [region] will be also prepared to resume work," PFG spokesman Ali Hassi said.

"Jathran said that we, the PFG of central region, will work with the NOC that belongs to the presidential council of the government of national accord."

But political infighting, more potential militant attacks and technical problems and damage to long-closed pipelines, fields and ports mean that recovering lost production could be a fragile, long-term process.

In a Reuters Oil Forum on July 8, analysts said the NOC unification would be beneficial, but oil recovery in Libya could be undermined by the fragility of Prime Minister Fayaz Seraj's government, long-term technical damage and the array of armed groups controlling oil fields, sometimes doing so over local grievances.

The NOC is working with the U.N.-backed government of national accord, led by Seraj and trying to bring together rival factions whose armed backers have fought for control and oil resources since 2014.

The NOC announced this week that it would merge with an energy company set up in the east by Libya's eastern government, a move seen by analysts as a step towards restoring order to the industry at least in legal and commercial terms.

The NOC in Tripoli, recognized by the international community, and the eastern NOC had operated in parallel as the rival governments struggled for control. The U.N.-backed government now in Tripoli is meant to supersede those administrations, but hardliners on both sides are holding out.

The NOC has an ambitious plan to bring Libya's oil production back to pre-revolution levels. But damage to oil pipelines left closed for months, and to ports that have seen fighting, could take years to fully repair.

Islamic State militants who are fighting in the western city of Sirte have also targeted the oil infrastructure in the past. Even if they are driven out of their stronghold in Sirte by pro-government forces, the risk of attacks will not vanish.