Lost config file, is repo still recoverable?

Hi all,

I have a repository of some data that appears to have a missing config file, though everything else seems to be in tact. I have no other backup of this data :cold_sweat:.

I saw "Unable to open config file" – Can I restore it? but given how old it is I’m not sure if it’s still relevant, and the patch is no longer accessible (and perhaps not applicable).

➜  ~ restic mount -r /fedora-restic mnt/
Fatal: unable to open config file: stat /fedora-restic/config: no such file or directory
Is there a repository at the following location?
/fedora-restic

➜  ~ restic version
restic 0.16.1 compiled with go1.21.3 on linux/amd64                                                                                                                                                       

I can’t recall which restic version the repo was initialized with, but the key in the repo says it was created in October of 2022, around the 0.14.0 days. Is this in any way recoverable? Thanks :slight_smile:

I’ve updated my change-repo-id branch to be based on restic 0.17.0. It includes a ./restic debug fakeConfig command that can create a new config file. Build restic using go build -tags debug ./cmd/restic (requires at least go 1.19).

The fake config file will use different chunker parameters so deduplication will suffer if you add further data to the repository. But the fake config should be good enough to read data in the repository. 0.14.0 likely means that the repository uses repository format 2. Any restic version that supports compression, should be able to read that repository.

3 Likes