migrating to a newer iMac

Do I firstly wipe the hard drive on the newer one completely, migrate info. from the older one and then update the OS once this is done or is there a better way? I will back up the older iMac but are there any other precautions I should take? Not having any OS disks these days made me want to check before taking the plunge.