This document explains how to run fs-repo migrations for Kubo IPFS implementation.
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.
The fs-repo-migrations
tool comes into play when there is a change in the internal on-disk format ipfs
uses to store data. In order to avoid losing data, this tool upgrades old versions of the repo to the new ones.
If you run into any trouble, please feel free to open an issue in this repository.
The migration tool is safe -- it should not delete any data. If you have important data stored only in your ipfs node, and want to be extra safe, you can back up the whole repo with:
cp -r ~/.ipfs ~/.ipfs.bak
- If you have Go installed:
go get -u github.com/ipfs/fs-repo-migrations
- Otherwise, download a prebuilt binary from the distributions page
Now, run the migration tool:
# if you installed from Go, the tool is in your global $PATH
fs-repo-migrations
# otherwise, unzip the package, cd into it and run the binary:
./fs-repo-migrations
If the migration completed without error, then you're done! Try running Kubo:
ipfs daemon