A trick I learnt at my last job was to document the exact steps when installing software on a server. When the server needs re-installing, there is a correct method of rebuilding it in the same way.
The build machine's hard drive has failed twice in the last month or so, and I'm very glad I put the rebuild instructions on the wiki. It's saved loads of time.