# 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:** 1\
**Showing post:** 22

<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 31, 2023, 5:26pm UTC](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654/22 "2023-01-31T17:26:55Z")

</div>

I don’t know the timeframe desired but I assume fast is desired, so I agree prior path looked real slow.

[Disaster Recovery](https://duplicati.readthedocs.io/en/latest/08-disaster-recovery/) will suggest several methods. [Restoring files if your Duplicati installation is lost](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#restoring-files-if-your-duplicati-installation-is-lost) is a `Direct restore from backup files` which still builds a database, but just for the latest version, so should move a little faster and might possibly avoid some problem only present in some older backup.

This temporary DB is not accessible for regular use, so is a poor way to go if one wants to continue to backup. I think one can get a permanent one-version database with `--version` on a [repair](https://duplicati.readthedocs.io/en/latest/04-using-duplicati-from-the-command-line/#the-repair-command) command.

Your database recreating problem can of course be avoided if you can get the old one, or source files.

[Duplicati.CommandLine.RecoveryTool.exe](https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/#duplicaticommandlinerecoverytoolexe) has no database, but does take steps to build its own index from the `dblock` files that it will download. Needed space is nearly the size now needed at destination.

I’m not sure how fast it runs on a big restore, and I’m not sure how well it handles a cross-platform one.  
If it runs out of memory for this big backup, there appears to be a `--build-index-with-files` option.  
[Build RecoveryTool index in memory by default #4061](https://github.com/duplicati/duplicati/pull/4061)

Somebody found it doesn’t restore empty files. That’s been fixed by gpatel-fr but is not in a release yet.

Further out are several tools that don’t use Duplicati code at all (so no need for .NET Framework, etc.).  
[Independent restore program](https://forum.duplicati.com/t/independent-restore-program/2316) is an older one in Python.

[0-byte files are not restored with RecoveryTool #4884](https://github.com/duplicati/duplicati/issues/4884) mentioned a new variant of an older tool in Rust.  
[Rust Duplicati Restore](https://github.com/7ERr0r/duplicati-restore-rs) and I have no experience with either Rust tool, nor do I know how they operate.

---

_[View the full topic](https://forum.duplicati.com/t/timespan-to-rebuild-a-database/15654)._
