Skip to content

Commit

Permalink
docs(refactor): add needed permissions for restic/autorestic
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrennand committed Sep 20, 2024
1 parent bcb3795 commit de80c09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/infrastructure/backblaze.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```

0 comments on commit de80c09

Please sign in to comment.