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.
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.