-
Notifications
You must be signed in to change notification settings - Fork 42
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
Added a downgrading guide doc #10
Conversation
@@ -0,0 +1,26 @@ | |||
## Downgrading IPFS versions | |||
|
|||
Downgrading your IPFS version (for instance, from 4.0 to 3.8) is not as complicated as upgrading. You can't use the same repository simultaneously for both versions. Here is how you switch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.4.0
and 0.3.8
4983966
to
4a1938a
Compare
Added a section for using ipfs-update and a TODO; I can write that, but will need help as I'm unfamiliar with ipfs-update. |
Cc @whyrusleeping
|
I would add a bit on what the actions taken in your code actually do, your new daemon won't have any of the same data as before. If you really want to do a downgrade (and not a clean install of an older version) you would have to revert your repo:
|
no guide that we give users should ever do this (unless it makes it absolutely clear with a huge warning). i propose we stick to always getting users to downgrade the migration. we can mention that "you can just get rid of your old repo, or move it to a backup location and init a new node" as a secondary option. |
Oh, there is a |
:) |
Does this work for ifps-3-to-4? |
yeah they should all be the same. though 3-to-4 isnt merged yet |
4a1938a
to
df54848
Compare
I think this is the edit suggested, but I am not sure. I've only ever used the method described in the manual section, because that was what was suggested for me. Thoughts? |
I'll admit the numbering is a tad confusing '2' here refers to ipfs 0.3.*, and '3' refers to ipfs 0.4.0 |
The numbers are independent sequences. The fs-repo versions 2 and 3
|
So, |
i mean, thats why its the 'fs-repo-migrations', but yeah. maybe we could rename slightly |
|
+1 for fs-repo-2-to-3
|
Is that all needs to happen to make that name change a change of the dir_names in this directly from |
|
||
## Manually downgrading IPFS versions | ||
|
||
**You should not have to do this manually. Automatically downgrading is the preferred method.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One *
either too much or too little
df54848
to
3e4079c
Compare
Good catch @dignifiedquire, thanks. |
@whyrusleeping or @jbenet could you take a look at merging this? Thanks! |
|
||
**You should not have to do this manually. Automatically downgrading is the preferred method.** | ||
|
||
Manually downgrading your IPFS version (for instance, from `0.4.0` to `0.3.8`) is not as complicated as upgrading. You can't use the same repository simultaneously for both versions. Here is how you switch. Note that this is actually a clean install, and that your daemon won't have the same data as before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is not downgrading, this is "installing a different version from scratch."
Downgrading the version of a repo MUST ALWAYS preserve all user data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we make that clear? But I've pushed a slightly different version making this blatant.
3e4079c
to
c8b49f9
Compare
Ping! |
This should be updated, the instructions it gives are incorrect, it is possible to downgrade safely without losing data using the |
@whyrusleeping I am confused. It looks like it says that, to me. That's the first section. |
@whyrusleeping What do you need from me, here? |
```sh | ||
cd $GOPATH/src/github.com/ipfs/go-ipfs | ||
git checkout master # (or the version you want) | ||
go install ./cmd/ipfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be make install
now
@lgierth Fixed! |
cd $GOPATH/src/github.com/ipfs/go-ipfs | ||
git checkout master # (or the version you want) | ||
go install ./cmd/ipfs | ||
make install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I meant only that go install
is make install
now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed again.
e5e4139
to
0fe21f4
Compare
This is a bit old, and this repo is probably not the place to document a general downgrade process now we have dedicated websites. |
Sounds good. Thanks, @hsanjuan. |
Thought this might be useful: I had to ask @diasdavid how to do this.