我正在尝试在 Ubuntu 22.04 5.19.0-38-generic 上恢复备份。
是否将主文件夹备份到硬盘上,现在应该在重新安装后将其恢复到主文件夹。
INFO 1
. Using temporary directory /tmp/duplicity-kokbuhzf-tempdir
INFO 1
. User error detail: Traceback (innermost last):
. File "/usr/bin/duplicity", line 92, in <module>
. with_tempdir(main)
. File "/usr/bin/duplicity", line 75, in with_tempdir
. fn()
. File "/usr/lib/python3/dist-packages/duplicity/dup_main.py", line 1555, in main
. action = commandline.ProcessCommandLine(sys.argv[1:])
. File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1188, in ProcessCommandLine
. args = parse_cmdline_options(cmdline_list)
. File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 802, in parse_cmdline_options
. lpath, backend_url = args_to_path_backend(args[0], args[1])
. File "/usr/lib/python3/dist-packages/duplicity/commandline.py", line 1080, in args_to_path_backend
. arg1_is_backend, arg2_is_backend = backend.is_backend_url(arg1), backend.is_backend_url(arg2)
. File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 170, in is_backend_url
. pu = ParsedUrl(url_string)
. File "/usr/lib/python3/dist-packages/duplicity/backend.py", line 344, in __init__
. raise InvalidBackendURL(u"missing // - relative paths not supported "
. duplicity.errors.InvalidBackendURL: missing // - relative paths not supported for scheme invalid: invalid://
.
ERROR 23 InvalidBackendURL
. InvalidBackendURL: missing // - relative paths not supported for scheme invalid: invalid://
假设错误源是文件名,如何确定错误源
提前致谢
答案1
解决方法:不要一次性恢复所有内容,而是逐个(或分批)恢复不同的目录,以查看哪个文件/目录导致问题(然后直接忽略它)。这对我来说很有效。“有趣”的事实:如果我尝试恢复一批六个文件夹,则会出现错误消息并且恢复被中断,如果我逐个/分批(在我的情况下是两个)恢复它们,则一切正常。
论坛中的一位作者也建议安装 python-oauth,所以我安装了 python3-oauth2client(问题发生时已经安装了 Python3-oauthlib),但我不确定这是否解决了任何问题,所以也许没有必要。