Question about databases

Hello.

I have a backup from 2023 that was associated with a Duplicati database. I can recover the backup without any problems, but I wanted to know if it can be integrated into the current backup database so that I can have everything in the same backup.

I have tried copying the files from the 2023 backup to the folder where the current files are stored, but I get an error message and cannot repair the database, even by deleting and recreating it. The message: “The database was attempted repaired, but the repair did not complete. This database may be incomplete and the backup process cannot continue. You may delete the local database and attempt to repair it again.” And when I try to delete database and recreate: “Could not find file ‘\\?\E:\Backup\duplicati-bd9da23927c424509802c17e71573219a.dblock.zip.aes’.” and other more.

I have two problems. Is there any way to fix this without having to create a new backup with its own database? And is there a way to integrate several backups into a single database?

Thank you very much.

Hi @Carlos, welcome to the forum :waving_hand:

The local database is a lookup table for the remote storage essentially.

What this means is that you can always create the database from remote storage.
If you were to combine to storage folders, it should (in theory), be possible to recreate the database, and it will now contain both backups. You would need all files from both backups for this to work.

I have not tested this, so make sure you verify this if you try it.
A less problematic path would simply be to change the sources in one of the backups to include all files from both backups. The first run will be slower, due to new files, but after that it will work as normal.

Is this after you attempt to merge the contents? Does the file actually exist?

Thanks for your reply!

The file does not exist. I searched for it in both databases and it does not exist.