Synchronize from iPhone to Mac

You can easily take a backup of your iPhone on your new Mac.

enter image description here

To transfer your media to your new iTunes, follow this tutorial in order to do so. If I understand your question correctly, this is what you need.