# Backing up issue

**URL:** <https://forum.zcashcommunity.com/t/backing-up-issue/15666>\
**Category:** Technical Support\
**Created:** [May 3, 2017, 3:19am UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666 "2017-05-03T03:19:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![slater](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@slater](https://forum.zcashcommunity.com/u/slater)\
**Post date:** [May 3, 2017, 3:19am UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/1 "2017-05-03T03:19:06Z")

</div>

what am I doing wrong?

```
> user@user-VAW70 ~ $ zcashd -exportdir=/home/user --daemon

```

> Zcash server starting  
> user@user-VAW70 ~ zcash-cli backupwallet my\_backed\_up\_wallet.dat error code: -28 error message: Loading block index... user@user-VAW70 ~

---

<div class="post-metadata">

**Author:** ![slater](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@slater](https://forum.zcashcommunity.com/u/slater)\
**Post date:** [May 3, 2017, 12:49pm UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/2 "2017-05-03T12:49:08Z")

</div>

OK looks like I just needed to run the daemon a while longer until the block info had downloaded more. However then it gave me:

> error code: -4  
> error message:  
> Filename is invalid as only alphanumeric characters are allowed. Try ‘mybackedupwalletdat’ instead.

So I finally renamed as suggested and it worked. Is there any easy way to verify the validity of the backed up wallet file? I assume would need to rename it back to wallet.dat to later restore the backup.

---

<div class="post-metadata">

**Author:** ![paige](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/paige/32/31152_2.png) [@paige](https://forum.zcashcommunity.com/u/paige)\
**Post date:** [May 3, 2017, 4:54pm UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/3 "2017-05-03T16:54:32Z")

</div>

Yep. To check validity, you can move out your existing wallet.dat and moving in the backup (renamed to wallet.dat) or running a separate instance with the backup. Or you can compare the two files if there haven’t been any new transactions related to wallet with `diff` command.

---

<div class="post-metadata">

**Author:** ![slater](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@slater](https://forum.zcashcommunity.com/u/slater)\
**Post date:** [May 4, 2017, 12:59am UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/4 "2017-05-04T00:59:08Z")

</div>

So I did this (stopped zcashd, deleted old wallet.dat and restored from backup and restart zcashd) but trying to verify I got error code -28 for many minutes before it seemed to work. Is this correct behavior?

---

<div class="post-metadata">

**Author:** ![slater](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@slater](https://forum.zcashcommunity.com/u/slater)\
**Post date:** [May 4, 2017, 1:11am UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/5 "2017-05-04T01:11:18Z")

</div>

And still the restored wallet fails:

> $ zcash-cli listreceivedaddresses  
> error code: -32601  
> error message:  
> Method not found

If I am just using one address at the moment, would it be easier to just use z\_exportkey?

---

<div class="post-metadata">

**Author:** ![slater](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@slater](https://forum.zcashcommunity.com/u/slater)\
**Post date:** [May 5, 2017, 8:53am UTC](https://forum.zcashcommunity.com/t/backing-up-issue/15666/6 "2017-05-05T08:53:26Z")

</div>

I’m still stuck here - anyone?
