Clone a whole drive via live session

I want to move to Ubuntu for gaming also which means installing it on my gaming rig. In case things don’t work out I want to be able to write a cloned image from an external HDD back to the SSD to start where I left. Is there a software for this?