Difference between revisions of "Switching to a new data directory"

From Bisq Wiki
Jump to navigation Jump to search
(new article for switching to new data directory (splitting "backup & recovery" article))
 
m
Line 35: Line 35:
 
# Send funds directly from old Bisq instance to new Bisq instance (advanced).
 
# Send funds directly from old Bisq instance to new Bisq instance (advanced).
 
## Start Bisq.  
 
## Start Bisq.  
## Start another instance of Bisq from the command line, specifying a new data directory with the <code>appName</code> option. See [[Data_directory#Default_Locations|how to run Bisq from the command line here]].
+
## Start another instance of Bisq from the command line, specifying a new data directory with the <code>appName</code> option. See [[Data_directory#Run_Bisq_from_command_line|how to run Bisq from the command line here]].
 
##* macOS example command: <code>/Applications/Bisq.app/Contents/MacOS/Bisq --appName=Bisq2</code>
 
##* macOS example command: <code>/Applications/Bisq.app/Contents/MacOS/Bisq --appName=Bisq2</code>
 
##* Name of the new directory doesn't matter. <code>Bisq2</code> was used above as an example, but you can call it whatever you like, since it's just a temporary placeholder. You'll be changing it back to "Bisq" anyway.
 
##* Name of the new directory doesn't matter. <code>Bisq2</code> was used above as an example, but you can call it whatever you like, since it's just a temporary placeholder. You'll be changing it back to "Bisq" anyway.

Revision as of 02:09, 16 June 2020

Switching to a new data directory can help you start with Bisq anew: fresh wallet, new onion address, new keys, etc. It's a sort of "factory reset" that makes it like you're starting Bisq for the first time.

Upon creating a new data directory, you can restore various parts of a previous data directory (e.g., aged and signed payment accounts).

Why switch to a new data directory?

It's a good idea to switch to a new data directory every so often.

  • Performance - Bisq uses bitcoinj, an SPV library that is not built for high performance, so wallets get increasingly large with every transaction. Over time, wallet corruption becomes increasingly likely and overall performance deteriorates (e.g., longer startup times).
  • Stability - The internal wallet database can get corrupted in certain situations, leading to failed take-offer attempts or failed payouts.
  • Privacy - Active traders using the same onion address for extended periods of time can leak quite a bit of information, since that same onion address is connected to each subsequent offer (see local reputation).

In addition, switching to a new data directory can sometimes be the only way to work around unusual wallet corruption issues.

Make sure you're ready to switch

Ensure your existing data directory is backed up

See how here. Be sure to also do a payment account export to make importing payment accounts easier.

Ensure you have no open offers, trade, or disputes

This is paramount because you will become unreachable and unable to respond after switching to a new data directory. If you don't want to wait for an open offer to be taken, you can delete it, but you will lose the maker fee.

Send funds

You will need to get your funds to the new Bisq instance somehow.

There are a handful of methods to do this, depending on your situation.

  1. Send funds to an external wallet with a withdrawal from Funds > Send Funds, and then send those funds to the new Bisq instance once you've created it (note: you can set withdrawal transaction fees in Settings > Preferences).
    • Variation: Use the Emergency Wallet Tool (Cmd/Ctrl + E) to withdraw funds if standard withdrawal isn't working.
  2. Restore your wallet from seed in another bitcoin wallet like Electrum, and send funds to the new Bisq instance once you've created it. This method is not recommended if you have any BSQ funds in your wallet. See derivation path and other details here.
  3. Send funds directly from old Bisq instance to new Bisq instance (advanced).
    1. Start Bisq.
    2. Start another instance of Bisq from the command line, specifying a new data directory with the appName option. See how to run Bisq from the command line here.
      • macOS example command: /Applications/Bisq.app/Contents/MacOS/Bisq --appName=Bisq2
      • Name of the new directory doesn't matter. Bisq2 was used above as an example, but you can call it whatever you like, since it's just a temporary placeholder. You'll be changing it back to "Bisq" anyway.
    3. Wait for this new instance of Bisq to start and finish loading and syncing.
    4. Once it has, send your funds from your old Bisq instance to your new one.

Create new data directory

If you used methods 1 or 2 in the previous step:

  1. Close Bisq.
  2. Delete (or rename) the Bisq data directory (see default locations for your operating system here).
  3. Start Bisq again. Bisq will create a new data directory with a new wallet, new Tor state, etc.
  4. Send funds from external wallet into Bisq.

If you used method 3 in the previous step:

  1. Make sure both Bisq instances are closed.
  2. Delete (or rename) the original Bisq data directory.
  3. Rename the newer data directory to Bisq.
  4. Start Bisq normally. Your balance should reflect the BTC you sent to it previously.

Migrate data from backup

If you'd like to restore payment accounts and/or your onion address (e.g., local reputation), see how in this article.