Architectural Proposal: Intrinsic Repository Resilience

Architectural Proposal: Intrinsic Repository Resilience

Hello everyone,

Over the last few months, while learning more about Duplicati’s repository architecture, I started thinking about a specific failure scenario that, as far as I understand, is not directly addressed today.

This proposal is not about protecting against disk failure, site failure or disaster recovery. Duplicati already provides excellent mechanisms for those scenarios through multiple destinations and well-established backup strategies such as the 3-2-1 rule.

Instead, I focused on a different failure domain:

What happens if an individual repository object (for example, a .dblock) is accidentally deleted or becomes corrupted, while the storage itself is still available?

Today, recovering from this kind of problem typically requires another copy of the repository or access to the original source data.

This led me to wonder whether the repository itself could eventually become more resilient to limited internal object loss.

From this idea, I developed an architectural proposal that I called Intrinsic Repository Resilience.

The proposal intentionally does not suggest a specific implementation, algorithm or repository format.

Instead, it explores whether repository resilience could become an intrinsic capability of the repository itself, maintained automatically through user-defined resilience policies while leaving all implementation choices entirely to the Duplicati maintainers.

The document also explains why I believe this concept is complementary to existing features such as multiple backup destinations, rather than an alternative to them. In my view, these mechanisms protect different failure domains and can coexist as independent layers of protection.

I am not a Duplicati developer, and I am not proposing an implementation. My goal is simply to contribute an architectural idea that might be interesting to discuss with the community.

I have prepared a structured proposal (the PDF is attached) describing the motivation, architectural principles, behavioural model and possible technical directions.

I would genuinely appreciate any feedback—whether supportive or critical—from maintainers and community members alike.

Thank you for taking the time to read it.

Intrinsic Repository Resilience.zip (258.5 KB)