Moving from old ipfs server to new

Hello. I have up running website which is serving music from ipfs. I want to install new ipfs server and migrate all data (music files) from old server to new. How can I do that?
Thank you in advance

the easiest way (on old server):

ipfs pin ls > file.txt
while IFS= read -r line; do
    ipfs --api=/your/new/node/multi/addr pin add "$line"
done < file.txt

Thanks for your reply. after this migration I want to delete old server. is it possible by your solution?What do I have to do on new server?