Skip to content
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

Only pin the latest repository tree #5

Open
fazo96 opened this issue Mar 23, 2018 · 4 comments
Open

Only pin the latest repository tree #5

fazo96 opened this issue Mar 23, 2018 · 4 comments

Comments

@fazo96
Copy link

fazo96 commented Mar 23, 2018

Hello, very nice project! I have a VPS with enough free resources to run this so here it is! I am updating it once a day.

https://ipfs.trippy.pizza/ipns/QmS7Xi8HJc9J8tWBErgDra1efVhr5E73yVyUP5giE8Yayy

I noticed that the IPFS add command does not use --pin=false so the whole thing gets pinned. This makes sense, but when you update it you will pin the new versions of packages without unpinning the old ones.

There is a command ipfs pin update <from> <to> that we can use to update the pin: old versions of packages will get unpinned and will be deleted when running ipfs repo gc.

Without this, the size of it will just grow indefinitely. I might try this on my machine, what do you think?

@victorb
Copy link
Owner

victorb commented Mar 29, 2018

Ah, ipfs pin update $oldRoot $newRoot seems a lot better. Try it out and let me know how it works. Currently I'm just keeping all old packages as well, doesn't seem to take too much space. The mirror itself is 71G while the IPFS repository is 54G, and I have not run any GC so far, so doesn't seem too bad at the moment.

@victorb
Copy link
Owner

victorb commented Mar 29, 2018

Unrelated, but are you still mirroring once per day? Guessing you're also using it for updating your system, how has it been working so far? Any problems?

@fazo96
Copy link
Author

fazo96 commented Mar 29, 2018

I actually forgot to use it from my machines... I'll turn it on now

However I use it when updating the server that's hosting the mirror, it works great. I set up my systemd timer to run once per day and it has never failed

I'll try the pin update and I'll send a PR if it works

@NiKiZe
Copy link

NiKiZe commented Aug 5, 2018

I've implemented ipfs pin update logic in NiKiZe#2
Having some issues with the repo to test this properly, but hopefully it is easy to reuse and test for Arch as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants