Check out
Moving_ZCS_to_New_Server
There are instructions for the Network Edition (preforming backup/restore) and for the Open Source edition. You can upgrade it to new hardware/operation system, but be sure to do one upgrade at a time (OS first, and then ZCS later).