Sync (one-way) time entries from one Harvest to another. Only one project will be sync, and all entries will be created using the same task. If an entry has already been synced, it will be updated with the new time.
Only the last 30 days will be synced.
-
Generate a personal access token for the source account and one for the target account.
-
Create a
config.js
based on the provided sample, and update thesourceAccountId
andsourceToken
based on the source account. ThesourceProjectId
should be the Harvest project to sync. -
Update the
targetAccountId
and thetargetToken
based on the target account. ThetargetProjectId
andtargetTaskId
should be the Harvest project and task the created time entries should use. -
Run
yarn start
to sync the last 30 days.