# Server side implementation (for ssh backends) - for cli delete&compact - when using low bandwidth links

**URL:** <https://forum.duplicati.com/t/server-side-implementation-for-ssh-backends-for-cli-delete-compact-when-using-low-bandwidth-links/505>\
**Category:** Support\
**Created:** [September 8, 2017, 9:33am UTC](https://forum.duplicati.com/t/server-side-implementation-for-ssh-backends-for-cli-delete-compact-when-using-low-bandwidth-links/505 "2017-09-08T09:33:22Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [September 13, 2017, 7:44pm UTC](https://forum.duplicati.com/t/server-side-implementation-for-ssh-backends-for-cli-delete-compact-when-using-low-bandwidth-links/505/21 "2017-09-13T19:44:03Z")

</div>

Ok, I think I understand the process now. But how does it know which blocks are there? If you have 1 million blocks, listing them with a pagesize of max 1000, is still 1000 HTTP requests. Even with a 1 sec pr. request that is more than 15 minutes. And since it supports multiple writers it pretty much needs to do this on every backup?

---

<div class="post-metadata">

**Author:** ![dgcom](https://forum.duplicati.com/user_avatar/forum.duplicati.com/dgcom/32/2711_2.png) [@dgcom](https://forum.duplicati.com/u/dgcom)\
**Post date:** [September 13, 2017, 7:52pm UTC](https://forum.duplicati.com/t/server-side-implementation-for-ssh-backends-for-cli-delete-compact-when-using-low-bandwidth-links/505/22 "2017-09-13T19:52:47Z")

</div>

I haven’t checked the code, but I’d call each file with its hash - then you just need to check if it exist at destination to make a decision to upload it or not and I do not need entire list ahead of time.

EDIT:  
Here is the quote from duplicay design document:

> Store each chunk in the storage using a file name derived from its hash, and rely on the file system API to manage chunks without using a centralized indexing database

[Previous page](https://forum.duplicati.com/t/server-side-implementation-for-ssh-backends-for-cli-delete-compact-when-using-low-bandwidth-links/505.md?page=1)
