Add new options to delete-bucket command
I maintainer di solito rispondono entro 1 giorno
@metadaddy ci sta già lavorando.
Dal 17/12/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 638
- Fork
- 138
- Merge medio
- 8h 27m
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Backblaze/B2_Command_Line_Tool
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Backblaze/B2_Command_Line_Tool#553 · 2 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Adopt the AI-native SDLC playbook and repository policiesForse già presa @goanpeca l’ha presa 18 giorni fa. Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Backblaze/B2_Command_Line_Tool#1192 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Backblaze/B2_Command_Line_Tool#1168 ·
I maintainer di solito rispondono entro 1 giorno
-
Add to MacPortsAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
Backblaze/B2_Command_Line_Tool#1161 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 56/100
Backblaze/B2_Command_Line_Tool#1155 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Backblaze/B2_Command_Line_Tool
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
btclib-org/btclib-node#2505 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
open-webui/open-webui#34462 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gorakhargosh/watchdog#1462 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
openwisp/openwisp-monitoring#889 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
IETF-Hackathon/pqc-certificates#351 ·
I maintainer di solito rispondono entro 2 giorni