Moving to a new server



  • Is it possible to move everything to a new server and start that up without losing and contracts, collaterals etc?


  • admins

    Yes. Everything that Sia uses is in the Sia folder, with one exception. If you are a host, then Sia will also need the data in whatever storage folders you have added to the host.

    Before copying any files, make sure that you turn off Sia. Then you can copy the whole Sia directory (including folders for consensus, gateway, host, etc.) to the new machine. The one tricky thing is that your host directories will need to be in the same location on the new computer. So if they were previously at /storage/folder1, they will need to be in /storage/folder1 on the new machine as well.

    Don't delete the files until you've confirmed that the transfer has been successful, and that the host/wallet/renter/etc are all reporting the same values/files/etc. You should let us know if you run into problems.



  • Fine, I will try that. I can see that as long as I can create the folders correctly on the new server I can move them to new drives if needed using the command

    siac host folder add [newfolder] [size]
    siac host folder remove [oldfolder]

    as the code states

    Remove a storage folder from the host. Note that this does not delete any data; it will instead be distributed across the remaining storage folders 
    

    and I then expect to be able just to delete the folder, when it is empty


  • admins

    Correct, once you've got the host recognizing the old folders, you can create new folders and remove the old ones, the host will do the copying automatically, meaning you get to keep all the data.


Log in to reply