# Moving from old ipfs server to new

**URL:** <https://discuss.ipfs.tech/t/moving-from-old-ipfs-server-to-new/4443>\
**Category:** Help\
**Created:** [December 11, 2018, 6:37pm UTC](https://discuss.ipfs.tech/t/moving-from-old-ipfs-server-to-new/4443 "2018-12-11T18:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehsanhajian](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@ehsanhajian](https://discuss.ipfs.tech/u/ehsanhajian)\
**Post date:** [December 11, 2018, 6:37pm UTC](https://discuss.ipfs.tech/t/moving-from-old-ipfs-server-to-new/4443/1 "2018-12-11T18:37:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![postables](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/postables/32/2729_2.png) [@postables](https://discuss.ipfs.tech/u/postables)\
**Post date:** [December 11, 2018, 8:41pm UTC](https://discuss.ipfs.tech/t/moving-from-old-ipfs-server-to-new/4443/2 "2018-12-11T20:41:12Z")

</div>

the easiest way (on old server):

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

```

---

<div class="post-metadata">

**Author:** ![ehsanhajian](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@ehsanhajian](https://discuss.ipfs.tech/u/ehsanhajian)\
**Post date:** [December 12, 2018, 5:54am UTC](https://discuss.ipfs.tech/t/moving-from-old-ipfs-server-to-new/4443/3 "2018-12-12T05:54:35Z")

</div>

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?
