Atualizei meu servidor Debian (de bullseye para bookworm), hospedado na Hetzner. Eu uso o Storage Box + borg como um meio de backup. No entanto, desde a atualização, todas as minhas tentativas de execução borg
terminam com Connection timed out
. Não sei como me recuperar disso.
Mudança de versão do borg: 1.1.16-3 -> 1.2.4-1 (nota: este é o versionamento do Debian, mas deve corresponder às versões reais do borg
Script chamado (resumido):
BACKUP_DIR=/mnt/backup/mysql
export BORG_REPO=ssh://[email protected]:23/./my-dir
export BORG_PASSPHRASE='mysecurepassphrase'
borg create \
--stats \
--list \
--show-rc \
--compression lz4 \
::'{hostname}-db-{now}' \
$BACKUP_DIR
saída conforme fornecida quando executada com--debug
Sun Feb 25 07:53:31 PM CET 2024 Starting backup
using builtin fallback logging configuration
33 self tests completed in 0.05 seconds
SSH command line: ['ssh', '-p', '23', '[email protected]', 'borg-1.2', 'serve', '--debug']
Remote: ssh: connect to host XYZ.your-storagebox.de port 23: Connection timed out
Connection closed by remote host. Is borg working on the server?
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5213, in main
exit_code = archiver.run(args)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 5144, in run
return set_ec(func(args))
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/borg/archiver.py", line 161, in wrapper
repository = RemoteRepository(location.omit_archive(), create=create, exclusive=argument(args, exclusive),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/borg/remote.py", line 578, in __init__
raise ConnectionClosedWithHint('Is borg working on the server?') from None
borg.remote.ConnectionClosedWithHint: Connection closed by remote host. Is borg working on the server?
Platform: Linux ABC 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
Linux: Unknown Linux
Borg: 1.2.4 Python: CPython 3.11.2 msgpack: 1.0.3 fuse: None [pyfuse3,llfuse]
PID: 42470 CWD: /root
sys.argv: ['/usr/bin/borg', 'create', '--remote-path=borg-1.2', '--debug', '--progress', '--stats', '--list', '--show-rc', '--compression', 'lz4', '::{hostname}-db-{now}', 'my-dir']
SSH_ORIGINAL_COMMAND: None
terminating with error status, rc 2
Nota importante: A caixa de armazenamento está disponível, pois posso fazer backup de outra máquina nela (através do borg)