How to backup and restore the wallet?



  • still doesnt explain it not listing my contracts and such either....unless that is also all in the blockchain ?



  • im going to copy over the contents of the gateway folder and see if that helps with the blockchain sync


  • Global Moderator

    @tomahawkeer said:

    still doesnt explain it not listing my contracts and such either....unless that is also all in the blockchain ?

    Your own contracts for uploaded files reside in the /renter folder. Hosted files reside in /host. You need to copy these folders as well into your new location. You probably should do this on a "clean slate", i.e. before the new siad starts for the very first time.



  • figures I just finished copying over the 40 gigs . Ohh well ill start it over again from scratch. for future reference, what is the gateway folder for ?



  • Don't take my word for it. Just what I would do.



  • So I guess the next question is, where is the block chain files stored? Can they be backed up / restored when updating / upgrading so you don't have to wait for hours to resync?



  • The block chain files are stored in <sia folder>/resources/app/Sia/consensus folder, and it worked for me when I restored to another pc.


  • Global Moderator

    @tomahawkeer said:

    So I guess the next question is, where is the block chain files stored? Can they be backed up / restored when updating / upgrading so you don't have to wait for hours to resync?

    @mg answered the first question. For the second, it depends. Some upgrades in the past have required that you re-sync, some not. It depends which changes are introduced in the new Sia versions, whether they break the consensus file somehow or not. If you are not upgrading, however, and merely moving your Sia installation from one location to another, then simply copying over the /consensus folder works just fine.



  • Got it all copied worked like a charm



  • Good to hear! If you don't mind adding a few notes what upgrade method definitely didn't work, and which one did, that might be useful as a future reference for others.



  • Just copying over the json file wasn't enough. My problem was that I started the client before copying the blockchain and hosted data back over. Actually it was copying while I started the new client the first time.

    I would recommend making sure you copy EVERYTHING first. Json file, blockchain, and hosted stuff prior to ever starting the new client.,




Log in to reply