Difference between revisions of "Switching to a new data directory"
Plebeian9000 (talk | contribs) m |
Strayorigin (talk | contribs) m (→Send funds: changed example dir name from bisq2 to bisq-new to avoid confusion with Bisq2) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
Upon creating a new data directory, you can restore various parts of a previous data directory (e.g., aged and signed payment accounts). | Upon creating a new data directory, you can restore various parts of a previous data directory (e.g., aged and signed payment accounts). | ||
+ | |||
+ | If you instead wish to only obtain a new wallet, while preserving every other element of your data directory, you can [[Create_a_new_wallet_for_your_data_directory|create a fresh wallet in the same data directory]]. | ||
__TOC__ | __TOC__ | ||
Line 31: | Line 33: | ||
# Send funds to an external wallet with a withdrawal from <code>Funds</code> > <code>Send Funds</code>, and then send those funds to the new Bisq instance once you've created it (note: you can set withdrawal transaction fees in <code>Settings</code> > <code>Preferences</code>). | # Send funds to an external wallet with a withdrawal from <code>Funds</code> > <code>Send Funds</code>, and then send those funds to the new Bisq instance once you've created it (note: you can set withdrawal transaction fees in <code>Settings</code> > <code>Preferences</code>). | ||
− | #* Variation: Use the Emergency Wallet Tool (<code>Cmd/Ctrl</code> + <code>E</code>) to withdraw funds if standard withdrawal isn't working. | + | #* Variation: Use the [[Emergency_wallet|Emergency Wallet Tool]] (<code>Cmd/Ctrl</code> + <code>E</code>) to withdraw funds if standard withdrawal isn't working. |
# 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 [[Restoring_your_wallet_from_seed#Restoring_to_a_non-Bisq_wallet|derivation path and other details here]]. | # 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 [[Restoring_your_wallet_from_seed#Restoring_to_a_non-Bisq_wallet|derivation path and other details here]]. | ||
# 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 [[ | + | ## Start another instance of Bisq from the command line, specifying a new data directory with the <code>appName</code> option. See [[Running_from_the_command_line|how to run Bisq from the command line here]]. |
− | ##* macOS example command: <code>/Applications/Bisq.app/Contents/MacOS/Bisq --appName= | + | ##* macOS example command: <code>/Applications/Bisq.app/Contents/MacOS/Bisq --appName=Bisq-new</code> |
− | ##* Name of the new directory doesn't matter. <code> | + | ##* Name of the new directory doesn't matter. <code>Bisq-new</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. |
## Wait for this new instance of Bisq to start and finish loading and syncing. | ## Wait for this new instance of Bisq to start and finish loading and syncing. | ||
## Once it has, send your funds from your old Bisq instance to your new one. | ## Once it has, send your funds from your old Bisq instance to your new one. | ||
Line 45: | Line 47: | ||
If you used methods 1 or 2 in the previous step: | If you used methods 1 or 2 in the previous step: | ||
# Close Bisq. | # Close Bisq. | ||
− | # Delete (or rename) the <code>Bisq</code> data directory (see [[Data_directory# | + | # Delete (or rename) the <code>Bisq</code> data directory (see [[Data_directory#Operating_system_defaults|default locations for your operating system here]]). |
# Start Bisq again. Bisq will create a new data directory with a new wallet, new Tor state, etc. | # Start Bisq again. Bisq will create a new data directory with a new wallet, new Tor state, etc. | ||
# Send funds from external wallet into Bisq. | # Send funds from external wallet into Bisq. |
Latest revision as of 04:41, 10 December 2024
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).
If you instead wish to only obtain a new wallet, while preserving every other element of your data directory, you can create a fresh wallet in the same data directory.
Contents
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.
- 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 inSettings
>Preferences
).- Variation: Use the Emergency Wallet Tool (
Cmd/Ctrl
+E
) to withdraw funds if standard withdrawal isn't working.
- Variation: Use the Emergency Wallet Tool (
- 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.
- Send funds directly from old Bisq instance to new Bisq instance (advanced).
- Start Bisq.
- 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=Bisq-new
- Name of the new directory doesn't matter.
Bisq-new
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.
- macOS example command:
- Wait for this new instance of Bisq to start and finish loading and syncing.
- 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:
- Close Bisq.
- Delete (or rename) the
Bisq
data directory (see default locations for your operating system here). - Start Bisq again. Bisq will create a new data directory with a new wallet, new Tor state, etc.
- Send funds from external wallet into Bisq.
If you used method 3 in the previous step:
- Make sure both Bisq instances are closed.
- Delete (or rename) the original
Bisq
data directory. - Rename the newer data directory to
Bisq
. - 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.