i mean it's effectively just cloning, which doesn't transfer any memories made after the last scan, since it.. isn't magic..
i think dark matter is the closest i've seen to a show that actually acknowledges that this is how that kind of tech would work, and it's a damn shame it was cancelled..
i imagine that in the trek universe the tech would be extremely regulated, probably only allowed to be used in situations where people are very likely to die and thus circumventing the death entirely. Now, with away missions that becomes more difficult as you can't strictly know when someone's actually dead, and i'd imagine the federation would look very dimly upon having two copies of people walking around..