# Problem with exporting my wallet

**URL:** <https://forum.zcashcommunity.com/t/problem-with-exporting-my-wallet/14103>\
**Category:** Technical Support\
**Created:** [February 4, 2017, 4:40pm UTC](https://forum.zcashcommunity.com/t/problem-with-exporting-my-wallet/14103 "2017-02-04T16:40:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m0sh1x2](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/m0sh1x2/32/3807_2.png) [@m0sh1x2](https://forum.zcashcommunity.com/u/m0sh1x2)\
**Post date:** [February 4, 2017, 4:40pm UTC](https://forum.zcashcommunity.com/t/problem-with-exporting-my-wallet/14103/1 "2017-02-04T16:40:28Z")

</div>

Hello,  
I am running a zcashd node and I want to export my wallet so I can have a safe backup.  
Tried with:

> zcash-cli z\_exportwallet “myWallet” -exportdir “/home/m0sh1x2/wallet/”

and got this error:

> error: {“code”:-1,“message”:“z\_exportwallet "filename"\n\nExports all wallet keys, for taddr and zaddr, in a human-readable format.\n\nArguments:\n1. "filename" (string, required) The filename, saved in folder set by zcashd -exportdir option\n\nResult:\n"path" (string) The full path of the destination file\n\nExamples:\n\> zcash-cli z\_exportwallet "test"\n\> curl --user myusername --data-binary ‘{"jsonrpc": "1.0", "id":"curltest", "method": "z\_exportwallet", "params": ["test"] }’ -H ‘content-type: text/plain;’ [http://127.0.0.1:8232/\n](http://127.0.0.1:8232/%5Cn)”}

I am really not sure what is wrong but I just get stuck here.

---

<div class="post-metadata">

**Author:** ![CJX4q0iquV](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/cjx4q0iquv/32/636_2.png) [@CJX4q0iquV](https://forum.zcashcommunity.com/u/CJX4q0iquV)\
**Post date:** [February 4, 2017, 5:25pm UTC](https://forum.zcashcommunity.com/t/problem-with-exporting-my-wallet/14103/2 "2017-02-04T17:25:07Z")

</div>

Hello m0sh1x2,

1º) Start the daemon with the exportdir field.  
PATH TO ZCASHD/zcashd -exportdir=/home/m0sh1x2/wallet/ --daemon

2º) PATH TO ZCASH-CLI/zcash-cli z\_exportwallet myWallet

3º) You finally will obtain at, for this example, /home/m0sh1x2/wallet/, the exported file  
myWallet.

I hope this help to you. 🙂

---

<div class="post-metadata">

**Author:** ![m0sh1x2](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/m0sh1x2/32/3807_2.png) [@m0sh1x2](https://forum.zcashcommunity.com/u/m0sh1x2)\
**Post date:** [February 4, 2017, 5:46pm UTC](https://forum.zcashcommunity.com/t/problem-with-exporting-my-wallet/14103/3 "2017-02-04T17:46:31Z")

</div>

THANK YOU !  
It worked I was doing it wrong the whole time 😮
