dumpwallet
dumpwallet "filename"
Exports all wallet keys in a human-readable format to a server-side file. The function does not permit overwriting existing files.
Imported scripts are included in the dump file, but corresponding BIP173 addresses, etc., may not be automatically imported by the importwallet
command.
Keep in mind that if your wallet contains keys that are not derived from your HD seed (such as imported keys), they will not be backed up by saving the seed alone. Therefore, it is important to back up the entire dump file.
Argument #1 – filename
Type: string, required
The filename with path (absolute path recommended)