Getting code from at mega chip

Yeah - dump the hex file with avrdude over serial (if it's got a bootloader), or via ISP programmer.

For "xeroxing" chips, I normally reach for USBAsp and eXtremeBurner AVR - plug in old chip, "read all", plug in new chip, "write all", done.