wallet::CWallet::BackupWallet

Copy the wallet database file to a backup path.

Synopsis

Declared in <wallet/wallet.h>

[[nodiscard]]
bool
BackupWallet(std::string const& strDest) const;

Return Value

true if the backup was written.

NOTE

The return value should not be discarded.

Parameters

NameDescription
strDestThe destination path for the backup.