How to do this in 2024? I'm using BC 26.0.0 and the console window gives this error that only legacy wallets are supported by this command.
walletpassphrase(…)
null
dumpwallet Test
Only legacy wallets are supported by this command (code -4)
And no indication is given as to how to do it for "newer" or non-legacy wallets. So in addition to backing up wallet.dat, how do I export the private keys?