Skip to content

Commit 0285dd5

Browse files
authored
r2: r2demo -> just call it r2????
1 parent ab34582 commit 0285dd5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/content/docs/r2/examples/rclone.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ rclone config file
3030
# ~/.config/rclone/rclone.conf
3131
```
3232

33-
Then use an editor (`nano` or `vim`, for example) to add or edit the new provider. This example assumes you are adding a new `r2demo` provider:
33+
Then use an editor (`nano` or `vim`, for example) to add or edit the new provider. This example assumes you are adding a new `r2` provider:
3434

3535
```toml
36-
[r2demo]
36+
[r2]
3737
type = s3
3838
provider = Cloudflare
3939
access_key_id = abc123
@@ -54,15 +54,15 @@ You may then use the new `rclone` provider for any of your normal workflows.
5454
The [rclone tree](https://rclone.org/commands/rclone_tree/) command can be used to list the contents of the remote, in this case Cloudflare R2.
5555

5656
```sh
57-
rclone tree r2demo:
57+
rclone tree r2:
5858
# /
5959
# ├── user-uploads
6060
# │ └── foobar.png
6161
# └── my-bucket-name
6262
# ├── cat.png
6363
# └── todos.txt
6464

65-
rclone tree r2demo:my-bucket-name
65+
rclone tree r2:my-bucket-name
6666
# /
6767
# ├── cat.png
6868
# └── todos.txt
@@ -74,14 +74,14 @@ The [rclone copy](https://rclone.org/commands/rclone_copy/) command can be used
7474

7575
```sh
7676
# Upload dog.txt to the user-uploads bucket
77-
rclone copy dog.txt r2demo:user-uploads/
78-
rclone tree r2demo:user-uploads
77+
rclone copy dog.txt r2:user-uploads/
78+
rclone tree r2:user-uploads
7979
# /
8080
# ├── foobar.png
8181
# └── dog.txt
8282

8383
# Download dog.txt from the user-uploads bucket
84-
rclone copy r2demo:user-uploads/dog.txt .
84+
rclone copy r2:user-uploads/dog.txt .
8585
```
8686

8787
### A note about multipart upload part sizes
@@ -94,7 +94,7 @@ Balancing part size depends heavily on your use-case, but these factors can help
9494
You can configure rclone's multipart upload part size using the `--s3-chunk-size` CLI argument. Note that you might also have to adjust the `--s3-upload-cutoff` argument to ensure that rclone is using multipart uploads. Both of these can be set in your configuration file as well. Generally, `--s3-upload-cutoff` will be no less than `--s3-chunk-size`.
9595

9696
```sh
97-
rclone copy long-video.mp4 r2demo:user-uploads/ --s3-upload-cutoff=100M --s3-chunk-size=100M
97+
rclone copy long-video.mp4 r2:user-uploads/ --s3-upload-cutoff=100M --s3-chunk-size=100M
9898
```
9999

100100
## Generate presigned URLs
@@ -103,6 +103,6 @@ You can also generate presigned links which allow you to share public access to
103103

104104
```sh
105105
# You can pass the --expire flag to determine how long the presigned link is valid. The --unlink flag isn't supported by R2.
106-
rclone link r2demo:my-bucket-name/cat.png --expire 3600
106+
rclone link r2:my-bucket-name/cat.png --expire 3600
107107
# https://<accountid>.r2.cloudflarestorage.com/my-bucket-name/cat.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=<credential>&X-Amz-Date=<timestamp>&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=<signature>
108108
```

0 commit comments

Comments
 (0)