duplicity
duplicity copied to clipboard
b2 URL error: appending [folder/] to url throws an error when using list-current-files or restore
Thanks for this great tool.
As in the manpage the B2 cloud storage backup url syntax is:
b2://account_id[:application_key]@bucket_name/[folder/]
The following works:
$ duplicity list-current-files b2://account_id[:application_key]@bucket_name
Appending a subdirectory of the archive into the URL does not work:
$ duplicity list-current-files b2://account_id[:application_key]@bucket_name/subdirectory/
The following error message is given:
listing files in: Local and Remote metadata are synchronized, no sync needed. Last full backup date: none Traceback (innermost last): File "/usr/bin/duplicity", line 62, in
with_tempdir(main) File "/usr/bin/duplicity", line 53, in with_tempdir fn() File "/usr/lib/python3.11/site-packages/duplicity/dup_main.py", line 1561, in main do_backup(action) File "/usr/lib/python3.11/site-packages/duplicity/dup_main.py", line 1646, in do_backup list_current(col_stats) File "/usr/lib/python3.11/site-packages/duplicity/dup_main.py", line 787, in list_current sig_chain = col_stats.get_signature_chain_at_time(time) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/duplicity/dup_collections.py", line 1076, in get_signature_chain_at_time raise CollectionsError("No signature chains found") duplicity.dup_collections.CollectionsError: No signature chains found
It seems like the bucket_name/[folder/]
may be parsed as the bucket name, therefore no backup is identified.
duplicity version 2.1.4