Add new options to delete-bucket command
Maintainer thường phản hồi trong vòng 1 ngày
@metadaddy đang làm issue này rồi.
Từ ngày 17/12/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Users sometimes need to delete a bucket and all the objects in that bucket. It is laborious to write a script to do so, and the use of b2 sync is not obvious. Add the following options to delete-bucket:
--recursivedelete all file versions in the bucket, then delete the bucket itself. The user is prompted for confirmation, unless the--forceoption is supplied. The command prints the details of each file version (using the same format as thelscommand) as it is deleted, unless the--quietoption is specified.--forcedo not prompt for confirmation when doing a recursive delete.--quietdo not print details of file versions as they are deleted.--deleteKeysdelete application keys scoped to this bucket, since they will be redundant.--deleteReplicationsdelete replication rules associated with this bucket.--deleteAllabbreviation for--recursive --deleteKeys --deleteReplications
The following description is in terms of B2 Native API operations, though the command will call the equivalent methods in b2-sdk-python:
When recursive is specified, after the confirmation step, the command will call b2_list_file_versions on the bucket once, and loop through the results, calling b2_delete_file_version for each file version and, if -quiet was not specified, printing the details of the file version. If either b2_list_file_versions or b2_delete_file_version returns an error, the command will terminate, reporting that error.
Once the command has called b2_delete_file_version for each file version returned by b2_list_file_versions, it will call b2_delete_bucket to delete the bucket itself, reporting any error returned by that operation.
Note that b2_delete_bucket may fail due to the bucket not being empty, as files may be uploaded to the bucket after b2_list_file_versions was called. In this case, the command will call b2_list_file_versions again, accompanying the error message from b2_delete_bucket with the message One or more files were uploaded while the bucket contents were being deleted: and the results of the b2_list_file_versions call.
- Ngôn ngữ chính
- Python
- Star
- 638
- Fork
- 138
- Merge trung bình
- 8 giờ 27 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Backblaze/B2_Command_Line_Tool
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Backblaze/B2_Command_Line_Tool#553 · 2 bình luận · 3 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Adopt the AI-native SDLC playbook and repository policiesCó thể đã có người làm @goanpeca đã nhận 18 ngày trước. Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Backblaze/B2_Command_Line_Tool#1192 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Backblaze/B2_Command_Line_Tool#1168 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add to MacPortsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
Backblaze/B2_Command_Line_Tool#1161 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
b2 ls timestamps human readableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 56/100
Backblaze/B2_Command_Line_Tool#1155 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Backblaze/B2_Command_Line_Tool
Issue tương tự
-
ライブラリを追加Đang mởpriority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
KATO-Hiro/AtCoderClans#13015 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
StringLiteral to IntegerType/LongType silently truncates fractional strings, changing predicate meaningCó thể đã có người làm @Shahzeb-DataEngineer đã nhận hôm nay. Đang mởkind:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/iceberg-python#4382 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
request-theme
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 62/100
LizardByte/ThemerrDB#10024 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
btclib-org/btclib-node#2505 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
open-webui/open-webui#34462 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày