Spoiler for today's Doctor Who episode feature below, read at your own peril.
Today's Christmas Doctor Who revolved around a technologically advanced civilisation from the far future travelling back in time and downloading people at the point of their death to put in a big database of dead people.
I'm sure I've come across other very similar stories or TV episodes before, but I was wondering what the earliest was. This question mentions Spider Robinson's Time Pressure from the late 80s, but I've definitely never read that so I think there must be others.
There's a wikipedia page listing various stories/films that involve uploading personality/consciousness in general, but doesn't cover the time travel aspect. A quick google turned up page after page of far-out near death experience stuff which wasn't very helplful (apparently you do actually time travel when you die, which is something to look forward to).