# Timespan to rebuild a database?

**URL:** <https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654>\
**Category:** Support\
**Created:** [January 29, 2023, 5:27pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654 "2023-01-29T17:27:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 29, 2023, 5:27pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/1 "2023-01-29T17:27:22Z")

</div>

Hi there

We have to restore a large disk (nearby 3TB) using a S3-Storage backup onto an new server equipment. The database rebuild process is just running, but it seems that it takes a long time.

The incremental backup has 14 versions.

We imported a saved configuration file to rebuild the disk. Now the question comes up on how many time would it take for the database rebuild / newbuild?

Do anyone have some experience and could make a statement about this situation?

Many thanks in advance!  
Rudi

---

<div class="post-metadata">

**Author:** ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)\
**Post date:** [January 29, 2023, 8:19pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/2 "2023-01-29T20:19:07Z")

</div>

Hello

From what I know, time to build a database from scratch mainly depends on number of files times number of version when all is well and the backend is healthy (because in this case only the list and index files are accessed, and these are small files). IIRC last time I timed a database rebuild from a 25000 files x 60 versions, database building duration was about 4 minutes (with a backend accessed at 60 Mbits/s).

When you have missing or corrupted files on the backend, all bets are off since in this case some data files are to be downloaded to correct problems.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 29, 2023, 11:19pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/3 "2023-01-29T23:19:47Z")

</div>

Welcome to the forum @it-ruedi59

