Russia is set to extend a ban on most diesel exports beyond the end of September as Ukraine continues to attack its refineries, according to people familiar with the matter.