Pinning vs. adding content to IPFS

I setup a command line IPFS node on Linux. It is working, I got through the QuickStart guide. I can add content and access it from my own or a public gateway.

The reason I wanted to set this up is mostly to pin content that is already on IPFS but I want to ensure it never disappears in case the original node that added it goes offline.

What is the best method to do that? Do I just add it again? Or is there a command to pin the content already hosted elsewhere on the network?

Both methods work, but pinning is faster to do. Just use ipfs pin add <ipfs-path> (ipfs-path are something like /ipfs/<CID>, /ipns/<CID> or /ipns/dnslink.example.tld)

2 Likes

Thanks, that’s exactly what I was looking for!