You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: run.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,12 @@
1
1
# Running Repo Migrations
2
2
3
-
How to run [fs-repo](https://github.com/ipfs/specs/tree/master/repo/fs-repo) migrations for [ipfs](https://github.com/ipfs/ipfs).
3
+
This document explains how to run [fs-repo](https://github.com/ipfs/specs/tree/master/repo/fs-repo) migrations for [ipfs](https://github.com/ipfs/ipfs).
4
4
5
-
We have changed the internal, on-disk format we use to store data. In order to avoid losing your data, we're taking extra care to provide a stable migration tool that upgrades old versions of the repo to the new ones. You'll need to run the migration if you find an error like this:
5
+
Note that running migrations is a task automatically performed by the `ipfs` when starting the `ipfs` daemon after an upgrade or running the `ipfs-update`tool, so you would normally not need to run the `fs-repo-migrations` tool.
6
6
7
-
```
8
-
> ipfs daemon
9
-
Error: ipfs repo found in old '.go-ipfs' location, please run migration tool.
10
-
Please see https://github.com/ipfs/fs-repo-migrations/blob/master/run.md
11
-
```
7
+
The `fs-migrations-tool` comes into play when the internal, on-disk format `ipfs` uses to store data changes. In order to avoid losing data, this tool upgrades old versions of the repo to the new ones.
12
8
13
-
Soon, we hope to run these entirely automatically. But for now, we ask you to run these manually in case something goes wrong. It's very easy. See the quick steps below. If you run into any trouble, please feel free to open an issue in this repository: [issues](https://github.com/ipfs/fs-repo-migrations/issues).
9
+
If you run into any trouble, please feel free to [open an issue in this repository](https://github.com/ipfs/fs-repo-migrations/issues).
14
10
15
11
## Step 0. Back up your repo (optional)
16
12
@@ -31,7 +27,7 @@ cp -r ~/.ipfs ~/.ipfs.bak
31
27
32
28
## Step 2. Run the Migration
33
29
34
-
Now, run the migration tool.
30
+
Now, run the migration tool:
35
31
36
32
```sh
37
33
# if you installed from Go, tool is in your global $PATH
@@ -41,11 +37,10 @@ fs-repo-migrations
41
37
./fs-repo-migrations
42
38
```
43
39
44
-
45
40
## Step 3. Done! Run IPFS.
46
41
47
42
If the migration completed without error, then you're done! Try running the new ipfs:
0 commit comments