Skip to content

dHub CLI tool for facilitating migrations from dDrive Daemon.

License

Notifications You must be signed in to change notification settings

dwebprotocol/dhub-migration-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dhub/migration-tool

A tool for migrating from the dDrive Daemon to dHub.

This tool does a few things:

  1. It moves all your stored dDatabases from ~/.ddrives/storage/vaults to ~/.dhub/storage.
  2. It copies all network configurations (the vaults you're seeding) from the daemon's Level instance (at ~/.dhub/storage/db) into dHub's config trie.
  3. It copies your FUSE root drive key into a separate config file that will be loaded by @dhub/ddrive.

Installation

npm i @dhub/migration-tool -g

Usage

This migration tool is currently bundled with dHub -- it's run by default when dHub is first started, so you shouldn't have to run this manually. After a few months or so, we'll be removing it.

If you'd like to do the migration manually anyway, you can install this module globally (npm i @dhub/migration-tool -g) and use the included bin.js CLI tool.

As a module

The tool exports two functions, migrate and isMigrated. await migrate() will perform the migration.

From the CLI

./bin.js will perform the migration. It assumes that your dDrive daemon storage is stored in ~/.ddrive and that your dHub storage directory is going to be ~/.dhub.

License

MIT

About

dHub CLI tool for facilitating migrations from dDrive Daemon.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%