ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.16k stars 3.01k forks source link

ipfs get: seed/pin file so other can get it #4084

Closed alphaCTzo7G closed 1 year ago

alphaCTzo7G commented 7 years ago

Version information: 0.4.10

Type: Enhancement

Severity:

Description:

BTorrent typically get a file and automatically starts seeding the file. However, "ipfs get" doesnt have this sort of behavior.

IPFS seems similar to a two-sided market place and needs some kind of viral growth mechanism. Should this be the default behavior? "IPFS get" seems to be the simplest command to obtain files.

Stebalien commented 7 years ago

You have to run it as a daemon to get that behavior. By default, ipfs get starts up, downloads the file, and then shuts down. If you run it as a daemon in the background, it will continue serving the file (until it gets garbage collected).

whyrusleeping commented 7 years ago

I think this question has been answered, closing now. Please reopen if further clarification is needed.

mitar commented 6 years ago

Hm, should get have a --pin flag (maybe even on by default) so that it prevent garbage collection?

Stebalien commented 6 years ago

@mitar possibly although I wouldn't make it on by default as get is usually used when you want to move something from the network to your local disk (only incidentally caching it in ipfs). If you want something to stay in ipfs, I'd run ipfs pin add ... && ipfs get ....

Jorropo commented 1 year ago

ipfs get now refuse to download from internet if blocks are missing from the local datastore. If you run a daemon it does O(-1) reseeding.