A tool for migrating from the legacy siad host to hostd.
hostd
is an advanced Sia host solution created by the Sia Foundation, designed
to enhance the experience for storage providers within the Sia network. Tailored
for both individual and large-scale storage providers, hostd
boasts a
user-friendly interface and a robust API, empowering providers to efficiently
manage their storage resources and revenue. hostd
incorporates an embedded
web-UI, simplifying deployment and enabling remote management capabilities,
ensuring a smooth user experience across a diverse range of devices.
- A project roadmap is available on GitHub
The utility is intended to be interactive. It will prompt for the location of the legacy siad host database and convert it to the new format.
You will need to generate a new 12-word wallet seed and send your funds from Sia-UI/siad to your new wallet address.
Note: If you are migrating using Windows, make sure to run the migration tool using a
Command Prompt
and not by double-clicking it.
- Download the latest release of
hostd
(https://sia.tech/host) - Extract the files and open terminal or command prompt in the directory
- Run
hostd seed
to generate a new wallet seed. It will generate a new 12-word seed and print the wallet address. Write down all 12 words and double check it. You will need it to recover your funds. - Send your funds from your old siad wallet to your new wallet.
- Find your data directory
Operating System | Data Directory |
---|---|
Windows | %APPDATA%\Sia-UI |
macOS | ~/Library/Application Support/Sia-UI |
Linux | ~/.config/Sia-UI |
- Stop Sia-UI or Host Manager
- Download the latest release of the migration utility (https://github.com/SiaFoundation/migrate-siad-host/releases)
- Run the migration tool, answering any prompts
- Wait for the migration to complete
- Find your data directory
- Stop siad
- Download the latest release of the migration utility (https://github.com/SiaFoundation/migrate-siad-host/releases)
- Run the migration tool, answering any prompts
Setup hostd
, making sure to start it in your existing data directory (https://docs.sia.tech/hosting/setup-guides)
migrate
uses SQLite for its persistence. A gcc toolchain is required to build
the migration utility
go generate ./...
CGO_ENABLED=1 go build -o bin/ -tags='netgo timetzdata' -trimpath -a -ldflags '-s -w' ./cmd/migrate