doc: clarify that `backupwallet` requires a filename #36972

pull l0rinc wants to merge 1 commits into bitcoin:master from l0rinc:l0rinc/backupwallet-filename-help changing 1 files +2 −2
  1. l0rinc commented at 9:26 PM on November 24, 2026: contributor

    Problem: help backupwallet lists a directory as a valid destination. Passing an existing directory returns RPC error -4.

    Fix: Clarify in the RPC description and the help for destination that the path must include a filename.

    <details><summary>Reproducer</summary>

    cmake -B build && cmake --build build --target bitcoind bitcoin-cli
    args=(-regtest -datadir="$(mktemp -d)" -rpcport=19456)
    (cd build/bin && ./bitcoind "${args[@]}" -listen=0 -daemonwait && ./bitcoin-cli "${args[@]}" createwallet demo && ./bitcoin-cli "${args[@]}" backupwallet "$PWD"; killall bitcoind)
    

    Expected output from backupwallet:

    error code: -4
    error message:
    Error: Wallet backup failed!
    

    </details>

  2. wallet rpc: document the filename required by backupwallet
    SQLite opens the destination as a file. Passing a directory fails, even though the RPC help advertises support for it.
    476caddd0e
  3. DrahtBot added the label Docs on Nov 24, 2026
  4. DrahtBot commented at 9:26 PM on November 24, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-30 03:50 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me