Your backup software can do this depending on what you are using.
If you want a more manual method (Windows server presumed):
(NOTE: you must use the same drive letter and directory structure on the new server to make this work)
Copy all the directories to the new location. (using backup software is recommended to save\restore to the new location as it will maintain security settings)
Open the registry editor on the old server and look for the following key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer
Click on the Shares folder and export it (from the Registry or File menu)
Copy the exported file to the new server and import into the registry.
Stop and restart the Server Service.
All the shares should now appear on the new server.
At this point you will need to modify the accounts to point to the new server