Clone code from ATTINY84

Is it possible to clone code from an ATTINY84 and upload it to another ATTINY84? I dont need to see the code, only replicate it to another chip.

Thanks.

Depends whether the “master” device has its lock bits set or not.
If not, you can read it out.
Easiest way is probably using Atmel Studio and a programmer.
Then using avrdude and its commands.

If the lock bits are set, you’re out of luck without resorting to extreme methods (delid the chip, read the memory directly somehow).

I use eXtremeBurner AVR with USBAsp to "xerox" an AVR chip (ofc, if lockbits are set, this doesn't work )