Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

[ARCHIVED, no longer maintained] legacy (go-ipfs v0.8.0) command-line tool for converting datastores (e.g. from FlatFS to Badger).

License

Notifications You must be signed in to change notification settings

ipfs-inactive/ipfs-ds-convert

Repository files navigation

Warning

⚠️ ipfs-ds-convert is no longer maintained

This tool was not updated since 2021 and go-ipfs v0.8.0 and repo version 11. Badgerv1 is considered unstable and is deprecated.

Modern Kubo supports various datastores via plugin system, and instead of conversion tool like this, users are advised to create a new repository.

ipfs-ds-convert

Coverage Status Travis CI

Datastore converter for go-ipfs

This tool is WIP and may damage your data. Make sure to make a backup first.

TODO:

  • Finish basic conversion code
  • package.json for gx
  • Tests
  • Review
  • Standard readme
  • Revert on error / from backup
  • Cleanup backup subcommand
  • Optimize some standard cases
    • Don't copy directories when not needed
    • Detect renames
      • Not that common
  • Report progress
  • Don't depend on go-ipfs

Install

Build From Source

These instructions assume that go has been installed as described here.

$ GO111MODULE=on go get github.com/ipfs/ipfs-ds-convert@latest

Usage

Convert to Badger Datastore

Apply the Badger Datastore profile:

ipfs config profile apply badgerds

Then, start the conversion using

$ ipfs-ds-convert convert

This can take a very long time to complete depending on the size of the datastore. If running this on a headless server it's recommended to use something like screen or tmux to run this command in a persistent shell.

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Łukasz Magiera

About

[ARCHIVED, no longer maintained] legacy (go-ipfs v0.8.0) command-line tool for converting datastores (e.g. from FlatFS to Badger).

Resources

License

Stars

Watchers

Forks