The Ukrainian company said the new contract keeps the same "basic principles of cooperation".
It said the companies also signed off on an agreement to update a number of conditions, saying this "guarantees the safe and steady functioning of Ukraine's oil transportation system for the long term.
This came after an incident of serious contamination of Russia's major Druzhba, or Friendship, pipeline, which supplies several European countries.
The incident triggered a rare cutoff of transit across Europe from April 25 to May 11 and then again in May.
Russia and Ukraine's transit deal was to run out at the end of the year amid long-running acrimony between the countries.