我们正在使用托管的 BORG 服务,并在初始化 repo 时收到以下警告:
By default repositories initialized with this version will produce security
errors if written to with an older version (up to and including Borg 1.0.8).
If you want to use these older versions, you can disable the check by running:
borg upgrade --disable-tam 'ssh://USER@HOST/./dmapp'
See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications.
我猜本地版本与远程版本不匹配。有人能证实这一点吗?
有没有办法检查远程 BORG 版本?
根据文档,远程版本应为 1.1
我的本地版本:
borg --version
borg 1.1.3
答案1
引用的消息并不表明远程版本已过时,但通知您尝试使用过时的客户端写入存储库将引发错误。
如果您创建本地存储库:
$ borg init -e repokey $(mktemp -d)
Enter new passphrase:
Enter same passphrase again:
Do you want your passphrase to be displayed for verification? [yN]: y
Your passphrase (between double-quotes): "test"
Make sure the passphrase displayed above is exactly what you wanted.
By default repositories initialized with this version will produce security
errors if written to with an older version (up to and including Borg 1.0.8).
If you want to use these older versions, you can disable the check by running:
borg upgrade --disable-tam /tmp/tmp.9Fc74B7qj9
See https://borgbackup.readthedocs.io/en/stable/changes.html#pre-1-0-9-manifest-spoofing-vulnerability for details about the security implications.
IMPORTANT: you will need both KEY AND PASSPHRASE to access this repo!
Use "borg key export" to export the key, optionally in printable format.
Write down the passphrase. Store both at safe place(s).
回答你问题的第二部分:据我所知,没有办法检查 borg 的远程版本。但是,你可以使用以下命令检查存储库的版本borg config -l <REPO>
:
$ borg config -l /tmp/tmp.9Fc74B7qj9/
[repository]
version = 1
segments_per_dir = 1000
max_segment_size = 524288000
storage_quota = 0
additional_free_space = 0
append_only = 0
id = 429642bc7ac26c28daa69f7d4654c36a07a15b5d1ca3eb6b0d4a264c677689dc
希望这对您有帮助,祝您备份愉快;)