Borg repository recovery

Borg repository recovery must protect segment data before rebuilding indexes or deleting damaged objects.

Borg repositories store deduplicated objects in transaction-log segments and use indexes and hints to locate current objects. Indexes can be regenerated from segments, but damaged or missing segment entries can affect every archive that references those objects.

Understand the symptom

A committed segment history is authoritative; indexes and hints are derived lookup structures.

WHY

What is happening

Borg documents segment commits, index regeneration, and repository checks. Repair can make a repository internally consistent by discarding unrecoverable objects, so it belongs on a complete protected copy with expected losses reviewed.

What you may see

Symptoms that change the recovery path.

01

Segment integrity error

A segment header, entry, or CRC cannot be validated.

02

Index or hints mismatch

Lookup metadata does not match committed segments.

03

Archive check reports missing chunks

One damaged object can be referenced by many files or archives.

04

Repository opens on one client only

Cache, security state, keys, or remote access may differ.

Protect the source

Actions that can make the situation worse.

01

Repair can discard objects

Consistency is not the same as complete recovery.

02

Prune or compact removes history

Freeze retention operations during assessment.

03

Missing keys block content

Do not separate encrypted repositories from key material and passphrases.

Do this now

Safe steps before evaluation.

01

Stop backup and maintenance jobs

Prevent create, prune, compact, and repair writes.

02

Snapshot or copy the repository

Preserve permissions and all segment files.

03

Collect keys and security state

Store credentials securely, not in the public form.

04

Save check output

Record segment IDs, object IDs, archive names, and command versions.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Repository inventory

NEPFOSYS maps committed segments, indexes, hints, integrity files, archives, keys, and storage health.

02

Copy-based index reconstruction

Derived metadata is rebuilt only on duplicates while damaged segments are preserved.

03

Archive validation

Priority archives, paths, chunks, timestamps, and extracted files are checked and gaps documented.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

Can Borg rebuild a lost index?

Often, because indexes are derived from committed segment entries.

Does repair recover missing objects?

No. It may remove references or replace missing data to restore consistency.

Do I need the Borg key?

Yes for encrypted repository content, along with the correct passphrase when configured.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case