[#wallet-CWallet-BackupWallet] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::BackupWallet :relfileprefix: ../../ :mrdocs: Copy the wallet database file to a backup path. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool BackupWallet(std::string const& strDest) const; ---- == Return Value true if the backup was written. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *strDest* | The destination path for the backup. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#