Can do it with a ghost image.
Create an image of your machine and store it on an external drive/bootable USB pen drive
Put identical HDD in your machine and put the image onto this
remove backup and put in original.
If original crashes/dies then replace with the spare.
Works a treat