Skip to main content
Before accepting any payments, make sure you back up your store’s wallet.
  1. Write down the recovery phrase: This is enough to recover the wallet’s balance in the event of a system failure. Recovery from the phrase alone requires the Ark server’s cooperation, and it doesn’t restore the payment history. It resumes an emergency exit only if the exit’s final transaction is already on-chain or in the mempool.
  2. Set up continuous backups (optional): A backup that you fully control, with the entire payment history included.
The Backups page explains the mechanics behind both in more depth.

Write down the recovery phrase

1

Open the Bark settings

Go to Bark > Settings.
2

Reveal the phrase

Select View Recovery Phrase in the Backup section.
3

Write down the 12 words

Copy them in order, somewhere safe and offline. The phrase never changes, so this is a one-time step. Select Done to return to Settings.

Set up continuous backups

Each store’s wallet lives in BTCPay Server’s data directory, under bark/stores/<store ID>, with its recovery phrase alongside. The Backup section of Bark > Settings shows the exact path, with a copy button. On a standard Docker deployment, that directory sits inside the BTCPay data volume on your server’s disk.
Your backups contain the wallet’s keys. The wallet directory holds the recovery phrase unencrypted. Anyone who can read the wallet directory or its backups can spend the wallet’s bitcoin, so restrict access to both.
Second doesn’t have a mature continuous backup solution for the Bark plugin yet. If you’re comfortable experimenting, consider these options:
  • bark-backupd: Second’s experimental backup daemon. It watches a wallet directory and snapshots the database on every change. It encrypts each snapshot with a key derived from the recovery phrase, then ships it to a cloud drive or any S3-compatible target. Test bark-backupd restore before you rely on it.
  • Litestream: A streaming replicator that copies new changes in the wallet database to a replica you configure, such as an S3-compatible bucket, every second by default. The wallet database isn’t formally tested in the WAL journal mode Litestream requires, so treat the approach as experimental.
Regular BTCPay backups are a baseline whole-server backup, but they typically aren’t frequent enough for a reliable Bark wallet backup.
If a backup misses your latest wallet changes, recovering the whole balance will require restoring from the recovery phrase, which relies on the Ark server’s cooperation.

Restore a wallet from its recovery phrase

To bring a wallet back on a store that has no Bark wallet yet, select Import existing wallet on the Set up Bark screen and enter the 12 words in the Seed phrase field. Set up a Bark wallet for your store walks through that screen. The plugin rebuilds the wallet with the Ark server’s help, and the balance appears once the wallet has synced.
Screenshot of the Set up Bark screen with Import existing wallet selected and the 12 numbered word fields under Seed phrase

Import existing wallet turns the Set up Bark screen into a 12-word entry form

Restore a wallet whose data is lost

A store’s wallet directory can go missing, for example after a disk failure, a lost Docker volume, or a server restore that left it out. The plugin then doesn’t create a new wallet in its place. It pauses the store’s Ark payments, and its Lightning payments if Bark runs the store’s Lightning. On-chain payments to your native BTCPay wallet carry on. BTCPay notifies the store’s users. The same happens when the directory holds another wallet’s data, for example one copied over from a different store.
While the wallet is paused, the plugin doesn’t refresh VTXOs or send expiry alerts. Your VTXOs still move toward expiry, so restore the wallet as soon as you can.
Restoring needs a store role that can modify the store’s settings, such as Owner. If your server doesn’t let non-admins create hot wallets, a server admin with that role on the store has to restore the wallet. If you have a continuous backup of the wallet directory, restore it to bark/stores/<store ID> in BTCPay Server’s data directory. The backup has to include both db.sqlite and the mnemonic file. Then select Bark in your store’s sidebar. Otherwise, bring the wallet back from its recovery phrase:
1

Open the restore page

Select Restore wallet in the warning on Bark > Settings, or select the notification.
2

Enter the recovery phrase

Enter the wallet’s 12 words and select Restore wallet. The page accepts only the phrase of this store’s wallet. If the directory held another wallet’s data, the plugin moves it to bark/replaced in BTCPay Server’s data directory rather than deleting it.
Ark and Lightning payments resume. The balance appears once the wallet has synced with the Ark server. If you’ve lost the recovery phrase too, a server admin with that role on the store can replace its wallet on the same page.
Without its recovery phrase, nobody can recover the old wallet’s bitcoin.
1

Enter the store's name

Under Replace the wallet, enter the store’s name to confirm.
2

Enter another wallet's phrase, if you have one

Leave the phrase fields empty to create a new wallet instead.
3

Replace the wallet

Select Replace wallet. With empty phrase fields, the plugin then shows the new wallet’s recovery phrase. Write it down.
The plugin recognizes a store’s wallet by its fingerprint, which it records when the wallet starts. For a store set up before plugin 0.11.0, it records the fingerprint on the wallet’s first start after the upgrade. A store whose wallet directory was already missing at the upgrade gets a new wallet one last time.