# Improve performance of restore from total crash

**URL:** <https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680>\
**Category:** Features\
**Created:** [May 18, 2025, 3:38pm UTC](https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680 "2025-05-18T15:38:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdassieu](https://forum.duplicati.com/user_avatar/forum.duplicati.com/gdassieu/32/3928_2.png) [@gdassieu](https://forum.duplicati.com/u/gdassieu)\
**Post date:** [May 18, 2025, 3:38pm UTC](https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680/1 "2025-05-18T15:38:45Z")

</div>

Hi,

I’m performing a DRP test from Google Drive on a simulated total crash scenario: create new VM, install OS, install duplicati, and direct restore from backup files.

It takes forever… – already running for more than 12 hours just to recreate the DB 🙂

Quick look at Task manager (see screenshots), I do not see any resource maxed out (be it CPU, disk or network).

It looks like duplicati downloads one dblock file, then processes it, then downloads the next one and so on, and like some parallelism (e.g. → one thread downloads dblock files, maximizing bandwidth usage, while another thread processes them, maximizing disk & CPU usage) would improve things.

I imagine it’s desireable to do so, since whenever you are in this scenario (you lost everything) you’d want to get back online as soon as possible.

Is anything like this in the pipe already?

Cheers,

Gaston

 ![image](https://forum.duplicati.com/uploads/default/original/2X/5/575b3c08fc9eea0eb1f57259b33b67bbafc242b0.png)  
 ![image](https://forum.duplicati.com/uploads/default/original/2X/1/10bf2118cf1028dcd9217aa0fee629e181d7794c.png)

---

<div class="post-metadata">

**Author:** ![gdassieu](https://forum.duplicati.com/user_avatar/forum.duplicati.com/gdassieu/32/3928_2.png) [@gdassieu](https://forum.duplicati.com/u/gdassieu)\
**Post date:** [May 18, 2025, 3:39pm UTC](https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680/2 "2025-05-18T15:39:57Z")

</div>

Beginner’s mistake: I forgot to mention the version is 2.1.0.116\_canary\_2025-04-17

Cheers,

Gaston

---

<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:** [May 24, 2025, 9:55am UTC](https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680/3 "2025-05-24T09:55:19Z")

</div>

> [@gdassieu](#):
>
> It looks like duplicati downloads one dblock file, then processes it, then downloads the next one and so on, and like some parallelism (e.g. → one thread downloads dblock files, maximizing bandwidth usage, while another thread processes them, maximizing disk & CPU usage) would improve things.

Great analysis!

Yes, this is the problem.

The idea is that the database can be recreated by simply downloading the `.dindex` files.  
But, I have recently discovered a bug where the compact feature does not write some required information to the `.dindex` files.

This was not discovered in testing, because Duplicati will automatically search the `.dblock` files if anything is missing.

In practice it means that recreate works reliably, but will often need to download `.dblock` files which is very slow. Once the fix is released, there is still the problem that existing `.dindex` files is missing the information.

I have added [an issue for making an automated fix-up command](https://github.com/duplicati/duplicati/issues/6296).

The download process is not massively parallel, but it is doing overlapped download/recreate. So it will download files back-to-back while processing them.

---

<div class="post-metadata">

**Author:** ![gdassieu](https://forum.duplicati.com/user_avatar/forum.duplicati.com/gdassieu/32/3928_2.png) [@gdassieu](https://forum.duplicati.com/u/gdassieu)\
**Post date:** [May 30, 2025, 3:38pm UTC](https://forum.duplicati.com/t/improve-performance-of-restore-from-total-crash/20680/4 "2025-05-30T15:38:45Z")

</div>

Hi Kenneth,  
Thanks for the feedback. That’s a pretty clear explanation, and glad to see this “let’s not just fix the bugs, but also provide a way to correct the existing data” mindset 🙂  
Kudos for that  
Best,  
Gaston