> [@it-ruedi59](#):
>
> Do anyone have some experience

We’ll see if anyone who sees this can speak to a similar backup. Meanwhile, some general notes.

> [@gpatel-fr](#):
>
> data files are to be downloaded

This is especially in the 90% to 100% range of the progress bar. If before that, it’s probably normal.  
You can look at About → Show log → Live → Verbose if you like. It should get `dlist` then `dindex`.  
When it starts downloading `dblock` it’s looking for some blocks that it hasn’t yet found. That’s slow.

Another thing that can slow things is too many blocks. Default [blocksize](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#blocksize) is good for roughly 100GB.  
[Please change default blocksize to at least 1MB #4629](https://github.com/duplicati/duplicati/issues/4629) has more. Can’t change on existing backup.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 6:51am UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/4 "2023-01-30T06:51:24Z")

</div>

Thank you very much for your replies.

The process bar is in the same position (at 70%) now as when I wrote this topic - but it looks like active. It’s a little bit poor that there is no look inside the process, no look at what Duplicati is doing at the moment.

What I know about the block size (the definition was made by an IT predecessor): it is small - a little bit more than the standard block size.

The target has roundabout 800’000 files. Small ones and (very) large ones - no databases.

The duplicati database has a size of 7 GB at the moment.

I’m still waiting for more notes how to speed up the process.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 11:30am UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/5 "2023-01-30T11:30:35Z")

</div>

> [@it-ruedi59](#):
>
> It’s a little bit poor that there is no look inside the process, no look at what Duplicati is doing at the moment.

Did you try looking?

> [@ts678](#):
>
> You can look at About → Show log → Live →

and you can pick whatever level you like. Even `Information` shows downloads. `Verbose` adds context about what’s going on, how far you are, and what’s left to do. `Profiling` is huge, however hard to read.

> [@it-ruedi59](#):
>
> 800’000 files

Probably roughly half are dblock files, because each dblock has its dindex. The dlist are likely only 14:

> [@it-ruedi59](#):
>
> The incremental backup has 14 versions.

Possibly there’s high change each time? Logs would show if you still have old database which has logs.  
Your file count at default 50 MB size could be as much as 20 TB (got any space tools?), adding to block count and reducing speed. If old server exists you can get size on home screen of Duplicati, if you care.

> [@it-ruedi59](#):
>
> Small ones and (very) large ones

The type of file matters. A dblock file should be no larger than Options screen 5 `Remote volume size`.  
The dindex for a dblock is typically small, as it indexes the blocks of a size-limited dblock file. The small dblock files would be removed by [compact](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#compacting-files-at-the-backend) although there are [options](https://duplicati.readthedocs.io/en/latest/04-using-duplicati-from-the-command-line/#the-compact-command) that control this. Below are some:

- `--small-file-max-count=<int>`  
The maximum allowed number of small files.
- `--small-file-size=<int>`  
Files smaller than this size are considered to be small and will be compacted with other small files as soon as there are `<small-file-max-count>` of them. `--small-file-size=20` means 20% of `<dblock-size>`.

The size of a dlist file depends on how many files you have backed up. There’s not really a set size limit.

> [@it-ruedi59](#):
>
> no databases

There is not supposed to be one, though you can certainly backup the database somewhere if desired. Sometimes there’s a request, but it would mean a potentially huge upload after each backup. Example:

> [@it-ruedi59](#):
>
> The duplicati database has a size of 7 GB at the moment.

> [@it-ruedi59](#):
>
> I’m still waiting for more notes how to speed up the process.

“still waiting”? This was never asked. If you’re right in the middle, there’s not much you can do now, however you can at least look as explained to see if you go down the dblock downloading sad path.

You can certainly attempt to prepare for speed up on future database rebuilds, or avoid such need.  
The blocksize, unfortunately, can only be changed on a new backup. Remote volume size increase possibly will help a little, but is best done either slowly or set initially. Following has some thoughts:

[Choosing sizes in Duplicati](https://duplicati.readthedocs.io/en/latest/appendix-c-choosing-sizes-in-duplicati/)

> [@it-ruedi59](#):
>
> The process bar is in the same position (at 70%) now as when I wrote this topic - but it looks like active.

Progress bar staying still is not good, although in 90% to 100% range it can be so slow it looks still.

What does “looks like active” mean, given the position is the same? What other activity signs exist? Certainly the standard OS performance tools could show something, but Duplicati logs can as well.

> [@it-ruedi59](#):
>
> We have to restore a large disk (nearby 3TB) using a S3-Storage backup onto an new server equipment.

If old server will no longer be used (don’t backup from two systems at once), moving previous database would have avoided the need to recreate it. That wouldn’t help in disaster, e.g. if the server is destroyed.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 2:31pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/6 "2023-01-30T14:31:25Z")

</div>

Thank you for all the hints and tipps! : )

It’s a little bit clearer now to me. Sad is that there is no way to speed up the rebuild of the database. Unfortunately I have to use these backups which are perhaps not in a good shape (meaning a little bit of misconfigured depending on the file structure of the server) and a faulty server

The progress bar appears as freezed (I’m sure that depends not on the wheater outside). Here are the last messages from the process:

 ![Bildschirm­foto 2023-01-30 um 14.42.17](https://forum.duplicati.com/uploads/default/original/2X/3/37b8d26ec638c9481695fff50faccd103ddeeaf2.jpeg)

And here are messages from the start time:

 ![Bildschirm­foto 2023-01-30 um 14.42.02](https://forum.duplicati.com/uploads/default/original/2X/6/6a83a57d6f40a5da7d59720aa369623eabf3795a.jpeg)

Does it makes sense to cancel the process and look for another way to recover the files? It is running for about 16 hours now.

---

<div class="post-metadata">

**Author:** ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)\
**Post date:** [January 30, 2023, 2:47pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/7 "2023-01-30T14:47:49Z")

</div>

You should search back in the Live messages for lines beginning with ‘ProcessingBlocklistVolumes’.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 3:50pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/8 "2023-01-30T15:50:00Z")

</div>

> [@it-ruedi59](#):
>
> Sad is that there is no way to speed up the rebuild of the database.

There are numerous long-term ways to speed it up or avoid the need. Some were specifically stated.  
Short-term (as in right in the middle of a run), options are limited, however your OS has some knobs. Knowing what to tweak usually involves looking at performance tools to see how resources are used. Duplicati actually also has various exotic [options](https://duplicati.readthedocs.io/en/latest/06-advanced-options/), but you can’t change options in the middle of a run.

> [@it-ruedi59](#):
>
> and a faulty server

Is that suspect for current issue? Is it ruled out? Care to describe? System can of course affect speed. Throwing hardware at rebuild can also be long-term improvement, e.g. SSD is faster than mechanical.

> [@it-ruedi59](#):
>
> Here are the last messages from the process:

I don’t know your current time. This is reverse-chronological, so how long has top one been at the top?  
Using `ExplicitOnly` was not explicitly suggested, but might be doing enough to detect new activity…

I’d have to do some research to see if I can recognize your top message, but if start was around 7, and messages stopped at 14, and restore has run 16 hours, then your current time is 7 + 14 = 21 right now, sitting still for 21 - 14 = 7 hours? Do OS tools show any activity in CPU or disk activity in Duplicati now?

You possibly have an odd hang situation rather than performance issues, but there’s not much data yet.  
What OS is this, and are you familiar with performance tools to check for either an overload or no uses?

> [@it-ruedi59](#):
>
> look for another way to recover the files?

I’ve been asking about the old system. No response yet. What’s left of it? What other way do you have?

> [@gpatel-fr](#):
>
> You should search back in the Live messages

Are you familiar enough with this log to have a good handle on when one can switch levels to get some summarized information, so as to see the forest rather than the trees, but I don’t want to risk trees loss?

Verbose might have given a good compromise-level view. I wonder if any other levels were tried before.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 3:48pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/9 "2023-01-30T15:48:20Z")

</div>

I couldn’t go back to the bottom (or beginning) of the live messages, thy are not later than Jan, 30 - 14:24.  
The progress bar still isn’t moving.

The newest messages are:  
30. Jan. 2023 14:58: Starting - ExecuteNonQuery: INSERT INTO “Block” (“Hash”, “Size”, “VolumeID”) SELECT “FullHash” AS “Hash”, “Length” AS “Size”, -1 AS “VolumeID” FROM (SELECT “A”.“FullHash”, “A”.“Length”, CASE WHEN “B”.“Hash” IS NULL THEN ‘’ ELSE “B”.“Hash” END AS “Hash”, CASE WHEN “B”.“Size” is NULL THEN -1 ELSE “B”.“Size” END AS “Size” FROM (SELECT DISTINCT “FullHash”, “Length” FROM (SELECT “BlockHash” AS “FullHash”, “BlockSize” AS “Length” FROM ( SELECT “E”.“BlocksetID”, “F”.“Index” + (“E”.“BlocklistIndex” \* 3200) AS “FullIndex”, “F”.“BlockHash”, MIN(102400, “E”.“Length” - ((“F”.“Index” + (“E”.“BlocklistIndex” \* 3200)) \* 102400)) AS “BlockSize”, “E”.“Hash”, “E”.“BlocklistSize”, “E”.“BlocklistHash” FROM ( SELECT \* FROM ( SELECT “A”.“BlocksetID”, “A”.“Index” AS “BlocklistIndex”, MIN(3200 \* 32, (((“B”.“Length” + 102400 - 1) / 102400) - (“A”.“Index” \* (3200))) \* 32) AS “BlocklistSize”, “A”.“Hash” AS “BlocklistHash”, “B”.“Length” FROM “BlocklistHash” A, “Blockset” B WHERE “B”.“ID” = “A”.“BlocksetID” ) C, “Block” D WHERE “C”.“BlocklistHash” = “D”.“Hash” AND “C”.“BlocklistSize” = “D”.“Size” ) E, “TempBlocklist-9E0F54EBF6A87E4A80A3F753C8671861” F WHERE “F”.“BlocklistHash” = “E”.“Hash” ORDER BY “E”.“BlocksetID”, “FullIndex” ) UNION SELECT “BlockHash”, “BlockSize” FROM “TempSmalllist-AC57620EB252B1418A198C3C0C9C6413” )) A LEFT OUTER JOIN “Block” B ON “B”.“Hash” = “A”.“FullHash” AND “B”.“Size” = “A”.“Length” ) WHERE “FullHash” != “Hash” AND “Length” != “Size”

1. Jan. 2023 14:24: ExecuteScalarInt64: SELECT “VolumeID” FROM “Block” WHERE “Hash” = “fcFeIvUa2VreAexH05j5fPB9uJ/ALoUbOrtvPJzWAL0=” AND “Size” = 102400 took 0:00:00:00.000
2. Jan. 2023 14:24: Starting - ExecuteScalarInt64: SELECT “VolumeID” FROM “Block” WHERE “Hash” = “fcFeIvUa2VreAexH05j5fPB9uJ/ALoUbOrtvPJzWAL0=” AND “Size” = 102400
3. Jan. 2023 14:24: ExecuteScalarInt64: SELECT “VolumeID” FROM “Block” WHERE “Hash” = “Zpu0wykBOaO4xs9GaB8y09VdpITla5nIqYtParvGITI=” AND “Size” = 102400 took 0:00:00:00.021

---

<div class="post-metadata">

**Author:** ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)\
**Post date:** [January 30, 2023, 4:11pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/10 "2023-01-30T16:11:33Z")

</div>

> [@ts678](#):
>
> one can switch levels to get some summarized information

Yes verbose will be enough for that and less overwhelming than explicit-only (explicit only is only barely more verbose than profiling).

---

<div class="post-metadata">

**Author:** ![gpatel-fr](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/g/7993a0/32.png) [@gpatel-fr](https://forum.duplicati.com/u/gpatel-fr)\
**Post date:** [January 30, 2023, 4:12pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/11 "2023-01-30T16:12:41Z")

</div>

> [@it-ruedi59](#):
>
> newest messages

as said switch back to ‘verbose’ as explicit-only is displaying too much information to be really useful in the small UI window.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 4:27pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/12 "2023-01-30T16:27:14Z")

</div>

> [@it-ruedi59](#):
>
> I couldn’t go back to the bottom (or beginning) of the live messages, thy are not later than Jan, 30 - 14:24.

appears to maybe contradict

> [@it-ruedi59](#):
>
> The newest messages are:  
> 30. Jan. 2023 14:58:

and what is the current time?

If messages are still moving (are they, or not?), it looks like it might still be doing a normal DB recreate.  
Using Verbose level (if it comes up) would give you a very clear indication of where current phase is at.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 4:47pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/13 "2023-01-30T16:47:31Z")

</div>

> [@ts678](#):
>
> and what is the current time?

Current time is 17:43 or 5:43 p.m.

Last message was from 14:58 - “ExplicitOnly”

> [@ts678](#):
>
> Using Verbose level (if it comes up) would give you a very clear indication of where current phase is at.

If’ve set the live log level to “Verbose”. Let’s see what Duplicati will write down here. For the moment the page is blank. I’ll have a look to the log page later this evening.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 4:49pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/14 "2023-01-30T16:49:49Z")

</div>

At the moment I see, that my reply from 5 p.m. wasn’t accepted by the forum robot.  
Should I paste it here, again?

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 4:52pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/15 "2023-01-30T16:52:14Z")

</div>

> [@it-ruedi59](#):
>
> Should I paste it here, again?

Might as well try. I don’t know what happened before, but watch closely for messages on post retry.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 5:26pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/16 "2023-01-30T17:26:58Z")

</div>

![Bildschirm­foto 2023-01-30 um 18.26.07](https://forum.duplicati.com/uploads/default/original/2X/3/311468144cd3ba079ee206d6be73e1d6e65594ed.png)

This happens… : )

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 5:37pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/17 "2023-01-30T17:37:06Z")

</div>

Now I try to rebuild our “missing” dialogue…

You wrote:  
There are numerous long-term ways to speed it up or avoid the need. Some were specifically stated.  
Short-term (as in right in the middle of a run), options are limited, however your OS has some knobs. Knowing what to tweak usually involves looking at performance tools to see how resources are used. Duplicati actually also has various exotic [options](https://duplicati.readthedocs.io/en/latest/06-advanced-options/), but you can’t change options in the middle of a run.

I wrote:  
I’ve learned that the backups aren’t prepared well for such a „mountain“ of data and a faulty server

You ask:  
Is that suspect for current issue? Is it ruled out? Care to describe? System can of course affect speed. Throwing hardware at rebuild can also be long-term improvement, e.g. SSD is faster than mechanical.

I wrote:  
The restore is running on Windows 10 (as VM) on a VMware Host. Unfortunately, the host is a single CPU one with 64GB of RAM and has mechanical HDDs inside. The VM itself is configured with 2 vCPUs and 8GB of RAM.

The task manager shows a CPU load of 5-14%, \<40MB of RAM and a speed range from 2 to 40 MB/s. It looks like a living application. : )

You wrote:  
I don’t know your current time. This is reverse-chronological, so how long has top one been at the top?  
Using `ExplicitOnly` was not explicitly suggested, but might be doing enough to detect new activity…

I’d have to do some research to see if I can recognize your top message, but if start was around 7, and messages stopped at 14, and restore has run 16 hours, then your current time is 7 + 14 = 21 right now, sitting still for 21 - 14 = 7 hours? Do OS tools show any activity in CPU or disk activity in Duplicati now?  
You possibly have an odd hang situation rather than performance issues, but there’s not much data yet.  
What OS is this, and are you familiar with performance tools to check for either an overload or no uses?

As described above it’s a simple Windows 10 Pro and there is no overload - duplicati is already working. Please have a look on the benchmarks above. Duplicati is the only application running on the VM - and it is - maybe you are right - a hanging situation. Although the log writes some different block information and messages which looks like an application that works through a fog of blocks.

I wrote:  
look for another way to recover the files?

You wrote:  
I’ve been asking about the old system. No response yet. What’s left of it? What other way do you have?

I wrote:  
The old system is/was a Proxmox VM with Debian Linux 10, included as a Samba Domain Member with a 4TB data-partition. After we had some restores to do the server crashed if the load was more than 150GB in a single restore.

The only way we have is to buy a new hardware, let the old system alive in a separated network, scratch all the folders and files which are verified and proof copied on the new server and a NAS.

You wrote:  
You should search back in the Live messages  
Are you familiar enough with this log to have a good handle on when one can switch levels to get some summarized information, so as to see the forest rather than the trees, but I don’t want to risk trees loss?  
Verbose might have given a good compromise-level view. I wonder if any other levels were tried before.

I wrote:  
It tried „Verbose“, „ExplicitOnly“ and „Profiling“. The last two options displays some items. The other ones are blank and left blank.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 6:32pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/18 "2023-01-30T18:32:38Z")

</div>

It doesn’t look like a pretty situation, but thanks for filling in some blanks. There’s still a conflict over

> [@it-ruedi59](#):
>
> It looks like a living application. : )

and the lack of recent live log output.

> [@it-ruedi59](#):
>
> The duplicati database has a size of 7 GB at the moment.

Is size still increasing? Also look for same filename with an extra suffix after the `.sqlite` on the right.  
`-journal` is probably most likely, but something else might be possible. Are any other files changing?

A sensitive but complex test is to use [Sysinternals Process Monitor](https://learn.microsoft.com/en-us/sysinternals/downloads/procmon) to look at Duplicati’s file accesses, primarily to test for aliveness. There’s only a small chance that low-level data will show where it’s at…

> [@it-ruedi59](#):
>
> The old system is/was a Proxmox VM with Debian Linux 10

If it’s still alive, you could consider copying its old database from ~user/.config/Duplicati to take a look.  
That might avoid the database recreate which may or may not be stuck (it could be tested more later).

Depending on available equipment, you could carefully do tests in parallel with the current experiment.  
Just make sure you don’t try to backup to or otherwise alter the S3 file content while testing elsewhere.  
Having multiple things all pointed at one destination is dangerous, because those things could conflict.

If you want to test a database, you can carefully set up the destination and use the [database](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#database-management) screen to  
either put the old file at the new assigned database path, or change the path to a copy of old database.  
`Restore` menu showing you all of the expected versions would then be a good indicator to test further.  
If test works (there should be little slowness because it has its database), then do the same elsewhere.

Going from Linux to Windows will add some complications, but you’re supposed to be able to restore if restore folder is explicitly given, because one can’t expect the Linux paths to line up with Windows use.

Copying files might also be an option, which would save any kind of restore after getting the database.

---

<div class="post-metadata">

**Author:** ![it-ruedi59](https://forum.duplicati.com/user_avatar/forum.duplicati.com/it-ruedi59/32/7880_2.png) [@it-ruedi59](https://forum.duplicati.com/u/it-ruedi59)\
**Post date:** [January 30, 2023, 7:19pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/19 "2023-01-30T19:19:33Z")

</div>

> [@ts678](#):
>
> It doesn’t look like a pretty situation

For sure, not. But this is the normal craziness of your doing. Isn’t it?

The database’ size is also freezed at 7GB, same as the progress bar, and there is no file / database with .sqlite extension. An -journal exists with a size of 0KB.

Sysinternals shows many activities to a file named C:\Users\asaadmin\AppData\Local\Temp\etilqs\_aRQPkC36tEkw4PB, but it looks like that the process is only working with that file.

While I’m writing this lines, something happens:  
DB size increased a little bit  
Processor usage increased  
Sysinternal crashed

And this messages appears:

 ![Bildschirm­foto 2023-01-30 um 20.16.32](https://forum.duplicati.com/uploads/default/original/2X/5/599a55bea0c27819115d644cecf64e0d3c12c385.png)

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [January 30, 2023, 7:55pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/20 "2023-01-30T19:55:46Z")

</div>

> [@it-ruedi59](#):
>
> etilqs

etilqs is sqlite spelled backwards. That might be an SQLite temporary file. Is it changing? I think I’ve seen heavy read activity on these when total block count gets large, although I don’t know if I’ve seen log stop.

> [@it-ruedi59](#):
>
> And this messages appears

> <https://github.com/duplicati/duplicati/blob/666b2281032460254839fdc3b6e1055fdf7ce1db/Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs#L424-L428>

> <https://github.com/duplicati/duplicati/blob/666b2281032460254839fdc3b6e1055fdf7ce1db/Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs#L470-L471>

The `.7` above is why you’re around that far on the progress bar. The dblock is larger than 50MB default.  
Pass 3 at 90% is the search of everything left. Pass 1 is milder, but this sure has a long count to finish…  
Long is relative though, 1000 out of 400,000 is a quarter of a percent. We don’t have a solid time history, however these probably won’t go any faster. You can wait for volume 6 of 1044 or plan a different plan…

Were any of the suggested alternatives based on using the old system feasible, or is backup all there is? There are several other ways to do Duplicati restores, but I’m not sure which handle large backups well.

Finding if it’s spending lots of time in SQLite code might be possible with [Sysinternals Process Explorer](https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer), maybe run as Administrator if Duplicati is (I don’t know). At Duplicati, right click → Properties → Threads perhaps sorting by CPU to see if highest user sounds like it’s spending lots of time in some SQLite code. This won’t lead to an immediate speed-up opportunity, but would at least confirm where its time is spent.

[Next page](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654.md?page=2)
