Skip to content

borg delete/compact randomly does not return #9752

@zoot

Description

@zoot

I have a script which lists all archives to find the oldest one to delete.

The repo is quite large, with almost daily backups back to 2024.

Once the oldest archive $arch is found:

borg delete --debug --show-rc $user@$host:$repo::$arch

... and then if it returns 0, then:

borg compact --debug --show-rc $user@$host:$repo

It often fails to return / exit, hanging indefinitely.

I suspect it's at the compact step, but will update this thread when it occurs again.

I thought it may relate to SSH timeouts, but adding the following has not remedied the behaviour:

$ cat .ssh/config
Host *.backup.host.provider.domain
ServerAliveInterval 30
TCPKeepAlive yes

I sheepishly admit that this host is running borg 1.2.7 which may mean the issue is already resolved in a later release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions