You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/r2/examples/rclone.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ rclone config file
30
30
# ~/.config/rclone/rclone.conf
31
31
```
32
32
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:
34
34
35
35
```toml
36
-
[r2demo]
36
+
[r2]
37
37
type = s3
38
38
provider = Cloudflare
39
39
access_key_id = abc123
@@ -54,15 +54,15 @@ You may then use the new `rclone` provider for any of your normal workflows.
54
54
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.
55
55
56
56
```sh
57
-
rclone tree r2demo:
57
+
rclone tree r2:
58
58
# /
59
59
# ├── user-uploads
60
60
# │ └── foobar.png
61
61
# └── my-bucket-name
62
62
# ├── cat.png
63
63
# └── todos.txt
64
64
65
-
rclone tree r2demo:my-bucket-name
65
+
rclone tree r2:my-bucket-name
66
66
# /
67
67
# ├── cat.png
68
68
# └── todos.txt
@@ -74,14 +74,14 @@ The [rclone copy](https://rclone.org/commands/rclone_copy/) command can be used
74
74
75
75
```sh
76
76
# 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
79
79
# /
80
80
# ├── foobar.png
81
81
# └── dog.txt
82
82
83
83
# Download dog.txt from the user-uploads bucket
84
-
rclone copy r2demo:user-uploads/dog.txt .
84
+
rclone copy r2:user-uploads/dog.txt .
85
85
```
86
86
87
87
### 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
94
94
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`.
0 commit comments