Skip to content

transaction recovery issue? #394

@ThomasWaldmann

Description

@ThomasWaldmann

See there: borgbackup/borg#2099

Not sure if the bug also happens with attic, but the suspicious code is also in attic:

https://github.com/jborg/attic/blob/0.16/attic/repository.py#L467

@jborg can you remember why you used "ab" (and not "wb") there?

At first glance, it seems to make no sense to append to an existing file, esp. if the file is a valid segment file that has already a MAGIC at the beginning and some entries in it, this would just add another MAGIC in the middle of the file (but that should not be there).

So, was that just a typo or is there some reason behind it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions