# Fdbbackup doesn't include all key/values?

**URL:** <https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581>\
**Category:** Using FoundationDB\
**Created:** [October 9, 2022, 6:20am UTC](https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581 "2022-10-09T06:20:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![windsteel](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/windsteel/32/1395_2.png) [@windsteel](https://forums.foundationdb.org/u/windsteel)\
**Post date:** [October 9, 2022, 6:20am UTC](https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581/1 "2022-10-09T06:20:31Z")

</div>

I have a 6.2 cluster which has almost 700G data.  
 ![image](https://global.discourse-cdn.com/foundationdb/original/2X/8/8b6f4253e90b77e1923069be45193443297c7c83.jpeg)  
I run the following command(not continuous backup, to a local directory) to generate a backup:  
fdbbackup start -d file:///var/fdb/backup -C /tmp/fdb.cluster -t $date

but the generated backup folder only has around 100G even fdbbackup says it’s completed successfully.

 ![image](https://global.discourse-cdn.com/foundationdb/original/2X/e/e701af875513144e80b5f48053844b5badfae960.jpeg)  
 ![image](https://global.discourse-cdn.com/foundationdb/original/2X/7/70adf8892ae9552fcd0a6aa4c0eaf6ece9d59086.jpeg)  
 ![image](https://global.discourse-cdn.com/foundationdb/original/2X/d/dc0c8ac36163f37035fa8da77061bbd9b59dc79e.jpeg)

Is there anything wrong in this scenario?

Thanks

---

<div class="post-metadata">

**Author:** ![erplus](https://avatars.discourse-cdn.com/v4/letter/e/7feea3/32.png) [@erplus](https://forums.foundationdb.org/u/erplus)\
**Post date:** [October 10, 2022, 4:35pm UTC](https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581/2 "2022-10-10T16:35:34Z")

</div>

I can share with you with my humble experience about fdbbackup.

First of all - you have set propably some replication factor. So fdbbackup makes backup without replication and it is why backup-2022-10-09-01 is significantly smaller than data in cluster.

Secondly FDB has some overhead on data.

The third reason is fdbbackup splits data during this process against all backup agents at cluster. Thus you have to copy your backup data from every single host where backup agent is present.  
When you want to restore your data you have to merge these pieces of backup firstly. Only then you can start restore.

I hope it is helpfully at least a little.

---

<div class="post-metadata">

**Author:** ![windsteel](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/windsteel/32/1395_2.png) [@windsteel](https://forums.foundationdb.org/u/windsteel)\
**Post date:** [October 11, 2022, 8:13am UTC](https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581/3 "2022-10-11T08:13:10Z")

</div>

Thanks for your response. There is only one backup agent in my cluster, which is running on the same box where fdbbackup executes. I am not sure what the “replication factor” is ? The cluster’s redundency mode is “triple” so as I can see, disk space used(2.26T) is about 3 times of the data volume(695G). That’s acceptable. But it can’t explain the difference between the backup size and the data volume ☹

---

<div class="post-metadata">

**Author:** ![418572](https://avatars.discourse-cdn.com/v4/letter/4/b782af/32.png) [@418572](https://forums.foundationdb.org/u/418572)\
**Post date:** [October 3, 2024, 4:17am UTC](https://forums.foundationdb.org/t/fdbbackup-doesnt-include-all-key-values/3581/4 "2024-10-03T04:17:02Z")

</div>

I’m encountering the same issue, have you found the cause?
