Migrate Existing Node with Windows 10 Powershell

Yes, you can. But not in Powershell, in the Ubuntu shell of WSL.

  1. Enable WSL
  2. Install Ubuntu from the Microsoft Store
  3. Install/Enable SSH server on the new server (Windows can have a SSH service too)
  4. Use the same commands from the Ubuntu shell

For Cmd/Powershell there is another option:

  1. copy identity to a new server
robocopy /MIR "$env:AppData\Storj\Identity\storagenode" \\server2\storj\identity
  1. run robocopy while the node running
robocopy /MIR y:\storj\storage \\server2\storj\storage
  1. Run it a few more times.
  2. When the difference is negligibly - stop and disable the storagenode service (or stop and remove the container in case of docker)
  3. Run robocopy /MIR one more time
  4. Start the node on the new server
  5. Uninstall the storagenode on the old server (in case of Windows GUI)
5 Likes