diff --git a/docs/infrastructure/backblaze.md b/docs/infrastructure/backblaze.md index 9c5aea3..9d530f9 100644 --- a/docs/infrastructure/backblaze.md +++ b/docs/infrastructure/backblaze.md @@ -18,7 +18,9 @@ Create a new bucket keeping only the last version of files: ```bash BUCKET_NAME="my-bucket" -b2 bucket create --lifecycle-rule '{"daysFromHidingToDeleting": 1, "daysFromUploadingToHiding": null, "fileNamePrefix": ""}' ${BUCKET_NAME} allPrivate +b2 bucket create "${BUCKET_NAME}" allPrivate +# To keep only the last version of files +b2 bucket create --lifecycle-rule '{"daysFromHidingToDeleting": 1, "daysFromUploadingToHiding": null, "fileNamePrefix": ""}' "${BUCKET_NAME}" allPrivate ``` ## :octicons-key-16: Creating Application Keys @@ -28,5 +30,5 @@ Create a new application key with specific permissions for a bucket: ```bash BUCKET_NAME="my-bucket" KEY_NAME="my-key" -b2 key create --bucket ${BUCKET_NAME} ${KEY_NAME} readFiles,writeFiles,listFiles +b2 key create --bucket "${BUCKET_NAME}" "${KEY_NAME}" readFiles,writeFiles,listFiles,deleteFiles,readBuckets,listBuckets ```