-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: time limit (timeout) for pinned files and directories #1718
Comments
Could you add that to this notes issue instead? ipfs/notes#49 Just trying to not spread the same discussions over N issues ;) |
Copied the suggestion to a comment in that issue. This issue can now be closed. |
…until someone decides to reopen and actually implement it. |
On the other hand, that was not a good idea. No one is going to answer a feature request if it looks closed. Reopening. |
I'm messing around with creating some software that helps manage a fleet of IPFS nodes. Shipped with the software is some YAML that has a bunch of suggested IPFS multihashes to pin. Static websites with useful information, funny pictures, interesting audio clips, and unique video. There's a chance that some of the multihashes no longer exist on the network, so the command I have a concern about terminology here. To me, the flag EDIT I just found out that there is already a |
For the record, every ipfs command respects a |
😲 Okay, then let the final name for the feature that I've proposed be somewhat different ( |
|
related: ipfs/notes#49 |
I would love to see such a function, as I would have a use case for it: Adding files from a local cache to ipfs. A timeout would make it possible to have them unpin after a while after they have disappeared from the local cache. Otherwise they would be "refresh" every now and then. |
Two additions are suggested:
--timeout=...
for the commandipfs pin add
(for example,ipfs pin add -r someDir --timeout=3y5mo2w8d13h23mi05s
sets the timeout that consists of 3 years, 5 months, 2 weeks, 8 days, 13 hours, 23 minutes and five seconds);ipfs pin purge
) that acts likeipfs pin rm
for items with expired timeouts.Pros:
ipfs pin add -r oldContent --timeout=1w
and then addingipfs pin purge
to its crontab) after deletion; that site wound also need to change (immediately) all internal hyperlinks to IPFS URLs where they were previously leading to that deleted content. Such action would allow some interested readers to hold copies in their local IPFS instances. The site then purges the content and gets the necessary storage space available on host, but that old content continues to be available in IPFS.Cons:
Stretch goals:
The text was updated successfully, but these errors were encountered: