<p>You want to use the <code>listdescriptors true</code> <a href="https://bitcoincore.org/en/doc/26.0.0/rpc/wallet/listdescriptors/" rel="nofollow noreferrer">RPC command</a>. It will list all the output descriptors that the wallet consists of, together with their private key material (typically, in the form of xprvs). These descriptors can be imported into another wallet using the <code>importdescriptors</code> RPC to get an equivalent wallet.</p>

CC BY-SA 4.0
2024-01-24T02:04:09.990Z
The output Json is complicated for memory, but it's printable.
foolbear
CC BY-SA 4.0
2024-04-15T09:43:13.410Z
Can we get address and private key from the descriptor? @Pieter Wuille
foolbear
CC BY-SA 4.0
2024-01-23T12:22:01.617Z
2024-01-23T12:22:01.617Z
Pieter Wuille
<p>You can backup your wallet on bitcoin using the &quot;backupwallet&quot; RPC or &quot;File &gt; Backup&quot; on GUI</p>
<blockquote>
<p>$ bitcoin-cli -rpcwallet=&quot;wallet-01&quot; backupwallet
/path/to/Backups/backup-01.dat</p>
</blockquote>
<p>More information on managing your wallet can be found at <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/managing-wallets.md#14-backing-up-the-wallet" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/doc/managing-wallets.md#14-backing-up-the-wallet</a></p>

CC BY-SA 4.0
2024-01-22T14:52:04.730Z
I don't think this answers OP's question; they're looking for printable data.
Pieter Wuille
CC BY-SA 4.0
2024-01-23T11:30:51.447Z
@foolbear if you are looking to get the private key of addresses to print you can use the dumpprivkey "address" RPC
Brandon Odiwuor
CC BY-SA 4.0
2024-01-23T12:20:10.303Z
That doesn't work for descriptor wallets.
Pieter Wuille
CC BY-SA 4.0
2024-01-24T01:58:08.513Z
dumpprivkey is for legacy wallet only. @BrandonOdiwuor
foolbear
CC BY-SA 4.0
2024-01-24T01:59:22.410Z
So the only way is backup the whole wallet in Bitcoin Core, thanks. @PieterWuille
foolbear
CC BY-SA 4.0
2024-04-01T08:57:26.893Z
There is a main private key in HD wallet, why not print it as backup? And I have no ideal how to do this.
foolbear
CC BY-SA 4.0
2024-01-22T14:27:51.240Z
2024-01-22T14:37:27.510Z
2024-01-22T14:37:27.510Z
Brandon Odiwuor
<p>I know we can do this by menu &quot;File - Backup&quot;, but how can we get the private key of the address(or something else we can restore wallet) then write it down or print it out?</p>

<bitcoin-core><wallet><output-script-descriptors>
How to backup a descriptor wallet in bitcoin core?
foolbear
# How to backup a descriptor wallet in bitcoin core?

(Asked by: username_0 on 2024-01-22)

I know we can do this by menu "File - Backup", but how can we get the private key of the address(or something else we can restore wallet) then write it down or print it out?

**Tags:** bitcoin-core, wallet, output-script-descriptors


---

## 2 answers

### Answer by username_1 on 2024-01-23. Score: 3 | Accepted answer

You want to use the `listdescriptors true` [RPC command](https://bitcoincore.org/en/doc/26.0.0/rpc/wallet/listdescriptors/). It will list all the output descriptors that the wallet consists of, together with their private key material (typically, in the form of xprvs). These descriptors can be imported into another wallet using the `importdescriptors` RPC to get an equivalent wallet.

> **Comments:**
> **username_0**: The output Json is complicated for memory, but it's printable.  
> **username_0**: Can we get address and private key from the descriptor? @username_1  

---

### Answer by username_2 on 2024-01-22. Score: 1

You can backup your wallet on bitcoin using the "backupwallet" RPC or "File > Backup" on GUI

> $ bitcoin-cli -rpcwallet="wallet-01" backupwallet
> /path/to/Backups/backup-01.dat

More information on managing your wallet can be found at <https://github.com/bitcoin/bitcoin/blob/master/doc/managing-wallets.md#14-backing-up-the-wallet>

> **Comments:**
> **username_1**: I don't think this answers OP's question; they're looking for printable data.  
> **username_2**: @username_0 if you are looking to get the private key of addresses to print you can use the dumpprivkey "address" RPC  
> **username_1**: That doesn't work for descriptor wallets.  
> **username_0**: dumpprivkey is for legacy wallet only. @BrandonOdiwuor  
> **username_0**: So the only way is backup the whole wallet in Bitcoin Core, thanks. @PieterWuille  
> **username_0**: There is a main private key in HD wallet, why not print it as backup? And I have no ideal how to do this.  

---

