[#wallet-CWallet-BackupWallet]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::BackupWallet
:relfileprefix: ../../
:mrdocs:

Copy the wallet database file to a backup path&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
BackupWallet(std::string const& strDest) const;
----

== Return Value

true if the backup was written&period;

[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&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
