The data in Confluence Cloud consists of two parts, the (1) macros in the pages that point to the (2) attachments on the pages that contain the diagram data (no data is held externally).

Both the macros and attachments will port as part of a standard Cloud->Server migration, no additional steps are necessary. Remember to install on the Confluence Server, though.