diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 1a3526825a41e..0000000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,4 +0,0 @@ -github: [ncw] -patreon: njcw -liberapay: ncw -custom: ["https://rclone.org/donate/"] diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000000..123014908bebb --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 784a236ccf9c8..f049ab7bef31f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,29 +8,31 @@ name: build on: push: branches: - - '*' + - '**' tags: - - '*' + - '**' pull_request: workflow_dispatch: inputs: manual: + description: Manual run (bypass default conditions) + type: boolean required: true default: true jobs: build: - if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }} + if: ${{ github.event.inputs.manual == 'true' || (github.repository == 'rclone/rclone' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) }} timeout-minutes: 60 strategy: fail-fast: false matrix: - job_name: ['linux', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.16', 'go1.17'] + job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.19', 'go1.20'] include: - job_name: linux os: ubuntu-latest - go: '1.18.x' + go: '1.21' gotags: cmount build_flags: '-include "^linux/"' check: true @@ -39,9 +41,16 @@ jobs: librclonetest: true deploy: true + - job_name: linux_386 + os: ubuntu-latest + go: '1.21' + goarch: 386 + gotags: cmount + quicktest: true + - job_name: mac_amd64 os: macos-11 - go: '1.18.x' + go: '1.21' gotags: 'cmount' build_flags: '-include "^darwin/amd64" -cgo' quicktest: true @@ -50,14 +59,14 @@ jobs: - job_name: mac_arm64 os: macos-11 - go: '1.18.x' + go: '1.21' gotags: 'cmount' build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib' deploy: true - job_name: windows os: windows-latest - go: '1.18.x' + go: '1.21' gotags: cmount cgo: '0' build_flags: '-include "^windows/"' @@ -67,20 +76,20 @@ jobs: - job_name: other_os os: ubuntu-latest - go: '1.18.x' + go: '1.21' build_flags: '-exclude "^(windows/|darwin/|linux/)"' compile_all: true deploy: true - - job_name: go1.16 + - job_name: go1.19 os: ubuntu-latest - go: '1.16.x' + go: '1.19' quicktest: true racequicktest: true - - job_name: go1.17 + - job_name: go1.20 os: ubuntu-latest - go: '1.17.x' + go: '1.20' quicktest: true racequicktest: true @@ -90,14 +99,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - stable: 'false' go-version: ${{ matrix.go }} check-latest: true @@ -116,12 +124,17 @@ jobs: sudo modprobe fuse sudo chmod 666 /dev/fuse sudo chown root:$USER /etc/fuse.conf - sudo apt-get install fuse libfuse-dev rpm pkg-config + sudo apt-get install fuse3 libfuse-dev rpm pkg-config if: matrix.os == 'ubuntu-latest' - name: Install Libraries on macOS shell: bash run: | + # https://github.com/Homebrew/brew/issues/15621#issuecomment-1619266788 + # https://github.com/orgs/Homebrew/discussions/4612#discussioncomment-6319008 + unset HOMEBREW_NO_INSTALL_FROM_API + brew untap --force homebrew/core + brew untap --force homebrew/cask brew update brew install --cask macfuse if: matrix.os == 'macos-11' @@ -155,7 +168,7 @@ jobs: env - name: Go module cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -209,48 +222,57 @@ jobs: RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} # working-directory: '$(modulePath)' # Deploy binaries if enabled in config && not a PR && not a fork - if: matrix.deploy && github.head_ref == '' && github.repository == 'rclone/rclone' + if: env.RCLONE_CONFIG_PASS != '' && matrix.deploy && github.head_ref == '' && github.repository == 'rclone/rclone' lint: - if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }} + if: ${{ github.event.inputs.manual == 'true' || (github.repository == 'rclone/rclone' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) }} timeout-minutes: 30 name: "lint" runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Code quality test - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest + # Run govulncheck on the latest go version, the one we build binaries with + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + check-latest: true + + - name: Install govulncheck + run: go install golang.org/x/vuln/cmd/govulncheck@latest + + - name: Scan for vulnerabilities + run: govulncheck ./... + android: - if: ${{ github.repository == 'rclone/rclone' || github.event.inputs.manual }} + if: ${{ github.event.inputs.manual == 'true' || (github.repository == 'rclone/rclone' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) }} timeout-minutes: 30 name: "android-all" runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # Upgrade together with NDK version - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v4 with: - go-version: 1.18.x - - # Upgrade together with Go version. Using a GitHub-provided version saves around 2 minutes. - - name: Force NDK version - run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;23.1.7779620" | grep -v = || true + go-version: '1.21' - name: Go module cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -271,27 +293,29 @@ jobs: go install golang.org/x/mobile/cmd/gobind@latest go install golang.org/x/mobile/cmd/gomobile@latest env PATH=$PATH:~/go/bin gomobile init + echo "RCLONE_NDK_VERSION=21" >> $GITHUB_ENV - name: arm-v7a gomobile build - run: env PATH=$PATH:~/go/bin gomobile bind -v -target=android/arm -javapkg=org.rclone -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} github.com/rclone/rclone/librclone/gomobile + run: env PATH=$PATH:~/go/bin gomobile bind -androidapi ${RCLONE_NDK_VERSION} -v -target=android/arm -javapkg=org.rclone -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} github.com/rclone/rclone/librclone/gomobile - name: arm-v7a Set environment variables shell: bash run: | - echo "CC=$(echo $ANDROID_HOME/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi16-clang)" >> $GITHUB_ENV + echo "CC=$(echo $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi${RCLONE_NDK_VERSION}-clang)" >> $GITHUB_ENV echo "CC_FOR_TARGET=$CC" >> $GITHUB_ENV echo 'GOOS=android' >> $GITHUB_ENV echo 'GOARCH=arm' >> $GITHUB_ENV echo 'GOARM=7' >> $GITHUB_ENV echo 'CGO_ENABLED=1' >> $GITHUB_ENV echo 'CGO_LDFLAGS=-fuse-ld=lld -s -w' >> $GITHUB_ENV + - name: arm-v7a build - run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-16-armv7a . + run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-${RCLONE_NDK_VERSION}-armv7a . - name: arm64-v8a Set environment variables shell: bash run: | - echo "CC=$(echo $ANDROID_HOME/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang)" >> $GITHUB_ENV + echo "CC=$(echo $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android${RCLONE_NDK_VERSION}-clang)" >> $GITHUB_ENV echo "CC_FOR_TARGET=$CC" >> $GITHUB_ENV echo 'GOOS=android' >> $GITHUB_ENV echo 'GOARCH=arm64' >> $GITHUB_ENV @@ -299,12 +323,12 @@ jobs: echo 'CGO_LDFLAGS=-fuse-ld=lld -s -w' >> $GITHUB_ENV - name: arm64-v8a build - run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-21-armv8a . + run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-${RCLONE_NDK_VERSION}-armv8a . - name: x86 Set environment variables shell: bash run: | - echo "CC=$(echo $ANDROID_HOME/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android16-clang)" >> $GITHUB_ENV + echo "CC=$(echo $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android${RCLONE_NDK_VERSION}-clang)" >> $GITHUB_ENV echo "CC_FOR_TARGET=$CC" >> $GITHUB_ENV echo 'GOOS=android' >> $GITHUB_ENV echo 'GOARCH=386' >> $GITHUB_ENV @@ -312,12 +336,12 @@ jobs: echo 'CGO_LDFLAGS=-fuse-ld=lld -s -w' >> $GITHUB_ENV - name: x86 build - run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-16-x86 . + run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-${RCLONE_NDK_VERSION}-x86 . - name: x64 Set environment variables shell: bash run: | - echo "CC=$(echo $ANDROID_HOME/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang)" >> $GITHUB_ENV + echo "CC=$(echo $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android${RCLONE_NDK_VERSION}-clang)" >> $GITHUB_ENV echo "CC_FOR_TARGET=$CC" >> $GITHUB_ENV echo 'GOOS=android' >> $GITHUB_ENV echo 'GOARCH=amd64' >> $GITHUB_ENV @@ -325,7 +349,7 @@ jobs: echo 'CGO_LDFLAGS=-fuse-ld=lld -s -w' >> $GITHUB_ENV - name: x64 build - run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-21-x64 . + run: go build -v -tags android -trimpath -ldflags '-s -X github.com/rclone/rclone/fs.Version='${VERSION} -o build/rclone-android-${RCLONE_NDK_VERSION}-x64 . - name: Upload artifacts run: | @@ -333,4 +357,4 @@ jobs: env: RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} # Upload artifacts if not a PR && not a fork - if: github.head_ref == '' && github.repository == 'rclone/rclone' + if: env.RCLONE_CONFIG_PASS != '' && github.head_ref == '' && github.repository == 'rclone/rclone' diff --git a/.github/workflows/build_publish_beta_docker_image.yml b/.github/workflows/build_publish_beta_docker_image.yml new file mode 100644 index 0000000000000..de161a10c532b --- /dev/null +++ b/.github/workflows/build_publish_beta_docker_image.yml @@ -0,0 +1,61 @@ +name: Docker beta build + +on: + push: + branches: + - master +jobs: + build: + if: github.repository == 'rclone/rclone' + runs-on: ubuntu-latest + name: Build image job + steps: + - name: Checkout master + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + # This is the user that triggered the Workflow. In this case, it will + # either be the user whom created the Release or manually triggered + # the workflow_dispatch. + username: ${{ github.actor }} + # `secrets.GITHUB_TOKEN` is a secret that's automatically generated by + # GitHub Actions at the start of a workflow run to identify the job. + # This is used to authenticate against GitHub Container Registry. + # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret + # for more detailed information. + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and publish image + uses: docker/build-push-action@v5 + with: + file: Dockerfile + context: . + push: true # push the image to ghcr + tags: | + ghcr.io/rclone/rclone:beta + rclone/rclone:beta + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 + cache-from: type=gha + cache-to: type=gha,mode=max + provenance: false + # Eventually cache will need to be cleared if builds more frequent than once a week + # https://github.com/docker/build-push-action/issues/252 diff --git a/.github/workflows/build_publish_release_docker_image.yml b/.github/workflows/build_publish_release_docker_image.yml index 9d89545dcd710..d101268bf8e68 100644 --- a/.github/workflows/build_publish_release_docker_image.yml +++ b/.github/workflows/build_publish_release_docker_image.yml @@ -16,7 +16,7 @@ jobs: name: Build image job steps: - name: Checkout master - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get actual patch version @@ -45,7 +45,7 @@ jobs: name: Build docker plugin job steps: - name: Checkout master - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build and publish docker plugin diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml new file mode 100644 index 0000000000000..6a2264b93a015 --- /dev/null +++ b/.github/workflows/winget.yml @@ -0,0 +1,14 @@ +name: Publish to Winget +on: + release: + types: [released] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: Rclone.Rclone + installers-regex: '-windows-\w+\.zip$' + token: ${{ secrets.WINGET_TOKEN }} diff --git a/.gitignore b/.gitignore index ff61403f32e3d..0dd3728963cd7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,10 +8,10 @@ rclone.iml .idea .history *.test -*.log *.iml fuzz-build.zip *.orig *.rej Thumbs.db __pycache__ +.DS_Store \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml index 67b3edda9afa1..0d61df700a51f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,15 +2,17 @@ linters: enable: - - deadcode - errcheck - goimports - revive - ineffassign - - structcheck - - varcheck - govet - unconvert + - staticcheck + - gosimple + - stylecheck + - unused + - misspell #- prealloc #- maligned disable-all: true @@ -20,11 +22,79 @@ issues: exclude-use-default: false # Maximum issues count per one linter. Set to 0 to disable. Default is 50. - max-per-linter: 0 + max-issues-per-linter: 0 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3. max-same-issues: 0 + exclude-rules: + + - linters: + - staticcheck + text: 'SA1019: "github.com/rclone/rclone/cmd/serve/httplib" is deprecated' + + # don't disable the revive messages about comments on exported functions + include: + - EXC0012 + - EXC0013 + - EXC0014 + - EXC0015 + run: # timeout for analysis, e.g. 30s, 5m, default is 1m timeout: 10m + +linters-settings: + revive: + # setting rules seems to disable all the rules, so re-enable them here + rules: + - name: blank-imports + disabled: false + - name: context-as-argument + disabled: false + - name: context-keys-type + disabled: false + - name: dot-imports + disabled: false + - name: empty-block + disabled: true + - name: error-naming + disabled: false + - name: error-return + disabled: false + - name: error-strings + disabled: false + - name: errorf + disabled: false + - name: exported + disabled: false + - name: increment-decrement + disabled: true + - name: indent-error-flow + disabled: false + - name: package-comments + disabled: false + - name: range + disabled: false + - name: receiver-naming + disabled: false + - name: redefines-builtin-id + disabled: true + - name: superfluous-else + disabled: true + - name: time-naming + disabled: false + - name: unexported-return + disabled: false + - name: unreachable-code + disabled: true + - name: unused-parameter + disabled: true + - name: var-declaration + disabled: false + - name: var-naming + disabled: false + stylecheck: + # Only enable the checks performed by the staticcheck stand-alone tool, + # as documented here: https://staticcheck.io/docs/configuration/options/#checks + checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1023"] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f299a4691ba32..60cfb30067e39 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -77,7 +77,7 @@ Make sure you * Add [documentation](#writing-documentation) for a new feature. * [Commit your changes](#committing-your-changes) using the [message guideline](#commit-messages). -When you are done with that push your changes to Github: +When you are done with that push your changes to GitHub: git push -u origin my-new-feature @@ -88,7 +88,7 @@ Your changes will then get reviewed and you might get asked to fix some stuff. I You may sometimes be asked to [base your changes on the latest master](#basing-your-changes-on-the-latest-master) or [squash your commits](#squashing-your-commits). -## Using Git and Github ## +## Using Git and GitHub ## ### Committing your changes ### @@ -419,7 +419,7 @@ remote or an fs. Research - * Look at the interfaces defined in `fs/fs.go` + * Look at the interfaces defined in `fs/types.go` * Study one or more of the existing remotes Getting going @@ -428,14 +428,19 @@ Getting going * box is a good one to start from if you have a directory-based remote * b2 is a good one to start from if you have a bucket-based remote * Add your remote to the imports in `backend/all/all.go` - * HTTP based remotes are easiest to maintain if they use rclone's rest module, but if there is a really good go SDK then use that instead. + * HTTP based remotes are easiest to maintain if they use rclone's [lib/rest](https://pkg.go.dev/github.com/rclone/rclone/lib/rest) module, but if there is a really good go SDK then use that instead. * Try to implement as many optional methods as possible as it makes the remote more usable. - * Use lib/encoder to make sure we can encode any path name and `rclone info` to help determine the encodings needed + * Use [lib/encoder](https://pkg.go.dev/github.com/rclone/rclone/lib/encoder) to make sure we can encode any path name and `rclone info` to help determine the encodings needed * `rclone purge -v TestRemote:rclone-info` * `rclone test info --all --remote-encoding None -vv --write-json remote.json TestRemote:rclone-info` * `go run cmd/test/info/internal/build_csv/main.go -o remote.csv remote.json` * open `remote.csv` in a spreadsheet and examine +Important: + + * Please use [lib/rest](https://pkg.go.dev/github.com/rclone/rclone/lib/rest) if you are implementing a REST like backend and parsing XML/JSON in the backend. It makes maintenance much easier. + * If your backend is HTTP based then please use rclone's Client or Transport from [fs/fshttp](https://pkg.go.dev/github.com/rclone/rclone/fs/fshttp) - this adds features like `--dump bodies`, `--tpslimit`, `--user-agent` without you having to code anything! + Unit tests * Create a config entry called `TestRemote` for the unit tests to use @@ -469,7 +474,7 @@ alphabetical order of full name of remote (e.g. `drive` is ordered as * `README.md` - main GitHub page * `docs/content/remote.md` - main docs page (note the backend options are automatically added to this file with `make backenddocs`) * make sure this has the `autogenerated options` comments in (see your reference backend docs) - * update them with `make backenddocs` - revert any changes in other backends + * update them in your backend with `bin/make_backend_docs.py remote` * `docs/content/overview.md` - overview docs * `docs/content/docs.md` - list of remotes in config section * `docs/content/_index.md` - front page of rclone.org diff --git a/Dockerfile b/Dockerfile index 0a5cad385712b..fa6cc94c53c46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN ./rclone version # Begin final image FROM alpine:latest -RUN apk --no-cache add ca-certificates fuse tzdata && \ +RUN apk --no-cache add ca-certificates fuse3 tzdata && \ echo "user_allow_other" >> /etc/fuse.conf COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/ diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 8b24b3e3691bd..3ab1c22482203 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -16,6 +16,11 @@ Current active maintainers of rclone are: | Max Sum | @Max-Sum | union backend | | Fred | @creativeprojects | seafile backend | | Caleb Case | @calebcase | storj backend | +| wiserain | @wiserain | pikpak backend | +| albertony | @albertony | | +| Chun-Hung Tseng | @henrybear327 | Proton Drive Backend | +| Hideo Aoyama | @boukendesho | snap packaging | +| nielash | @nielash | bisync | **This is a work in progress Draft** diff --git a/MANUAL.html b/MANUAL.html index 7b39794fbedda..73fda273168a9 100644 --- a/MANUAL.html +++ b/MANUAL.html @@ -81,7 +81,7 @@

rclone(1) User Manual

Nick Craig-Wood

-

Mar 18, 2022

+

Sep 11, 2023

Rclone syncs your files to cloud storage

rclone logo

@@ -95,7 +95,7 @@

Rclone syncs your files to clo
  • Donate.
  • About rclone

    -

    Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces. Over 40 cloud storage products support rclone including S3 object stores, business & consumer file storage services, as well as standard transfer protocols.

    +

    Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces. Over 70 cloud storage products support rclone including S3 object stores, business & consumer file storage services, as well as standard transfer protocols.

    Rclone has powerful cloud equivalents to the unix commands rsync, cp, mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax includes shell pipeline support, and --dry-run protection. It is used at the command line, in scripts or via its API.

    Users call rclone "The Swiss army knife of cloud storage", and "Technology indistinguishable from magic".

    Rclone really looks after your data. It preserves timestamps and verifies checksums at all times. Transfers over limited bandwidth; intermittent connections, or subject to quota can be restarted, from the last good file transferred. You can check the integrity of your files. Where possible, rclone employs server-side transfers to minimise local bandwidth use and transfers from one provider to another without using local disk.

    @@ -130,7 +130,7 @@

    Features

  • Move files to cloud storage deleting the local after verification
  • Check hashes and for missing/extra files
  • Mount your cloud storage as a network disk
  • -
  • Serve local or remote files over HTTP/WebDav/FTP/SFTP/dlna
  • +
  • Serve local or remote files over HTTP/WebDav/FTP/SFTP/DLNA
  • Experimental Web based GUI
  • Supported providers

    @@ -144,23 +144,32 @@

    Supported providers

  • Backblaze B2
  • Box
  • Ceph
  • +
  • China Mobile Ecloud Elastic Object Storage (EOS)
  • +
  • Arvan Cloud Object Storage (AOS)
  • Citrix ShareFile
  • -
  • C14
  • +
  • Cloudflare R2
  • DigitalOcean Spaces
  • Digi Storage
  • Dreamhost
  • Dropbox
  • Enterprise File Fabric
  • +
  • Fastmail Files
  • FTP
  • Google Cloud Storage
  • Google Drive
  • Google Photos
  • HDFS
  • +
  • Hetzner Storage Box
  • +
  • HiDrive
  • HTTP
  • -
  • Hubic
  • +
  • Internet Archive
  • Jottacloud
  • IBM COS S3
  • +
  • IDrive e2
  • +
  • IONOS Cloud
  • Koofr
  • +
  • Leviia Object Storage
  • +
  • Liara Object Storage
  • Mail.ru Cloud
  • Memset Memstore
  • Mega
  • @@ -170,14 +179,21 @@

    Supported providers

  • Minio
  • Nextcloud
  • OVH
  • +
  • Blomp Cloud Storage
  • OpenDrive
  • OpenStack Swift
  • -
  • Oracle Cloud Storage
  • +
  • Oracle Cloud Storage Swift
  • +
  • Oracle Object Storage
  • ownCloud
  • pCloud
  • +
  • Petabox
  • +
  • PikPak
  • premiumize.me
  • put.io
  • +
  • Proton Drive
  • QingStor
  • +
  • Qiniu Cloud Object Storage (Kodo)
  • +
  • Quatrix by Maytech
  • Rackspace Cloud Files
  • rsync.net
  • Scaleway
  • @@ -186,8 +202,10 @@

    Supported providers

  • SeaweedFS
  • SFTP
  • Sia
  • +
  • SMB / CIFS
  • StackPath
  • Storj
  • +
  • Synology
  • SugarSync
  • Tencent Cloud Object Storage (COS)
  • Uptobox
  • @@ -197,7 +215,19 @@

    Supported providers

  • Zoho WorkDrive
  • The local filesystem
  • -

    Links

    +

    Virtual providers

    +

    These backends adapt or modify other storage providers:

    + + -

    See below for some expanded Linux / macOS instructions.

    +

    See below for some expanded Linux / macOS / Windows instructions.

    See the usage docs for how to use rclone, or run rclone -h.

    Already installed rclone can be easily updated to the latest version using the rclone selfupdate command.

    +

    See the release signing docs for how to verify signatures on the release.

    Script installation

    To install rclone on Linux/macOS/BSD systems, run:

    -
    curl https://rclone.org/install.sh | sudo bash
    +
    sudo -v ; curl https://rclone.org/install.sh | sudo bash

    For beta installation, run:

    -
    curl https://rclone.org/install.sh | sudo bash -s beta
    +
    sudo -v ; curl https://rclone.org/install.sh | sudo bash -s beta

    Note that this script checks the version of rclone installed first and won't re-download if not needed.

    -

    Linux installation from precompiled binary

    +

    Linux installation

    +

    Precompiled binary

    Fetch and unpack

    curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
     unzip rclone-current-linux-amd64.zip
    @@ -237,10 +269,13 @@ 

    Linux installation from prec sudo mandb

    Run rclone config to setup. See rclone config docs for more details.

    rclone config
    -

    macOS installation with brew

    +

    macOS installation

    +

    Installation with brew

    brew install rclone

    NOTE: This version of rclone will not support mount any more (see #5373). If mounting is wanted on macOS, either install a precompiled binary or enable the relevant option when installing from source.

    -

    macOS installation from precompiled binary, using curl

    +

    Note that this is a third party installer not controlled by the rclone developers so it may be out of date. Its current version is as below.

    +

    Homebrew package

    +

    Precompiled binary, using curl

    To avoid problems with macOS gatekeeper enforcing the binary to be signed and notarized it is enough to download with curl.

    Download the latest version of rclone.

    cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip
    @@ -254,14 +289,55 @@

    macOS installatio
    cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip

    Run rclone config to setup. See rclone config docs for more details.

    rclone config
    -

    macOS installation from precompiled binary, using a web browser

    +

    Precompiled binary, using a web browser

    When downloading a binary with a web browser, the browser will set the macOS gatekeeper quarantine attribute. Starting from Catalina, when attempting to run rclone, a pop-up will appear saying:

    -
    “rclone” cannot be opened because the developer cannot be verified.
    +
    "rclone" cannot be opened because the developer cannot be verified.
     macOS cannot verify that this app is free from malware.

    The simplest fix is to run

    xattr -d com.apple.quarantine rclone
    -

    Install with docker

    -

    The rclone maintains a docker image for rclone. These images are autobuilt by docker hub from the rclone source based on a minimal Alpine linux image.

    +

    Windows installation

    +

    Precompiled binary

    +

    Fetch the correct binary for your processor type by clicking on these links. If not sure, use the first link.

    + +

    Open this file in the Explorer and extract rclone.exe. Rclone is a portable executable so you can place it wherever is convenient.

    +

    Open a CMD window (or powershell) and run the binary. Note that rclone does not launch a GUI by default, it runs in the CMD Window.

    + +

    If you are planning to use the rclone mount feature then you will need to install the third party utility WinFsp also.

    +

    Windows package manager (Winget)

    +

    Winget comes pre-installed with the latest versions of Windows. If not, update the App Installer package from the Microsoft store.

    +

    To install rclone

    +
    winget install Rclone.Rclone
    +

    To uninstall rclone

    +
    winget uninstall Rclone.Rclone --force
    +

    Chocolatey package manager

    +

    Make sure you have Choco installed

    +
    choco search rclone
    +choco install rclone
    +

    This will install rclone on your Windows machine. If you are planning to use rclone mount then

    +
    choco install winfsp
    +

    will install that too.

    +

    Note that this is a third party installer not controlled by the rclone developers so it may be out of date. Its current version is as below.

    +

    Chocolatey package

    +

    Scoop package manager

    +

    Make sure you have Scoop installed

    +
    scoop install rclone
    +

    Note that this is a third party installer not controlled by the rclone developers so it may be out of date. Its current version is as below.

    +

    Scoop package

    +

    Package manager installation

    +

    Many Linux, Windows, macOS and other OS distributions package and distribute rclone.

    +

    The distributed versions of rclone are often quite out of date and for this reason we recommend one of the other installation methods if possible.

    +

    You can get an idea of how up to date or not your OS distribution's package is here.

    +

    Packaging status

    +

    Docker installation

    +

    The rclone developers maintain a docker image for rclone.

    +

    These images are built as part of the release process based on a minimal Alpine Linux.

    The :latest tag will always point to the latest stable release. You can use the :beta tag to get the latest build from master. You can also use version tags, e.g. :1.49.1, :1.49 or :1.

    $ docker pull rclone/rclone:latest
     latest: Pulling from rclone/rclone
    @@ -287,10 +363,16 @@ 

    Install with docker

    # config on host at ~/.config/rclone/rclone.conf
     # data on host at ~/data
     
    +# add a remote interactively
    +docker run --rm -it \
    +    --volume ~/.config/rclone:/config/rclone \
    +    --user $(id -u):$(id -g) \
    +    rclone/rclone \
    +    config
    +
     # make sure the config is ok by listing the remotes
     docker run --rm \
         --volume ~/.config/rclone:/config/rclone \
    -    --volume ~/data:/data:shared \
         --user $(id -u):$(id -g) \
         rclone/rclone \
         listremotes
    @@ -307,20 +389,44 @@ 

    Install with docker

    mount dropbox:Photos /data/mount & ls ~/data/mount kill %1
    -

    Install from source

    -

    Make sure you have at least Go go1.15 installed. Download go if necessary. The latest release is recommended. Then

    -
    git clone https://github.com/rclone/rclone.git
    -cd rclone
    -go build
    -# If on macOS and mount is wanted, instead run: make GOTAGS=cmount
    -./rclone version
    -

    This will leave you a checked out version of rclone you can modify and send pull requests with. If you use make instead of go build then the rclone build will have the correct version information in it.

    -

    You can also build the latest stable rclone with:

    +

    Snap installation

    +

    Get it from the Snap Store

    +

    Make sure you have Snapd installed

    +
    $ sudo snap install rclone
    +

    Due to the strict confinement of Snap, rclone snap cannot acess real /home/$USER/.config/rclone directory, default config path is as below.

    +
      +
    • Default config directory: +
        +
      • /home/$USER/snap/rclone/current/.config/rclone
      • +
    • +
    +

    Note: Due to the strict confinement of Snap, rclone mount feature is not supported.

    +

    If mounting is wanted, either install a precompiled binary or enable the relevant option when installing from source.

    +

    Note that this is controlled by community maintainer not the rclone developers so it may be out of date. Its current version is as below.

    +

    rclone

    +

    Source installation

    +

    Make sure you have git and Go installed. Go version 1.17 or newer is required, latest release is recommended. You can get it from your package manager, or download it from golang.org/dl. Then you can run the following:

    +
    git clone https://github.com/rclone/rclone.git
    +cd rclone
    +go build
    +

    This will check out the rclone source in subfolder rclone, which you can later modify and send pull requests with. Then it will build the rclone executable in the same folder. As an initial check you can now run ./rclone version (.\rclone version on Windows).

    +

    Note that on macOS and Windows the mount command will not be available unless you specify an additional build tag cmount.

    +
    go build -tags cmount
    +

    This assumes you have a GCC compatible C compiler (GCC or Clang) in your PATH, as it uses cgo. But on Windows, the cgofuse library that the cmount implementation is based on, also supports building without cgo, i.e. by setting environment variable CGO_ENABLED to value 0 (static linking). This is how the official Windows release of rclone is being built, starting with version 1.59. It is still possible to build with cgo on Windows as well, by using the MinGW port of GCC, e.g. by installing it in a MSYS2 distribution (make sure you install it in the classic mingw64 subsystem, the ucrt64 version is not compatible).

    +

    Additionally, on Windows, you must install the third party utility WinFsp, with the "Developer" feature selected. If building with cgo, you must also set environment variable CPATH pointing to the fuse include directory within the WinFsp installation (normally C:\Program Files (x86)\WinFsp\inc\fuse).

    +

    You may also add arguments -ldflags -s (with or without -tags cmount), to omit symbol table and debug information, making the executable file smaller, and -trimpath to remove references to local file system paths. This is how the official rclone releases are built.

    +
    go build -trimpath -ldflags -s -tags cmount
    +

    Instead of executing the go build command directly, you can run it via the Makefile. It changes the version number suffix from "-DEV" to "-beta" and appends commit details. It also copies the resulting rclone executable into your GOPATH bin folder ($(go env GOPATH)/bin, which corresponds to ~/go/bin/rclone by default).

    +
    make
    +

    To include mount command on macOS and Windows with Makefile build:

    +
    make GOTAGS=cmount
    +

    There are other make targets that can be used for more advanced builds, such as cross-compiling for all supported os/architectures, embedding icon and version info resources into windows executable, and packaging results into release artifacts. See Makefile and cross-compile.go for details.

    +

    Another alternative is to download the source, build and install rclone in one operation, as a regular Go package. The source will be stored it in the Go module cache, and the resulting executable will be in your GOPATH bin folder ($(go env GOPATH)/bin, which corresponds to ~/go/bin/rclone by default).

    +

    With Go version 1.17 or newer:

    +
    go install github.com/rclone/rclone@latest
    +

    With Go versions older than 1.17 (do not use the -u flag, it causes Go to try to update the dependencies that rclone uses and sometimes these don't work with the current version):

    go get github.com/rclone/rclone
    -

    or the latest version (equivalent to the beta) with

    -
    go get github.com/rclone/rclone@master
    -

    These will build the binary in $(go env GOPATH)/bin (~/go/bin/rclone by default) after downloading the source to the go module cache. Note - do not use the -u flag here. This causes go to try to update the dependencies that rclone uses and sometimes these don't work with the current version of rclone.

    -

    Installation with Ansible

    +

    Ansible installation

    This can be done with Stefan Weichinger's ansible role.

    Instructions

      @@ -330,12 +436,12 @@

      Installation with Ansible

          - hosts: rclone-hosts
             roles:
                 - rclone
      -

      Portable installation

      +

      Portable installation

      As mentioned above, rclone is single executable (rclone, or rclone.exe on Windows) that you can download as a zip archive and extract into a location of your choosing. When executing different commands, it may create files in different locations, such as a configuration file and various temporary files. By default the locations for these are according to your operating system, e.g. configuration file in your user profile directory and temporary files in the standard temporary directory, but you can customize all of them, e.g. to make a completely self-contained, portable installation.

      Run the config paths command to see the locations that rclone will use.

      To override them set the corresponding options (as command-line arguments, or as environment variables): - --config - --cache-dir - --temp-dir

      Autostart

      -

      After installing and configuring rclone, as described above, you are ready to use rclone as an interactive command line utility. If your goal is to perform periodic operations, such as a regular sync, you will probably want to configure your rclone command in your operating system's scheduler. If you need to expose service-like features, such as remote control, GUI, serve or mount, you will often want an rclone command always running in the background, and configuring it to run in a service infrastructure may be a better option. Below are some alternatives on how to achieve this on different operating systems.

      +

      After installing and configuring rclone, as described above, you are ready to use rclone as an interactive command line utility. If your goal is to perform periodic operations, such as a regular sync, you will probably want to configure your rclone command in your operating system's scheduler. If you need to expose service-like features, such as remote control, GUI, serve or mount, you will often want an rclone command always running in the background, and configuring it to run in a service infrastructure may be a better option. Below are some alternatives on how to achieve this on different operating systems.

      NOTE: Before setting up autorun it is highly recommended that you have tested your command manually from a Command Prompt first.

      Autostart on Windows

      The most relevant alternatives for autostart on Windows are: - Run at user log on using the Startup folder - Run at user log on, at system startup or at schedule using Task Scheduler - Run at system startup using Windows service

      @@ -344,8 +450,8 @@

      Running in background

      Example command to run a sync in background:

      c:\rclone\rclone.exe sync c:\files remote:/files --no-console --log-file c:\rclone\logs\sync_files.txt

      User account

      -

      As mentioned in the mount documentation, mounted drives created as Administrator are not visible to other accounts, not even the account that was elevated as Administrator. By running the mount command as the built-in SYSTEM user account, it will create drives accessible for everyone on the system. Both scheduled task and Windows service can be used to achieve this.

      -

      NOTE: Remember that when rclone runs as the SYSTEM user, the user profile that it sees will not be yours. This means that if you normally run rclone with configuration file in the default location, to be able to use the same configuration when running as the system user you must explicitely tell rclone where to find it with the --config option, or else it will look in the system users profile path (C:\Windows\System32\config\systemprofile). To test your command manually from a Command Prompt, you can run it with the PsExec utility from Microsoft's Sysinternals suite, which takes option -s to execute commands as the SYSTEM user.

      +

      As mentioned in the mount documentation, mounted drives created as Administrator are not visible to other accounts, not even the account that was elevated as Administrator. By running the mount command as the built-in SYSTEM user account, it will create drives accessible for everyone on the system. Both scheduled task and Windows service can be used to achieve this.

      +

      NOTE: Remember that when rclone runs as the SYSTEM user, the user profile that it sees will not be yours. This means that if you normally run rclone with configuration file in the default location, to be able to use the same configuration when running as the system user you must explicitly tell rclone where to find it with the --config option, or else it will look in the system users profile path (C:\Windows\System32\config\systemprofile). To test your command manually from a Command Prompt, you can run it with the PsExec utility from Microsoft's Sysinternals suite, which takes option -s to execute commands as the SYSTEM user.

      Start from Startup folder

      To quickly execute an rclone command you can simply create a standard Windows Explorer shortcut for the complete rclone command you want to run. If you store this shortcut in the special "Startup" start-menu folder, Windows will automatically run it at login. To open this folder in Windows Explorer, enter path %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup, or C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp if you want the command to start for every user that logs in.

      This is the easiest approach to autostarting of rclone, but it offers no functionality to set it to run as different user, or to set conditions or actions on certain events. Setting up a scheduled task as described below will often give you better results.

      @@ -354,12 +460,12 @@

      Start from Task Scheduler

      Run as service

      For running rclone at system startup, you can create a Windows service that executes your rclone command, as an alternative to scheduled task configured to run at startup.

      Mount command built-in service integration
      -

      For mount commands, Rclone has a built-in Windows service integration via the third-party WinFsp library it uses. Registering as a regular Windows service easy, as you just have to execute the built-in PowerShell command New-Service (requires administrative privileges).

      +

      For mount commands, rclone has a built-in Windows service integration via the third-party WinFsp library it uses. Registering as a regular Windows service easy, as you just have to execute the built-in PowerShell command New-Service (requires administrative privileges).

      Example of a PowerShell command that creates a Windows service for mounting some remote:/files as drive letter X:, for all users (service will be running as the local system account):

      New-Service -Name Rclone -BinaryPathName 'c:\rclone\rclone.exe mount remote:/files X: --config c:\rclone\config\rclone.conf --log-file c:\rclone\logs\mount.txt'

      The WinFsp service infrastructure supports incorporating services for file system implementations, such as rclone, into its own launcher service, as kind of "child services". This has the additional advantage that it also implements a network provider that integrates into Windows standard methods for managing network drives. This is currently not officially supported by Rclone, but with WinFsp version 2019.3 B2 / v1.5B2 or later it should be possible through path rewriting as described here.

      Third-party service integration
      -

      To Windows service running any rclone command, the excellent third-party utility NSSM, the "Non-Sucking Service Manager", can be used. It includes some advanced features such as adjusting process periority, defining process environment variables, redirect to file anything written to stdout, and customized response to different exit codes, with a GUI to configure everything from (although it can also be used from command line ).

      +

      To Windows service running any rclone command, the excellent third-party utility NSSM, the "Non-Sucking Service Manager", can be used. It includes some advanced features such as adjusting process priority, defining process environment variables, redirect to file anything written to stdout, and customized response to different exit codes, with a GUI to configure everything from (although it can also be used from command line ).

      There are also several other alternatives. To mention one more, WinSW, "Windows Service Wrapper", is worth checking out. It requires .NET Framework, but it is preinstalled on newer versions of Windows, and it also provides alternative standalone distributions which includes necessary runtime (.NET 5). WinSW is a command-line only utility, where you have to manually create an XML file with service configuration. This may be a drawback for some, but it can also be an advantage as it is easy to back up and re-use the configuration settings, without having go through manual steps in a GUI. One thing to note is that by default it does not restart the service on error, one have to explicit enable this in the configuration file (via the "onfailure" parameter).

      Autostart on Linux

      Start as a service

      @@ -384,6 +490,7 @@

      Configure

    1. Chunker - transparently splits large files for other remotes
    2. Citrix ShareFile
    3. Compress
    4. +
    5. Combine
    6. Crypt - to encrypt other remotes
    7. DigitalOcean Spaces
    8. Digi Storage
    9. @@ -395,8 +502,9 @@

      Configure

    10. Google Photos
    11. Hasher - to handle checksums for other remotes
    12. HDFS
    13. +
    14. HiDrive
    15. HTTP
    16. -
    17. Hubic
    18. +
    19. Internet Archive
    20. Jottacloud
    21. Koofr
    22. Mail.ru Cloud
    23. @@ -404,15 +512,20 @@

      Configure

    24. Memory
    25. Microsoft Azure Blob Storage
    26. Microsoft OneDrive
    27. -
    28. OpenStack Swift / Rackspace Cloudfiles / Memset Memstore
    29. +
    30. OpenStack Swift / Rackspace Cloudfiles / Blomp Cloud Storage / Memset Memstore
    31. OpenDrive
    32. +
    33. Oracle Object Storage
    34. Pcloud
    35. +
    36. PikPak
    37. premiumize.me
    38. put.io
    39. +
    40. Proton Drive
    41. QingStor
    42. +
    43. Quatrix by Maytech
    44. Seafile
    45. SFTP
    46. Sia
    47. +
    48. SMB
    49. Storj
    50. SugarSync
    51. Union
    52. @@ -428,12 +541,12 @@

      Basic syntax

      Syntax: [options] subcommand <parameters> <parameters...>

      Source and destination paths are specified by the name you gave the storage system in the config file then the sub path, e.g. "drive:myfolder" to look at "myfolder" in Google drive.

      You can define as many storage paths as you like in the config file.

      -

      Please use the -i / --interactive flag while learning rclone to avoid accidental data loss.

      +

      Please use the --interactive/-i flag while learning rclone to avoid accidental data loss.

      Subcommands

      rclone uses a system of subcommands. For example

      rclone ls remote:path # lists a remote
       rclone copy /local/path remote:path # copies /local/path to the remote
      -rclone sync -i /local/path remote:path # syncs /local/path to the remote
      +rclone sync --interactive /local/path remote:path # syncs /local/path to the remote

    rclone config

    Enter an interactive configuration session.

    Synopsis

    @@ -442,18 +555,20 @@

    Synopsis

    Options

      -h, --help   help for config

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    +

    The default number of parallel checks is 8. See the --checkers=N option for more information.

    rclone check source:path dest:path [flags]

    Options

      -C, --checkfile string        Treat source:path as a SUM file with hashes of given type
    @@ -618,8 +994,39 @@ 

    Options

    --missing-on-dst string Report all files missing from the destination to this file --missing-on-src string Report all files missing from the source to this file --one-way Check one way only, source files must exist on remote
    +

    Check Options

    +

    Flags used for rclone check.

    +
          --max-backlog int   Maximum number of objects in sync or check backlog (default 10000)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -645,19 +1052,47 @@

    Synopsis

    ls,lsl,lsd are designed to be human-readable. lsf is designed to be human and machine-readable. lsjson is designed to be machine-readable.

    Note that ls and lsl recurse by default - use --max-depth 1 to stop the recursion.

    The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse.

    -

    Listing a non-existent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    +

    Listing a nonexistent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    rclone ls remote:path [flags]

    Options

      -h, --help   help for ls
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone lsd

    List all directories/containers/buckets in the path.

    Synopsis

    -

    Lists the directories in the source path to standard output. Does not recurse by default. Use the -R flag to recurse.

    +

    Lists the directories in the source path to standard output. Does not recurse by default. Use the -R flag to recurse.

    This command lists the total size of the directory (if known, -1 if not), the modification time (if known, the current time if not), the number of objects in the directory (if known, -1 if not) and the name of the directory, Eg

    $ rclone lsd swift:
           494000 2018-04-26 08:43:20     10000 10000files
    @@ -667,7 +1102,7 @@ 

    Synopsis

    -1 2016-10-17 17:41:53 -1 1000files -1 2017-01-03 14:40:54 -1 2500files -1 2017-07-08 14:39:28 -1 4000files
    -

    If you just want the directory names use "rclone lsf --dirs-only".

    +

    If you just want the directory names use rclone lsf --dirs-only.

    Any of the filtering options can be applied to this command.

    There are several related list commands

    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone size

    Prints the total size and number of objects in remote:path.

    +

    Synopsis

    +

    Counts objects in the path and calculates the total size. Prints the result to standard output.

    +

    By default the output is in human-readable format, but shows values in both human-readable format as well as the raw numbers (global option --human-readable is not considered). Use option --json to format output as JSON instead.

    +

    Recurses by default, use --max-depth 1 to stop the recursion.

    +

    Some backends do not always provide file sizes, see for example Google Photos and Google Docs. Rclone will then show a notice in the log indicating how many such files were encountered, and count them in as empty files in the output of the size command.

    rclone size remote:path [flags]

    Options

      -h, --help   help for size
           --json   Format output as JSON
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone version

    Show the version number.

    -

    Synopsis

    +

    Synopsis

    Show the rclone version number, the go version, the build target OS and architecture, the runtime OS and kernel version and bitness, build tags and the type of executable (static or dynamic).

    For example:

    $ rclone version
    @@ -801,28 +1383,33 @@ 

    Options

          --check   Check for new version
       -h, --help    help for version

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone cleanup

    Clean up the remote if possible.

    -

    Synopsis

    +

    Synopsis

    Clean up the remote if possible. Empty the trash or delete old file versions. Not supported by all remotes.

    rclone cleanup remote:path [flags]

    Options

      -h, --help   help for cleanup
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone dedupe

    Interactively find duplicate filenames and delete/rename them.

    -

    Synopsis

    +

    Synopsis

    By default dedupe interactively finds files with duplicate names and offers to delete all but one or rename them to be different. This is known as deduping by name.

    Deduping by name is only useful with a small group of backends (e.g. Google Drive, Opendrive) that can have duplicate file names. It can be run on wrapping backends (e.g. crypt) if they wrap a backend which supports duplicate file names.

    -

    However if --by-hash is passed in then dedupe will find files with duplicate hashes instead which will work on any backend which supports at least one hash. This can be used to find files with duplicate content. This is known as deduping by hash.

    +

    However if --by-hash is passed in then dedupe will find files with duplicate hashes instead which will work on any backend which supports at least one hash. This can be used to find files with duplicate content. This is known as deduping by hash.

    If deduping by name, first rclone will merge directories with the same name. It will do this iteratively until all the identically named directories have been merged.

    Next, if deduping by name, for every group of duplicate file names / hashes, it will delete all but one identical file it finds without confirmation. This means that for most duplicated files the dedupe command will not be interactive.

    dedupe considers files to be identical if they have the same file path and the same hash. If the backend does not support hashes (e.g. crypt wrapping Google Drive) then they will never be found to be identical. If you use the --size-only flag then files will be considered identical if they have the same size (any hash will be ignored). This can be useful on crypt backends which do not support hashes.

    @@ -891,14 +1478,19 @@

    Options

          --by-hash              Find identical hashes rather than names
           --dedupe-mode string   Dedupe mode interactive|skip|first|newest|oldest|largest|smallest|rename (default "interactive")
       -h, --help                 help for dedupe
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone about

    Get quota information from the remote.

    -

    Synopsis

    +

    Synopsis

    rclone about prints quota information about a remote to standard output. The output is typically used, free, quota and trash contents.

    E.g. Typical output from rclone about remote: is:

    Total:   17 GiB
    @@ -938,27 +1530,29 @@ 

    Options

    -h, --help help for about --json Format output as JSON

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone authorize

    Remote authorization.

    -

    Synopsis

    +

    Synopsis

    Remote authorization. Used to authorize a remote or headless rclone from a machine with a browser - use as instructed by rclone config.

    -

    Use the --auth-no-open-browser to prevent rclone to open auth link in default browser automatically.

    +

    Use --auth-no-open-browser to prevent rclone to open auth link in default browser automatically.

    +

    Use --template to generate HTML output via a custom Go template. If a blank string is provided as an argument to this flag, the default template is used.

    rclone authorize [flags]

    Options

          --auth-no-open-browser   Do not automatically open auth link in default browser
    -  -h, --help                   help for authorize
    + -h, --help help for authorize + --template string The path to a custom Go template for generating HTML responses

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone backend

    Run a backend-specific command.

    -

    Synopsis

    +

    Synopsis

    This runs a backend-specific command. The commands themselves (except for "help" and "features") are defined by the backends and you should see the backend docs for definitions.

    You can discover what commands a backend implements by using

    rclone backend help remote:
    @@ -975,38 +1569,107 @@ 

    Options

      -h, --help                 help for backend
           --json                 Always output in JSON format
       -o, --option stringArray   Option in the form name=value or name
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone bisync

    -

    Perform bidirectonal synchronization between two paths.

    -

    Synopsis

    -

    Perform bidirectonal synchronization between two paths.

    +

    Perform bidirectional synchronization between two paths.

    +

    Synopsis

    +

    Perform bidirectional synchronization between two paths.

    Bisync provides a bidirectional cloud sync solution in rclone. It retains the Path1 and Path2 filesystem listings from the prior run. On each successive run it will: - list files on Path1 and Path2, and check for changes on each side. Changes include New, Newer, Older, and Deleted files. - Propagate changes on Path1 to Path2, and vice-versa.

    See full bisync description for details.

    rclone bisync remote1:path1 remote2:path2 [flags]

    Options

    -
          --check-access            Ensure expected RCLONE_TEST files are found on both Path1 and Path2 filesystems, else abort.
    -      --check-filename string   Filename for --check-access (default: RCLONE_TEST)
    -      --check-sync string       Controls comparison of final listings: true|false|only (default: true) (default "true")
    -      --filters-file string     Read filtering patterns from a file
    -      --force                   Bypass --max-delete safety check and run the sync. Consider using with --verbose
    -  -h, --help                    help for bisync
    -      --localtime               Use local time in listings (default: UTC)
    -      --no-cleanup              Retain working files (useful for troubleshooting and testing).
    -      --remove-empty-dirs       Remove empty directories at the final cleanup step.
    -  -1, --resync                  Performs the resync run. Path1 files may overwrite Path2 versions. Consider using --verbose or --dry-run first.
    -      --workdir string          Use custom working dir - useful for testing. (default: $HOME/.cache/rclone/bisync)
    +
          --check-access              Ensure expected RCLONE_TEST files are found on both Path1 and Path2 filesystems, else abort.
    +      --check-filename string     Filename for --check-access (default: RCLONE_TEST)
    +      --check-sync string         Controls comparison of final listings: true|false|only (default: true) (default "true")
    +      --create-empty-src-dirs     Sync creation and deletion of empty directories. (Not compatible with --remove-empty-dirs)
    +      --filters-file string       Read filtering patterns from a file
    +      --force                     Bypass --max-delete safety check and run the sync. Consider using with --verbose
    +  -h, --help                      help for bisync
    +      --ignore-listing-checksum   Do not use checksums for listings (add --ignore-checksum to additionally skip post-copy checksum checks)
    +      --localtime                 Use local time in listings (default: UTC)
    +      --no-cleanup                Retain working files (useful for troubleshooting and testing).
    +      --remove-empty-dirs         Remove ALL empty directories at the final cleanup step.
    +      --resilient                 Allow future runs to retry after certain less-serious errors, instead of requiring --resync. Use at your own risk!
    +  -1, --resync                    Performs the resync run. Path1 files may overwrite Path2 versions. Consider using --verbose or --dry-run first.
    +      --workdir string            Use custom working dir - useful for testing. (default: $HOME/.cache/rclone/bisync)
    +

    Copy Options

    +

    Flags for anything which can Copy a file.

    +
          --check-first                                 Do all the checks before starting transfers
    +  -c, --checksum                                    Check for changes with size & checksum (if available, or fallback to size only).
    +      --compare-dest stringArray                    Include additional comma separated server-side paths during comparison
    +      --copy-dest stringArray                       Implies --compare-dest but also copies files from paths into destination
    +      --cutoff-mode string                          Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default "HARD")
    +      --ignore-case-sync                            Ignore case when synchronizing
    +      --ignore-checksum                             Skip post copy check of checksums
    +      --ignore-existing                             Skip all files that exist on destination
    +      --ignore-size                                 Ignore size when skipping use mod-time or checksum
    +  -I, --ignore-times                                Don't skip files that match size and time - transfer all files
    +      --immutable                                   Do not modify files, fail if existing files have been modified
    +      --inplace                                     Download directly to destination file instead of atomic download to temp/rename
    +      --max-backlog int                             Maximum number of objects in sync or check backlog (default 10000)
    +      --max-duration Duration                       Maximum duration rclone will transfer data for (default 0s)
    +      --max-transfer SizeSuffix                     Maximum size of data to transfer (default off)
    +  -M, --metadata                                    If set, preserve metadata when copying objects
    +      --modify-window Duration                      Max time diff to be considered the same (default 1ns)
    +      --multi-thread-chunk-size SizeSuffix          Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
    +      --multi-thread-cutoff SizeSuffix              Use multi-thread downloads for files above this size (default 256Mi)
    +      --multi-thread-streams int                    Number of streams to use for multi-thread downloads (default 4)
    +      --multi-thread-write-buffer-size SizeSuffix   In memory buffer size for writing when in multi-thread mode (default 128Ki)
    +      --no-check-dest                               Don't check the destination, copy regardless
    +      --no-traverse                                 Don't traverse destination file system on copy
    +      --no-update-modtime                           Don't update destination mod-time if files identical
    +      --order-by string                             Instructions on how to order the transfers, e.g. 'size,descending'
    +      --refresh-times                               Refresh the modtime of remote files
    +      --server-side-across-configs                  Allow server-side operations (e.g. copy) to work across different configs
    +      --size-only                                   Skip based on size only, not mod-time or checksum
    +      --streaming-upload-cutoff SizeSuffix          Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
    +  -u, --update                                      Skip files that are newer on the destination
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone cat

    Concatenates any files and sends them to stdout.

    -

    Synopsis

    +

    Synopsis

    rclone cat sends any files to standard output.

    You can use it like this to output a single file

    rclone cat remote:path/to/file
    @@ -1015,22 +1678,58 @@

    Synopsis

    Or like this to output any .txt files in dir or its subdirectories.

    rclone --include "*.txt" cat remote:path/to/dir

    Use the --head flag to print characters only at the start, --tail for the end and --offset and --count to print a section in the middle. Note that if offset is negative it will count from the end, so --offset -1 --count 1 is equivalent to --tail 1.

    +

    Use the --separator flag to print a separator value between files. Be sure to shell-escape special characters. For example, to print a newline between files, use:

    +
    rclone cat remote:path [flags]

    Options

    -
          --count int    Only print N characters (default -1)
    -      --discard      Discard the output instead of printing
    -      --head int     Only print the first N characters
    -  -h, --help         help for cat
    -      --offset int   Start printing at offset N (or from end if -ve)
    -      --tail int     Only print the last N characters
    +
          --count int          Only print N characters (default -1)
    +      --discard            Discard the output instead of printing
    +      --head int           Only print the first N characters
    +  -h, --help               help for cat
    +      --offset int         Start printing at offset N (or from end if -ve)
    +      --separator string   Separator to use between objects when printing multiple files
    +      --tail int           Only print the last N characters
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone checksum

    Checks the files in the source against a SUM file.

    -

    Synopsis

    +

    Synopsis

    Checks that hashsums of source files match the SUM file. It compares hashes (MD5, SHA1, etc) and logs a report of files which don't match. It doesn't alter the file system.

    If you supply the --download flag, it will download the data from remote and calculate the contents hash on the fly. This can be useful for remotes that don't support hashes or if you really want to check all the data.

    Note that hash values in the SUM file are treated as case insensitive.

    @@ -1044,6 +1743,7 @@

    Synopsis

  • `* path` means path was present in source and destination but different.
  • ! path means there was an error reading or hashing the source or dest.
  • +

    The default number of parallel checks is 8. See the --checkers=N option for more information.

    rclone checksum <hash> sumfile src:path [flags]

    Options

          --combined string         Make a combined report of changes to this file
    @@ -1055,94 +1755,127 @@ 

    Options

    --missing-on-dst string Report all files missing from the destination to this file --missing-on-src string Report all files missing from the source to this file --one-way Check one way only, source files must exist on remote
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone completion

    -

    generate the autocompletion script for the specified shell

    -

    Synopsis

    -

    Generate the autocompletion script for rclone for the specified shell. See each sub-command's help for details on how to use the generated script.

    +

    Output completion script for a given shell.

    +

    Synopsis

    +

    Generates a shell completion script for rclone. Run with --help to list the supported shells.

    Options

      -h, --help   help for completion

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone completion bash

    -

    generate the autocompletion script for bash

    -

    Synopsis

    -

    Generate the autocompletion script for the bash shell.

    -

    This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.

    -

    To load completions in your current shell session: $ source <(rclone completion bash)

    -

    To load completions for every new session, execute once: Linux: $ rclone completion bash > /etc/bash_completion.d/rclone MacOS: $ rclone completion bash > /usr/local/etc/bash_completion.d/rclone

    -

    You will need to start a new shell for this setup to take effect.

    -
    rclone completion bash
    +

    Output bash completion script for rclone.

    +

    Synopsis

    +

    Generates a bash shell autocompletion script for rclone.

    +

    This writes to /etc/bash_completion.d/rclone by default so will probably need to be run with sudo or as root, e.g.

    +
    sudo rclone genautocomplete bash
    +

    Logout and login again to use the autocompletion scripts, or source them directly

    +
    . /etc/bash_completion
    +

    If you supply a command line argument the script will be written there.

    +

    If output_file is "-", then the output will be written to stdout.

    +
    rclone completion bash [output_file] [flags]

    Options

    -
      -h, --help              help for bash
    -      --no-descriptions   disable completion descriptions
    +
      -h, --help   help for bash

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone completion fish

    -

    generate the autocompletion script for fish

    -

    Synopsis

    -

    Generate the autocompletion script for the fish shell.

    -

    To load completions in your current shell session: $ rclone completion fish | source

    -

    To load completions for every new session, execute once: $ rclone completion fish > ~/.config/fish/completions/rclone.fish

    -

    You will need to start a new shell for this setup to take effect.

    -
    rclone completion fish [flags]
    +

    Output fish completion script for rclone.

    +

    Synopsis

    +

    Generates a fish autocompletion script for rclone.

    +

    This writes to /etc/fish/completions/rclone.fish by default so will probably need to be run with sudo or as root, e.g.

    +
    sudo rclone genautocomplete fish
    +

    Logout and login again to use the autocompletion scripts, or source them directly

    +
    . /etc/fish/completions/rclone.fish
    +

    If you supply a command line argument the script will be written there.

    +

    If output_file is "-", then the output will be written to stdout.

    +
    rclone completion fish [output_file] [flags]

    Options

    -
      -h, --help              help for fish
    -      --no-descriptions   disable completion descriptions
    +
      -h, --help   help for fish

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone completion powershell

    -

    generate the autocompletion script for powershell

    -

    Synopsis

    +

    Output powershell completion script for rclone.

    +

    Synopsis

    Generate the autocompletion script for powershell.

    -

    To load completions in your current shell session: PS C:> rclone completion powershell | Out-String | Invoke-Expression

    +

    To load completions in your current shell session:

    +
    rclone completion powershell | Out-String | Invoke-Expression

    To load completions for every new session, add the output of the above command to your powershell profile.

    -
    rclone completion powershell [flags]
    +

    If output_file is "-" or missing, then the output will be written to stdout.

    +
    rclone completion powershell [output_file] [flags]

    Options

    -
      -h, --help              help for powershell
    -      --no-descriptions   disable completion descriptions
    +
      -h, --help   help for powershell

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone completion zsh

    -

    generate the autocompletion script for zsh

    -

    Synopsis

    -

    Generate the autocompletion script for the zsh shell.

    -

    If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

    -

    $ echo "autoload -U compinit; compinit" >> ~/.zshrc

    -

    To load completions for every new session, execute once: # Linux: $ rclone completion zsh > "${fpath[1]}/_rclone" # macOS: $ rclone completion zsh > /usr/local/share/zsh/site-functions/_rclone

    -

    You will need to start a new shell for this setup to take effect.

    -
    rclone completion zsh [flags]
    +

    Output zsh completion script for rclone.

    +

    Synopsis

    +

    Generates a zsh autocompletion script for rclone.

    +

    This writes to /usr/share/zsh/vendor-completions/_rclone by default so will probably need to be run with sudo or as root, e.g.

    +
    sudo rclone genautocomplete zsh
    +

    Logout and login again to use the autocompletion scripts, or source them directly

    +
    autoload -U compinit && compinit
    +

    If you supply a command line argument the script will be written there.

    +

    If output_file is "-", then the output will be written to stdout.

    +
    rclone completion zsh [output_file] [flags]

    Options

    -
      -h, --help              help for zsh
    -      --no-descriptions   disable completion descriptions
    +
      -h, --help   help for zsh

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config create

    Create a new remote with name, type and options.

    -

    Synopsis

    +

    Synopsis

    Create a new remote of name with type and options. The options should be passed in pairs of key value or as key=value.

    For example, to make a swift remote of name myremote using auto config you would do:

    rclone config create myremote swift env_auth true
    @@ -1152,13 +1885,13 @@ 

    Synopsis

    Note that if the config process would normally ask a question the default is taken (unless --non-interactive is used). Each time that happens rclone will print or DEBUG a message saying how to affect the value taken.

    If any of the parameters passed is a password field, then rclone will automatically obscure them if they aren't already obscured before putting them in the config file.

    NB If the password parameter is 22 characters or longer and consists only of base64 characters then rclone can get confused about whether the password is already obscured or not and put unobscured passwords into the config file. If you want to be 100% certain that the passwords get obscured then use the --obscure flag, or if you are 100% certain you are already passing obscured passwords then use --no-obscure. You can also set obscured passwords using the rclone config password command.

    -

    The flag --non-interactive is for use by applications that wish to configure rclone themeselves, rather than using rclone's text based configuration questions. If this flag is set, and rclone needs to ask the user a question, a JSON blob will be returned with the question in it.

    +

    The flag --non-interactive is for use by applications that wish to configure rclone themselves, rather than using rclone's text based configuration questions. If this flag is set, and rclone needs to ask the user a question, a JSON blob will be returned with the question in it.

    This will look something like (some irrelevant detail removed):

    {
         "State": "*oauth-islocal,teamdrive,,",
         "Option": {
             "Name": "config_is_local",
    -        "Help": "Use auto config?\n * Say Y if not sure\n * Say N if you are working on a remote or headless machine\n",
    +        "Help": "Use web browser to automatically authenticate rclone with remote?\n * Say Y if the machine running rclone has a web browser you can use\n * Say N if running rclone on a (remote) machine without web browser access\nIf not sure try Y. If Y failed, try N.\n",
             "Default": true,
             "Examples": [
                 {
    @@ -1207,7 +1940,7 @@ 

    Options

    --result string Result - use with --continue --state string State - use with --continue

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -1217,13 +1950,13 @@

    rclone config delete

    Options

      -h, --help   help for delete

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config disconnect

    Disconnects user from remote

    -

    Synopsis

    +

    Synopsis

    This disconnects the remote: passed in to the cloud storage system.

    This normally means revoking the oauth token.

    To reconnect use "rclone config reconnect".

    @@ -1231,7 +1964,7 @@

    Synopsis

    Options

      -h, --help   help for disconnect

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -1241,16 +1974,16 @@

    rclone config dump

    Options

      -h, --help   help for dump

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config edit

    Enter an interactive configuration session.

    -

    Synopsis

    +

    Synopsis

    Enter an interactive configuration session where you can setup new remotes and manage existing ones. You may also set or remove a password to protect your configuration.

    rclone config edit [flags]
    -

    Options

    +

    Options

      -h, --help   help for edit

    See the global flags page for global options not listed here.

    SEE ALSO

    @@ -1263,13 +1996,13 @@

    rclone config file

    Options

      -h, --help   help for file

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config password

    Update password in an existing remote.

    -

    Synopsis

    +

    Synopsis

    Update an existing remote's password. The password should be passed in pairs of key password or as key=password. The password should be passed in in clear (unobscured).

    For example, to set password of a remote of name myremote you would do:

    rclone config password myremote fieldname mypassword
    @@ -1279,7 +2012,7 @@ 

    Synopsis

    Options

      -h, --help   help for password

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -1289,7 +2022,7 @@

    rclone config paths

    Options

      -h, --help   help for paths

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -1299,13 +2032,13 @@

    rclone config providers

    Options

      -h, --help   help for providers

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config reconnect

    Re-authenticates user with remote.

    -

    Synopsis

    +

    Synopsis

    This reconnects remote: passed in to the cloud storage system.

    To disconnect the remote use "rclone config disconnect".

    This normally means going through the interactive oauth flow again.

    @@ -1313,33 +2046,48 @@

    Synopsis

    Options

      -h, --help   help for reconnect

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    + +

    rclone config redacted

    +

    Print redacted (decrypted) config file, or the redacted config for a single remote.

    +

    Synopsis

    +

    This prints a redacted copy of the config file, either the whole config file or for a given remote.

    +

    The config file will be redacted by replacing all passwords and other sensitive info with XXX.

    +

    This makes the config file suitable for posting online for support.

    +

    It should be double checked before posting as the redaction may not be perfect.

    +
    rclone config redacted [<remote>] [flags]
    +

    Options

    +
      -h, --help   help for redacted
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    rclone config show

    Print (decrypted) config file, or the config for a single remote.

    rclone config show [<remote>] [flags]
    -

    Options

    +

    Options

      -h, --help   help for show

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config touch

    Ensure configuration file exists.

    rclone config touch [flags]
    -

    Options

    +

    Options

      -h, --help   help for touch

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config update

    Update options in an existing remote.

    -

    Synopsis

    +

    Synopsis

    Update an existing remote's options. The options should be passed in pairs of key value or as key=value.

    For example, to update the env_auth field of a remote of name myremote you would do:

    rclone config update myremote env_auth true
    @@ -1349,13 +2097,13 @@ 

    Synopsis

    Note that if the config process would normally ask a question the default is taken (unless --non-interactive is used). Each time that happens rclone will print or DEBUG a message saying how to affect the value taken.

    If any of the parameters passed is a password field, then rclone will automatically obscure them if they aren't already obscured before putting them in the config file.

    NB If the password parameter is 22 characters or longer and consists only of base64 characters then rclone can get confused about whether the password is already obscured or not and put unobscured passwords into the config file. If you want to be 100% certain that the passwords get obscured then use the --obscure flag, or if you are 100% certain you are already passing obscured passwords then use --no-obscure. You can also set obscured passwords using the rclone config password command.

    -

    The flag --non-interactive is for use by applications that wish to configure rclone themeselves, rather than using rclone's text based configuration questions. If this flag is set, and rclone needs to ask the user a question, a JSON blob will be returned with the question in it.

    +

    The flag --non-interactive is for use by applications that wish to configure rclone themselves, rather than using rclone's text based configuration questions. If this flag is set, and rclone needs to ask the user a question, a JSON blob will be returned with the question in it.

    This will look something like (some irrelevant detail removed):

    {
         "State": "*oauth-islocal,teamdrive,,",
         "Option": {
             "Name": "config_is_local",
    -        "Help": "Use auto config?\n * Say Y if not sure\n * Say N if you are working on a remote or headless machine\n",
    +        "Help": "Use web browser to automatically authenticate rclone with remote?\n * Say Y if the machine running rclone has a web browser you can use\n * Say N if running rclone on a (remote) machine without web browser access\nIf not sure try Y. If Y failed, try N.\n",
             "Default": true,
             "Examples": [
                 {
    @@ -1394,7 +2142,7 @@ 

    Synopsis

    If --all is passed then rclone will ask all the config questions, not just the post config questions. Any parameters are used as defaults for questions as usual.

    Note that bin/config.py in the rclone source implements this protocol as a readable demonstration.

    rclone config update name [key value]+ [flags]
    -

    Options

    +

    Options

          --all               Ask the full set of config questions
           --continue          Continue the configuration process with an answer
       -h, --help              help for update
    @@ -1404,28 +2152,28 @@ 

    Options

    --result string Result - use with --continue --state string State - use with --continue

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone config userinfo

    Prints info about logged in user of remote.

    -

    Synopsis

    +

    Synopsis

    This prints the details of the person logged in to the cloud storage system.

    rclone config userinfo remote: [flags]
    -

    Options

    +

    Options

      -h, --help   help for userinfo
           --json   Format output as JSON

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone copyto

    Copy files from source to dest, skipping identical files.

    -

    Synopsis

    +

    Synopsis

    If source:path is a file or directory then it copies it to a file or directory named dest:path.

    -

    This can be used to upload single files to other than their current name. If the source is a directory then it acts exactly like the copy command.

    +

    This can be used to upload single files to other than their current name. If the source is a directory then it acts exactly like the copy command.

    So

    rclone copyto src dst

    where src and dst are rclone paths, either remote:path or /path/to/local or C:.

    @@ -1438,36 +2186,107 @@

    Synopsis

    This doesn't transfer files that are identical on src and dst, testing by size and modification time or MD5SUM. It doesn't delete files from the destination.

    Note: Use the -P/--progress flag to view real-time transfer statistics

    rclone copyto source:path dest:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for copyto
    +

    Copy Options

    +

    Flags for anything which can Copy a file.

    +
          --check-first                                 Do all the checks before starting transfers
    +  -c, --checksum                                    Check for changes with size & checksum (if available, or fallback to size only).
    +      --compare-dest stringArray                    Include additional comma separated server-side paths during comparison
    +      --copy-dest stringArray                       Implies --compare-dest but also copies files from paths into destination
    +      --cutoff-mode string                          Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default "HARD")
    +      --ignore-case-sync                            Ignore case when synchronizing
    +      --ignore-checksum                             Skip post copy check of checksums
    +      --ignore-existing                             Skip all files that exist on destination
    +      --ignore-size                                 Ignore size when skipping use mod-time or checksum
    +  -I, --ignore-times                                Don't skip files that match size and time - transfer all files
    +      --immutable                                   Do not modify files, fail if existing files have been modified
    +      --inplace                                     Download directly to destination file instead of atomic download to temp/rename
    +      --max-backlog int                             Maximum number of objects in sync or check backlog (default 10000)
    +      --max-duration Duration                       Maximum duration rclone will transfer data for (default 0s)
    +      --max-transfer SizeSuffix                     Maximum size of data to transfer (default off)
    +  -M, --metadata                                    If set, preserve metadata when copying objects
    +      --modify-window Duration                      Max time diff to be considered the same (default 1ns)
    +      --multi-thread-chunk-size SizeSuffix          Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
    +      --multi-thread-cutoff SizeSuffix              Use multi-thread downloads for files above this size (default 256Mi)
    +      --multi-thread-streams int                    Number of streams to use for multi-thread downloads (default 4)
    +      --multi-thread-write-buffer-size SizeSuffix   In memory buffer size for writing when in multi-thread mode (default 128Ki)
    +      --no-check-dest                               Don't check the destination, copy regardless
    +      --no-traverse                                 Don't traverse destination file system on copy
    +      --no-update-modtime                           Don't update destination mod-time if files identical
    +      --order-by string                             Instructions on how to order the transfers, e.g. 'size,descending'
    +      --refresh-times                               Refresh the modtime of remote files
    +      --server-side-across-configs                  Allow server-side operations (e.g. copy) to work across different configs
    +      --size-only                                   Skip based on size only, not mod-time or checksum
    +      --streaming-upload-cutoff SizeSuffix          Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
    +  -u, --update                                      Skip files that are newer on the destination
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone copyurl

    Copy url content to dest.

    -

    Synopsis

    +

    Synopsis

    Download a URL's content and copy it to the destination without saving it in temporary storage.

    -

    Setting --auto-filename will cause the file name to be retrieved from the URL (after any redirections) and used in the destination path. With --print-filename in addition, the resulting file name will be printed.

    +

    Setting --auto-filename will attempt to automatically determine the filename from the URL (after any redirections) and used in the destination path. With --auto-filename-header in addition, if a specific filename is set in HTTP headers, it will be used instead of the name from the URL. With --print-filename in addition, the resulting file name will be printed.

    Setting --no-clobber will prevent overwriting file on the destination if there is one with the same name.

    Setting --stdout or making the output file name - will cause the output to be written to standard output.

    rclone copyurl https://example.com dest:path [flags]
    -

    Options

    -
      -a, --auto-filename    Get the file name from the URL and use it for destination file path
    -  -h, --help             help for copyurl
    -      --no-clobber       Prevent overwriting file with same name
    -  -p, --print-filename   Print the resulting name from --auto-filename
    -      --stdout           Write the output to stdout rather than a file
    +

    Options

    +
      -a, --auto-filename     Get the file name from the URL and use it for destination file path
    +      --header-filename   Get the file name from the Content-Disposition header
    +  -h, --help              help for copyurl
    +      --no-clobber        Prevent overwriting file with same name
    +  -p, --print-filename    Print the resulting name from --auto-filename
    +      --stdout            Write the output to stdout rather than a file
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone cryptcheck

    -

    Cryptcheck checks the integrity of a crypted remote.

    -

    Synopsis

    -

    rclone cryptcheck checks a remote against a crypted remote. This is the equivalent of running rclone check, but able to check the checksums of the crypted remote.

    +

    Cryptcheck checks the integrity of an encrypted remote.

    +

    Synopsis

    +

    rclone cryptcheck checks a remote against a crypted remote. This is the equivalent of running rclone check, but able to check the checksums of the encrypted remote.

    For it to work the underlying remote of the cryptedremote must support some kind of checksum.

    It works by reading the nonce from each file on the cryptedremote: and using that to encrypt each file on the remote:. It then checks the checksum of the underlying file on the cryptedremote: against the checksum of the file it has just encrypted.

    Use it like this

    @@ -1485,8 +2304,9 @@

    Synopsis

  • `* path` means path was present in source and destination but different.
  • ! path means there was an error reading or hashing the source or dest.
  • +

    The default number of parallel checks is 8. See the --checkers=N option for more information.

    rclone cryptcheck remote:path cryptedremote:path [flags]
    -

    Options

    +

    Options

          --combined string         Make a combined report of changes to this file
           --differ string           Report all non-matching files to this file
           --error string            Report all files with errors (hashing or reading) to this file
    @@ -1495,50 +2315,86 @@ 

    Options

    --missing-on-dst string Report all files missing from the destination to this file --missing-on-src string Report all files missing from the source to this file --one-way Check one way only, source files must exist on remote
    +

    Check Options

    +

    Flags used for rclone check.

    +
          --max-backlog int   Maximum number of objects in sync or check backlog (default 10000)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone cryptdecode

    Cryptdecode returns unencrypted file names.

    -

    Synopsis

    +

    Synopsis

    rclone cryptdecode returns unencrypted file names when provided with a list of encrypted file names. List limit is 10 items.

    -

    If you supply the --reverse flag, it will return encrypted file names.

    +

    If you supply the --reverse flag, it will return encrypted file names.

    use it like this

    rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
     
     rclone cryptdecode --reverse encryptedremote: filename1 filename2
    -

    Another way to accomplish this is by using the rclone backend encode (or decode)command. See the documentation on the crypt overlay for more info.

    +

    Another way to accomplish this is by using the rclone backend encode (or decode) command. See the documentation on the crypt overlay for more info.

    rclone cryptdecode encryptedremote: encryptedfilename [flags]
    -

    Options

    +

    Options

      -h, --help      help for cryptdecode
           --reverse   Reverse cryptdecode, encrypts filenames

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone deletefile

    Remove a single file from remote.

    -

    Synopsis

    +

    Synopsis

    Remove a single file from remote. Unlike delete it cannot be used to remove a directory and it doesn't obey include/exclude filters - if the specified file exists, it will always be removed.

    rclone deletefile remote:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for deletefile
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone genautocomplete

    Output completion script for a given shell.

    -

    Synopsis

    -

    Generates a shell completion script for rclone. Run with --help to list the supported shells.

    -

    Options

    +

    Synopsis

    +

    Generates a shell completion script for rclone. Run with --help to list the supported shells.

    +

    Options

      -h, --help   help for genautocomplete

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone genautocomplete bash

    Output bash completion script for rclone.

    -

    Synopsis

    +

    Synopsis

    Generates a bash shell autocompletion script for rclone.

    This writes to /etc/bash_completion.d/rclone by default so will probably need to be run with sudo or as root, e.g.

    sudo rclone genautocomplete bash
    @@ -1556,16 +2412,16 @@

    Synopsis

    If you supply a command line argument the script will be written there.

    If output_file is "-", then the output will be written to stdout.

    rclone genautocomplete bash [output_file] [flags]
    -

    Options

    +

    Options

      -h, --help   help for bash

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone genautocomplete fish

    Output fish completion script for rclone.

    -

    Synopsis

    +

    Synopsis

    Generates a fish autocompletion script for rclone.

    This writes to /etc/fish/completions/rclone.fish by default so will probably need to be run with sudo or as root, e.g.

    sudo rclone genautocomplete fish
    @@ -1574,16 +2430,16 @@

    Synopsis

    If you supply a command line argument the script will be written there.

    If output_file is "-", then the output will be written to stdout.

    rclone genautocomplete fish [output_file] [flags]
    -

    Options

    +

    Options

      -h, --help   help for fish

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone genautocomplete zsh

    Output zsh completion script for rclone.

    -

    Synopsis

    +

    Synopsis

    Generates a zsh autocompletion script for rclone.

    This writes to /usr/share/zsh/vendor-completions/_rclone by default so will probably need to be run with sudo or as root, e.g.

    sudo rclone genautocomplete zsh
    @@ -1592,31 +2448,32 @@

    Synopsis

    If you supply a command line argument the script will be written there.

    If output_file is "-", then the output will be written to stdout.

    rclone genautocomplete zsh [output_file] [flags]
    -

    Options

    +

    Options

      -h, --help   help for zsh

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone gendocs

    Output markdown docs for rclone to the directory supplied.

    -

    Synopsis

    +

    Synopsis

    This produces markdown docs for the rclone commands to the directory supplied. These are in a format suitable for hugo to render into the rclone.org website.

    rclone gendocs output_directory [flags]
    -

    Options

    +

    Options

      -h, --help   help for gendocs

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone hashsum

    Produces a hashsum file for all the objects in the path.

    -

    Synopsis

    +

    Synopsis

    Produces a hash file for all the objects in the path using the hash named. The output is in the same format as the standard md5sum/sha1sum tool.

    By default, the hash is requested from the remote. If the hash is not supported by the remote, no hash will be returned. With the download flag, the file will be downloaded from the remote and hashed locally enabling any hash for any remote.

    -

    This command can also hash data received on standard input (stdin), by not passing a remote:path, or by passing a hyphen as remote:path when there is data to read (if not, the hypen will be treated literaly, as a relative path).

    +

    For the MD5 and SHA1 algorithms there are also dedicated commands, md5sum and sha1sum.

    +

    This command can also hash data received on standard input (stdin), by not passing a remote:path, or by passing a hyphen as remote:path when there is data to read (if not, the hyphen will be treated literally, as a relative path).

    Run without a hash to see the list of all supported hashes, e.g.

    $ rclone hashsum
     Supported hashes are:
    @@ -1626,26 +2483,55 @@ 

    Synopsis

    * crc32 * sha256 * dropbox + * hidrive * mailru * quickxor

    Then

    $ rclone hashsum MD5 remote:path

    Note that hash names are case insensitive and values are output in lower case.

    rclone hashsum <hash> remote:path [flags]
    -

    Options

    +

    Options

          --base64               Output base64 encoded hashsum
       -C, --checkfile string     Validate hashes against a given SUM file instead of printing them
           --download             Download the file and hash it locally; if this flag is not specified, the hash is requested from the remote
       -h, --help                 help for hashsum
           --output-file string   Output hashsums to a file rather than the terminal
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone link

    Generate public link to file/folder.

    -

    Synopsis

    +

    Synopsis

    rclone link will create, retrieve or remove a public link to the given file or folder.

    rclone link remote:path/to/file
     rclone link remote:path/to/folder/
    @@ -1655,32 +2541,32 @@ 

    Synopsis

    Use the --unlink flag to remove existing public links to the file or folder. Note not all backends support "--unlink" flag - those that don't will just ignore it.

    If successful, the last line of the output will contain the link. Exact capabilities depend on the remote, but the link will always by default be created with the least constraints – e.g. no expiry, no password protection, accessible without account.

    rclone link remote:path [flags]
    -

    Options

    +

    Options

          --expire Duration   The amount of time that the link will be valid (default off)
       -h, --help              help for link
           --unlink            Remove existing public link to file/folder

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone listremotes

    -

    List all the remotes in the config file.

    -

    Synopsis

    +

    List all the remotes in the config file and defined in environment variables.

    +

    Synopsis

    rclone listremotes lists all the available remotes from the config file.

    -

    When uses with the -l flag it lists the types too.

    +

    When used with the --long flag it lists the types too.

    rclone listremotes [flags]
    -

    Options

    +

    Options

      -h, --help   help for listremotes
           --long   Show the type as well as names

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone lsf

    List directories and objects in remote:path formatted for parsing.

    -

    Synopsis

    +

    Synopsis

    List the contents of the source path (directories and objects) to standard output in a form which is easy to parse by scripts. By default this will just be the names of the objects and directories, one per line. The directories will have a / suffix.

    Eg

    $ rclone lsf swift:bucket
    @@ -1689,7 +2575,7 @@ 

    Synopsis

    diwogej7 ferejej3gux/ fubuwic
    -

    Use the --format option to control what gets listed. By default this is just the path, but you can use these parameters to control the output:

    +

    Use the --format option to control what gets listed. By default this is just the path, but you can use these parameters to control the output:

    p - path
     s - size
     t - modification time
    @@ -1698,8 +2584,9 @@ 

    Synopsis

    o - Original ID of underlying object m - MimeType of object if known e - encrypted name -T - tier of storage if known, e.g. "Hot" or "Cool"
    -

    So if you wanted the path, size and modification time, you would use --format "pst", or maybe --format "tsp" to put the path last.

    +T - tier of storage if known, e.g. "Hot" or "Cool" +M - Metadata of object in JSON blob format, eg {"key":"value"}
    +

    So if you wanted the path, size and modification time, you would use --format "pst", or maybe --format "tsp" to put the path last.

    Eg

    $ rclone lsf  --format "tsp" swift:bucket
     2016-06-25 18:55:41;60295;bevajer5jef
    @@ -1707,7 +2594,7 @@ 

    Synopsis

    2016-06-25 18:55:43;94467;diwogej7 2018-04-26 08:50:45;0;ferejej3gux/ 2016-06-25 18:55:40;37600;fubuwic
    -

    If you specify "h" in the format you will get the MD5 hash by default, use the "--hash" flag to change which hash you want. Note that this can be returned as an empty string if it isn't available on the object (and for directories), "ERROR" if there was an error reading it from the object and "UNSUPPORTED" if that object does not support that hash type.

    +

    If you specify "h" in the format you will get the MD5 hash by default, use the --hash flag to change which hash you want. Note that this can be returned as an empty string if it isn't available on the object (and for directories), "ERROR" if there was an error reading it from the object and "UNSUPPORTED" if that object does not support that hash type.

    For example, to emulate the md5sum command you can use

    rclone lsf -R --hash MD5 --format hp --separator "  " --files-only .

    Eg

    @@ -1718,7 +2605,7 @@

    Synopsis

    8fd37c3810dd660778137ac3a66cc06d fubuwic 99713e14a4c4ff553acaf1930fad985b gixacuh7ku

    (Though "rclone md5sum ." is an easier way of typing this.)

    -

    By default the separator is ";" this can be changed with the --separator flag. Note that separators aren't escaped in the path so putting it last is a good strategy.

    +

    By default the separator is ";" this can be changed with the --separator flag. Note that separators aren't escaped in the path so putting it last is a good strategy.

    Eg

    $ rclone lsf  --separator "," --format "tshp" swift:bucket
     2016-06-25 18:55:41,60295,7908e352297f0f530b84a756f188baa3,bevajer5jef
    @@ -1732,7 +2619,7 @@ 

    Synopsis

    test.log,22355 test.sh,449 "this file contains a comma, in the file name.txt",6
    -

    Note that the --absolute parameter is useful for making lists of files to pass to an rclone copy with the --files-from-raw flag.

    +

    Note that the --absolute parameter is useful for making lists of files to pass to an rclone copy with the --files-from-raw flag.

    For example, to find all the files modified within one day and copy those only (without traversing the whole directory structure):

    rclone lsf --absolute --files-only --max-age 1d /path/to/local > new_files
     rclone copy --files-from-raw new_files /path/to/local remote:path
    @@ -1748,9 +2635,9 @@

    Synopsis

    ls,lsl,lsd are designed to be human-readable. lsf is designed to be human and machine-readable. lsjson is designed to be machine-readable.

    Note that ls and lsl recurse by default - use --max-depth 1 to stop the recursion.

    The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse.

    -

    Listing a non-existent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    +

    Listing a nonexistent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    rclone lsf remote:path [flags]
    -

    Options

    +

    Options

          --absolute           Put a leading / in front of path names
           --csv                Output in CSV format
       -d, --dir-slash          Append a slash to directory names (default true)
    @@ -1761,25 +2648,72 @@ 

    Options

    -h, --help help for lsf -R, --recursive Recurse into the listing -s, --separator string Separator for the items in the format (default ";")
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone lsjson

    List directories and objects in the path in JSON format.

    -

    Synopsis

    +

    Synopsis

    List directories and objects in the path in JSON format.

    The output is an array of Items, where each Item looks like this

    -

    { "Hashes" : { "SHA-1" : "f572d396fae9206628714fb2ce00f72e94f2258f", "MD5" : "b1946ac92492d2347c6235b4d2611184", "DropboxHash" : "ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc" }, "ID": "y2djkhiujf83u33", "OrigID": "UYOJVTUW00Q1RzTDA", "IsBucket" : false, "IsDir" : false, "MimeType" : "application/octet-stream", "ModTime" : "2017-05-31T16:15:57.034468261+01:00", "Name" : "file.txt", "Encrypted" : "v0qpsdq8anpci8n929v3uu9338", "EncryptedPath" : "kja9098349023498/v0qpsdq8anpci8n929v3uu9338", "Path" : "full/path/goes/here/file.txt", "Size" : 6, "Tier" : "hot", }

    -

    If --hash is not specified the Hashes property won't be emitted. The types of hash can be specified with the --hash-type parameter (which may be repeated). If --hash-type is set then it implies --hash.

    -

    If --no-modtime is specified then ModTime will be blank. This can speed things up on remotes where reading the ModTime takes an extra request (e.g. s3, swift).

    -

    If --no-mimetype is specified then MimeType will be blank. This can speed things up on remotes where reading the MimeType takes an extra request (e.g. s3, swift).

    -

    If --encrypted is not specified the Encrypted won't be emitted.

    -

    If --dirs-only is not specified files in addition to directories are returned

    -

    If --files-only is not specified directories in addition to the files will be returned.

    -

    if --stat is set then a single JSON blob will be returned about the item pointed to. This will return an error if the item isn't found. However on bucket based backends (like s3, gcs, b2, azureblob etc) if the item isn't found it will return an empty directory as it isn't possible to tell empty directories from missing directories there.

    -

    The Path field will only show folders below the remote path being listed. If "remote:path" contains the file "subfolder/file.txt", the Path for "file.txt" will be "subfolder/file.txt", not "remote:path/subfolder/file.txt". When used without --recursive the Path will always be the same as Name.

    +
    {
    +  "Hashes" : {
    +     "SHA-1" : "f572d396fae9206628714fb2ce00f72e94f2258f",
    +     "MD5" : "b1946ac92492d2347c6235b4d2611184",
    +     "DropboxHash" : "ecb65bb98f9d905b70458986c39fcbad7715e5f2fcc3b1f07767d7c83e2438cc"
    +  },
    +  "ID": "y2djkhiujf83u33",
    +  "OrigID": "UYOJVTUW00Q1RzTDA",
    +  "IsBucket" : false,
    +  "IsDir" : false,
    +  "MimeType" : "application/octet-stream",
    +  "ModTime" : "2017-05-31T16:15:57.034468261+01:00",
    +  "Name" : "file.txt",
    +  "Encrypted" : "v0qpsdq8anpci8n929v3uu9338",
    +  "EncryptedPath" : "kja9098349023498/v0qpsdq8anpci8n929v3uu9338",
    +  "Path" : "full/path/goes/here/file.txt",
    +  "Size" : 6,
    +  "Tier" : "hot",
    +}
    +

    If --hash is not specified the Hashes property won't be emitted. The types of hash can be specified with the --hash-type parameter (which may be repeated). If --hash-type is set then it implies --hash.

    +

    If --no-modtime is specified then ModTime will be blank. This can speed things up on remotes where reading the ModTime takes an extra request (e.g. s3, swift).

    +

    If --no-mimetype is specified then MimeType will be blank. This can speed things up on remotes where reading the MimeType takes an extra request (e.g. s3, swift).

    +

    If --encrypted is not specified the Encrypted won't be emitted.

    +

    If --dirs-only is not specified files in addition to directories are returned

    +

    If --files-only is not specified directories in addition to the files will be returned.

    +

    If --metadata is set then an additional Metadata key will be returned. This will have metadata in rclone standard format as a JSON object.

    +

    if --stat is set then a single JSON blob will be returned about the item pointed to. This will return an error if the item isn't found. However on bucket based backends (like s3, gcs, b2, azureblob etc) if the item isn't found it will return an empty directory as it isn't possible to tell empty directories from missing directories there.

    +

    The Path field will only show folders below the remote path being listed. If "remote:path" contains the file "subfolder/file.txt", the Path for "file.txt" will be "subfolder/file.txt", not "remote:path/subfolder/file.txt". When used without --recursive the Path will always be the same as Name.

    If the directory is a bucket in a bucket-based backend, then "IsBucket" will be set to true. This key won't be present unless it is "true".

    The time is in RFC3339 format with up to nanosecond precision. The number of decimal digits in the seconds will depend on the precision that the remote can hold the times, so if times are accurate to the nearest millisecond (e.g. Google Drive) then 3 digits will always be shown ("2017-05-31T16:15:57.034+01:00") whereas if the times are accurate to the nearest second (Dropbox, Box, WebDav, etc.) no digits will be shown ("2017-05-31T16:15:57+01:00").

    The whole output can be processed as a JSON blob, or alternatively it can be processed line by line as each item is written one to a line.

    @@ -1795,28 +2729,57 @@

    Synopsis

    ls,lsl,lsd are designed to be human-readable. lsf is designed to be human and machine-readable. lsjson is designed to be machine-readable.

    Note that ls and lsl recurse by default - use --max-depth 1 to stop the recursion.

    The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse.

    -

    Listing a non-existent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    +

    Listing a nonexistent directory will produce an error except for remotes which can't have empty directories (e.g. s3, swift, or gcs - the bucket-based remotes).

    rclone lsjson remote:path [flags]
    -

    Options

    +

    Options

          --dirs-only               Show only directories in the listing
    -  -M, --encrypted               Show the encrypted names
    +      --encrypted               Show the encrypted names
           --files-only              Show only files in the listing
           --hash                    Include hashes in the output (may take longer)
           --hash-type stringArray   Show only this hash type (may be repeated)
       -h, --help                    help for lsjson
    +  -M, --metadata                Add metadata to the listing
           --no-mimetype             Don't read the mime type (can speed things up)
           --no-modtime              Don't read the modification time (can speed things up)
           --original                Show the ID of the underlying Object
       -R, --recursive               Recurse into the listing
           --stat                    Just return the info for the pointed to file
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone mount

    Mount the remote as file system on a mountpoint.

    -

    Synopsis

    +

    Synopsis

    rclone mount allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's cloud storage systems as a file system with FUSE.

    First set up your remote using rclone config. Check it works with rclone ls etc.

    On Linux and macOS, you can run mount in either foreground or background (aka daemon) mode. Mount runs in foreground mode by default. Use the --daemon flag to force background mode. On Windows you can run mount in foreground only, the flag is ignored.

    @@ -1839,11 +2802,11 @@

    Synopsis

    The size of the mounted file system will be set according to information retrieved from the remote, the same as returned by the rclone about command. Remotes with unlimited storage may report the used size only, then an additional 1 PiB of free space is assumed. If the remote does not support the about feature at all, then 1 PiB is set as both the total and the free size.

    Installing on Windows

    To run rclone mount on Windows, you will need to download and install WinFsp.

    -

    WinFsp is an open-source Windows File System Proxy which makes it easy to write user space file systems for Windows. It provides a FUSE emulation layer which rclone uses combination with cgofuse. Both of these packages are by Bill Zissimopoulos who was very helpful during the implementation of rclone mount for Windows.

    +

    WinFsp is an open-source Windows File System Proxy which makes it easy to write user space file systems for Windows. It provides a FUSE emulation layer which rclone uses combination with cgofuse. Both of these packages are by Bill Zissimopoulos who was very helpful during the implementation of rclone mount for Windows.

    Mounting modes on windows

    Unlike other operating systems, Microsoft Windows provides a different filesystem type for network and fixed drives. It optimises access on the assumption fixed disk drives are fast and reliable, while network drives have relatively high latency and less reliability. Some settings can also be differentiated between the two types, for example that Windows Explorer should just display icons and not create preview thumbnails for image and video files on network drives.

    In most cases, rclone will mount the remote as a normal, fixed disk drive by default. However, you can also choose to mount it as a remote network drive, often described as a network share. If you mount an rclone remote using the default, fixed drive mode and experience unexpected program errors, freezes or other issues, consider mounting as a network drive instead.

    -

    When mounting as a fixed disk drive you can either mount to an unused drive letter, or to a path representing a non-existent subdirectory of an existing parent directory or drive. Using the special value * will tell rclone to automatically assign the next available drive letter, starting with Z: and moving backward. Examples:

    +

    When mounting as a fixed disk drive you can either mount to an unused drive letter, or to a path representing a nonexistent subdirectory of an existing parent directory or drive. Using the special value * will tell rclone to automatically assign the next available drive letter, starting with Z: and moving backward. Examples:

    rclone mount remote:path/to/files *
     rclone mount remote:path/to/files X:
     rclone mount remote:path/to/files C:\path\parent\mount
    @@ -1852,10 +2815,10 @@ 

    Mounting modes on windows

    To mount as network drive, you can add option --network-mode to your mount command. Mounting to a directory path is not supported in this mode, it is a limitation Windows imposes on junctions, so the remote must always be mounted to a drive letter.

    rclone mount remote:path/to/files X: --network-mode

    A volume name specified with --volname will be used to create the network share path. A complete UNC path, such as \\cloud\remote, optionally with path \\cloud\remote\madeup\path, will be used as is. Any other string will be used as the share part, after a default prefix \\server\. If no volume name is specified then \\server\share will be used. You must make sure the volume name is unique when you are mounting more than one drive, or else the mount command will fail. The share name will treated as the volume label for the mapped drive, shown in Windows Explorer etc, while the complete \\server\share will be reported as the remote UNC path by net use etc, just like a normal network drive mapping.

    -

    If you specify a full network share UNC path with --volname, this will implicitely set the --network-mode option, so the following two examples have same result:

    +

    If you specify a full network share UNC path with --volname, this will implicitly set the --network-mode option, so the following two examples have same result:

    rclone mount remote:path/to/files X: --network-mode
     rclone mount remote:path/to/files X: --volname \\server\share
    -

    You may also specify the network share UNC path as the mountpoint itself. Then rclone will automatically assign a drive letter, same as with * and use that as mountpoint, and instead use the UNC path specified as the volume name, as if it were specified with the --volname option. This will also implicitely set the --network-mode option. This means the following two examples have same result:

    +

    You may also specify the network share UNC path as the mountpoint itself. Then rclone will automatically assign a drive letter, same as with * and use that as mountpoint, and instead use the UNC path specified as the volume name, as if it were specified with the --volname option. This will also implicitly set the --network-mode option. This means the following two examples have same result:

    rclone mount remote:path/to/files \\cloud\remote
     rclone mount remote:path/to/files * --volname \\cloud\remote

    There is yet another way to enable network mode, and to set the share path, and that is to pass the "native" libfuse/WinFsp option directly: --fuse-flag --VolumePrefix=\server\share. Note that the path must be with just a single backslash prefix in this case.

    @@ -1864,20 +2827,41 @@

    Mounting modes on windows

    See also Limitations section below.

    Windows filesystem permissions

    The FUSE emulation layer on Windows must convert between the POSIX-based permission model used in FUSE, and the permission model used in Windows, based on access-control lists (ACL).

    -

    The mounted filesystem will normally get three entries in its access-control list (ACL), representing permissions for the POSIX permission scopes: Owner, group and others. By default, the owner and group will be taken from the current user, and the built-in group "Everyone" will be used to represent others. The user/group can be customized with FUSE options "UserName" and "GroupName", e.g. -o UserName=user123 -o GroupName="Authenticated Users". The permissions on each entry will be set according to options --dir-perms and --file-perms, which takes a value in traditional numeric notation.

    -

    The default permissions corresponds to --file-perms 0666 --dir-perms 0777, i.e. read and write permissions to everyone. This means you will not be able to start any programs from the the mount. To be able to do that you must add execute permissions, e.g. --file-perms 0777 --dir-perms 0777 to add it to everyone. If the program needs to write files, chances are you will have to enable VFS File Caching as well (see also limitations).

    -

    Note that the mapping of permissions is not always trivial, and the result you see in Windows Explorer may not be exactly like you expected. For example, when setting a value that includes write access, this will be mapped to individual permissions "write attributes", "write data" and "append data", but not "write extended attributes". Windows will then show this as basic permission "Special" instead of "Write", because "Write" includes the "write extended attributes" permission.

    -

    If you set POSIX permissions for only allowing access to the owner, using --file-perms 0600 --dir-perms 0700, the user group and the built-in "Everyone" group will still be given some special permissions, such as "read attributes" and "read permissions", in Windows. This is done for compatibility reasons, e.g. to allow users without additional permissions to be able to read basic metadata about files like in UNIX. One case that may arise is that other programs (incorrectly) interprets this as the file being accessible by everyone. For example an SSH client may warn about "unprotected private key file".

    -

    WinFsp 2021 (version 1.9) introduces a new FUSE option "FileSecurity", that allows the complete specification of file security descriptors using SDDL. With this you can work around issues such as the mentioned "unprotected private key file" by specifying -o FileSecurity="D:P(A;;FA;;;OW)", for file all access (FA) to the owner (OW).

    +

    The mounted filesystem will normally get three entries in its access-control list (ACL), representing permissions for the POSIX permission scopes: Owner, group and others. By default, the owner and group will be taken from the current user, and the built-in group "Everyone" will be used to represent others. The user/group can be customized with FUSE options "UserName" and "GroupName", e.g. -o UserName=user123 -o GroupName="Authenticated Users". The permissions on each entry will be set according to options --dir-perms and --file-perms, which takes a value in traditional Unix numeric notation.

    +

    The default permissions corresponds to --file-perms 0666 --dir-perms 0777, i.e. read and write permissions to everyone. This means you will not be able to start any programs from the mount. To be able to do that you must add execute permissions, e.g. --file-perms 0777 --dir-perms 0777 to add it to everyone. If the program needs to write files, chances are you will have to enable VFS File Caching as well (see also limitations). Note that the default write permission have some restrictions for accounts other than the owner, specifically it lacks the "write extended attributes", as explained next.

    +

    The mapping of permissions is not always trivial, and the result you see in Windows Explorer may not be exactly like you expected. For example, when setting a value that includes write access for the group or others scope, this will be mapped to individual permissions "write attributes", "write data" and "append data", but not "write extended attributes". Windows will then show this as basic permission "Special" instead of "Write", because "Write" also covers the "write extended attributes" permission. When setting digit 0 for group or others, to indicate no permissions, they will still get individual permissions "read attributes", "read extended attributes" and "read permissions". This is done for compatibility reasons, e.g. to allow users without additional permissions to be able to read basic metadata about files like in Unix.

    +

    WinFsp 2021 (version 1.9) introduced a new FUSE option "FileSecurity", that allows the complete specification of file security descriptors using SDDL. With this you get detailed control of the resulting permissions, compared to use of the POSIX permissions described above, and no additional permissions will be added automatically for compatibility with Unix. Some example use cases will following.

    +

    If you set POSIX permissions for only allowing access to the owner, using --file-perms 0600 --dir-perms 0700, the user group and the built-in "Everyone" group will still be given some special permissions, as described above. Some programs may then (incorrectly) interpret this as the file being accessible by everyone, for example an SSH client may warn about "unprotected private key file". You can work around this by specifying -o FileSecurity="D:P(A;;FA;;;OW)", which sets file all access (FA) to the owner (OW), and nothing else.

    +

    When setting write permissions then, except for the owner, this does not include the "write extended attributes" permission, as mentioned above. This may prevent applications from writing to files, giving permission denied error instead. To set working write permissions for the built-in "Everyone" group, similar to what it gets by default but with the addition of the "write extended attributes", you can specify -o FileSecurity="D:P(A;;FRFW;;;WD)", which sets file read (FR) and file write (FW) to everyone (WD). If file execute (FX) is also needed, then change to -o FileSecurity="D:P(A;;FRFWFX;;;WD)", or set file all access (FA) to get full access permissions, including delete, with -o FileSecurity="D:P(A;;FA;;;WD)".

    Windows caveats

    Drives created as Administrator are not visible to other accounts, not even an account that was elevated to Administrator with the User Account Control (UAC) feature. A result of this is that if you mount to a drive letter from a Command Prompt run as Administrator, and then try to access the same drive from Windows Explorer (which does not run as Administrator), you will not be able to see the mounted drive.

    If you don't need to access the drive from applications running with administrative privileges, the easiest way around this is to always create the mount from a non-elevated command prompt.

    To make mapped drives available to the user account that created them regardless if elevated or not, there is a special Windows setting called linked connections that can be enabled.

    -

    It is also possible to make a drive mount available to everyone on the system, by running the process creating it as the built-in SYSTEM account. There are several ways to do this: One is to use the command-line utility PsExec, from Microsoft's Sysinternals suite, which has option -s to start processes as the SYSTEM account. Another alternative is to run the mount command from a Windows Scheduled Task, or a Windows Service, configured to run as the SYSTEM account. A third alternative is to use the WinFsp.Launcher infrastructure). Note that when running rclone as another user, it will not use the configuration file from your profile unless you tell it to with the --config option. Read more in the install documentation.

    +

    It is also possible to make a drive mount available to everyone on the system, by running the process creating it as the built-in SYSTEM account. There are several ways to do this: One is to use the command-line utility PsExec, from Microsoft's Sysinternals suite, which has option -s to start processes as the SYSTEM account. Another alternative is to run the mount command from a Windows Scheduled Task, or a Windows Service, configured to run as the SYSTEM account. A third alternative is to use the WinFsp.Launcher infrastructure). Read more in the install documentation. Note that when running rclone as another user, it will not use the configuration file from your profile unless you tell it to with the --config option. Note also that it is now the SYSTEM account that will have the owner permissions, and other accounts will have permissions according to the group or others scopes. As mentioned above, these will then not get the "write extended attributes" permission, and this may prevent writing to files. You can work around this with the FileSecurity option, see example above.

    Note that mapping to a directory path, instead of a drive letter, does not suffer from the same limitations.

    +

    Mounting on macOS

    +

    Mounting on macOS can be done either via macFUSE (also known as osxfuse) or FUSE-T. macFUSE is a traditional FUSE driver utilizing a macOS kernel extension (kext). FUSE-T is an alternative FUSE system which "mounts" via an NFSv4 local server.

    +

    macFUSE Notes

    +

    If installing macFUSE using dmg packages from the website, rclone will locate the macFUSE libraries without any further intervention. If however, macFUSE is installed using the macports package manager, the following addition steps are required.

    +
    sudo mkdir /usr/local/lib
    +cd /usr/local/lib
    +sudo ln -s /opt/local/lib/libfuse.2.dylib
    +

    FUSE-T Limitations, Caveats, and Notes

    +

    There are some limitations, caveats, and notes about how it works. These are current as of FUSE-T version 1.0.14.

    +

    ModTime update on read

    +

    As per the FUSE-T wiki:

    +
    +

    File access and modification times cannot be set separately as it seems to be an issue with the NFS client which always modifies both. Can be reproduced with 'touch -m' and 'touch -a' commands

    +
    +

    This means that viewing files with various tools, notably macOS Finder, will cause rlcone to update the modification time of the file. This may make rclone upload a full new copy of the file.

    +

    Unicode Normalization

    +

    Rclone includes flags for unicode normalization with macFUSE that should be updated for FUSE-T. See this forum post and FUSE-T issue #16. The following flag should be added to the rclone mount command.

    +
    -o modules=iconv,from_code=UTF-8,to_code=UTF-8
    +

    Read Only mounts

    +

    When mounting with --read-only, attempts to write to files will fail silently as opposed to with a clear warning as in macFUSE.

    Limitations

    Without the use of --vfs-cache-mode this can only write files sequentially, it can only seek when reading. This means that many applications won't work with their files on an rclone mount without --vfs-cache-mode writes or --vfs-cache-mode full. See the VFS File Caching section for more info.

    -

    The bucket-based remotes (e.g. Swift, S3, Google Compute Storage, B2, Hubic) do not support the concept of empty directories, so empty directories will have a tendency to disappear once they fall out of the directory cache.

    +

    The bucket-based remotes (e.g. Swift, S3, Google Compute Storage, B2) do not support the concept of empty directories, so empty directories will have a tendency to disappear once they fall out of the directory cache.

    When rclone mount is invoked on Unix with --daemon flag, the main rclone program will wait for the background mount to become ready or until the timeout specified by the --daemon-wait flag. On Linux it can check mount status using ProcFS so the flag in fact sets maximum time to wait, while the real wait can be less. On macOS / BSD the time to wait is constant and the check is performed only at the end. We advise you to set wait time on macOS reasonably.

    Only supported on Linux, FreeBSD, OS X and Windows at the moment.

    rclone mount vs rclone sync/copy

    @@ -1903,17 +2887,16 @@

    Rclone as Unix mount helper

    or create systemd mount units:

    # /etc/systemd/system/mnt-data.mount
     [Unit]
    -After=network-online.target
    +Description=Mount for /mnt/data
     [Mount]
     Type=rclone
     What=sftp1:subdir
     Where=/mnt/data
    -Options=rw,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
    +Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone

    optionally accompanied by systemd automount unit

    # /etc/systemd/system/mnt-data.automount
     [Unit]
    -After=network-online.target
    -Before=remote-fs.target
    +Description=AutoMount for /mnt/data
     [Automount]
     Where=/mnt/data
     TimeoutIdleSec=600
    @@ -1936,7 +2919,7 @@ 

    VFS - Virtual File System

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -1955,16 +2938,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -1999,6 +2984,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    +
      +
    • size
    • +
    • modification time
    • +
    • hash
    • +
    +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -2013,43 +3011,47 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    rclone mount remote:path /path/to/mountpoint [flags]
    -

    Options

    +

    Options

          --allow-non-empty                        Allow mounting over a non-empty directory (not supported on Windows)
           --allow-other                            Allow access to other users (not supported on Windows)
           --allow-root                             Allow access to root user (not supported on Windows)
           --async-read                             Use asynchronous reads (not supported on Windows) (default true)
    -      --attr-timeout duration                  Time for which file/directory attributes are cached (default 1s)
    +      --attr-timeout Duration                  Time for which file/directory attributes are cached (default 1s)
           --daemon                                 Run mount in background and exit parent process (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
    -      --daemon-timeout duration                Time limit for rclone to respond to kernel (not supported on Windows)
    -      --daemon-wait duration                   Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
    +      --daemon-timeout Duration                Time limit for rclone to respond to kernel (not supported on Windows) (default 0s)
    +      --daemon-wait Duration                   Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
           --debug-fuse                             Debug the FUSE internals - needs -v
           --default-permissions                    Makes kernel enforce access control based on the file mode (not supported on Windows)
           --devname string                         Set the device name - default is remote:path
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --fuse-flag stringArray                  Flags or arguments to be passed direct to libfuse/WinFsp (repeat if required)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
       -h, --help                                   help for mount
           --max-read-ahead SizeSuffix              The number of bytes that can be prefetched for sequential reads (not supported on Windows) (default 128Ki)
    +      --mount-case-insensitive Tristate        Tell the OS the mount is case insensitive (true) or sensitive (false) regardless of the backend (auto) (default unset)
           --network-mode                           Mount as remote network drive, instead of fixed disk drive (supported on Windows only)
           --no-checksum                            Don't compare checksums on up/download
           --no-modtime                             Don't read/write the modification time (can speed things up)
    @@ -2057,34 +3059,61 @@ 

    Options

    --noappledouble Ignore Apple Double (._) and .DS_Store files (supported on OSX only) (default true) --noapplexattr Ignore all "com.apple.*" extended attributes (supported on OSX only) -o, --option stringArray Option for libfuse/WinFsp (repeat if required) - --poll-interval duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) - --read-only Mount read-only + --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) + --read-only Only allow read-only access --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2) - --vfs-cache-max-age duration Max age of objects in the cache (default 1h0m0s) + --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s) --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off) + --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off) --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off) - --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s) + --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s) --vfs-case-insensitive If a file name not found, find a case insensitive match + --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off) + --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi) --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off) - --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) --vfs-used-is-size rclone size Use the rclone size algorithm for Used size - --vfs-write-back duration Time to writeback files after last use when using cache (default 5s) - --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s) + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s) --volname string Set the volume name (supported on Windows and OSX only) --write-back-cache Makes kernel buffer writes before sending them to rclone (without this, writethrough caching is used) (not supported on Windows)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone moveto

    Move file or directory from source to dest.

    -

    Synopsis

    +

    Synopsis

    If source:path is a file or directory then it moves it to a file or directory named dest:path.

    -

    This can be used to rename files or upload single files to other than their existing name. If the source is a directory then it acts exactly like the move command.

    +

    This can be used to rename files or upload single files to other than their existing name. If the source is a directory then it acts exactly like the move command.

    So

    rclone moveto src dst

    where src and dst are rclone paths, either remote:path or /path/to/local or C:.

    @@ -2098,82 +3127,192 @@

    Synopsis

    Important: Since this can cause data loss, test first with the --dry-run or the --interactive/-i flag.

    Note: Use the -P/--progress flag to view real-time transfer statistics.

    rclone moveto source:path dest:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for moveto
    +

    Copy Options

    +

    Flags for anything which can Copy a file.

    +
          --check-first                                 Do all the checks before starting transfers
    +  -c, --checksum                                    Check for changes with size & checksum (if available, or fallback to size only).
    +      --compare-dest stringArray                    Include additional comma separated server-side paths during comparison
    +      --copy-dest stringArray                       Implies --compare-dest but also copies files from paths into destination
    +      --cutoff-mode string                          Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default "HARD")
    +      --ignore-case-sync                            Ignore case when synchronizing
    +      --ignore-checksum                             Skip post copy check of checksums
    +      --ignore-existing                             Skip all files that exist on destination
    +      --ignore-size                                 Ignore size when skipping use mod-time or checksum
    +  -I, --ignore-times                                Don't skip files that match size and time - transfer all files
    +      --immutable                                   Do not modify files, fail if existing files have been modified
    +      --inplace                                     Download directly to destination file instead of atomic download to temp/rename
    +      --max-backlog int                             Maximum number of objects in sync or check backlog (default 10000)
    +      --max-duration Duration                       Maximum duration rclone will transfer data for (default 0s)
    +      --max-transfer SizeSuffix                     Maximum size of data to transfer (default off)
    +  -M, --metadata                                    If set, preserve metadata when copying objects
    +      --modify-window Duration                      Max time diff to be considered the same (default 1ns)
    +      --multi-thread-chunk-size SizeSuffix          Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
    +      --multi-thread-cutoff SizeSuffix              Use multi-thread downloads for files above this size (default 256Mi)
    +      --multi-thread-streams int                    Number of streams to use for multi-thread downloads (default 4)
    +      --multi-thread-write-buffer-size SizeSuffix   In memory buffer size for writing when in multi-thread mode (default 128Ki)
    +      --no-check-dest                               Don't check the destination, copy regardless
    +      --no-traverse                                 Don't traverse destination file system on copy
    +      --no-update-modtime                           Don't update destination mod-time if files identical
    +      --order-by string                             Instructions on how to order the transfers, e.g. 'size,descending'
    +      --refresh-times                               Refresh the modtime of remote files
    +      --server-side-across-configs                  Allow server-side operations (e.g. copy) to work across different configs
    +      --size-only                                   Skip based on size only, not mod-time or checksum
    +      --streaming-upload-cutoff SizeSuffix          Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
    +  -u, --update                                      Skip files that are newer on the destination
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone ncdu

    Explore a remote with a text based user interface.

    -

    Synopsis

    +

    Synopsis

    This displays a text based user interface allowing the navigation of a remote. It is most useful for answering the question - "What is using all my disk space?".

    To make the user interface it first scans the entire remote given and builds an in memory representation. rclone ncdu can be used during this scanning phase and you will see it building up the directory structure as it goes along.

    -

    Here are the keys - press '?' to toggle the help on and off

    +

    You can interact with the user interface using key presses, press '?' to toggle the help on and off. The supported keys are:

     ↑,↓ or k,j to Move
      →,l to enter
      ←,h to return
    - c toggle counts
      g toggle graph
    + c toggle counts
      a toggle average size in directory
    + m toggle modified time
      u toggle human-readable format
    - n,s,C,A sort by name,size,count,average size
    + n,s,C,A,M sort by name,size,count,asize,mtime
      d delete file/directory
    + v select file/directory
    + V enter visual select mode
    + D delete selected files/directories
      y copy current path to clipboard
      Y display current path
    - ^L refresh screen
    + ^L refresh screen (fix screen corruption)
    + r recalculate file sizes
      ? to toggle help on and off
    - q/ESC/c-C to quit
    + q/ESC/^c to quit
    +

    Listed files/directories may be prefixed by a one-character flag, some of them combined with a description in brackets at end of line. These flags have the following meaning:

    +
    e means this is an empty directory, i.e. contains no files (but
    +  may contain empty subdirectories)
    +~ means this is a directory where some of the files (possibly in
    +  subdirectories) have unknown size, and therefore the directory
    +  size may be underestimated (and average size inaccurate, as it
    +  is average of the files with known sizes).
    +. means an error occurred while reading a subdirectory, and
    +  therefore the directory size may be underestimated (and average
    +  size inaccurate)
    +! means an error occurred while reading this directory

    This an homage to the ncdu tool but for rclone remotes. It is missing lots of features at the moment but is useful as it stands.

    -

    Note that it might take some time to delete big files/folders. The UI won't respond in the meantime since the deletion is done synchronously.

    +

    Note that it might take some time to delete big files/directories. The UI won't respond in the meantime since the deletion is done synchronously.

    +

    For a non-interactive listing of the remote, see the tree command. To just get the total size of the remote you can also use the size command.

    rclone ncdu remote:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for ncdu
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone obscure

    Obscure password for use in the rclone config file.

    -

    Synopsis

    +

    Synopsis

    In the rclone config file, human-readable passwords are obscured. Obscuring them is done by encrypting them and writing them out in base64. This is not a secure way of encrypting these passwords as rclone can decrypt them - it is to prevent "eyedropping" - namely someone seeing a password in the rclone config file by accident.

    Many equally important things (like access tokens) are not obscured in the config file. However it is very hard to shoulder surf a 64 character hex token.

    This command can also accept a password through STDIN instead of an argument by passing a hyphen as an argument. This will use the first line of STDIN as the password not including the trailing newline.

    -

    echo "secretpassword" | rclone obscure -

    +
    echo "secretpassword" | rclone obscure -

    If there is no data on STDIN to read, rclone obscure will default to obfuscating the hyphen itself.

    If you want to encrypt the config file then please use config file encryption - see rclone config for more info.

    rclone obscure password [flags]
    -

    Options

    +

    Options

      -h, --help   help for obscure

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone rc

    Run a command against a running rclone.

    -

    Synopsis

    -

    This runs a command against a running rclone. Use the --url flag to specify an non default URL to connect on. This can be either a ":port" which is taken to mean "http://localhost:port" or a "host:port" which is taken to mean "http://host:port"

    -

    A username and password can be passed in with --user and --pass.

    -

    Note that --rc-addr, --rc-user, --rc-pass will be read also for --url, --user, --pass.

    +

    Synopsis

    +

    This runs a command against a running rclone. Use the --url flag to specify an non default URL to connect on. This can be either a ":port" which is taken to mean "http://localhost:port" or a "host:port" which is taken to mean "http://host:port"

    +

    A username and password can be passed in with --user and --pass.

    +

    Note that --rc-addr, --rc-user, --rc-pass will be read also for --url, --user, --pass.

    Arguments should be passed in as parameter=value.

    The result will be returned as a JSON object by default.

    -

    The --json parameter can be used to pass in a JSON blob as an input instead of key=value arguments. This is the only way of passing in more complicated values.

    -

    The -o/--opt option can be used to set a key "opt" with key, value options in the form "-o key=value" or "-o key". It can be repeated as many times as required. This is useful for rc commands which take the "opt" parameter which by convention is a dictionary of strings.

    +

    The --json parameter can be used to pass in a JSON blob as an input instead of key=value arguments. This is the only way of passing in more complicated values.

    +

    The -o/--opt option can be used to set a key "opt" with key, value options in the form -o key=value or -o key. It can be repeated as many times as required. This is useful for rc commands which take the "opt" parameter which by convention is a dictionary of strings.

    -o key=value -o key2

    Will place this in the "opt" value

    {"key":"value", "key2","")
    -

    The -a/--arg option can be used to set strings in the "arg" value. It can be repeated as many times as required. This is useful for rc commands which take the "arg" parameter which by convention is a list of strings.

    +

    The -a/--arg option can be used to set strings in the "arg" value. It can be repeated as many times as required. This is useful for rc commands which take the "arg" parameter which by convention is a list of strings.

    -a value -a value2

    Will place this in the "arg" value

    ["value", "value2"]
    -

    Use --loopback to connect to the rclone instance running "rclone rc". This is very useful for testing commands without having to run an rclone rc server, e.g.:

    +

    Use --loopback to connect to the rclone instance running rclone rc. This is very useful for testing commands without having to run an rclone rc server, e.g.:

    rclone rc --loopback operations/about fs=/
    -

    Use "rclone rc" to see a list of all possible commands.

    +

    Use rclone rc to see a list of all possible commands.

    rclone rc commands parameter [flags]
    -

    Options

    +

    Options

      -a, --arg stringArray   Argument placed in the "arg" array
       -h, --help              help for rc
           --json string       Input JSON - use instead of key=value args
    @@ -2184,126 +3323,271 @@ 

    Options

    --url string URL to connect to rclone remote control (default "http://localhost:5572/") --user string Username to use to rclone remote control

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone rcat

    Copies standard input to file on remote.

    -

    Synopsis

    +

    Synopsis

    rclone rcat reads from standard input (stdin) and copies it to a single remote file.

    echo "hello world" | rclone rcat remote:path/to/file
     ffmpeg - | rclone rcat remote:path/to/file

    If the remote file already exists, it will be overwritten.

    rcat will try to upload small files in a single request, which is usually more efficient than the streaming/chunked upload endpoints, which use multiple requests. Exact behaviour depends on the remote. What is considered a small file may be set through --streaming-upload-cutoff. Uploading only starts after the cutoff is reached or if the file ends before that. The data must fit into RAM. The cutoff needs to be small enough to adhere the limits of your remote, please see there. Generally speaking, setting this cutoff too high will decrease your performance.

    -

    Use the |--size| flag to preallocate the file in advance at the remote end and actually stream it, even if remote backend doesn't support streaming.

    -

    |--size| should be the exact size of the input stream in bytes. If the size of the stream is different in length to the |--size| passed in then the transfer will likely fail.

    -

    Note that the upload can also not be retried because the data is not kept around until the upload succeeds. If you need to transfer a lot of data, you're better off caching locally and then rclone move it to the destination.

    +

    Use the --size flag to preallocate the file in advance at the remote end and actually stream it, even if remote backend doesn't support streaming.

    +

    --size should be the exact size of the input stream in bytes. If the size of the stream is different in length to the --size passed in then the transfer will likely fail.

    +

    Note that the upload cannot be retried because the data is not stored. If the backend supports multipart uploading then individual chunks can be retried. If you need to transfer a lot of data, you may be better off caching it locally and then rclone move it to the destination which can use retries.

    rclone rcat remote:path [flags]
    -

    Options

    +

    Options

      -h, --help       help for rcat
           --size int   File size hint to preallocate (default -1)
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    • rclone - Show help for rclone commands, flags and backends.

    rclone rcd

    Run rclone listening to remote control commands only.

    -

    Synopsis

    +

    Synopsis

    This runs rclone so that it only listens to remote control commands.

    This is useful if you are controlling rclone via the rc API.

    If you pass in a path to a directory, rclone will serve that directory for GET requests on the URL passed in. It will also open the URL in the browser when rclone is run.

    See the rc documentation for more info on the rc flags.

    -
    rclone rcd <path to files to serve>* [flags]
    -

    Options

    -
      -h, --help   help for rcd
    -

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    -
      -
    • rclone - Show help for rclone commands, flags and backends.
    • -
    -

    rclone rmdirs

    -

    Remove empty directories under the path.

    -

    Synopsis

    -

    This recursively removes any empty directories (including directories that only contain empty directories), that it finds under the path. The root path itself will also be removed if it is empty, unless you supply the --leave-root flag.

    -

    Use command rmdir to delete just the empty directory given by path, not recurse.

    -

    This is useful for tidying up remotes that rclone has left a lot of empty directories in. For example the delete command will delete files but leave the directory structure (unless used with option --rmdirs).

    -

    To delete a path and any objects in it, use purge command.

    -
    rclone rmdirs remote:path [flags]
    -

    Options

    -
      -h, --help         help for rmdirs
    -      --leave-root   Do not remove root directory if empty
    -

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    -
      -
    • rclone - Show help for rclone commands, flags and backends.
    • -
    -

    rclone selfupdate

    -

    Update the rclone binary.

    -

    Synopsis

    -

    This command downloads the latest release of rclone and replaces the currently running binary. The download is verified with a hashsum and cryptographically signed signature.

    -

    If used without flags (or with implied --stable flag), this command will install the latest stable release. However, some issues may be fixed (or features added) only in the latest beta release. In such cases you should run the command with the --beta flag, i.e. rclone selfupdate --beta. You can check in advance what version would be installed by adding the --check flag, then repeat the command without it when you are satisfied.

    -

    Sometimes the rclone team may recommend you a concrete beta or stable rclone release to troubleshoot your issue or add a bleeding edge feature. The --version VER flag, if given, will update to the concrete version instead of the latest one. If you omit micro version from VER (for example 1.53), the latest matching micro version will be used.

    -

    Upon successful update rclone will print a message that contains a previous version number. You will need it if you later decide to revert your update for some reason. Then you'll have to note the previous version and run the following command: rclone selfupdate [--beta] OLDVER. If the old version contains only dots and digits (for example v1.54.0) then it's a stable release so you won't need the --beta flag. Beta releases have an additional information similar to v1.54.0-beta.5111.06f1c0c61. (if you are a developer and use a locally built rclone, the version number will end with -DEV, you will have to rebuild it as it obviously can't be distributed).

    -

    If you previously installed rclone via a package manager, the package may include local documentation or configure services. You may wish to update with the flag --package deb or --package rpm (whichever is correct for your OS) to update these too. This command with the default --package zip will update only the rclone executable so the local manual may become inaccurate after it.

    -

    The rclone mount command (https://rclone.org/commands/rclone_mount/) may or may not support extended FUSE options depending on the build and OS. selfupdate will refuse to update if the capability would be discarded.

    -

    Note: Windows forbids deletion of a currently running executable so this command will rename the old executable to 'rclone.old.exe' upon success.

    -

    Please note that this command was not available before rclone version 1.55. If it fails for you with the message unknown command "selfupdate" then you will need to update manually following the install instructions located at https://rclone.org/install/

    -
    rclone selfupdate [flags]
    -

    Options

    -
          --beta             Install beta release
    -      --check            Check for latest release, do not download
    -  -h, --help             help for selfupdate
    -      --output string    Save the downloaded binary at a given path (default: replace running binary)
    -      --package string   Package format: zip|deb|rpm (default: zip)
    -      --stable           Install stable release (this is the default)
    -      --version string   Install the given rclone version (default: latest)
    -

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    -
      -
    • rclone - Show help for rclone commands, flags and backends.
    • -
    -

    rclone serve

    -

    Serve a remote over a protocol.

    -

    Synopsis

    -

    rclone serve is used to serve a remote over a given protocol. This command requires the use of a subcommand to specify the protocol, e.g.

    -
    rclone serve http remote:
    -

    Each subcommand has its own options which you can see in their help.

    -
    rclone serve <protocol> [opts] <remote> [flags]
    -

    Options

    -
      -h, --help   help for serve
    -

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    - -

    rclone serve dlna

    -

    Serve remote:path over DLNA

    -

    Synopsis

    -

    rclone serve dlna is a DLNA media server for media stored in an rclone remote. Many devices, such as the Xbox and PlayStation, can automatically discover this server in the LAN and play audio/video from it. VLC is also supported. Service discovery uses UDP multicast packets (SSDP) and will thus only work on LANs.

    -

    Rclone will list all files present in the remote, without filtering based on media formats or file extensions. Additionally, there is no media transcoding support. This means that some players might show files that they are not able to play back correctly.

    Server options

    -

    Use --addr to specify which IP address and port the server should listen on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs.

    -

    Use --name to choose the friendly server name, which is by default "rclone (hostname)".

    -

    Use --log-trace in conjunction with -vv to enable additional debug logging of all UPNP traffic.

    -

    VFS - Virtual File System

    -

    This command uses the VFS layer. This adapts the cloud storage objects that rclone uses into something which looks much more like a disk filing system.

    -

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    -

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    -

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    -
    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
    ---poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
    -

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    -

    You can send a SIGHUP signal to rclone for it to flush all directory caches, regardless of how old they are. Assuming only one rclone instance is running, you can reset the cache like this:

    +

    Use --rc-addr to specify which IP address and port the server should listen on, eg --rc-addr 1.2.3.4:8000 or --rc-addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    +

    If you set --rc-addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    +

    You can use a unix socket by setting the url to unix:///path/to/socket or just by using an absolute path name. Note that unix sockets bypass the authentication - this is expected to be done with file system permissions.

    +

    --rc-addr may be repeated to listen on multiple IPs/ports/sockets.

    +

    --rc-server-read-timeout and --rc-server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    +

    --rc-max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    +

    --rc-baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --rc-baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --rc-baseurl, so --rc-baseurl "rclone", --rc-baseurl "/rclone" and --rc-baseurl "/rclone/" are all treated identically.

    +

    TLS (SSL)

    +

    By default this will serve over http. If you want you can serve over https. You will need to supply the --rc-cert and --rc-key flags. If you wish to do client side certificate validation then you will need to supply --rc-client-ca also.

    +

    --rc-cert should be a either a PEM encoded certificate or a concatenation of that with the CA certificate. --krc-ey should be the PEM encoded private key and --rc-client-ca should be the PEM encoded client certificate authority certificate.

    +

    --rc-min-tls-version is minimum TLS version that is acceptable. Valid values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").

    +

    Template

    +

    --rc-template allows a user to specify a custom markup template for HTTP and WebDAV serve functions. The server exports the following markup to be used within the template to server pages:

    + ++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ParameterDescription
    .NameThe full path of a file/directory.
    .TitleDirectory listing of .Name
    .SortThe current sort used. This is changeable via ?sort= parameter
    Sort Options: namedirfirst,name,size,time (default namedirfirst)
    .OrderThe current ordering used. This is changeable via ?order= parameter
    Order Options: asc,desc (default asc)
    .QueryCurrently unused.
    .BreadcrumbAllows for creating a relative navigation
    -- .LinkThe relative to the root link of the Text.
    -- .TextThe Name of the directory.
    .EntriesInformation about a specific file/directory.
    -- .URLThe 'url' of an entry.
    -- .LeafCurrently same as 'URL' but intended to be 'just' the name.
    -- .IsDirBoolean for if an entry is a directory or not.
    -- .SizeSize in Bytes of the entry.
    -- .ModTimeThe UTC timestamp of an entry.
    +

    Authentication

    +

    By default this will serve files without needing a login.

    +

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --rc-user and --rc-pass flags.

    +

    If no static users are configured by either of the above methods, and client certificates are required by the --client-ca flag passed to the server, the client certificate common name will be considered as the username.

    +

    Use --rc-htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    +

    To create an htpasswd file:

    +
    touch htpasswd
    +htpasswd -B htpasswd user
    +htpasswd -B htpasswd anotherUser
    +

    The password file can be updated while rclone is running.

    +

    Use --rc-realm to set the authentication realm.

    +

    Use --rc-salt to change the password hashing salt from the default.

    +
    rclone rcd <path to files to serve>* [flags]
    +

    Options

    +
      -h, --help   help for rcd
    +

    RC Options

    +

    Flags to control the Remote Control API.

    +
          --rc                                 Enable the remote control server
    +      --rc-addr stringArray                IPaddress:Port or :Port to bind server to (default [localhost:5572])
    +      --rc-allow-origin string             Origin which cross-domain request (CORS) can be executed from
    +      --rc-baseurl string                  Prefix for URLs - leave blank for root
    +      --rc-cert string                     TLS PEM key (concatenation of certificate and CA certificate)
    +      --rc-client-ca string                Client certificate authority to verify clients with
    +      --rc-enable-metrics                  Enable prometheus metrics on /metrics
    +      --rc-files string                    Path to local files to serve on the HTTP server
    +      --rc-htpasswd string                 A htpasswd file - if not provided no authentication is done
    +      --rc-job-expire-duration Duration    Expire finished async jobs older than this value (default 1m0s)
    +      --rc-job-expire-interval Duration    Interval to check for expired async jobs (default 10s)
    +      --rc-key string                      TLS PEM Private key
    +      --rc-max-header-bytes int            Maximum size of request header (default 4096)
    +      --rc-min-tls-version string          Minimum TLS version that is acceptable (default "tls1.0")
    +      --rc-no-auth                         Don't require auth for certain methods
    +      --rc-pass string                     Password for authentication
    +      --rc-realm string                    Realm for authentication
    +      --rc-salt string                     Password hashing salt (default "dlPL2MqE")
    +      --rc-serve                           Enable the serving of remote objects
    +      --rc-server-read-timeout Duration    Timeout for server reading data (default 1h0m0s)
    +      --rc-server-write-timeout Duration   Timeout for server writing data (default 1h0m0s)
    +      --rc-template string                 User-specified template
    +      --rc-user string                     User name for authentication
    +      --rc-web-fetch-url string            URL to fetch the releases for webgui (default "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest")
    +      --rc-web-gui                         Launch WebGUI on localhost
    +      --rc-web-gui-force-update            Force update to latest version of web gui
    +      --rc-web-gui-no-open-browser         Don't open the browser automatically
    +      --rc-web-gui-update                  Check and update to latest version of web gui
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    +
      +
    • rclone - Show help for rclone commands, flags and backends.
    • +
    +

    rclone rmdirs

    +

    Remove empty directories under the path.

    +

    Synopsis

    +

    This recursively removes any empty directories (including directories that only contain empty directories), that it finds under the path. The root path itself will also be removed if it is empty, unless you supply the --leave-root flag.

    +

    Use command rmdir to delete just the empty directory given by path, not recurse.

    +

    This is useful for tidying up remotes that rclone has left a lot of empty directories in. For example the delete command will delete files but leave the directory structure (unless used with option --rmdirs).

    +

    This will delete --checkers directories concurrently so if you have thousands of empty directories consider increasing this number.

    +

    To delete a path and any objects in it, use the purge command.

    +
    rclone rmdirs remote:path [flags]
    +

    Options

    +
      -h, --help         help for rmdirs
    +      --leave-root   Do not remove root directory if empty
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    +
      +
    • rclone - Show help for rclone commands, flags and backends.
    • +
    +

    rclone selfupdate

    +

    Update the rclone binary.

    +

    Synopsis

    +

    This command downloads the latest release of rclone and replaces the currently running binary. The download is verified with a hashsum and cryptographically signed signature; see the release signing docs for details.

    +

    If used without flags (or with implied --stable flag), this command will install the latest stable release. However, some issues may be fixed (or features added) only in the latest beta release. In such cases you should run the command with the --beta flag, i.e. rclone selfupdate --beta. You can check in advance what version would be installed by adding the --check flag, then repeat the command without it when you are satisfied.

    +

    Sometimes the rclone team may recommend you a concrete beta or stable rclone release to troubleshoot your issue or add a bleeding edge feature. The --version VER flag, if given, will update to the concrete version instead of the latest one. If you omit micro version from VER (for example 1.53), the latest matching micro version will be used.

    +

    Upon successful update rclone will print a message that contains a previous version number. You will need it if you later decide to revert your update for some reason. Then you'll have to note the previous version and run the following command: rclone selfupdate [--beta] OLDVER. If the old version contains only dots and digits (for example v1.54.0) then it's a stable release so you won't need the --beta flag. Beta releases have an additional information similar to v1.54.0-beta.5111.06f1c0c61. (if you are a developer and use a locally built rclone, the version number will end with -DEV, you will have to rebuild it as it obviously can't be distributed).

    +

    If you previously installed rclone via a package manager, the package may include local documentation or configure services. You may wish to update with the flag --package deb or --package rpm (whichever is correct for your OS) to update these too. This command with the default --package zip will update only the rclone executable so the local manual may become inaccurate after it.

    +

    The rclone mount command may or may not support extended FUSE options depending on the build and OS. selfupdate will refuse to update if the capability would be discarded.

    +

    Note: Windows forbids deletion of a currently running executable so this command will rename the old executable to 'rclone.old.exe' upon success.

    +

    Please note that this command was not available before rclone version 1.55. If it fails for you with the message unknown command "selfupdate" then you will need to update manually following the install instructions located at https://rclone.org/install/

    +
    rclone selfupdate [flags]
    +

    Options

    +
          --beta             Install beta release
    +      --check            Check for latest release, do not download
    +  -h, --help             help for selfupdate
    +      --output string    Save the downloaded binary at a given path (default: replace running binary)
    +      --package string   Package format: zip|deb|rpm (default: zip)
    +      --stable           Install stable release (this is the default)
    +      --version string   Install the given rclone version (default: latest)
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    +
      +
    • rclone - Show help for rclone commands, flags and backends.
    • +
    +

    rclone serve

    +

    Serve a remote over a protocol.

    +

    Synopsis

    +

    Serve a remote over a given protocol. Requires the use of a subcommand to specify the protocol, e.g.

    +
    rclone serve http remote:
    +

    Each subcommand has its own options which you can see in their help.

    +
    rclone serve <protocol> [opts] <remote> [flags]
    +

    Options

    +
      -h, --help   help for serve
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    + +

    rclone serve dlna

    +

    Serve remote:path over DLNA

    +

    Synopsis

    +

    Run a DLNA media server for media stored in an rclone remote. Many devices, such as the Xbox and PlayStation, can automatically discover this server in the LAN and play audio/video from it. VLC is also supported. Service discovery uses UDP multicast packets (SSDP) and will thus only work on LANs.

    +

    Rclone will list all files present in the remote, without filtering based on media formats or file extensions. Additionally, there is no media transcoding support. This means that some players might show files that they are not able to play back correctly.

    +

    Server options

    +

    Use --addr to specify which IP address and port the server should listen on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs.

    +

    Use --name to choose the friendly server name, which is by default "rclone (hostname)".

    +

    Use --log-trace in conjunction with -vv to enable additional debug logging of all UPNP traffic.

    +

    VFS - Virtual File System

    +

    This command uses the VFS layer. This adapts the cloud storage objects that rclone uses into something which looks much more like a disk filing system.

    +

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    +

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    +

    VFS Directory Cache

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    +
    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
    +--poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)
    +

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    +

    You can send a SIGHUP signal to rclone for it to flush all directory caches, regardless of how old they are. Assuming only one rclone instance is running, you can reset the cache like this:

    kill -SIGHUP $(pidof rclone)

    If you configure rclone with a remote control then you can use rclone rc to flush the whole directory cache:

    rclone rc vfs/forget
    @@ -2318,16 +3602,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -2362,6 +3648,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    +
      +
    • size
    • +
    • modification time
    • +
    • hash
    • +
    +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -2376,60 +3675,92 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    rclone serve dlna remote:path [flags]
    -

    Options

    +

    Options

          --addr string                            The ip:port or :port to bind the DLNA http server to (default ":7879")
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --announce-interval Duration             The interval between SSDP announcements (default 12m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
       -h, --help                                   help for dlna
    +      --interface stringArray                  The interface to use for SSDP (repeat as necessary)
           --log-trace                              Enable trace logging of SOAP traffic
           --name string                            Name of DLNA server
           --no-checksum                            Don't compare checksums on up/download
           --no-modtime                             Don't read/write the modification time (can speed things up)
           --no-seek                                Don't allow seeking in files
    -      --poll-interval duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    -      --read-only                              Mount read-only
    +      --poll-interval Duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    +      --read-only                              Only allow read-only access
           --uid uint32                             Override the uid field set by the filesystem (not supported on Windows) (default 1000)
           --umask int                              Override the permission bits set by the filesystem (not supported on Windows) (default 2)
    -      --vfs-cache-max-age duration             Max age of objects in the cache (default 1h0m0s)
    +      --vfs-cache-max-age Duration             Max time since last access of objects in the cache (default 1h0m0s)
           --vfs-cache-max-size SizeSuffix          Max total size of objects in the cache (default off)
    +      --vfs-cache-min-free-space SizeSuffix    Target minimum free space on the disk containing the cache (default off)
           --vfs-cache-mode CacheMode               Cache mode off|minimal|writes|full (default off)
    -      --vfs-cache-poll-interval duration       Interval to poll the cache for stale objects (default 1m0s)
    +      --vfs-cache-poll-interval Duration       Interval to poll the cache for stale objects (default 1m0s)
           --vfs-case-insensitive                   If a file name not found, find a case insensitive match
    +      --vfs-disk-space-total-size SizeSuffix   Specify the total space of disk (default off)
    +      --vfs-fast-fingerprint                   Use fast (less accurate) fingerprints for change detection
           --vfs-read-ahead SizeSuffix              Extra read ahead over --buffer-size when using cache-mode full
           --vfs-read-chunk-size SizeSuffix         Read the source objects in chunks (default 128Mi)
           --vfs-read-chunk-size-limit SizeSuffix   If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
    -      --vfs-read-wait duration                 Time to wait for in-sequence read before seeking (default 20ms)
    +      --vfs-read-wait Duration                 Time to wait for in-sequence read before seeking (default 20ms)
           --vfs-used-is-size rclone size           Use the rclone size algorithm for Used size
    -      --vfs-write-back duration                Time to writeback files after last use when using cache (default 5s)
    -      --vfs-write-wait duration                Time to wait for in-sequence write before giving error (default 1s)
    + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve docker

    Serve any remote on docker's volume plugin API.

    -

    Synopsis

    +

    Synopsis

    This command implements the Docker volume plugin API allowing docker to use rclone as a data storage mechanism for various cloud providers. rclone provides docker volume plugin based on it.

    To create a docker plugin, one must create a Unix or TCP socket that Docker will look for when you use the plugin and then it listens for commands from docker daemon and runs the corresponding code when necessary. Docker plugins can run as a managed plugin under control of the docker daemon or as an independent native service. For testing, you can just run it directly from the command line, for example:

    sudo rclone serve docker --base-dir /tmp/rclone-volumes --socket-addr localhost:8787 -vv
    @@ -2442,7 +3773,7 @@

    VFS - Virtual File System

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -2461,16 +3792,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -2505,6 +3838,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    + +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -2519,38 +3865,41 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    rclone serve docker [flags]
    -

    Options

    +

    Options

          --allow-non-empty                        Allow mounting over a non-empty directory (not supported on Windows)
           --allow-other                            Allow access to other users (not supported on Windows)
           --allow-root                             Allow access to root user (not supported on Windows)
           --async-read                             Use asynchronous reads (not supported on Windows) (default true)
    -      --attr-timeout duration                  Time for which file/directory attributes are cached (default 1s)
    +      --attr-timeout Duration                  Time for which file/directory attributes are cached (default 1s)
           --base-dir string                        Base directory for volumes (default "/var/lib/docker-volumes/rclone")
           --daemon                                 Run mount in background and exit parent process (as background output is suppressed, use --log-file with --log-format=pid,... to monitor) (not supported on Windows)
    -      --daemon-timeout duration                Time limit for rclone to respond to kernel (not supported on Windows)
    -      --daemon-wait duration                   Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
    +      --daemon-timeout Duration                Time limit for rclone to respond to kernel (not supported on Windows) (default 0s)
    +      --daemon-wait Duration                   Time to wait for ready mount from daemon (maximum time on Linux, constant sleep time on OSX/BSD) (not supported on Windows) (default 1m0s)
           --debug-fuse                             Debug the FUSE internals - needs -v
           --default-permissions                    Makes kernel enforce access control based on the file mode (not supported on Windows)
           --devname string                         Set the device name - default is remote:path
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --forget-state                           Skip restoring previous state
    @@ -2558,6 +3907,7 @@ 

    Options

    --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000) -h, --help help for docker --max-read-ahead SizeSuffix The number of bytes that can be prefetched for sequential reads (not supported on Windows) (default 128Ki) + --mount-case-insensitive Tristate Tell the OS the mount is case insensitive (true) or sensitive (false) regardless of the backend (auto) (default unset) --network-mode Mount as remote network drive, instead of fixed disk drive (supported on Windows only) --no-checksum Don't compare checksums on up/download --no-modtime Don't read/write the modification time (can speed things up) @@ -2566,39 +3916,66 @@

    Options

    --noappledouble Ignore Apple Double (._) and .DS_Store files (supported on OSX only) (default true) --noapplexattr Ignore all "com.apple.*" extended attributes (supported on OSX only) -o, --option stringArray Option for libfuse/WinFsp (repeat if required) - --poll-interval duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) - --read-only Mount read-only + --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) + --read-only Only allow read-only access --socket-addr string Address <host:port> or absolute path (default: /run/docker/plugins/rclone.sock) --socket-gid int GID for unix socket (default: current process GID) (default 1000) --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2) - --vfs-cache-max-age duration Max age of objects in the cache (default 1h0m0s) + --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s) --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off) + --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off) --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off) - --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s) + --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s) --vfs-case-insensitive If a file name not found, find a case insensitive match + --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off) + --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi) --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off) - --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) --vfs-used-is-size rclone size Use the rclone size algorithm for Used size - --vfs-write-back duration Time to writeback files after last use when using cache (default 5s) - --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s) + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s) --volname string Set the volume name (supported on Windows and OSX only) --write-back-cache Makes kernel buffer writes before sending them to rclone (without this, writethrough caching is used) (not supported on Windows)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve ftp

    Serve remote:path over FTP.

    -

    Synopsis

    -

    rclone serve ftp implements a basic ftp server to serve the remote over FTP protocol. This can be viewed with a ftp client or you can make a remote of type ftp to read and write it.

    -

    Server options

    +

    Synopsis

    +

    Run a basic FTP server to serve a remote over FTP protocol. This can be viewed with a FTP client or you can make a remote of type FTP to read and write it.

    +

    Server options

    Use --addr to specify which IP address and port the server should listen on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    -

    Authentication

    +

    Authentication

    By default this will serve files without needing a login.

    You can set a single username and password with the --user and --pass flags.

    VFS - Virtual File System

    @@ -2606,7 +3983,7 @@

    VFS - Virtual File System

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -2625,16 +4002,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -2669,6 +4048,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    + +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -2683,20 +4075,23 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    @@ -2731,11 +4126,11 @@

    Auth Proxy

    Note that an internal cache is keyed on user so only use that for configuration, don't use pass or public_key. This also means that if a user's password or public-key is changed the cache will need to expire (which takes 5 mins) before it takes effect.

    This can be used to build general purpose proxies to any kind of backend that rclone supports.

    rclone serve ftp remote:path [flags]
    -

    Options

    +

    Options

          --addr string                            IPaddress:Port or :Port to bind server to (default "localhost:2121")
           --auth-proxy string                      A program to use to create the backend from the auth
           --cert string                            TLS PEM key (concatenation of certificate and CA certificate)
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
    @@ -2746,47 +4141,77 @@ 

    Options

    --no-seek Don't allow seeking in files --pass string Password for authentication (empty value allow every password) --passive-port string Passive port range to use (default "30000-32000") - --poll-interval duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) + --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) --public-ip string Public IP address to advertise for passive connections - --read-only Mount read-only + --read-only Only allow read-only access --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2) --user string User name for authentication (default "anonymous") - --vfs-cache-max-age duration Max age of objects in the cache (default 1h0m0s) + --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s) --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off) + --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off) --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off) - --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s) + --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s) --vfs-case-insensitive If a file name not found, find a case insensitive match + --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off) + --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi) --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off) - --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) --vfs-used-is-size rclone size Use the rclone size algorithm for Used size - --vfs-write-back duration Time to writeback files after last use when using cache (default 5s) - --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
    + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s) +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve http

    Serve the remote over HTTP.

    -

    Synopsis

    -

    rclone serve http implements a basic web server to serve the remote over HTTP. This can be viewed in a web browser or you can make a remote of type http read from it.

    -

    You can use the filter flags (e.g. --include, --exclude) to control what is served.

    -

    The server will log errors. Use -v to see access logs.

    -

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    -

    Server options

    -

    Use --addr to specify which IP address and port the server should listen on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    -

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    -

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    -

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    -

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    -

    SSL/TLS

    -

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    -

    --cert should be a either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    -

    Template

    -

    --template allows a user to specify a custom markup template for http and webdav serve functions. The server exports the following markup to be used within the template to server pages:

    +

    Synopsis

    +

    Run a basic web server to serve a remote over HTTP. This can be viewed in a web browser or you can make a remote of type http read from it.

    +

    You can use the filter flags (e.g. --include, --exclude) to control what is served.

    +

    The server will log errors. Use -v to see access logs.

    +

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    +

    Server options

    +

    Use --addr to specify which IP address and port the server should listen on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    +

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    +

    You can use a unix socket by setting the url to unix:///path/to/socket or just by using an absolute path name. Note that unix sockets bypass the authentication - this is expected to be done with file system permissions.

    +

    --addr may be repeated to listen on multiple IPs/ports/sockets.

    +

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    +

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    +

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    +

    TLS (SSL)

    +

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    +

    --cert should be a either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    +

    --min-tls-version is minimum TLS version that is acceptable. Valid values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").

    +

    Template

    +

    --template allows a user to specify a custom markup template for HTTP and WebDAV serve functions. The server exports the following markup to be used within the template to server pages:

    @@ -2865,23 +4290,24 @@

    Template

    -

    Authentication

    +

    Authentication

    By default this will serve files without needing a login.

    -

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    -

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    +

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    +

    If no static users are configured by either of the above methods, and client certificates are required by the --client-ca flag passed to the server, the client certificate common name will be considered as the username.

    +

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    To create an htpasswd file:

    touch htpasswd
     htpasswd -B htpasswd user
     htpasswd -B htpasswd anotherUser

    The password file can be updated while rclone is running.

    -

    Use --realm to set the authentication realm.

    -

    Use --salt to change the password hashing salt from the default.

    +

    Use --realm to set the authentication realm.

    +

    Use --salt to change the password hashing salt from the default.

    VFS - Virtual File System

    This command uses the VFS layer. This adapts the cloud storage objects that rclone uses into something which looks much more like a disk filing system.

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -2900,16 +4326,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -2944,6 +4372,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    + +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -2958,84 +4399,147 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    +

    Auth Proxy

    +

    If you supply the parameter --auth-proxy /path/to/program then rclone will use that program to generate backends on the fly which then are used to authenticate incoming requests. This uses a simple JSON based protocol with input on STDIN and output on STDOUT.

    +

    PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together, if --auth-proxy is set the authorized keys option will be ignored.

    +

    There is an example program bin/test_proxy.py in the rclone source code.

    +

    The program's job is to take a user and pass on the input and turn those into the config for a backend on STDOUT in JSON format. This config will have any default parameters for the backend added, but it won't use configuration from environment variables or command line options - it is the job of the proxy program to make a complete config.

    +

    This config generated must have this extra parameter - _root - root to use for the backend

    +

    And it may have this parameter - _obscure - comma separated strings for parameters to obscure

    +

    If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

    +
    {
    +    "user": "me",
    +    "pass": "mypassword"
    +}
    +

    If public-key authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

    +
    {
    +    "user": "me",
    +    "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf"
    +}
    +

    And as an example return this on STDOUT

    +
    {
    +    "type": "sftp",
    +    "_root": "",
    +    "_obscure": "pass",
    +    "user": "me",
    +    "pass": "mypassword",
    +    "host": "sftp.example.com"
    +}
    +

    This would mean that an SFTP backend would be created on the fly for the user and pass/public_key returned in the output to the host given. Note that since _obscure is set to pass, rclone will obscure the pass parameter before creating the backend (which is required for sftp backends).

    +

    The program can manipulate the supplied user in any way, for example to make proxy to many different sftp backends, you could make the user be user@example.com and then set the host to example.com in the output and the user to user. For security you'd probably want to restrict the host to a limited list.

    +

    Note that an internal cache is keyed on user so only use that for configuration, don't use pass or public_key. This also means that if a user's password or public-key is changed the cache will need to expire (which takes 5 mins) before it takes effect.

    +

    This can be used to build general purpose proxies to any kind of backend that rclone supports.

    rclone serve http remote:path [flags]
    -

    Options

    -
          --addr string                            IPaddress:Port or :Port to bind server to (default "127.0.0.1:8080")
    +

    Options

    +
          --addr stringArray                       IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
    +      --allow-origin string                    Origin which cross-domain request (CORS) can be executed from
    +      --auth-proxy string                      A program to use to create the backend from the auth
           --baseurl string                         Prefix for URLs - leave blank for root
    -      --cert string                            SSL PEM key (concatenation of certificate and CA certificate)
    +      --cert string                            TLS PEM key (concatenation of certificate and CA certificate)
           --client-ca string                       Client certificate authority to verify clients with
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
       -h, --help                                   help for http
           --htpasswd string                        A htpasswd file - if not provided no authentication is done
    -      --key string                             SSL PEM Private key
    +      --key string                             TLS PEM Private key
           --max-header-bytes int                   Maximum size of request header (default 4096)
    +      --min-tls-version string                 Minimum TLS version that is acceptable (default "tls1.0")
           --no-checksum                            Don't compare checksums on up/download
           --no-modtime                             Don't read/write the modification time (can speed things up)
           --no-seek                                Don't allow seeking in files
           --pass string                            Password for authentication
    -      --poll-interval duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    -      --read-only                              Mount read-only
    +      --poll-interval Duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    +      --read-only                              Only allow read-only access
           --realm string                           Realm for authentication
           --salt string                            Password hashing salt (default "dlPL2MqE")
    -      --server-read-timeout duration           Timeout for server reading data (default 1h0m0s)
    -      --server-write-timeout duration          Timeout for server writing data (default 1h0m0s)
    +      --server-read-timeout Duration           Timeout for server reading data (default 1h0m0s)
    +      --server-write-timeout Duration          Timeout for server writing data (default 1h0m0s)
           --template string                        User-specified template
           --uid uint32                             Override the uid field set by the filesystem (not supported on Windows) (default 1000)
           --umask int                              Override the permission bits set by the filesystem (not supported on Windows) (default 2)
           --user string                            User name for authentication
    -      --vfs-cache-max-age duration             Max age of objects in the cache (default 1h0m0s)
    +      --vfs-cache-max-age Duration             Max time since last access of objects in the cache (default 1h0m0s)
           --vfs-cache-max-size SizeSuffix          Max total size of objects in the cache (default off)
    +      --vfs-cache-min-free-space SizeSuffix    Target minimum free space on the disk containing the cache (default off)
           --vfs-cache-mode CacheMode               Cache mode off|minimal|writes|full (default off)
    -      --vfs-cache-poll-interval duration       Interval to poll the cache for stale objects (default 1m0s)
    +      --vfs-cache-poll-interval Duration       Interval to poll the cache for stale objects (default 1m0s)
           --vfs-case-insensitive                   If a file name not found, find a case insensitive match
    +      --vfs-disk-space-total-size SizeSuffix   Specify the total space of disk (default off)
    +      --vfs-fast-fingerprint                   Use fast (less accurate) fingerprints for change detection
           --vfs-read-ahead SizeSuffix              Extra read ahead over --buffer-size when using cache-mode full
           --vfs-read-chunk-size SizeSuffix         Read the source objects in chunks (default 128Mi)
           --vfs-read-chunk-size-limit SizeSuffix   If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
    -      --vfs-read-wait duration                 Time to wait for in-sequence read before seeking (default 20ms)
    +      --vfs-read-wait Duration                 Time to wait for in-sequence read before seeking (default 20ms)
           --vfs-used-is-size rclone size           Use the rclone size algorithm for Used size
    -      --vfs-write-back duration                Time to writeback files after last use when using cache (default 5s)
    -      --vfs-write-wait duration                Time to wait for in-sequence write before giving error (default 1s)
    + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve restic

    Serve the remote for restic's REST API.

    -

    Synopsis

    -

    rclone serve restic implements restic's REST backend API over HTTP. This allows restic to use rclone as a data storage mechanism for cloud providers that restic does not support directly.

    +

    Synopsis

    +

    Run a basic web server to serve a remote over restic's REST backend API over HTTP. This allows restic to use rclone as a data storage mechanism for cloud providers that restic does not support directly.

    Restic is a command-line program for doing backups.

    The server will log errors. Use -v to see access logs.

    -

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    +

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    Setting up rclone for use by restic

    First set up a remote for your chosen cloud provider.

    Once you have set up the remote, check it is working with, for example "rclone lsd remote:". You may have called the remote something other than "remote:" - just substitute whatever you called it in the following instructions.

    Now start the rclone restic server

    rclone serve restic -v remote:backup

    Where you can replace "backup" in the above by whatever path in the remote you wish to use.

    -

    By default this will serve on "localhost:8080" you can change this with use of the "--addr" flag.

    +

    By default this will serve on "localhost:8080" you can change this with use of the --addr flag.

    You might wish to start this server on boot.

    -

    Adding --cache-objects=false will cause rclone to stop caching objects returned from the List call. Caching is normally desirable as it speeds up downloading objects, saves transactions and uses very little memory.

    +

    Adding --cache-objects=false will cause rclone to stop caching objects returned from the List call. Caching is normally desirable as it speeds up downloading objects, saves transactions and uses very little memory.

    Setting up restic to use rclone

    Now you can follow the restic instructions on setting up restic.

    Note that you will need restic 0.8.2 or later to interoperate with rclone.

    @@ -3062,152 +4566,81 @@

    Multiple repositories

    $ export RESTIC_REPOSITORY=rest:http://localhost:8080/user2repo/ # backup user2 stuff

    Private repositories

    -

    The "--private-repos" flag can be used to limit users to repositories starting with a path of /<username>/.

    -

    Server options

    -

    Use --addr to specify which IP address and port the server should listen on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    -

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    -

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    -

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    -

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    -

    --template allows a user to specify a custom markup template for http and webdav serve functions. The server exports the following markup to be used within the template to server pages:

    - ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ParameterDescription
    .NameThe full path of a file/directory.
    .TitleDirectory listing of .Name
    .SortThe current sort used. This is changeable via ?sort= parameter
    Sort Options: namedirfirst,name,size,time (default namedirfirst)
    .OrderThe current ordering used. This is changeable via ?order= parameter
    Order Options: asc,desc (default asc)
    .QueryCurrently unused.
    .BreadcrumbAllows for creating a relative navigation
    -- .LinkThe relative to the root link of the Text.
    -- .TextThe Name of the directory.
    .EntriesInformation about a specific file/directory.
    -- .URLThe 'url' of an entry.
    -- .LeafCurrently same as 'URL' but intended to be 'just' the name.
    -- .IsDirBoolean for if an entry is a directory or not.
    -- .SizeSize in Bytes of the entry.
    -- .ModTimeThe UTC timestamp of an entry.
    -

    Authentication

    +

    The--private-repos flag can be used to limit users to repositories starting with a path of /<username>/.

    +

    Server options

    +

    Use --addr to specify which IP address and port the server should listen on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    +

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    +

    You can use a unix socket by setting the url to unix:///path/to/socket or just by using an absolute path name. Note that unix sockets bypass the authentication - this is expected to be done with file system permissions.

    +

    --addr may be repeated to listen on multiple IPs/ports/sockets.

    +

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    +

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    +

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    +

    TLS (SSL)

    +

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    +

    --cert should be a either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    +

    --min-tls-version is minimum TLS version that is acceptable. Valid values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").

    +

    Authentication

    By default this will serve files without needing a login.

    -

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    -

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    +

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    +

    If no static users are configured by either of the above methods, and client certificates are required by the --client-ca flag passed to the server, the client certificate common name will be considered as the username.

    +

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    To create an htpasswd file:

    touch htpasswd
     htpasswd -B htpasswd user
     htpasswd -B htpasswd anotherUser

    The password file can be updated while rclone is running.

    -

    Use --realm to set the authentication realm.

    -

    SSL/TLS

    -

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    -

    --cert should be either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    +

    Use --realm to set the authentication realm.

    +

    Use --salt to change the password hashing salt from the default.

    rclone serve restic remote:path [flags]
    -

    Options

    -
          --addr string                     IPaddress:Port or :Port to bind server to (default "localhost:8080")
    +

    Options

    +
          --addr stringArray                IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
    +      --allow-origin string             Origin which cross-domain request (CORS) can be executed from
           --append-only                     Disallow deletion of repository data
           --baseurl string                  Prefix for URLs - leave blank for root
           --cache-objects                   Cache listed objects (default true)
    -      --cert string                     SSL PEM key (concatenation of certificate and CA certificate)
    +      --cert string                     TLS PEM key (concatenation of certificate and CA certificate)
           --client-ca string                Client certificate authority to verify clients with
       -h, --help                            help for restic
    -      --htpasswd string                 htpasswd file - if not provided no authentication is done
    -      --key string                      SSL PEM Private key
    +      --htpasswd string                 A htpasswd file - if not provided no authentication is done
    +      --key string                      TLS PEM Private key
           --max-header-bytes int            Maximum size of request header (default 4096)
    +      --min-tls-version string          Minimum TLS version that is acceptable (default "tls1.0")
           --pass string                     Password for authentication
           --private-repos                   Users can only access their private repo
    -      --realm string                    Realm for authentication (default "rclone")
    -      --server-read-timeout duration    Timeout for server reading data (default 1h0m0s)
    -      --server-write-timeout duration   Timeout for server writing data (default 1h0m0s)
    +      --realm string                    Realm for authentication
    +      --salt string                     Password hashing salt (default "dlPL2MqE")
    +      --server-read-timeout Duration    Timeout for server reading data (default 1h0m0s)
    +      --server-write-timeout Duration   Timeout for server writing data (default 1h0m0s)
           --stdio                           Run an HTTP2 server on stdin/stdout
    -      --template string                 User-specified template
           --user string                     User name for authentication

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve sftp

    Serve the remote over SFTP.

    -

    Synopsis

    -

    rclone serve sftp implements an SFTP server to serve the remote over SFTP. This can be used with an SFTP client or you can make a remote of type sftp to use with it.

    -

    You can use the filter flags (e.g. --include, --exclude) to control what is served.

    -

    The server will log errors. Use -v to see access logs.

    -

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    -

    You must provide some means of authentication, either with --user/--pass, an authorized keys file (specify location with --authorized-keys - the default is the same as ssh), an --auth-proxy, or set the --no-auth flag for no authentication when logging in.

    -

    Note that this also implements a small number of shell commands so that it can provide md5sum/sha1sum/df information for the rclone sftp backend. This means that is can support SHA1SUMs, MD5SUMs and the about command when paired with the rclone sftp backend.

    -

    If you don't supply a host --key then rclone will generate rsa, ecdsa and ed25519 variants, and cache them for later use in rclone's cache directory (see "rclone help flags cache-dir") in the "serve-sftp" directory.

    -

    By default the server binds to localhost:2022 - if you want it to be reachable externally then supply "--addr :2022" for example.

    -

    Note that the default of "--vfs-cache-mode off" is fine for the rclone sftp backend, but it may not be with other SFTP clients.

    -

    If --stdio is specified, rclone will serve SFTP over stdio, which can be used with sshd via ~/.ssh/authorized_keys, for example:

    +

    Synopsis

    +

    Run an SFTP server to serve a remote over SFTP. This can be used with an SFTP client or you can make a remote of type sftp to use with it.

    +

    You can use the filter flags (e.g. --include, --exclude) to control what is served.

    +

    The server will respond to a small number of shell commands, mainly md5sum, sha1sum and df, which enable it to provide support for checksums and the about feature when accessed from an sftp remote.

    +

    Note that this server uses standard 32 KiB packet payload size, which means you must not configure the client to expect anything else, e.g. with the chunk_size option on an sftp remote.

    +

    The server will log errors. Use -v to see access logs.

    +

    --bwlimit will be respected for file transfers. Use --stats to control the stats printing.

    +

    You must provide some means of authentication, either with --user/--pass, an authorized keys file (specify location with --authorized-keys - the default is the same as ssh), an --auth-proxy, or set the --no-auth flag for no authentication when logging in.

    +

    If you don't supply a host --key then rclone will generate rsa, ecdsa and ed25519 variants, and cache them for later use in rclone's cache directory (see rclone help flags cache-dir) in the "serve-sftp" directory.

    +

    By default the server binds to localhost:2022 - if you want it to be reachable externally then supply --addr :2022 for example.

    +

    Note that the default of --vfs-cache-mode off is fine for the rclone sftp backend, but it may not be with other SFTP clients.

    +

    If --stdio is specified, rclone will serve SFTP over stdio, which can be used with sshd via ~/.ssh/authorized_keys, for example:

    restrict,command="rclone serve sftp --stdio ./photos" ssh-rsa ...
    -

    On the client you need to set "--transfers 1" when using --stdio. Otherwise multiple instances of the rclone server are started by OpenSSH which can lead to "corrupted on transfer" errors. This is the case because the client chooses indiscriminately which server to send commands to while the servers all have different views of the state of the filing system.

    -

    The "restrict" in authorized_keys prevents SHA1SUMs and MD5SUMs from beeing used. Omitting "restrict" and using --sftp-path-override to enable checksumming is possible but less secure and you could use the SFTP server provided by OpenSSH in this case.

    +

    On the client you need to set --transfers 1 when using --stdio. Otherwise multiple instances of the rclone server are started by OpenSSH which can lead to "corrupted on transfer" errors. This is the case because the client chooses indiscriminately which server to send commands to while the servers all have different views of the state of the filing system.

    +

    The "restrict" in authorized_keys prevents SHA1SUMs and MD5SUMs from being used. Omitting "restrict" and using --sftp-path-override to enable checksumming is possible but less secure and you could use the SFTP server provided by OpenSSH in this case.

    VFS - Virtual File System

    This command uses the VFS layer. This adapts the cloud storage objects that rclone uses into something which looks much more like a disk filing system.

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -3226,16 +4659,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -3270,6 +4705,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    + +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -3284,24 +4732,27 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    -

    Auth Proxy

    +

    Auth Proxy

    If you supply the parameter --auth-proxy /path/to/program then rclone will use that program to generate backends on the fly which then are used to authenticate incoming requests. This uses a simple JSON based protocol with input on STDIN and output on STDOUT.

    PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together, if --auth-proxy is set the authorized keys option will be ignored.

    There is an example program bin/test_proxy.py in the rclone source code.

    @@ -3332,11 +4783,11 @@

    Auth Proxy

    Note that an internal cache is keyed on user so only use that for configuration, don't use pass or public_key. This also means that if a user's password or public-key is changed the cache will need to expire (which takes 5 mins) before it takes effect.

    This can be used to build general purpose proxies to any kind of backend that rclone supports.

    rclone serve sftp remote:path [flags]
    -

    Options

    +

    Options

          --addr string                            IPaddress:Port or :Port to bind server to (default "localhost:2022")
           --auth-proxy string                      A program to use to create the backend from the auth
           --authorized-keys string                 Authorized keys file (default "~/.ssh/authorized_keys")
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --file-perms FileMode                    File permissions (default 0666)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
    @@ -3347,45 +4798,83 @@ 

    Options

    --no-modtime Don't read/write the modification time (can speed things up) --no-seek Don't allow seeking in files --pass string Password for authentication - --poll-interval duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) - --read-only Mount read-only - --stdio Run an sftp server on run stdin/stdout + --poll-interval Duration Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s) + --read-only Only allow read-only access + --stdio Run an sftp server on stdin/stdout --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) --umask int Override the permission bits set by the filesystem (not supported on Windows) (default 2) --user string User name for authentication - --vfs-cache-max-age duration Max age of objects in the cache (default 1h0m0s) + --vfs-cache-max-age Duration Max time since last access of objects in the cache (default 1h0m0s) --vfs-cache-max-size SizeSuffix Max total size of objects in the cache (default off) + --vfs-cache-min-free-space SizeSuffix Target minimum free space on the disk containing the cache (default off) --vfs-cache-mode CacheMode Cache mode off|minimal|writes|full (default off) - --vfs-cache-poll-interval duration Interval to poll the cache for stale objects (default 1m0s) + --vfs-cache-poll-interval Duration Interval to poll the cache for stale objects (default 1m0s) --vfs-case-insensitive If a file name not found, find a case insensitive match + --vfs-disk-space-total-size SizeSuffix Specify the total space of disk (default off) + --vfs-fast-fingerprint Use fast (less accurate) fingerprints for change detection --vfs-read-ahead SizeSuffix Extra read ahead over --buffer-size when using cache-mode full --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128Mi) --vfs-read-chunk-size-limit SizeSuffix If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off) - --vfs-read-wait duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) --vfs-used-is-size rclone size Use the rclone size algorithm for Used size - --vfs-write-back duration Time to writeback files after last use when using cache (default 5s) - --vfs-write-wait duration Time to wait for in-sequence write before giving error (default 1s)
    + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s) +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone serve webdav

    -

    Serve remote:path over webdav.

    -

    Synopsis

    -

    rclone serve webdav implements a basic webdav server to serve the remote over HTTP via the webdav protocol. This can be viewed with a webdav client, through a web browser, or you can make a remote of type webdav to read and write it.

    -

    Webdav options

    +

    Serve remote:path over WebDAV.

    +

    Synopsis

    +

    Run a basic WebDAV server to serve a remote over HTTP via the WebDAV protocol. This can be viewed with a WebDAV client, through a web browser, or you can make a remote of type WebDAV to read and write it.

    +

    WebDAV options

    --etag-hash

    This controls the ETag header. Without this flag the ETag will be based on the ModTime and Size of the object.

    -

    If this flag is set to "auto" then rclone will choose the first supported hash on the backend or you can use a named hash such as "MD5" or "SHA-1".

    -

    Use "rclone hashsum" to see the full list.

    -

    Server options

    -

    Use --addr to specify which IP address and port the server should listen on, e.g. --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    -

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    -

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    -

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    -

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    -

    --template allows a user to specify a custom markup template for http and webdav serve functions. The server exports the following markup to be used within the template to server pages:

    +

    If this flag is set to "auto" then rclone will choose the first supported hash on the backend or you can use a named hash such as "MD5" or "SHA-1". Use the hashsum command to see the full list.

    +

    Access WebDAV on Windows

    +

    WebDAV shared folder can be mapped as a drive on Windows, however the default settings prevent it. Windows will fail to connect to the server using insecure Basic authentication. It will not even display any login dialog. Windows requires SSL / HTTPS connection to be used with Basic. If you try to connect via Add Network Location Wizard you will get the following error: "The folder you entered does not appear to be valid. Please choose another". However, you still can connect if you set the following registry key on a client machine: HKEY_LOCAL_MACHINEto 2. The BasicAuthLevel can be set to the following values: 0 - Basic authentication disabled 1 - Basic authentication enabled for SSL connections only 2 - Basic authentication enabled for SSL connections and for non-SSL connections If required, increase the FileSizeLimitInBytes to a higher value. Navigate to the Services interface, then restart the WebClient service.

    +

    Access Office applications on WebDAV

    +

    Navigate to following registry HKEY_CURRENT_USER[14.0/15.0/16.0] Create a new DWORD BasicAuthLevel with value 2. 0 - Basic authentication disabled 1 - Basic authentication enabled for SSL connections only 2 - Basic authentication enabled for SSL and for non-SSL connections

    +

    https://learn.microsoft.com/en-us/office/troubleshoot/powerpoint/office-opens-blank-from-sharepoint

    +

    Server options

    +

    Use --addr to specify which IP address and port the server should listen on, eg --addr 1.2.3.4:8000 or --addr :8080 to listen to all IPs. By default it only listens on localhost. You can use port :0 to let the OS choose an available port.

    +

    If you set --addr to listen on a public or LAN accessible IP address then using Authentication is advised - see the next section for info.

    +

    You can use a unix socket by setting the url to unix:///path/to/socket or just by using an absolute path name. Note that unix sockets bypass the authentication - this is expected to be done with file system permissions.

    +

    --addr may be repeated to listen on multiple IPs/ports/sockets.

    +

    --server-read-timeout and --server-write-timeout can be used to control the timeouts on the server. Note that this is the total time for a transfer.

    +

    --max-header-bytes controls the maximum number of bytes the server will accept in the HTTP header.

    +

    --baseurl controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used --baseurl "/rclone" then rclone would serve from a URL starting with "/rclone/". This is useful if you wish to proxy rclone serve. Rclone automatically inserts leading and trailing "/" on --baseurl, so --baseurl "rclone", --baseurl "/rclone" and --baseurl "/rclone/" are all treated identically.

    +

    TLS (SSL)

    +

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    +

    --cert should be a either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    +

    --min-tls-version is minimum TLS version that is acceptable. Valid values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").

    +

    Template

    +

    --template allows a user to specify a custom markup template for HTTP and WebDAV serve functions. The server exports the following markup to be used within the template to server pages:

    @@ -3464,25 +4953,24 @@

    Server options

    -

    Authentication

    +

    Authentication

    By default this will serve files without needing a login.

    -

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    -

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    +

    You can either use an htpasswd file which can take lots of users, or set a single username and password with the --user and --pass flags.

    +

    If no static users are configured by either of the above methods, and client certificates are required by the --client-ca flag passed to the server, the client certificate common name will be considered as the username.

    +

    Use --htpasswd /path/to/htpasswd to provide an htpasswd file. This is in standard apache format and supports MD5, SHA1 and BCrypt for basic authentication. Bcrypt is recommended.

    To create an htpasswd file:

    touch htpasswd
     htpasswd -B htpasswd user
     htpasswd -B htpasswd anotherUser

    The password file can be updated while rclone is running.

    -

    Use --realm to set the authentication realm.

    -

    SSL/TLS

    -

    By default this will serve over http. If you want you can serve over https. You will need to supply the --cert and --key flags. If you wish to do client side certificate validation then you will need to supply --client-ca also.

    -

    --cert should be either a PEM encoded certificate or a concatenation of that with the CA certificate. --key should be the PEM encoded private key and --client-ca should be the PEM encoded client certificate authority certificate.

    +

    Use --realm to set the authentication realm.

    +

    Use --salt to change the password hashing salt from the default.

    VFS - Virtual File System

    This command uses the VFS layer. This adapts the cloud storage objects that rclone uses into something which looks much more like a disk filing system.

    Cloud storage objects have lots of properties which aren't like disk files - you can't extend them or write to the middle of them, so the VFS layer has to deal with that. Because there is no one right way of doing this there are various options explained below.

    The VFS layer also implements a directory cache - this caches info about files and directories (but not the data) in memory.

    VFS Directory Cache

    -

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the mount will appear immediately or invalidate the cache.

    +

    Using the --dir-cache-time flag, you can control how long a directory should be considered up to date and not refreshed from the backend. Changes made through the VFS will appear immediately or invalidate the cache.

    --dir-cache-time duration   Time to cache directory entries for (default 5m0s)
     --poll-interval duration    Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable (default 1m0s)

    However, changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes. If the backend supports polling, changes will be picked up within the polling interval.

    @@ -3501,16 +4989,18 @@

    VFS File Caching

    These flags control the VFS file caching options. File caching is necessary to make the VFS layer appear compatible with a normal file system. It can be disabled at the cost of some compatibility.

    For example you'll need to enable VFS caching if you want to read and write simultaneously to a file. See below for more details.

    Note that the VFS cache is separate from the cache backend and you may find that you need one or the other or both.

    -
    --cache-dir string                   Directory rclone will use for caching.
    ---vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
    ---vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
    ---vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)
    ---vfs-cache-poll-interval duration   Interval to poll the cache for stale objects (default 1m0s)
    ---vfs-write-back duration            Time to writeback files after last use when using cache (default 5s)
    +
    --cache-dir string                     Directory rclone will use for caching.
    +--vfs-cache-mode CacheMode             Cache mode off|minimal|writes|full (default off)
    +--vfs-cache-max-age duration           Max time since last access of objects in the cache (default 1h0m0s)
    +--vfs-cache-max-size SizeSuffix        Max total size of objects in the cache (default off)
    +--vfs-cache-min-free-space SizeSuffix  Target minimum free space on the disk containing the cache (default off)
    +--vfs-cache-poll-interval duration     Interval to poll the cache for stale objects (default 1m0s)
    +--vfs-write-back duration              Time to writeback files after last use when using cache (default 5s)

    If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable.

    The cache has 4 different modes selected by --vfs-cache-mode. The higher the cache mode the more compatible rclone becomes at the cost of using disk space.

    Note that files are written back to the remote only when they are closed and if they haven't been accessed for --vfs-write-back seconds. If rclone is quit or dies with files that haven't been uploaded, these will be uploaded next time rclone is run with the same flags.

    -

    If using --vfs-cache-max-size note that the cache may exceed this size for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache.

    +

    If using --vfs-cache-max-size or --vfs-cache-min-free-size note that the cache may exceed these quotas for two reasons. Firstly because it is only checked every --vfs-cache-poll-interval. Secondly because open files cannot be evicted from the cache. When --vfs-cache-max-size or --vfs-cache-min-free-size is exceeded, rclone will attempt to evict the least accessed files from the cache first. rclone will start with files that haven't been accessed for the longest. This cache flushing strategy is efficient and more relevant files are likely to remain cached.

    +

    The --vfs-cache-max-age will evict files from the cache after the set time since last access has passed. The default value of 1 hour will start evicting files from cache that haven't been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will wait for 1 more hour before evicting. Specify the time with standard notation, s, m, h, d, w .

    You should not run two copies of rclone using the same VFS cache with the same or overlapping remotes if using --vfs-cache-mode > off. This can potentially cause data corruption if you do. You can work around this by giving each rclone its own cache hierarchy with --cache-dir. You don't need to worry about this if the remotes in use don't overlap.

    --vfs-cache-mode off

    In this mode (the default) the cache will read directly from the remote and write directly to the remote without caching anything on disk.

    @@ -3545,6 +5035,19 @@

    --vfs-cache-mode full

    When reading a file rclone will read --buffer-size plus --vfs-read-ahead bytes ahead. The --buffer-size is buffered in memory whereas the --vfs-read-ahead is buffered on disk.

    When using this mode it is recommended that --buffer-size is not set too large and --vfs-read-ahead is set large if required.

    IMPORTANT not all file systems support sparse files. In particular FAT/exFAT do not. Rclone will perform very badly if the cache directory is on a filesystem which doesn't support sparse files and it will log an ERROR message if one is detected.

    +

    Fingerprinting

    +

    Various parts of the VFS use fingerprinting to see if a local file copy has changed relative to a remote file. Fingerprints are made from:

    + +

    where available on an object.

    +

    On some backends some of these attributes are slow to read (they take an extra API call per object, or extra work per object).

    +

    For example hash is slow with the local and sftp backends as they have to read the entire file and hash it, and modtime is slow with the s3, swift, ftp and qinqstor backends because they need to do an extra API call to fetch it.

    +

    If you use the --vfs-fast-fingerprint flag then rclone will not include the slow operations in the fingerprint. This makes the fingerprinting less accurate but much faster and will improve the opening time of cached files.

    +

    If you are running a vfs cache over local, s3 or swift backends then using this flag is recommended.

    +

    Note that if you change the value of this flag, the fingerprints of the files in the cache may be invalidated and the files will need to be downloaded again.

    VFS Chunked Reading

    When rclone reads files from a remote it reads them in chunks. This means that rather than requesting the whole file rclone reads the chunk specified. This can reduce the used download quota for some remotes by requesting only chunks from the remote that are actually read, at the cost of an increased number of requests.

    These flags control the chunking:

    @@ -3559,24 +5062,27 @@

    VFS Performance

    --no-checksum     Don't compare checksums on up/download.
     --no-modtime      Don't read/write the modification time (can speed things up).
     --no-seek         Don't allow seeking in files.
    ---read-only       Mount read-only.
    +--read-only Only allow read-only access.

    Sometimes rclone is delivered reads or writes out of order. Rather than seeking rclone will wait a short time for the in sequence read or write to come in. These flags only come into effect when not using an on disk cache file.

    --vfs-read-wait duration   Time to wait for in-sequence read before seeking (default 20ms)
     --vfs-write-wait duration  Time to wait for in-sequence write before giving error (default 1s)
    -

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from cache (the related global flag --checkers have no effect on mount).

    +

    When using VFS write caching (--vfs-cache-mode with value writes or full), the global flag --transfers can be set to adjust the number of parallel uploads of modified files from the cache (the related global flag --checkers has no effect on the VFS).

    --transfers int  Number of file transfers to run in parallel (default 4)

    VFS Case Sensitivity

    Linux file systems are case-sensitive: two files can differ only by case, and the exact case must be used when opening a file.

    File systems in modern Windows are case-insensitive but case-preserving: although existing files can be opened using any case, the exact case used to create the file is preserved and available for programs to query. It is not allowed for two files in the same directory to differ only by case.

    Usually file systems on macOS are case-insensitive. It is possible to make macOS file systems case-sensitive but that is not the default.

    -

    The --vfs-case-insensitive mount flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the mounted file system as-is. If the flag is "true" (or appears without a value on command line), rclone may perform a "fixup" as explained below.

    -

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on mounted file system. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by an underlying mounted file system.

    -

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system mounted by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    +

    The --vfs-case-insensitive VFS flag controls how rclone handles these two cases. If its value is "false", rclone passes file names to the remote as-is. If the flag is "true" (or appears without a value on the command line), rclone may perform a "fixup" as explained below.

    +

    The user may specify a file name to open/delete/rename/etc with a case different than what is stored on the remote. If an argument refers to an existing file with exactly the same name, then the case of the existing file on the disk will be used. However, if a file name with exactly the same name is not found but a name differing only by case exists, rclone will transparently fixup the name. This fixup happens only when an existing file is requested. Case sensitivity of file names created anew by rclone is controlled by the underlying remote.

    +

    Note that case sensitivity of the operating system running rclone (the target) may differ from case sensitivity of a file system presented by rclone (the source). The flag controls whether "fixup" is performed to satisfy the target.

    If the flag is not provided on the command line, then its default value depends on the operating system where rclone runs: "true" on Windows and macOS, "false" otherwise. If the flag is provided without a value, then it is "true".

    +

    VFS Disk Options

    +

    This flag allows you to manually set the statistics about the filing system. It can be useful when those statistics cannot be read correctly automatically.

    +
    --vfs-disk-space-total-size    Manually set the total disk space size (example: 256G, default: -1)

    Alternate report of used bytes

    Some backends, most notably S3, do not report the amount of bytes used. If you need this information to be available when running df on the filesystem, then pass the flag --vfs-used-is-size to rclone. With this flag set, instead of relying on the backend to report this information, rclone will scan the whole remote similar to rclone size and compute the total used space itself.

    WARNING. Contrary to rclone size, this flag ignores filters so that the result is accurate. However, this is very inefficient and may cost lots of API calls resulting in extra charges. Use it as a last resort and only with caching.

    -

    Auth Proxy

    +

    Auth Proxy

    If you supply the parameter --auth-proxy /path/to/program then rclone will use that program to generate backends on the fly which then are used to authenticate incoming requests. This uses a simple JSON based protocol with input on STDIN and output on STDOUT.

    PLEASE NOTE: --auth-proxy and --authorized-keys cannot be used together, if --auth-proxy is set the authorized keys option will be ignored.

    There is an example program bin/test_proxy.py in the rclone source code.

    @@ -3607,55 +5113,85 @@

    Auth Proxy

    Note that an internal cache is keyed on user so only use that for configuration, don't use pass or public_key. This also means that if a user's password or public-key is changed the cache will need to expire (which takes 5 mins) before it takes effect.

    This can be used to build general purpose proxies to any kind of backend that rclone supports.

    rclone serve webdav remote:path [flags]
    -

    Options

    -
          --addr string                            IPaddress:Port or :Port to bind server to (default "localhost:8080")
    +

    Options

    +
          --addr stringArray                       IPaddress:Port or :Port to bind server to (default [127.0.0.1:8080])
    +      --allow-origin string                    Origin which cross-domain request (CORS) can be executed from
           --auth-proxy string                      A program to use to create the backend from the auth
           --baseurl string                         Prefix for URLs - leave blank for root
    -      --cert string                            SSL PEM key (concatenation of certificate and CA certificate)
    +      --cert string                            TLS PEM key (concatenation of certificate and CA certificate)
           --client-ca string                       Client certificate authority to verify clients with
    -      --dir-cache-time duration                Time to cache directory entries for (default 5m0s)
    +      --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
           --dir-perms FileMode                     Directory permissions (default 0777)
           --disable-dir-list                       Disable HTML directory list on GET request for a directory
           --etag-hash string                       Which hash to use for the ETag, or auto or blank for off
           --file-perms FileMode                    File permissions (default 0666)
           --gid uint32                             Override the gid field set by the filesystem (not supported on Windows) (default 1000)
       -h, --help                                   help for webdav
    -      --htpasswd string                        htpasswd file - if not provided no authentication is done
    -      --key string                             SSL PEM Private key
    +      --htpasswd string                        A htpasswd file - if not provided no authentication is done
    +      --key string                             TLS PEM Private key
           --max-header-bytes int                   Maximum size of request header (default 4096)
    +      --min-tls-version string                 Minimum TLS version that is acceptable (default "tls1.0")
           --no-checksum                            Don't compare checksums on up/download
           --no-modtime                             Don't read/write the modification time (can speed things up)
           --no-seek                                Don't allow seeking in files
           --pass string                            Password for authentication
    -      --poll-interval duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    -      --read-only                              Mount read-only
    -      --realm string                           Realm for authentication (default "rclone")
    -      --server-read-timeout duration           Timeout for server reading data (default 1h0m0s)
    -      --server-write-timeout duration          Timeout for server writing data (default 1h0m0s)
    +      --poll-interval Duration                 Time to wait between polling for changes, must be smaller than dir-cache-time and only on supported remotes (set 0 to disable) (default 1m0s)
    +      --read-only                              Only allow read-only access
    +      --realm string                           Realm for authentication
    +      --salt string                            Password hashing salt (default "dlPL2MqE")
    +      --server-read-timeout Duration           Timeout for server reading data (default 1h0m0s)
    +      --server-write-timeout Duration          Timeout for server writing data (default 1h0m0s)
           --template string                        User-specified template
           --uid uint32                             Override the uid field set by the filesystem (not supported on Windows) (default 1000)
           --umask int                              Override the permission bits set by the filesystem (not supported on Windows) (default 2)
           --user string                            User name for authentication
    -      --vfs-cache-max-age duration             Max age of objects in the cache (default 1h0m0s)
    +      --vfs-cache-max-age Duration             Max time since last access of objects in the cache (default 1h0m0s)
           --vfs-cache-max-size SizeSuffix          Max total size of objects in the cache (default off)
    +      --vfs-cache-min-free-space SizeSuffix    Target minimum free space on the disk containing the cache (default off)
           --vfs-cache-mode CacheMode               Cache mode off|minimal|writes|full (default off)
    -      --vfs-cache-poll-interval duration       Interval to poll the cache for stale objects (default 1m0s)
    +      --vfs-cache-poll-interval Duration       Interval to poll the cache for stale objects (default 1m0s)
           --vfs-case-insensitive                   If a file name not found, find a case insensitive match
    +      --vfs-disk-space-total-size SizeSuffix   Specify the total space of disk (default off)
    +      --vfs-fast-fingerprint                   Use fast (less accurate) fingerprints for change detection
           --vfs-read-ahead SizeSuffix              Extra read ahead over --buffer-size when using cache-mode full
           --vfs-read-chunk-size SizeSuffix         Read the source objects in chunks (default 128Mi)
           --vfs-read-chunk-size-limit SizeSuffix   If greater than --vfs-read-chunk-size, double the chunk size after each chunk read, until the limit is reached ('off' is unlimited) (default off)
    -      --vfs-read-wait duration                 Time to wait for in-sequence read before seeking (default 20ms)
    +      --vfs-read-wait Duration                 Time to wait for in-sequence read before seeking (default 20ms)
           --vfs-used-is-size rclone size           Use the rclone size algorithm for Used size
    -      --vfs-write-back duration                Time to writeback files after last use when using cache (default 5s)
    -      --vfs-write-wait duration                Time to wait for in-sequence write before giving error (default 1s)
    + --vfs-write-back Duration Time to writeback files after last use when using cache (default 5s) + --vfs-write-wait Duration Time to wait for in-sequence write before giving error (default 1s)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone settier

    Changes storage class/tier of objects in remote.

    -

    Synopsis

    +

    Synopsis

    rclone settier changes storage tier or class at remote if supported. Few cloud storage services provides different storage classes on objects, for example AWS S3 and Glacier, Azure Blob storage - Hot, Cool and Archive, Google Cloud Storage, Regional Storage, Nearline, Coldline etc.

    Note that, certain tier changes make objects not available to access immediately. For example tiering to archive in azure blob storage makes objects in frozen state, user can restore by setting tier to Hot/Cool, similarly S3 to Glacier makes object inaccessible.true

    You can use it to tier single object

    @@ -3665,110 +5201,134 @@

    Synopsis

    Or just provide remote directory and all files in directory will be tiered

    rclone settier tier remote:path/dir
    rclone settier tier remote:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for settier

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone test

    Run a test command

    -

    Synopsis

    +

    Synopsis

    Rclone test is used to run test commands.

    -

    Select which test comand you want with the subcommand, eg

    +

    Select which test command you want with the subcommand, eg

    rclone test memory remote:

    Each subcommand has its own options which you can see in their help.

    NB Be careful running these commands, they may do strange things so reading their documentation first is recommended.

    -

    Options

    +

    Options

      -h, --help   help for test

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone test changenotify

    Log any change notify requests for the remote passed in.

    rclone test changenotify remote: [flags]
    -

    Options

    +

    Options

      -h, --help                     help for changenotify
    -      --poll-interval duration   Time to wait between polling for changes (default 10s)
    + --poll-interval Duration Time to wait between polling for changes (default 10s)

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone test histogram

    Makes a histogram of file name characters.

    -

    Synopsis

    +

    Synopsis

    This command outputs JSON which shows the histogram of characters used in filenames in the remote:path specified.

    The data doesn't contain any identifying information but is useful for the rclone developers when developing filename compression.

    rclone test histogram [remote:path] [flags]
    -

    Options

    +

    Options

      -h, --help   help for histogram

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone test info

    Discovers file name or other limitations for paths.

    -

    Synopsis

    +

    Synopsis

    rclone info discovers what filenames and upload methods are possible to write to the paths passed in and how long they can be. It can take some time. It will write test files into the remote:path passed in. It outputs a bit of go code for each one.

    NB this can create undeletable files and other hazards - use with care

    rclone test info [remote:path]+ [flags]
    -

    Options

    +

    Options

          --all                    Run all tests
    +      --check-base32768        Check can store all possible base32768 characters
           --check-control          Check control characters
           --check-length           Check max filename length
           --check-normalization    Check UTF-8 Normalization
           --check-streaming        Check uploads with indeterminate file size
       -h, --help                   help for info
    -      --upload-wait duration   Wait after writing a file
    +      --upload-wait Duration   Wait after writing a file (default 0s)
           --write-json string      Write results to file

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    + +

    rclone test makefile

    +

    Make files with random contents of the size given

    +
    rclone test makefile <size> [<file>]+ [flags]
    +

    Options

    +
          --ascii      Fill files with random ASCII printable bytes only
    +      --chargen    Fill files with a ASCII chargen pattern
    +  -h, --help       help for makefile
    +      --pattern    Fill files with a periodic pattern
    +      --seed int   Seed for the random number generator (0 for random) (default 1)
    +      --sparse     Make the files sparse (appear to be filled with ASCII 0x00)
    +      --zero       Fill files with ASCII 0x00
    +

    See the global flags page for global options not listed here.

    +

    SEE ALSO

    rclone test makefiles

    Make a random file hierarchy in a directory

    rclone test makefiles <dir> [flags]
    -

    Options

    -
          --files int                  Number of files to create (default 1000)
    +

    Options

    +
          --ascii                      Fill files with random ASCII printable bytes only
    +      --chargen                    Fill files with a ASCII chargen pattern
    +      --files int                  Number of files to create (default 1000)
           --files-per-directory int    Average number of files per directory (default 10)
       -h, --help                       help for makefiles
    +      --max-depth int              Maximum depth of directory hierarchy (default 10)
           --max-file-size SizeSuffix   Maximum size of files to create (default 100)
           --max-name-length int        Maximum size of file names (default 12)
           --min-file-size SizeSuffix   Minimum size of file to create
           --min-name-length int        Minimum size of file names (default 4)
    -      --seed int                   Seed for the random number generator (0 for random) (default 1)
    + --pattern Fill files with a periodic pattern + --seed int Seed for the random number generator (0 for random) (default 1) + --sparse Make the files sparse (appear to be filled with ASCII 0x00) + --zero Fill files with ASCII 0x00

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone test memory

    Load all the objects at remote:path into memory and report memory stats.

    rclone test memory remote:path [flags]
    -

    Options

    +

    Options

      -h, --help   help for memory

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone touch

    Create new file or change file modification time.

    -

    Synopsis

    +

    Synopsis

    Set the modification time on file(s) as specified by remote:path to have the current time.

    If remote:path does not exist then a zero sized file will be created, unless --no-create or --recursive is provided.

    -

    If --recursive is used then recursively sets the modification time on all existing files that is found under the path. Filters are supported, and you can test with the --dry-run or the --interactive flag.

    +

    If --recursive is used then recursively sets the modification time on all existing files that is found under the path. Filters are supported, and you can test with the --dry-run or the --interactive/-i flag.

    If --timestamp is used then sets the modification time to that time instead of the current time. Times may be specified as one of:

    Note that value of --timestamp is in UTC. If you want local time then add the --localtime flag.

    rclone touch remote:path [flags]
    -

    Options

    +

    Options

      -h, --help               help for touch
           --localtime          Use localtime for timestamp, not UTC
       -C, --no-create          Do not create the file if it does not exist (implied with --recursive)
       -R, --recursive          Recursively touch all files
       -t, --timestamp string   Use specified time instead of the current time of day
    +

    Important Options

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    rclone tree

    List the contents of the remote in a tree like fashion.

    -

    Synopsis

    +

    Synopsis

    rclone tree lists the contents of a remote in a similar way to the unix tree command.

    For example

    $ rclone tree remote:path
    @@ -3803,12 +5396,12 @@ 

    Synopsis

    └── file5 1 directories, 5 files
    -

    You can use any of the filtering options with the tree command (e.g. --include and --exclude). You can also use --fast-list.

    -

    The tree command has many options for controlling the listing which are compatible with the tree command. Note that not all of them have short options as they conflict with rclone's short options.

    +

    You can use any of the filtering options with the tree command (e.g. --include and --exclude. You can also use --fast-list.

    +

    The tree command has many options for controlling the listing which are compatible with the tree command, for example you can include file sizes with --size. Note that not all of them have short options as they conflict with rclone's short options.

    +

    For a more interactive navigation of the remote see the ncdu command.

    rclone tree remote:path [flags]
    -

    Options

    +

    Options

      -a, --all             All files are listed (list . files too)
    -  -C, --color           Turn colorization on always
       -d, --dirs-only       List directories only
           --dirsfirst       List directories before files (-U disables)
           --full-path       Print the full path prefix for each file
    @@ -3827,8 +5420,36 @@ 

    Options

    -r, --sort-reverse Reverse the order of the sort -U, --unsorted Leave files unsorted --version Sort files alphanumerically by version
    +

    Filter Options

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing Options

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions

    See the global flags page for global options not listed here.

    -

    SEE ALSO

    +

    SEE ALSO

    @@ -3907,7 +5528,9 @@

    Connection strings, config and lo

    Will get their own names

    DEBUG : :s3: detected overridden config - adding "{YTu53}" suffix to name

    Valid remote names

    -

    Remote names are case sensitive, and must adhere to the following rules: - May only contain 0-9, A-Z, a-z, _, -, . and space. - May not start with - or space.

    +

    Remote names are case sensitive, and must adhere to the following rules: - May contain number, letter, _, -, ., +, @ and space. - May not start with - or space. - May not end with space.

    +

    Starting with rclone version 1.61, any Unicode numbers and letters are allowed, while in older versions it was limited to plain ASCII (0-9, A-Z, a-z). If you use the same rclone configuration from different shells, which may be configured with different character encoding, you must be cautious to use characters that are possible to write in all of them. This is mostly a problem on Windows, where the console traditionally uses a non-Unicode character set - defined by the so-called "code page".

    +

    Do not use single character names on Windows as it creates ambiguity with Windows drives' names, e.g.: remote called C is indistinguishable from C drive. Rclone will always assume that single letter name refers to a drive.

    Quoting and the shell

    When you are typing commands to your computer you are using something called the command line shell. This interprets various characters in an OS specific way.

    Here are some gotchas which may help users unfamiliar with the shell rules

    @@ -3917,7 +5540,7 @@

    Linux / OSX

    If you want to send a ' you will need to use ", e.g.

    rclone copy "O'Reilly Reviews" remote:backup

    The rules for quoting metacharacters are complicated and if you want the full details you'll have to consult the manual page for your shell.

    -

    Windows

    +

    Windows

    If your names have spaces in you need to put them in ", e.g.

    rclone copy "E:\folder name\folder name\folder name" remote:backup

    If you are using the root directory on its own then don't quote it (see #464 for why), e.g.

    @@ -3925,9 +5548,9 @@

    Windows

    Copying files or directories with : in the names

    rclone uses : to mark a remote name. This is, however, a valid filename component in non-Windows OSes. The remote name parser will only search for a : up to the first / so if you need to act on a file or directory like this then use the full path starting with a /, or use ./ as a current directory prefix.

    So to sync a directory called sync:me to a remote called remote: use

    -
    rclone sync -i ./sync:me remote:path
    +
    rclone sync --interactive ./sync:me remote:path

    or

    -
    rclone sync -i /full/path/to/sync:me remote:path
    +
    rclone sync --interactive /full/path/to/sync:me remote:path

    Server Side Copy

    Most remotes (but not all - see the overview) support server-side copy.

    This means if you want to copy one folder to another then rclone won't download all the files and re-upload them; it will instruct the server to copy them in place.

    @@ -3938,29 +5561,162 @@

    Server Side Copy

    Server side copies are used with sync and copy and will be identified in the log when using the -v flag. The move command may also use them if remote doesn't support server-side move directly. This is done by issuing a server-side copy then a delete which is much quicker than a download and re-upload.

    Server side copies will only be attempted if the remote names are the same.

    This can be used when scripting to make aged backups efficiently, e.g.

    -
    rclone sync -i remote:current-backup remote:previous-backup
    -rclone sync -i /path/to/files remote:current-backup
    -

    Options

    +
    rclone sync --interactive remote:current-backup remote:previous-backup
    +rclone sync --interactive /path/to/files remote:current-backup
    +

    Metadata support

    +

    Metadata is data about a file which isn't the contents of the file. Normally rclone only preserves the modification time and the content (MIME) type where possible.

    +

    Rclone supports preserving all the available metadata on files (not directories) when using the --metadata or -M flag.

    +

    Exactly what metadata is supported and what that support means depends on the backend. Backends that support metadata have a metadata section in their docs and are listed in the features table (Eg local, s3)

    +

    Rclone only supports a one-time sync of metadata. This means that metadata will be synced from the source object to the destination object only when the source object has changed and needs to be re-uploaded. If the metadata subsequently changes on the source object without changing the object itself then it won't be synced to the destination object. This is in line with the way rclone syncs Content-Type without the --metadata flag.

    +

    Using --metadata when syncing from local to local will preserve file attributes such as file mode, owner, extended attributes (not Windows).

    +

    Note that arbitrary metadata may be added to objects using the --metadata-set key=value flag when the object is first uploaded. This flag can be repeated as many times as necessary.

    +

    Types of metadata

    +

    Metadata is divided into two type. System metadata and User metadata.

    +

    Metadata which the backend uses itself is called system metadata. For example on the local backend the system metadata uid will store the user ID of the file when used on a unix based platform.

    +

    Arbitrary metadata is called user metadata and this can be set however is desired.

    +

    When objects are copied from backend to backend, they will attempt to interpret system metadata if it is supplied. Metadata may change from being user metadata to system metadata as objects are copied between different backends. For example copying an object from s3 sets the content-type metadata. In a backend which understands this (like azureblob) this will become the Content-Type of the object. In a backend which doesn't understand this (like the local backend) this will become user metadata. However should the local object be copied back to s3, the Content-Type will be set correctly.

    +

    Metadata framework

    +

    Rclone implements a metadata framework which can read metadata from an object and write it to the object when (and only when) it is being uploaded.

    +

    This metadata is stored as a dictionary with string keys and string values.

    +

    There are some limits on the names of the keys (these may be clarified further in the future).

    + +

    Each backend can provide system metadata that it understands. Some backends can also store arbitrary user metadata.

    +

    Where possible the key names are standardized, so, for example, it is possible to copy object metadata from s3 to azureblob for example and metadata will be translated appropriately.

    +

    Some backends have limits on the size of the metadata and rclone will give errors on upload if they are exceeded.

    +

    Metadata preservation

    +

    The goal of the implementation is to

    +
      +
    1. Preserve metadata if at all possible
    2. +
    3. Interpret metadata if at all possible
    4. +
    +

    The consequences of 1 is that you can copy an S3 object to a local disk then back to S3 losslessly. Likewise you can copy a local file with file attributes and xattrs from local disk to s3 and back again losslessly.

    +

    The consequence of 2 is that you can copy an S3 object with metadata to Azureblob (say) and have the metadata appear on the Azureblob object also.

    +

    Standard system metadata

    +

    Here is a table of standard system metadata which, if appropriate, a backend may implement.

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    keydescriptionexample
    modeFile type and mode: octal, unix style0100664
    uidUser ID of owner: decimal number500
    gidGroup ID of owner: decimal number500
    rdevDevice ID (if special file) => hexadecimal0
    atimeTime of last access: RFC 33392006-01-02T15:04:05.999999999Z07:00
    mtimeTime of last modification: RFC 33392006-01-02T15:04:05.999999999Z07:00
    btimeTime of file creation (birth): RFC 33392006-01-02T15:04:05.999999999Z07:00
    cache-controlCache-Control headerno-cache
    content-dispositionContent-Disposition headerinline
    content-encodingContent-Encoding headergzip
    content-languageContent-Language headeren-US
    content-typeContent-Type headertext/plain
    +

    The metadata keys mtime and content-type will take precedence if supplied in the metadata over reading the Content-Type or modification time of the source object.

    +

    Hashes are not included in system metadata as there is a well defined way of reading those already.

    +

    Options

    Rclone has a number of options to control its behaviour.

    Options that take parameters can have the values passed in two ways, --option=value or --option value. However boolean (true/false) options behave slightly differently to the other options in that --boolean sets the option to true and the absence of the flag sets it to false. It is also possible to specify --boolean=false or --boolean=true. Note that --boolean false is not valid - this is parsed as --boolean and the false is parsed as an extra command line argument for rclone.

    -

    Options which use TIME use the go time parser. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

    +

    Time or duration options

    +

    TIME or DURATION options can be specified as a duration string or a time string.

    +

    A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Default units are seconds or the following abbreviations are valid:

    + +

    These can also be specified as an absolute time in the following formats:

    + +

    Size options

    Options which use SIZE use KiB (multiples of 1024 bytes) by default. However, a suffix of B for Byte, K for KiB, M for MiB, G for GiB, T for TiB and P for PiB may be used. These are the binary units, e.g. 1, 2**10, 2**20, 2**30 respectively.

    --backup-dir=DIR

    When using sync, copy or move any files which would have been overwritten or deleted are moved in their original hierarchy into this directory.

    If --suffix is set, then the moved files will have the suffix added to them. If there is a file with the same path (after the suffix has been added) in DIR, then it will be overwritten.

    -

    The remote in use must support server-side move or copy and you must use the same remote as the destination of the sync. The backup directory must not overlap the destination directory.

    +

    The remote in use must support server-side move or copy and you must use the same remote as the destination of the sync. The backup directory must not overlap the destination directory without it being excluded by a filter rule.

    For example

    -
    rclone sync -i /path/to/local remote:current --backup-dir remote:old
    +
    rclone sync --interactive /path/to/local remote:current --backup-dir remote:old

    will sync /path/to/local to remote:current, but for any files which would have been updated or deleted will be stored in remote:old.

    If running rclone from a script you might want to use today's date as the directory name passed to --backup-dir to store the old files, or you might want to pass --suffix with today's date.

    See --compare-dest and --copy-dest.

    --bind string

    Local address to bind to for outgoing connections. This can be an IPv4 address (1.2.3.4), an IPv6 address (1234::789A) or host name. If the host name doesn't resolve or resolves to more than one IP address it will give an error.

    +

    You can use --bind 0.0.0.0 to force rclone to use IPv4 addresses and --bind ::0 to force rclone to use IPv6 addresses.

    --bwlimit=BANDWIDTH_SPEC

    This option controls the bandwidth limit. For example

    --bwlimit 10M

    would mean limit the upload and download bandwidth to 10 MiB/s. NB this is bytes per second not bits per second. To use a single limit, specify the desired bandwidth in KiB/s, or use a suffix B|K|M|G|T|P. The default is 0 which means to not limit bandwidth.

    -

    The upload and download bandwidth can be specified seperately, as --bwlimit UP:DOWN, so

    +

    The upload and download bandwidth can be specified separately, as --bwlimit UP:DOWN, so

    --bwlimit 10M:100k

    would mean limit the upload bandwidth to 10 MiB/s and the download bandwidth to 100 KiB/s. Either limit can be "off" meaning no limit, so to just limit the upload bandwidth you would use

    --bwlimit 10M:off
    @@ -4008,16 +5764,23 @@

    --check-first

    If this flag is set then in a sync, copy or move, rclone will do all the checks to see whether files need to be transferred before doing any of the transfers. Normally rclone would start running transfers as soon as possible.

    This flag can be useful on IO limited systems where transfers interfere with checking.

    It can also be useful to ensure perfect ordering when using --order-by.

    +

    If both --check-first and --order-by are set when doing rclone move then rclone will use the transfer thread to delete source files which don't need transferring. This will enable perfect ordering of the transfers and deletes but will cause the transfer stats to have more items in than expected.

    Using this flag can use more memory as it effectively sets --max-backlog to infinite. This means that all the info on the objects to transfer is held in memory before the transfers start.

    --checkers=N

    -

    The number of checkers to run in parallel. Checkers do the equality checking of files during a sync. For some storage systems (e.g. S3, Swift, Dropbox) this can take a significant amount of time so they are run in parallel.

    -

    The default is to run 8 checkers in parallel.

    +

    Originally controlling just the number of file checkers to run in parallel, e.g. by rclone copy. Now a fairly universal parallelism control used by rclone in several places.

    +

    Note: checkers do the equality checking of files during a sync. For some storage systems (e.g. S3, Swift, Dropbox) this can take a significant amount of time so they are run in parallel.

    +

    The default is to run 8 checkers in parallel. However, in case of slow-reacting backends you may need to lower (rather than increase) this default by setting --checkers to 4 or less threads. This is especially advised if you are experiencing backend server crashes during file checking phase (e.g. on subsequent or top-up backups where little or no file copying is done and checking takes up most of the time). Increase this setting only with utmost care, while monitoring your server health and file checking throughput.

    -c, --checksum

    Normally rclone will look at modification time and size of files to see if they are equal. If you set this flag then rclone will check the file hash and size to determine if files are equal.

    This is useful when the remote doesn't support setting modified time and a more accurate sync is desired than just checking the file size.

    This is very useful when transferring between remotes which store the same hash type on the object, e.g. Drive and Swift. For details of which remotes support which hash type see the table in the overview section.

    Eg rclone --checksum sync s3:/bucket swift:/bucket would run much quicker than without the --checksum flag.

    When using this flag, rclone won't update mtimes of remote files if they are incorrect as it would normally.

    +

    --color WHEN

    +

    Specify when colors (and other ANSI codes) should be added to the output.

    +

    AUTO (default) only allows ANSI codes when the output is a terminal

    +

    NEVER never allow ANSI codes

    +

    ALWAYS always add ANSI codes, regardless of the output format (terminal or file)

    --compare-dest=DIR

    When using sync, copy or move DIR is checked in addition to the destination for files. If a file identical to the source is found that file is NOT copied from source. This is useful to copy just files that have changed since the last backup.

    You must use the same remote as the destination of the sync. The compare directory must not overlap the destination directory.

    @@ -4060,6 +5823,8 @@

    --config=CONFIG_FILE

    Note that passwords are in obscured form. Also, many storage systems uses token-based authentication instead of passwords, and this requires additional steps. It is easier, and safer, to use the interactive command rclone config instead of manually editing the configuration file.

    The configuration file will typically contain login information, and should therefore have restricted permissions so that only the current user can read it. Rclone tries to ensure this when it writes the file. You may also choose to encrypt the file.

    When token-based authentication are used, the configuration file must be writable, because rclone needs to update the tokens inside it.

    +

    To reduce risk of corrupting an existing configuration file, rclone will not write directly to it when saving changes. Instead it will first write to a new, temporary, file. If a configuration file already existed, it will (on Unix systems) try to mirror its permissions to the new file. Then it will rename the existing file to a temporary name as backup. Next, rclone will rename the new file to the correct name, before finally cleaning up by deleting the backup file.

    +

    If the configuration file path used by rclone is a symbolic link, then this will be evaluated and rclone will write to the resolved path, instead of overwriting the symbolic link. Temporary files used in the process (described above) will be written to the same parent directory as that of the resolved configuration file, but if this directory is also a symbolic link it will not be resolved and the temporary files will be written to the location of the directory symbolic link.

    --contimeout=TIME

    Set the connection timeout. This should be in go time format which looks like 5s for 5 seconds, 10m for 10 minutes, or 3h30m.

    The connection timeout is the amount of time rclone will wait for a connection to go through to a remote object storage system. It is 1m by default.

    @@ -4068,14 +5833,23 @@

    --copy-dest=DIR

    The remote in use must support server-side copy and you must use the same remote as the destination of the sync. The compare directory must not overlap the destination directory.

    See --compare-dest and --backup-dir.

    --dedupe-mode MODE

    -

    Mode to run dedupe command in. One of interactive, skip, first, newest, oldest, rename. The default is interactive. See the dedupe command for more information as to what these options mean.

    +

    Mode to run dedupe command in. One of interactive, skip, first, newest, oldest, rename. The default is interactive.
    +See the dedupe command for more information as to what these options mean.

    +

    --default-time TIME

    +

    If a file or directory does have a modification time rclone can read then rclone will display this fixed time instead.

    +

    The default is 2000-01-01 00:00:00 UTC. This can be configured in any of the ways shown in the time or duration options.

    +

    For example --default-time 2020-06-01 to set the default time to the 1st of June 2020 or --default-time 0s to set the default time to the time rclone started up.

    --disable FEATURE,FEATURE,...

    This disables a comma separated list of optional features. For example to disable server-side move and server-side copy use:

    --disable move,copy

    The features can be put in any case.

    To see a list of which features can be disabled use:

    --disable help
    +

    The features a remote has can be seen in JSON format with:

    +
    rclone backend features remote:

    See the overview features and optional features to get an idea of which feature does what.

    +

    Note that some features can be set to true if they are true/false feature flag features by prefixing them with !. For example the CaseInsensitive feature can be forced to false with --disable CaseInsensitive and forced to true with --disable '!CaseInsensitive'. In general it isn't a good idea doing this but it may be useful in extremis.

    +

    (Note that ! is a shell command which you will need to escape with single quotes or a backslash on unix like platforms.)

    This flag can be useful for debugging and in exceptional circumstances (e.g. Google Drive limiting the total volume of Server Side Copies to 100 GiB/day).

    --disable-http2

    This stops rclone from trying to use HTTP/2 if available. This can sometimes speed up transfers due to a problem in the Go standard library.

    @@ -4109,20 +5883,20 @@
    rclone ls remote:test --header "X-Rclone: Foo" --header "X-LetMeIn: Yes"

    --header-download

    Add an HTTP header for all download transactions. The flag can be repeated to add multiple headers.

    -
    rclone sync -i s3:test/src ~/dst --header-download "X-Amz-Meta-Test: Foo" --header-download "X-Amz-Meta-Test2: Bar"
    +
    rclone sync --interactive s3:test/src ~/dst --header-download "X-Amz-Meta-Test: Foo" --header-download "X-Amz-Meta-Test2: Bar"

    See the GitHub issue here for currently supported backends.

    --header-upload

    Add an HTTP header for all upload transactions. The flag can be repeated to add multiple headers.

    -
    rclone sync -i ~/src s3:test/dst --header-upload "Content-Disposition: attachment; filename='cool.html'" --header-upload "X-Amz-Meta-Test: FooBar"
    +
    rclone sync --interactive ~/src s3:test/dst --header-upload "Content-Disposition: attachment; filename='cool.html'" --header-upload "X-Amz-Meta-Test: FooBar"

    See the GitHub issue here for currently supported backends.

    --human-readable

    Rclone commands output values for sizes (e.g. number of bytes) and counts (e.g. number of files) either as raw numbers, or in human-readable format.

    In human-readable format the values are scaled to larger units, indicated with a suffix shown after the value, and rounded to three decimals. Rclone consistently uses binary units (powers of 2) for sizes and decimal units (powers of 10) for counts. The unit prefix for size is according to IEC standard notation, e.g. Ki for kibi. Used with byte unit, 1 KiB means 1024 Byte. In list type of output, only the unit prefix appended to the value (e.g. 9.762Ki), while in more textual output the full unit is shown (e.g. 9.762 KiB). For counts the SI standard notation is used, e.g. prefix k for kilo. Used with file counts, 1k means 1000 files.

    -

    The various list commands output raw numbers by default. Option --human-readable will make them output values in human-readable format instead (with the short unit prefix).

    -

    The about command outputs human-readable by default, with a command-specific option --full to output the raw numbers instead.

    -

    Command size outputs both human-readable and raw numbers in the same output.

    -

    The tree command also considers --human-readable, but it will not use the exact same notation as the other commands: It rounds to one decimal, and uses single letter suffix, e.g. K instead of Ki. The reason for this is that it relies on an external library.

    -

    The interactive command ncdu shows human-readable by default, and responds to key u for toggling human-readable format.

    +

    The various list commands output raw numbers by default. Option --human-readable will make them output values in human-readable format instead (with the short unit prefix).

    +

    The about command outputs human-readable by default, with a command-specific option --full to output the raw numbers instead.

    +

    Command size outputs both human-readable and raw numbers in the same output.

    +

    The tree command also considers --human-readable, but it will not use the exact same notation as the other commands: It rounds to one decimal, and uses single letter suffix, e.g. K instead of Ki. The reason for this is that it relies on an external library.

    +

    The interactive command ncdu shows human-readable by default, and responds to key u for toggling human-readable format.

    --ignore-case-sync

    Using this option will cause rclone to ignore the case of the files when synchronizing so files will not be copied/synced when the existing filenames are the same, even if the casing is different.

    --ignore-checksum

    @@ -4144,11 +5918,27 @@

    --immutable

    With this option set, files will be created and deleted as requested, but existing files will never be updated. If an existing file does not match between the source and destination, rclone will give the error Source and destination exist but do not match: immutable file modified.

    Note that only commands which transfer files (e.g. sync, copy, move) are affected by this behavior, and only modification is disallowed. Files may still be deleted explicitly (e.g. delete, purge) or implicitly (e.g. sync, move). Use copy --immutable if it is desired to avoid deletion as well as modification.

    This can be useful as an additional layer of protection for immutable or append-only data sets (notably backup archives), where modification implies corruption and should not be propagated.

    -

    -i / --interactive

    +

    --inplace

    +

    The --inplace flag changes the behaviour of rclone when uploading files to some backends (backends with the PartialUploads feature flag set) such as:

    + +

    Without --inplace (the default) rclone will first upload to a temporary file with an extension like this where XXXXXX represents a random string.

    +
    original-file-name.XXXXXX.partial
    +

    (rclone will make sure the final name is no longer than 100 characters by truncating the original-file-name part if necessary).

    +

    When the upload is complete, rclone will rename the .partial file to the correct name, overwriting any existing file at that point. If the upload fails then the .partial file will be deleted.

    +

    This prevents other users of the backend from seeing partially uploaded files in their new names and prevents overwriting the old file until the new one is completely uploaded.

    +

    If the --inplace flag is supplied, rclone will upload directly to the final name without creating a .partial file.

    +

    This means that an incomplete file will be visible in the directory listings while the upload is in progress and any existing files will be overwritten as soon as the upload starts. If the transfer fails then the file will be deleted. This can cause data loss of the existing file if the transfer fails.

    +

    Note that on the local file system if you don't use --inplace hard links (Unix only) will be broken. And if you do use --inplace you won't be able to update in use executables.

    +

    Note also that versions of rclone prior to v1.63.0 behave as if the --inplace flag is always supplied.

    +

    -i, --interactive

    This flag can be used to tell rclone that you wish a manual confirmation before destructive operations.

    It is recommended that you use this flag while learning rclone especially with rclone sync.

    For example

    -
    $ rclone delete -i /tmp/dir
    +
    $ rclone delete --interactive /tmp/dir
     rclone: delete "important-file.txt"?
     y) Yes, this is OK (default)
     n) No, skip this
    @@ -4193,6 +5983,9 @@ 

    --max-backlog=N

    Setting this to a negative number will make the backlog as large as possible.

    --max-delete=N

    This tells rclone not to delete more than N files. If that limit is exceeded then a fatal error will be generated and rclone will stop the operation in progress.

    +

    --max-delete-size=SIZE

    +

    Rclone will stop deleting files when the total size of deletions has reached the size specified. It defaults to off.

    +

    If that limit is exceeded then a fatal error will be generated and rclone will stop the operation in progress.

    --max-depth=N

    This modifies the recursion depth for all the commands except purge.

    So if you do rclone --max-depth 1 ls remote:path you will see only the files in the top level directory. Using --max-depth 2 means you will see all the files in first two directory levels and so on.

    @@ -4200,42 +5993,47 @@

    --max-depth=N

    You can use this command to disable recursion (with --max-depth 1).

    Note that if you use this with sync and --delete-excluded the files not recursed through are considered excluded and will be deleted on the destination. Test first with --dry-run if you are not sure what will happen.

    --max-duration=TIME

    -

    Rclone will stop scheduling new transfers when it has run for the duration specified.

    -

    Defaults to off.

    -

    When the limit is reached any existing transfers will complete.

    -

    Rclone won't exit with an error if the transfer limit is reached.

    +

    Rclone will stop transferring when it has run for the duration specified. Defaults to off.

    +

    When the limit is reached all transfers will stop immediately. Use --cutoff-mode to modify this behaviour.

    +

    Rclone will exit with exit code 10 if the duration limit is reached.

    --max-transfer=SIZE

    Rclone will stop transferring when it has reached the size specified. Defaults to off.

    -

    When the limit is reached all transfers will stop immediately.

    +

    When the limit is reached all transfers will stop immediately. Use --cutoff-mode to modify this behaviour.

    Rclone will exit with exit code 8 if the transfer limit is reached.

    --cutoff-mode=hard|soft|cautious

    -

    This modifies the behavior of --max-transfer Defaults to --cutoff-mode=hard.

    +

    This modifies the behavior of --max-transfer and --max-duration Defaults to --cutoff-mode=hard.

    Specifying --cutoff-mode=hard will stop transferring immediately when Rclone reaches the limit.

    Specifying --cutoff-mode=soft will stop starting new transfers when Rclone reaches the limit.

    -

    Specifying --cutoff-mode=cautious will try to prevent Rclone from reaching the limit.

    +

    Specifying --cutoff-mode=cautious will try to prevent Rclone from reaching the limit. Only applicable for --max-transfer

    +

    -M, --metadata

    +

    Setting this flag enables rclone to copy the metadata from the source to the destination. For local backends this is ownership, permissions, xattr etc. See the #metadata for more info.

    +

    --metadata-set key=value

    +

    Add metadata key = value when uploading. This can be repeated as many times as required. See the #metadata for more info.

    --modify-window=TIME

    When checking whether a file has been modified, this is the maximum allowed time difference that a file can have and still be considered equivalent.

    The default is 1ns unless this is overridden by a remote. For example OS X only stores modification times to the nearest second so if you are reading and writing to an OS X filing system this will be 1s by default.

    This command line flag allows you to override that computed default.

    -

    --multi-thread-cutoff=SIZE

    -

    When downloading files to the local backend above this size, rclone will use multiple threads to download the file (default 250M).

    -

    Rclone preallocates the file (using fallocate(FALLOC_FL_KEEP_SIZE) on unix or NTSetInformationFile on Windows both of which takes no time) then each thread writes directly into the file at the correct place. This means that rclone won't create fragmented or sparse files and there won't be any assembly time at the end of the transfer.

    -

    The number of threads used to download is controlled by --multi-thread-streams.

    +

    --multi-thread-write-buffer-size=SIZE

    +

    When transferring with multiple threads, rclone will buffer SIZE bytes in memory before writing to disk for each thread.

    +

    This can improve performance if the underlying filesystem does not deal well with a lot of small writes in different positions of the file, so if you see transfers being limited by disk write speed, you might want to experiment with different values. Specially for magnetic drives and remote file systems a higher value can be useful.

    +

    Nevertheless, the default of 128k should be fine for almost all use cases, so before changing it ensure that network is not really your bottleneck.

    +

    As a final hint, size is not the only factor: block size (or similar concept) can have an impact. In one case, we observed that exact multiples of 16k performed much better than other values.

    +

    --multi-thread-chunk-size=SizeSuffix

    +

    Normally the chunk size for multi thread transfers is set by the backend. However some backends such as local and smb (which implement OpenWriterAt but not OpenChunkWriter) don't have a natural chunk size.

    +

    In this case the value of this option is used (default 64Mi).

    +

    --multi-thread-cutoff=SIZE

    +

    When transferring files above SIZE to capable backends, rclone will use multiple threads to transfer the file (default 256M).

    +

    Capable backends are marked in the overview as MultithreadUpload. (They need to implement either the OpenWriterAt or OpenChunkedWriter internal interfaces). These include include, local, s3, azureblob, b2, oracleobjectstorage and smb at the time of writing.

    +

    On the local disk, rclone preallocates the file (using fallocate(FALLOC_FL_KEEP_SIZE) on unix or NTSetInformationFile on Windows both of which takes no time) then each thread writes directly into the file at the correct place. This means that rclone won't create fragmented or sparse files and there won't be any assembly time at the end of the transfer.

    +

    The number of threads used to transfer is controlled by --multi-thread-streams.

    Use -vv if you wish to see info about the threads.

    -

    This will work with the sync/copy/move commands and friends copyto/moveto. Multi thread downloads will be used with rclone mount and rclone serve if --vfs-cache-mode is set to writes or above.

    -

    NB that this only works for a local destination but will work with any source.

    -

    NB that multi thread copies are disabled for local to local copies as they are faster without unless --multi-thread-streams is set explicitly.

    -

    NB on Windows using multi-thread downloads will cause the resulting files to be sparse. Use --local-no-sparse to disable sparse files (which may cause long delays at the start of downloads) or disable multi-thread downloads with --multi-thread-streams 0

    +

    This will work with the sync/copy/move commands and friends copyto/moveto. Multi thread transfers will be used with rclone mount and rclone serve if --vfs-cache-mode is set to writes or above.

    +

    NB that this only works with supported backends as the destination but will work with any backend as the source.

    +

    NB that multi-thread copies are disabled for local to local copies as they are faster without unless --multi-thread-streams is set explicitly.

    +

    NB on Windows using multi-thread transfers to the local disk will cause the resulting files to be sparse. Use --local-no-sparse to disable sparse files (which may cause long delays at the start of transfers) or disable multi-thread transfers with --multi-thread-streams 0

    --multi-thread-streams=N

    -

    When using multi thread downloads (see above --multi-thread-cutoff) this sets the maximum number of streams to use. Set to 0 to disable multi thread downloads (Default 4).

    -

    Exactly how many streams rclone uses for the download depends on the size of the file. To calculate the number of download streams Rclone divides the size of the file by the --multi-thread-cutoff and rounds up, up to the maximum set with --multi-thread-streams.

    -

    So if --multi-thread-cutoff 250M and --multi-thread-streams 4 are in effect (the defaults):

    -
      -
    • 0..250 MiB files will be downloaded with 1 stream
    • -
    • 250..500 MiB files will be downloaded with 2 streams
    • -
    • 500..750 MiB files will be downloaded with 3 streams
    • -
    • 750+ MiB files will be downloaded with 4 streams
    • -
    +

    When using multi thread transfers (see above --multi-thread-cutoff) this sets the number of streams to use. Set to 0 to disable multi thread transfers (Default 4).

    +

    If the backend has a --backend-upload-concurrency setting (eg --s3-upload-concurrency) then this setting will be used as the number of transfers instead if it is larger than the value of --multi-thread-streams or --multi-thread-streams isn't set.

    --no-check-dest

    The --no-check-dest can be used with move or copy and it causes rclone not to check the destination at all when copying files.

    This means that:

    @@ -4328,6 +6126,10 @@

    --retries int

    --retries-sleep=TIME

    This sets the interval between each retry specified by --retries

    The default is 0. Use 0 to disable.

    +

    --server-side-across-configs

    +

    Allow server-side operations (e.g. copy or move) to work across different configurations.

    +

    This can be useful if you wish to do a server-side copy or move between two remotes which use the same backend but are configured differently.

    +

    Note that this isn't enabled by default because it isn't easy for rclone to tell if it will work between any two configurations.

    --size-only

    Normally rclone will look at modification time and size of files to see if they are equal. If you set this flag then rclone will check only the size.

    This can be useful transferring files from Dropbox which have been modified by the desktop sync client which doesn't set checksums of modification times in the same way as rclone.

    @@ -4359,13 +6161,14 @@

    --suffix=SUFFIX

    The remote in use must support server-side move or copy and you must use the same remote as the destination of the sync.

    This is for use with files to add the suffix in the current directory or with --backup-dir. See --backup-dir for more info.

    For example

    -
    rclone copy -i /path/to/local/file remote:current --suffix .bak
    +
    rclone copy --interactive /path/to/local/file remote:current --suffix .bak

    will copy /path/to/local to remote:current, but for any files which would have been updated or deleted have .bak added.

    If using rclone sync with --suffix and without --backup-dir then it is recommended to put a filter rule in excluding the suffix otherwise the sync will delete the backup files.

    -
    rclone sync -i /path/to/local/file remote:current --suffix .bak --exclude "*.bak"
    +
    rclone sync --interactive /path/to/local/file remote:current --suffix .bak --exclude "*.bak"

    --suffix-keep-extension

    When using --suffix, setting this causes rclone put the SUFFIX before the extension of the files that it backs up rather than after.

    So let's say we had --suffix -2019-01-01, without the flag file.txt would be backed up to file.txt-2019-01-01 and with the flag it would be backed up to file-2019-01-01.txt. This can be helpful to make sure the suffixed files can still be opened.

    +

    If a file has two (or more) extensions and the second (or subsequent) extension is recognised as a valid mime type, then the suffix will go before that extension. So file.tar.gz would be backed up to file-2019-01-01.tar.gz whereas file.badextension.gz would be backed up to file.badextension-2019-01-01.gz.

    --syslog

    On capable OSes (not Windows or Plan9) send all log output to syslog.

    This can be useful for running rclone in a script or rclone mount.

    @@ -4391,14 +6194,15 @@

    --tpslimit-burst int

    This may be used to increase performance of --tpslimit without changing the long term average number of transactions per second.

    --track-renames

    By default, rclone doesn't keep track of renamed files, so if you rename a file locally then sync it to a remote, rclone will delete the old file on the remote and upload a new copy.

    -

    If you use this flag, and the remote supports server-side copy or server-side move, and the source and destination have a compatible hash, then this will track renames during sync operations and perform renaming server-side.

    -

    Files will be matched by size and hash - if both match then a rename will be considered.

    +

    An rclone sync with --track-renames runs like a normal sync, but keeps track of objects which exist in the destination but not in the source (which would normally be deleted), and which objects exist in the source but not the destination (which would normally be transferred). These objects are then candidates for renaming.

    +

    After the sync, rclone matches up the source only and destination only objects using the --track-renames-strategy specified and either renames the destination object or transfers the source and deletes the destination object. --track-renames is stateless like all of rclone's syncs.

    +

    To use this flag the destination must support server-side copy or server-side move, and to use a hash based --track-renames-strategy (the default) the source and the destination must have a compatible hash.

    If the destination does not support server-side copy or move, rclone will fall back to the default behaviour and log an error level message to the console.

    Encrypted destinations are not currently supported by --track-renames if --track-renames-strategy includes hash.

    Note that --track-renames is incompatible with --no-traverse and that it uses extra memory to keep track of all the rename candidates.

    Note also that --track-renames is incompatible with --delete-before and will select --delete-after instead of --delete-during.

    --track-renames-strategy (hash,modtime,leaf,size)

    -

    This option changes the matching criteria for --track-renames.

    +

    This option changes the file matching criteria for --track-renames.

    The matching is controlled by a comma separated selection of these tokens:

    • modtime - the modification time of the file - not supported on all backends
    • @@ -4406,9 +6210,9 @@

      --track-renames-strategy (ha
    • leaf - the name of the file not including its directory name
    • size - the size of the file (this is always enabled)
    -

    So using --track-renames-strategy modtime,leaf would match files based on modification time, the leaf of the file name and the size only.

    +

    The default option is hash.

    +

    Using --track-renames-strategy modtime,leaf would match files based on modification time, the leaf of the file name and the size only.

    Using --track-renames-strategy modtime or leaf can enable --track-renames support for encrypted destinations.

    -

    If nothing is specified, the default option is matching by hashes.

    Note that the hash strategy is not supported with encrypted destinations.

    --delete-(before,during,after)

    This option allows you to specify when files on your destination are deleted when you sync folders.

    @@ -4417,7 +6221,7 @@

    --delete-(before,during,after)

    Specifying --delete-after (the default value) will delay deletion of files until all new/updated files have been successfully transferred. The files to be deleted are collected in the copy pass then deleted after the copy pass has completed successfully. The files to be deleted are held in memory so this mode may use more memory. This is the safest mode as it will only delete files if there have been no errors subsequent to that. If there have been errors before the deletions start then you will get the message not deleting files as there were IO errors.

    --fast-list

    When doing anything which involves a directory listing (e.g. sync, copy, ls - in fact nearly every command), rclone normally lists a directory and processes it before using more directory lists to process any subdirectories. This can be parallelised and works very quickly using the least amount of memory.

    -

    However, some remotes have a way of listing all files beneath a directory in one (or a small number) of transactions. These tend to be the bucket-based remotes (e.g. S3, B2, GCS, Swift, Hubic).

    +

    However, some remotes have a way of listing all files beneath a directory in one (or a small number) of transactions. These tend to be the bucket-based remotes (e.g. S3, B2, GCS, Swift).

    If you use the --fast-list flag then rclone will use this method for listing directories. This will have the following consequences for the listing:

    • It will use fewer transactions (important if you pay for them)
    • @@ -4434,13 +6238,14 @@

      --timeout=TIME

      --transfers=N

      The number of file transfers to run in parallel. It can sometimes be useful to set this to a smaller number if the remote is giving a lot of timeouts or bigger if you have lots of bandwidth and a fast remote.

      The default is to run 4 file transfers in parallel.

      +

      Look at --multi-thread-streams if you would like to control single file transfers.

      -u, --update

      This forces rclone to skip any files which exist on the destination and have a modified time that is newer than the source file.

      This can be useful in avoiding needless transfers when transferring to a remote which doesn't support modification times directly (or when using --use-server-modtime to avoid extra API calls) as it is more accurate than a --size-only check and faster than using --checksum. On such remotes (or when using --use-server-modtime) the time checked will be the uploaded time.

      If an existing destination file has a modification time older than the source file's, it will be updated if the sizes are different. If the sizes are the same, it will be updated if the checksum is different or not available.

      If an existing destination file has a modification time equal (within the computed modify window) to the source file's, it will be updated if the sizes are different. The checksum will not be checked in this case unless the --checksum flag is provided.

      In all other cases the file will not be updated.

      -

      Consider using the --modify-window flag to compensate for time skews between the source and the backend, for backends that do not support mod times, and instead use uploaded times. However, if the backend does not support checksums, note that sync'ing or copying within the time skew window may still result in additional transfers for safety.

      +

      Consider using the --modify-window flag to compensate for time skews between the source and the backend, for backends that do not support mod times, and instead use uploaded times. However, if the backend does not support checksums, note that syncing or copying within the time skew window may still result in additional transfers for safety.

      --use-mmap

      If this flag is set then rclone will use anonymous memory allocated by mmap on Unix based platforms and VirtualAlloc on Windows for its transfer buffers (size controlled by --buffer-size). Memory allocated like this does not go on the Go heap and can be returned to the OS immediately when it is finished with.

      If this flag is not set then rclone will allocate and free the buffers using the Go memory allocator which may use more memory as memory pages are returned less aggressively to the OS.

      @@ -4452,12 +6257,13 @@

      --use-server-modtime

      -v, -vv, --verbose

      With -v rclone will tell you about each file that is transferred and a small number of significant events.

      With -vv rclone will become very verbose telling you about every file it considers and transfers. Please send bug reports with a log with this setting.

      +

      When setting verbosity as an environment variable, use RCLONE_VERBOSE=1 or RCLONE_VERBOSE=2 for -v and -vv respectively.

      -V, --version

      Prints the version number

      SSL/TLS options

      The outgoing SSL/TLS connections rclone makes can be controlled with these options. For example this can be very useful with the HTTP or WebDAV backends. Rclone HTTP servers have their own set of configuration for SSL/TLS which you can find in their documentation.

      -

      --ca-cert string

      -

      This loads the PEM encoded certificate authority certificate and uses it to verify the certificates of the servers rclone connects to.

      +

      --ca-cert stringArray

      +

      This loads the PEM encoded certificate authority certificates and uses it to verify the certificates of the servers rclone connects to.

      If you have generated certificates signed with a local CA then you will need this flag to connect to servers using those certificates.

      --client-cert string

      This loads the PEM encoded client side certificate.

      @@ -4552,6 +6358,7 @@

      Filtering

    • --filter-from
    • --exclude
    • --exclude-from
    • +
    • --exclude-if-present
    • --include
    • --include-from
    • --files-from
    • @@ -4561,6 +6368,12 @@

      Filtering

    • --min-age
    • --max-age
    • --dump filters
    • +
    • --metadata-include
    • +
    • --metadata-include-from
    • +
    • --metadata-exclude
    • +
    • --metadata-exclude-from
    • +
    • --metadata-filter
    • +
    • --metadata-filter-from

    See the filtering section.

    Remote control

    @@ -4597,19 +6410,21 @@

    List of exit codes

  • 7 - Fatal error (one that more retries won't fix, like account suspended) (Fatal errors)
  • 8 - Transfer exceeded - limit set by --max-transfer reached
  • 9 - Operation successful, but no files transferred
  • +
  • 10 - Duration exceeded - limit set by --max-duration reached
  • Environment Variables

    Rclone can be configured entirely using environment variables. These can be used to set defaults for options or config file entries.

    -

    Options

    +

    Options

    Every option in rclone can have its default set by environment variable.

    To find the name of the environment variable, first, take the long option name, strip the leading --, change - to _, make upper case and prepend RCLONE_.

    For example, to always set --stats 5s, set the environment variable RCLONE_STATS=5s. If you set stats on the command line this will override the environment variable setting.

    Or to always use the trash in drive --drive-use-trash, set RCLONE_DRIVE_USE_TRASH=true.

    +

    Verbosity is slightly different, the environment variable equivalent of --verbose or -v is RCLONE_VERBOSE=1, or for -vv, RCLONE_VERBOSE=2.

    The same parser is used for the options and the environment variables so they take exactly the same form.

    The options set by environment variables can be seen with the -vv flag, e.g. rclone version -vv.

    Config file

    You can set defaults for values in the config file on an individual remote basis. The names of the config items are documented in the page for each backend.

    -

    To find the name of the environment variable, you need to set, take RCLONE_CONFIG_ + name of remote + _ + name of config file option and make it all uppercase.

    +

    To find the name of the environment variable, you need to set, take RCLONE_CONFIG_ + name of remote + _ + name of config file option and make it all uppercase. Note one implication here is the remote's name must be convertible into a valid environment variable name, so it can only contain letters, digits, or the _ (underscore) character.

    For example, to configure an S3 remote named mys3: without a config file (using unix ways of setting environment variables):

    $ export RCLONE_CONFIG_MYS3_TYPE=s3
     $ export RCLONE_CONFIG_MYS3_ACCESS_KEY_ID=XXX
    @@ -4662,12 +6477,13 @@ 

    Configuring rclone on a

    Some of the configurations (those involving oauth2) require an Internet connected web browser.

    If you are trying to set rclone up on a remote or headless box with no browser available on it (e.g. a NAS or a server in a datacenter) then you will need to use an alternative means of configuration. There are two ways of doing it, described below.

    Configuring using rclone authorize

    -

    On the headless box run rclone config but answer N to the Use auto config? question.

    +

    On the headless box run rclone config but answer N to the Use web browser to automatically authenticate? question.

    ...
     Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    +Use web browser to automatically authenticate rclone with remote?
    + * Say Y if the machine running rclone has a web browser you can use
    + * Say N if running rclone on a (remote) machine without web browser access
    +If not sure try Y. If Y failed, try N.
     y) Yes (default)
     n) No
     y/n> n
    @@ -4714,6 +6530,20 @@ 

    Configuring by copying the confi Configuration file is stored at: /home/user/.rclone.conf

    Now transfer it to the remote box (scp, cut paste, ftp, sftp, etc.) and place it in the correct place (use rclone config file on the remote box to find out where).

    +

    Configuring using SSH Tunnel

    +

    Linux and MacOS users can utilize SSH Tunnel to redirect the headless box port 53682 to local machine by using the following command:

    +
    ssh -L localhost:53682:localhost:53682 username@remote_server
    +

    Then on the headless box run rclone config and answer Y to the Use web browser to automatically authenticate? question.

    +
    ...
    +Remote config
    +Use web browser to automatically authenticate rclone with remote?
    + * Say Y if the machine running rclone has a web browser you can use
    + * Say N if running rclone on a (remote) machine without web browser access
    +If not sure try Y. If Y failed, try N.
    +y) Yes (default)
    +n) No
    +y/n> y
    +

    Then copy and paste the auth url http://127.0.0.1:53682/auth?state=xxxxxxxxxxxx to the browser on your local machine, complete the auth and it is done.

    Filtering, includes and excludes

    Filter flags determine which files rclone sync, move, ls, lsl, md5sum, sha1sum, size, delete, check and similar commands apply to.

    They are specified in terms of path/file name patterns; path/file lists; file age and size, or presence of a file in a directory. Bucket based remotes without the concept of directory apply filters to object key, age and size in an analogous way.

    @@ -4721,9 +6551,9 @@

    Filtering, includes and excludes

    To test filters without risk of damage to data, apply them to rclone ls, or with the --dry-run and -vv flags.

    Rclone filter patterns can only be used in filter command line options, not in the specification of a remote.

    E.g. rclone copy "remote:dir*.jpg" /path/to/dir does not have a filter effect. rclone copy remote:dir /path/to/dir --include "*.jpg" does.

    -

    Important Avoid mixing any two of --include..., --exclude... or --filter... flags in an rclone command. The results may not be what you expect. Instead use a --filter... flag.

    +

    Important Avoid mixing any two of --include..., --exclude... or --filter... flags in an rclone command. The results might not be what you expect. Instead use a --filter... flag.

    Patterns for matching path/file names

    -

    Pattern syntax

    +

    Pattern syntax

    Here is a formal definition of the pattern syntax, examples are below.

    Rclone matching rules follow a glob style:

    *         matches any sequence of non-separator (/) characters
    @@ -4758,7 +6588,7 @@ 

    Pattern syntax

    /file.jpg - matches "file.jpg" in the root directory of the remote - doesn't match "afile.jpg" - doesn't match "directory/file.jpg"
    -

    The top level of the remote may not be the top level of the drive.

    +

    The top level of the remote might not be the top level of the drive.

    E.g. for a Microsoft Windows local directory structure

    F:
     ├── bkp
    @@ -4780,7 +6610,7 @@ 

    Pattern syntax

    - matches "POTATO"

    Using regular expressions in filter patterns

    The syntax of filter patterns is glob style matching (like bash uses) to make things easy for users. However this does not provide absolute control over the matching, so for advanced users rclone also provides a regular expression syntax.

    -

    The regular expressions used are as defined in the Go regular expression reference. Regular expressions should be enclosed in {{ }}. They will match only the last path segment if the glob doesn't start with / or the whole path name if it does.

    +

    The regular expressions used are as defined in the Go regular expression reference. Regular expressions should be enclosed in {{ }}. They will match only the last path segment if the glob doesn't start with / or the whole path name if it does. Note that rclone does not attempt to parse the supplied regular expression, meaning that using any regular expression filter will prevent rclone from using directory filter rules, as it will instead check every path against the supplied regular expression(s).

    Here is how the {{regexp}} is transformed into an full regular expression to match the entire path:

    {{regexp}}  becomes (^|/)(regexp)$
     /{{regexp}} becomes ^(regexp)$
    @@ -4793,7 +6623,7 @@

    Using regular expressions in filter patterns

    Not

    {{start.*end\.jpg}}

    Which will match a directory called start with a file called end.jpg in it as the .* will match / characters.

    -

    Note that you can use -vv --dump filters to show the filter patterns in regexp format - rclone implements the glob patters by transforming them into regular expressions.

    +

    Note that you can use -vv --dump filters to show the filter patterns in regexp format - rclone implements the glob patterns by transforming them into regular expressions.

    Filter pattern examples

    @@ -4838,7 +6668,7 @@

    Filter pattern examples

    - + @@ -4927,7 +6757,7 @@

    Filter pattern examples

    /dir/file.gif/dir/file.png /dir/file.gif
    -

    How filter rules are applied to files

    +

    How filter rules are applied to files

    Rclone path/file name filters are made up of one or more of the following flags:

    • --include
    • @@ -4949,14 +6779,15 @@

      How filter rules are applied to f

      Any path/file included at that stage is processed by the rclone command.

      --files-from and --files-from-raw flags over-ride and cannot be combined with other filter options.

      To see the internal combined rule list, in regular expression form, for a command add the --dump filters flag. Running an rclone command with --dump filters and -vv flags lists the internal filter elements and shows how they are applied to each source path/file. There is not currently a means provided to pass regular expression filter options into rclone directly though character class filter rules contain character classes. Go regular expression reference

      -

      How filter rules are applied to directories

      +

      How filter rules are applied to directories

      Rclone commands are applied to path/file names not directories. The entire contents of a directory can be matched to a filter by the pattern directory/* or recursively by directory/**.

      Directory filter rules are defined with a closing / separator.

      E.g. /directory/subdirectory/ is an rclone directory filter rule.

      Rclone commands can use directory filter rules to determine whether they recurse into subdirectories. This potentially optimises access to a remote by avoiding listing unnecessary directories. Whether optimisation is desirable depends on the specific filter rules and source remote content.

      +

      If any regular expression filters are in use, then no directory recursion optimisation is possible, as rclone must check every path against the supplied regular expression(s).

      Directory recursion optimisation occurs if either:

        -
      • A source remote does not support the rclone ListR primitive. local, sftp, Microsoft OneDrive and WebDav do not support ListR. Google Drive and most bucket type storage do. Full list

      • +
      • A source remote does not support the rclone ListR primitive. local, sftp, Microsoft OneDrive and WebDAV do not support ListR. Google Drive and most bucket type storage do. Full list

      • On other remotes (those that support ListR), if the rclone command is not naturally recursive, and provided it is not run with the --fast-list flag. ls, lsf -R and size are naturally recursive but sync, copy and move are not.

      • Whenever the --disable ListR flag is applied to an rclone command.

      @@ -4986,7 +6817,7 @@

      --exclude - Exclu

      --exclude has no effect when combined with --files-from or --files-from-raw flags.

      E.g. rclone ls remote: --exclude *.bak excludes all .bak files from listing.

      E.g. rclone size remote: "--exclude /dir/**" returns the total size of all files on remote: excluding those in root directory dir and sub directories.

      -

      E.g. on Microsoft Windows rclone ls remote: --exclude "*\[{JP,KR,HK}\]*" lists the files in remote: with [JP] or [KR] or [HK] in their name. Quotes prevent the shell from interpreting the \ characters.\ characters escape the [ and ] so an rclone filter treats them literally rather than as a character-range. The { and } define an rclone pattern list. For other operating systems single quotes are required ie rclone ls remote: --exclude '*\[{JP,KR,HK}\]*'

      +

      E.g. on Microsoft Windows rclone ls remote: --exclude "*\[{JP,KR,HK}\]*" lists the files in remote: without [JP] or [KR] or [HK] in their name. Quotes prevent the shell from interpreting the \ characters.\ characters escape the [ and ] so an rclone filter treats them literally rather than as a character-range. The { and } define an rclone pattern list. For other operating systems single quotes are required ie rclone ls remote: --exclude '*\[{JP,KR,HK}\]*'

      --exclude-from - Read exclude patterns from file

      Excludes path/file names from an rclone command based on rules in a named file. The file contains a list of remarks and pattern rules.

      For an example exclude-file.txt:

      @@ -5118,46 +6949,33 @@

      Other filters

      --min-size - Don't transfer any file smaller than this

      Controls the minimum size file within the scope of an rclone command. Default units are KiB but abbreviations K, M, G, T or P are valid.

      E.g. rclone ls remote: --min-size 50k lists files on remote: of 50 KiB size or larger.

      +

      See the size option docs for more info.

      --max-size - Don't transfer any file larger than this

      Controls the maximum size file within the scope of an rclone command. Default units are KiB but abbreviations K, M, G, T or P are valid.

      E.g. rclone ls remote: --max-size 1G lists files on remote: of 1 GiB size or smaller.

      +

      See the size option docs for more info.

      --max-age - Don't transfer any file older than this

      -

      Controls the maximum age of files within the scope of an rclone command. Default units are seconds or the following abbreviations are valid:

      -
        -
      • ms - Milliseconds
      • -
      • s - Seconds
      • -
      • m - Minutes
      • -
      • h - Hours
      • -
      • d - Days
      • -
      • w - Weeks
      • -
      • M - Months
      • -
      • y - Years
      • -
      -

      --max-age can also be specified as an absolute time in the following formats:

      -
        -
      • RFC3339 - e.g. 2006-01-02T15:04:05Z or 2006-01-02T15:04:05+07:00
      • -
      • ISO8601 Date and time, local timezone - 2006-01-02T15:04:05
      • -
      • ISO8601 Date and time, local timezone - 2006-01-02 15:04:05
      • -
      • ISO8601 Date - 2006-01-02 (YYYY-MM-DD)
      • -
      +

      Controls the maximum age of files within the scope of an rclone command.

      --max-age applies only to files and not to directories.

      E.g. rclone ls remote: --max-age 2d lists files on remote: of 2 days old or less.

      +

      See the time option docs for valid formats.

      --min-age - Don't transfer any file younger than this

      Controls the minimum age of files within the scope of an rclone command. (see --max-age for valid formats)

      --min-age applies only to files and not to directories.

      E.g. rclone ls remote: --min-age 2d lists files on remote: of 2 days old or more.

      +

      See the time option docs for valid formats.

      Other flags

      --delete-excluded - Delete files on dest excluded from sync

      Important this flag is dangerous to your data - use with --dry-run and -v first.

      In conjunction with rclone sync, --delete-excluded deletes any files on the destination which are excluded from the command.

      -

      E.g. the scope of rclone sync -i A: B: can be restricted:

      +

      E.g. the scope of rclone sync --interactive A: B: can be restricted:

      rclone --min-size 50k --delete-excluded sync A: B:

      All files on B: which are less than 50 KiB are deleted because they are excluded from the rclone sync command.

      --dump filters - dump the filters to the output

      Dumps the defined filters to standard output in regular expression format.

      Useful for debugging.

      Exclude directory based on a file

      -

      The --exclude-if-present flag controls whether a directory is within the scope of an rclone command based on the presence of a named file within it.

      +

      The --exclude-if-present flag controls whether a directory is within the scope of an rclone command based on the presence of a named file within it. The flag can be repeated to check for multiple file names, presence of any of them will exclude the directory.

      This flag has a priority over other filter flags.

      E.g. for the following directory structure:

      dir1/file1
      @@ -5165,7 +6983,24 @@ 

      Exclude directory based on a file

      The command rclone ls --exclude-if-present .ignore dir1 does not list dir3, file3 or .ignore.

      -

      --exclude-if-present can only be used once in an rclone command.

      +

      Metadata filters

      +

      The metadata filters work in a very similar way to the normal file name filters, except they match metadata on the object.

      +

      The metadata should be specified as key=value patterns. This may be wildcarded using the normal filter patterns or regular expressions.

      +

      For example if you wished to list only local files with a mode of 100664 you could do that with:

      +
      rclone lsf -M --files-only --metadata-include "mode=100664" .
      +

      Or if you wished to show files with an atime, mtime or btime at a given date:

      +
      rclone lsf -M --files-only --metadata-include "[abm]time=2022-12-16*" .
      +

      Like file filtering, metadata filtering only applies to files not to directories.

      +

      The filters can be applied using these flags.

      +
        +
      • --metadata-include - Include metadatas matching pattern
      • +
      • --metadata-include-from - Read metadata include patterns from file (use - to read from stdin)
      • +
      • --metadata-exclude - Exclude metadatas matching pattern
      • +
      • --metadata-exclude-from - Read metadata exclude patterns from file (use - to read from stdin)
      • +
      • --metadata-filter - Add a metadata filtering rule
      • +
      • --metadata-filter-from - Read metadata filtering patterns from a file (use - to read from stdin)
      • +
      +

      Each flag can be repeated. See the section on how filter rules are applied for more details - these flags work in an identical way to the file name filtering flags, but instead of file name patterns have metadata patterns.

      Common pitfalls

      The most frequent filter support issues on the rclone forum are:

        @@ -5245,8 +7080,8 @@

        Project

        If you have questions then please ask them on the rclone forum.

        Remote controlling rclone with its API

        If rclone is run with the --rc flag then it starts an HTTP server which can be used to remote control rclone using its API.

        -

        You can either use the rclone rc command to access the API or use HTTP directly.

        -

        If you just want to run a remote control then see the rcd command.

        +

        You can either use the rc command to access the API or use HTTP directly.

        +

        If you just want to run a remote control then see the rcd command.

        Supported parameters

        --rc

        Flag to start the http server listen on remote requests

        @@ -5262,6 +7097,8 @@

        --rc-key=PATH

        SSL PEM Private key

        --rc-max-header-bytes=VALUE

        Maximum size of request header (default 4096)

        +

        --rc-min-tls-version=VALUE

        +

        The minimum TLS version that is acceptable. Valid values are "tls1.0", "tls1.1", "tls1.2" and "tls1.3" (default "tls1.0").

        --rc-user=VALUE

        User name for authentication.

        --rc-pass=VALUE

        @@ -5310,6 +7147,11 @@

        --rc-no-auth

        By default rclone will require authorisation to have been set up on the rc interface in order to use any methods which access any rclone remotes. Eg operations/list is denied as it involved creating a remote as is sync/copy.

        If this is set then no authorisation will be required on the server to use these methods. The alternative is to use --rc-user and --rc-pass and use these credentials in the request.

        Default Off.

        +

        --rc-baseurl

        +

        Prefix for URLs.

        +

        Default is root

        +

        --rc-template

        +

        User-specified template.

        Accessing the remote control via the rclone rc command

        Rclone itself implements the remote control protocol in its rclone rc command.

        You can use it like this

        @@ -5386,7 +7228,7 @@

        Setting config flags with _config

        For example, if you wished to run a sync with the --checksum parameter, you would pass this parameter in your JSON blob.

        "_config":{"CheckSum": true}

        If using rclone rc this could be passed as

        -
        rclone rc operations/sync ... _config='{"CheckSum": true}'
        +
        rclone rc sync/sync ... _config='{"CheckSum": true}'

        Any config parameters you don't set will inherit the global defaults which were set with command line flags or environment variables.

        Note that it is possible to set some values as strings or integers - see data types for more info. Here is an example setting the equivalent of --buffer-size in string or integer format.

        "_config":{"BufferSize": "42M"}
        @@ -5427,7 +7269,7 @@ 

        Data types

        Specifying remotes to work on

        Remotes are specified with the fs=, srcFs=, dstFs= parameters depending on the command being used.

        The parameters can be a string as per the rest of rclone, eg s3:bucket/path or :sftp:/my/dir. They can also be specified as JSON blobs.

        -

        If specifyng a JSON blob it should be a object mapping strings to strings. These values will be used to configure the remote. There are 3 special values which may be set:

        +

        If specifying a JSON blob it should be a object mapping strings to strings. These values will be used to configure the remote. There are 3 special values which may be set:

        • type - set to type to specify a remote called :type:
        • _name - set to name to specify a remote called name:
        • @@ -5516,30 +7358,30 @@

          config/create: create the config for a remote.

        • result - result to restart with - used with continue
      -

      See the config create command command for more information on the above.

      +

      See the config create command for more information on the above.

      Authentication is required for this call.

      config/delete: Delete a remote in the config file.

      Parameters:

      • name - name of remote to delete
      -

      See the config delete command command for more information on the above.

      +

      See the config delete command for more information on the above.

      Authentication is required for this call.

      config/dump: Dumps the config file.

      Returns a JSON object: - key: value

      Where keys are remote names and values are the config parameters.

      -

      See the config dump command command for more information on the above.

      +

      See the config dump command for more information on the above.

      Authentication is required for this call.

      config/get: Get a remote in the config file.

      Parameters:

      • name - name of remote to get
      -

      See the config dump command command for more information on the above.

      +

      See the config dump command for more information on the above.

      Authentication is required for this call.

      -

      config/listremotes: Lists the remotes in the config file.

      +

      config/listremotes: Lists the remotes in the config file and defined in environment variables.

      Returns - remotes - array of remote names

      -

      See the listremotes command command for more information on the above.

      +

      See the listremotes command for more information on the above.

      Authentication is required for this call.

      config/password: password the config for a remote.

      This takes the following parameters:

      @@ -5547,11 +7389,17 @@

      config/password: password the config for a remote.

    • name - name of remote
    • parameters - a map of { "key": "value" } pairs
    -

    See the config password command command for more information on the above.

    +

    See the config password command for more information on the above.

    Authentication is required for this call.

    config/providers: Shows how providers are configured in the config file.

    Returns a JSON object: - providers - array of objects

    -

    See the config providers command command for more information on the above.

    +

    See the config providers command for more information on the above.

    +

    Authentication is required for this call.

    +

    config/setpath: Set the path of the config file

    +

    Parameters:

    +
      +
    • path - path to the config file to use
    • +

    Authentication is required for this call.

    config/update: update the config for a remote.

    This takes the following parameters:

    @@ -5569,7 +7417,7 @@

    config/update: update the config for a remote.

  • result - result to restart with - used with continue
  • -

    See the config update command command for more information on the above.

    +

    See the config update command for more information on the above.

    Authentication is required for this call.

    core/bwlimit: Set the bandwidth limit.

    This sets the bandwidth limit to the string passed in. This should be a single bandwidth limit entry or a pair of upload:download bandwidth.

    @@ -5636,13 +7484,28 @@

    core/command: Run a rclone terminal command over rc.

    "result": "<Raw command line output>" } -OR +OR { "error": true, "result": "<Raw command line output>" }

    Authentication is required for this call.

    +

    core/du: Returns disk usage of a locally attached disk.

    +

    This returns the disk usage for the local directory passed in as dir.

    +

    If the directory is not passed in, it defaults to the directory pointed to by --cache-dir.

    +
      +
    • dir - string (optional)
    • +
    +

    Returns:

    +
    {
    +    "dir": "/",
    +    "info": {
    +        "Available": 361769115648,
    +        "Free": 361785892864,
    +        "Total": 982141468672
    +    }
    +}

    core/gc: Runs a garbage collection.

    This tells the go runtime to do a garbage collection run. It isn't necessary to call this normally, but it can be useful for debugging memory problems.

    core/group-list: Returns list of stats.

    @@ -5694,6 +7557,10 @@

    core/stats: Returns stats about current transfers.

    "lastError": last error string, "renames" : number of files renamed, "retryError": boolean showing whether there has been at least one non-NoRetryError, + "serverSideCopies": number of server side copies done, + "serverSideCopyBytes": number bytes server side copied, + "serverSideMoves": number of server side moves done, + "serverSideMoveBytes": number bytes server side moved, "speed": average speed in bytes per second since start of the group, "totalBytes": total number of bytes in the group, "totalChecks": total number of checks in the group, @@ -5774,6 +7641,14 @@

    debug/set-block-profile-rate: Set runtime.
    • rate - int
    +

    debug/set-gc-percent: Call runtime/debug.SetGCPercent for setting the garbage collection target percentage.

    +

    SetGCPercent sets the garbage collection target percentage: a collection is triggered when the ratio of freshly allocated data to live data remaining after the previous collection reaches this percentage. SetGCPercent returns the previous setting. The initial setting is the value of the GOGC environment variable at startup, or 100 if the variable is not set.

    +

    This setting may be effectively reduced in order to maintain a memory limit. A negative percentage effectively disables garbage collection, unless the memory limit is reached.

    +

    See https://pkg.go.dev/runtime/debug#SetMemoryLimit for more details.

    +

    Parameters:

    +
      +
    • gc-percent - int
    • +

    debug/set-mutex-profile-fraction: Set runtime.SetMutexProfileFraction for mutex profiling.

    SetMutexProfileFraction controls the fraction of mutex contention events that are reported in the mutex profile. On average 1/rate events are reported. The previous rate is returned.

    To turn off profiling entirely, pass rate 0. To just read the current rate, pass rate < 0. (For n>1 the details of sampling may change.)

    @@ -5787,6 +7662,18 @@

    debug/set-mutex-profile-fraction: Set
    • previousRate - int
    +

    debug/set-soft-memory-limit: Call runtime/debug.SetMemoryLimit for setting a soft memory limit for the runtime.

    +

    SetMemoryLimit provides the runtime with a soft memory limit.

    +

    The runtime undertakes several processes to try to respect this memory limit, including adjustments to the frequency of garbage collections and returning memory to the underlying system more aggressively. This limit will be respected even if GOGC=off (or, if SetGCPercent(-1) is executed).

    +

    The input limit is provided as bytes, and includes all memory mapped, managed, and not released by the Go runtime. Notably, it does not account for space used by the Go binary and memory external to Go, such as memory managed by the underlying system on behalf of the process, or memory managed by non-Go code inside the same process. Examples of excluded memory sources include: OS kernel memory held on behalf of the process, memory allocated by C code, and memory mapped by syscall.Mmap (because it is not managed by the Go runtime).

    +

    A zero limit or a limit that's lower than the amount of memory used by the Go runtime may cause the garbage collector to run nearly continuously. However, the application may still make progress.

    +

    The memory limit is always respected by the Go runtime, so to effectively disable this behavior, set the limit very high. math.MaxInt64 is the canonical value for disabling the limit, but values much greater than the available memory on the underlying system work just as well.

    +

    See https://go.dev/doc/gc-guide for a detailed guide explaining the soft memory limit in more detail, as well as a variety of common use-cases and scenarios.

    +

    SetMemoryLimit returns the previously set memory limit. A negative input does not adjust the limit, and allows for retrieval of the currently set memory limit.

    +

    Parameters:

    +
      +
    • mem-limit - int
    • +

    fscache/clear: Clear the Fs cache.

    This clears the fs cache. This is where remotes created from backends are cached for a short while to make repeated rc calls more efficient.

    If you change the parameters of a backend then you may want to call this to clear an existing remote out of the cache before re-creating it.

    @@ -5799,7 +7686,8 @@

    job/list: Lists the IDs of the running jobs

    Parameters: None.

    Results:

      -
    • jobids - array of integer job ids.
    • +
    • executeId - string id of rclone executing (change after restart)
    • +
    • jobids - array of integer job ids (starting at 1 on each restart)

    job/status: Reads the status of the job ID

    Parameters:

    @@ -5824,6 +7712,11 @@

    job/stop: Stop the running job

    • jobid - id of the job (integer).
    +

    job/stopgroup: Stop all running jobs in a group

    +

    Parameters:

    +
      +
    • group - name of the group (string).
    • +

    mount/listmounts: Show current mount points

    This shows currently mounted points, which can be used for performing an unmount.

    This takes no parameters and returns

    @@ -5870,8 +7763,8 @@

    mount/unmount: Unmount selected active mount

    Example:

    rclone rc mount/unmount mountPoint=/home/<user>/mountPoint

    Authentication is required for this call.

    -

    mount/unmountall: Show current mount points

    -

    This shows currently mounted points, which can be used for performing an unmount.

    +

    mount/unmountall: Unmount all active mounts

    +

    rclone allows Linux, FreeBSD, macOS and Windows to mount any of Rclone's cloud storage systems as a file system with FUSE.

    This takes no parameters and returns error if unmount does not succeed.

    Eg

    rclone rc mount/unmountall
    @@ -5882,21 +7775,21 @@

    operations/about: Return the space used on the remote<
  • fs - a remote name string e.g. "drive:"
  • The result is as returned from rclone about --json

    -

    See the about command command for more information on the above.

    +

    See the about command for more information on the above.

    Authentication is required for this call.

    operations/cleanup: Remove trashed files in the remote or path

    This takes the following parameters:

    • fs - a remote name string e.g. "drive:"
    -

    See the cleanup command command for more information on the above.

    +

    See the cleanup command for more information on the above.

    Authentication is required for this call.

    operations/copyfile: Copy a file from source remote to destination remote

    This takes the following parameters:

      -
    • srcFs - a remote name string e.g. "drive:" for the source
    • +
    • srcFs - a remote name string e.g. "drive:" for the source, "/" for local filesystem
    • srcRemote - a path within that remote e.g. "file.txt" for the source
    • -
    • dstFs - a remote name string e.g. "drive2:" for the destination
    • +
    • dstFs - a remote name string e.g. "drive2:" for the destination, "/" for local filesystem
    • dstRemote - a path within that remote e.g. "file2.txt" for the destination

    Authentication is required for this call.

    @@ -5906,15 +7799,16 @@

    operations/copyurl: Copy the URL to the object

  • fs - a remote name string e.g. "drive:"
  • remote - a path within that remote e.g. "dir"
  • url - string, URL to read from
  • -
  • autoFilename - boolean, set to true to retrieve destination file name from url See the copyurl command command for more information on the above.
  • +
  • autoFilename - boolean, set to true to retrieve destination file name from url
  • +

    See the copyurl command for more information on the above.

    Authentication is required for this call.

    operations/delete: Remove files in the path

    This takes the following parameters:

    • fs - a remote name string e.g. "drive:"
    -

    See the delete command command for more information on the above.

    +

    See the delete command for more information on the above.

    Authentication is required for this call.

    operations/deletefile: Remove the single file pointed to

    This takes the following parameters:

    @@ -5922,7 +7816,7 @@

    operations/deletefile: Remove the single file poi
  • fs - a remote name string e.g. "drive:"
  • remote - a path within that remote e.g. "dir"
  • -

    See the deletefile command command for more information on the above.

    +

    See the deletefile command for more information on the above.

    Authentication is required for this call.

    operations/fsinfo: Return information about the remote

    This takes the following parameters:

    @@ -5931,46 +7825,103 @@

    operations/fsinfo: Return information about the remot

    This returns info about the remote passed in;

    {
    -    // optional features and whether they are available or not
    -    "Features": {
    -        "About": true,
    -        "BucketBased": false,
    -        "CanHaveEmptyDirectories": true,
    -        "CaseInsensitive": false,
    -        "ChangeNotify": false,
    -        "CleanUp": false,
    -        "Copy": false,
    -        "DirCacheFlush": false,
    -        "DirMove": true,
    -        "DuplicateFiles": false,
    -        "GetTier": false,
    -        "ListR": false,
    -        "MergeDirs": false,
    -        "Move": true,
    -        "OpenWriterAt": true,
    -        "PublicLink": false,
    -        "Purge": true,
    -        "PutStream": true,
    -        "PutUnchecked": false,
    -        "ReadMimeType": false,
    -        "ServerSideAcrossConfigs": false,
    -        "SetTier": false,
    -        "SetWrapper": false,
    -        "UnWrap": false,
    -        "WrapFs": false,
    -        "WriteMimeType": false
    -    },
    -    // Names of hashes available
    -    "Hashes": [
    -        "MD5",
    -        "SHA-1",
    -        "DropboxHash",
    -        "QuickXorHash"
    -    ],
    -    "Name": "local",    // Name as created
    -    "Precision": 1,     // Precision of timestamps in ns
    -    "Root": "/",        // Path as created
    -    "String": "Local file system at /" // how the remote will appear in logs
    +        // optional features and whether they are available or not
    +        "Features": {
    +                "About": true,
    +                "BucketBased": false,
    +                "BucketBasedRootOK": false,
    +                "CanHaveEmptyDirectories": true,
    +                "CaseInsensitive": false,
    +                "ChangeNotify": false,
    +                "CleanUp": false,
    +                "Command": true,
    +                "Copy": false,
    +                "DirCacheFlush": false,
    +                "DirMove": true,
    +                "Disconnect": false,
    +                "DuplicateFiles": false,
    +                "GetTier": false,
    +                "IsLocal": true,
    +                "ListR": false,
    +                "MergeDirs": false,
    +                "MetadataInfo": true,
    +                "Move": true,
    +                "OpenWriterAt": true,
    +                "PublicLink": false,
    +                "Purge": true,
    +                "PutStream": true,
    +                "PutUnchecked": false,
    +                "ReadMetadata": true,
    +                "ReadMimeType": false,
    +                "ServerSideAcrossConfigs": false,
    +                "SetTier": false,
    +                "SetWrapper": false,
    +                "Shutdown": false,
    +                "SlowHash": true,
    +                "SlowModTime": false,
    +                "UnWrap": false,
    +                "UserInfo": false,
    +                "UserMetadata": true,
    +                "WrapFs": false,
    +                "WriteMetadata": true,
    +                "WriteMimeType": false
    +        },
    +        // Names of hashes available
    +        "Hashes": [
    +                "md5",
    +                "sha1",
    +                "whirlpool",
    +                "crc32",
    +                "sha256",
    +                "dropbox",
    +                "mailru",
    +                "quickxor"
    +        ],
    +        "Name": "local",        // Name as created
    +        "Precision": 1,         // Precision of timestamps in ns
    +        "Root": "/",            // Path as created
    +        "String": "Local file system at /", // how the remote will appear in logs
    +        // Information about the system metadata for this backend
    +        "MetadataInfo": {
    +                "System": {
    +                        "atime": {
    +                                "Help": "Time of last access",
    +                                "Type": "RFC 3339",
    +                                "Example": "2006-01-02T15:04:05.999999999Z07:00"
    +                        },
    +                        "btime": {
    +                                "Help": "Time of file birth (creation)",
    +                                "Type": "RFC 3339",
    +                                "Example": "2006-01-02T15:04:05.999999999Z07:00"
    +                        },
    +                        "gid": {
    +                                "Help": "Group ID of owner",
    +                                "Type": "decimal number",
    +                                "Example": "500"
    +                        },
    +                        "mode": {
    +                                "Help": "File type and mode",
    +                                "Type": "octal, unix style",
    +                                "Example": "0100664"
    +                        },
    +                        "mtime": {
    +                                "Help": "Time of last modification",
    +                                "Type": "RFC 3339",
    +                                "Example": "2006-01-02T15:04:05.999999999Z07:00"
    +                        },
    +                        "rdev": {
    +                                "Help": "Device ID (if special file)",
    +                                "Type": "hexadecimal",
    +                                "Example": "1abc"
    +                        },
    +                        "uid": {
    +                                "Help": "User ID of owner",
    +                                "Type": "decimal number",
    +                                "Example": "500"
    +                        }
    +                },
    +                "Help": "Textual help string\n"
    +        }
     }

    This command does not have a command line equivalent so use this instead:

    rclone rc --loopback operations/fsinfo fs=remote:
    @@ -5989,6 +7940,7 @@

    operations/list: List the given remote and path in JSON
  • noMimeType - If set don't show mime types
  • dirsOnly - If set only show directories
  • filesOnly - If set only show files
  • +
  • metadata - If set return metadata of objects also
  • hashTypes - array of strings of hash types to show if showHash set
  • @@ -5999,7 +7951,7 @@

    operations/list: List the given remote and path in JSON
  • This is an array of objects as described in the lsjson command
  • -

    See the lsjson command for more information on the above and examples.

    +

    See the lsjson command for more information on the above and examples.

    Authentication is required for this call.

    operations/mkdir: Make a destination directory or container

    This takes the following parameters:

    @@ -6007,14 +7959,14 @@

    operations/mkdir: Make a destination directory or cont
  • fs - a remote name string e.g. "drive:"
  • remote - a path within that remote e.g. "dir"
  • -

    See the mkdir command command for more information on the above.

    +

    See the mkdir command for more information on the above.

    Authentication is required for this call.

    operations/movefile: Move a file from source remote to destination remote

    This takes the following parameters:

      -
    • srcFs - a remote name string e.g. "drive:" for the source
    • +
    • srcFs - a remote name string e.g. "drive:" for the source, "/" for local filesystem
    • srcRemote - a path within that remote e.g. "file.txt" for the source
    • -
    • dstFs - a remote name string e.g. "drive2:" for the destination
    • +
    • dstFs - a remote name string e.g. "drive2:" for the destination, "/" for local filesystem
    • dstRemote - a path within that remote e.g. "file2.txt" for the destination

    Authentication is required for this call.

    @@ -6030,7 +7982,7 @@

    operations/purge: Remove a directory or container and all of its contents

    This takes the following parameters:

    @@ -6038,7 +7990,7 @@

    operations/purge: Remove a directory or container and
  • fs - a remote name string e.g. "drive:"
  • remote - a path within that remote e.g. "dir"
  • -

    See the purge command command for more information on the above.

    +

    See the purge command for more information on the above.

    Authentication is required for this call.

    operations/rmdir: Remove an empty directory or container

    This takes the following parameters:

    @@ -6046,15 +7998,31 @@

    operations/rmdir: Remove an empty directory or contain
  • fs - a remote name string e.g. "drive:"
  • remote - a path within that remote e.g. "dir"
  • -

    See the rmdir command command for more information on the above.

    +

    See the rmdir command for more information on the above.

    Authentication is required for this call.

    operations/rmdirs: Remove all the empty directories in the path

    This takes the following parameters:

    • fs - a remote name string e.g. "drive:"
    • remote - a path within that remote e.g. "dir"
    • -
    • leaveRoot - boolean, set to true not to delete the root See the rmdirs command command for more information on the above.
    • +
    • leaveRoot - boolean, set to true not to delete the root
    • +
    +

    See the rmdirs command for more information on the above.

    +

    Authentication is required for this call.

    +

    operations/settier: Changes storage tier or class on all files in the path

    +

    This takes the following parameters:

    +
      +
    • fs - a remote name string e.g. "drive:"
    • +
    +

    See the settier command for more information on the above.

    +

    Authentication is required for this call.

    +

    operations/settierfile: Changes storage tier or class on the single file pointed to

    +

    This takes the following parameters:

    +
      +
    • fs - a remote name string e.g. "drive:"
    • +
    • remote - a path within that remote e.g. "dir"
    +

    See the settierfile command for more information on the above.

    Authentication is required for this call.

    operations/size: Count the number of bytes and files in remote

    This takes the following parameters:

    @@ -6066,7 +8034,7 @@

    operations/size: Count the number of bytes and files in
  • count - number of files
  • bytes - number of bytes in those files
  • -

    See the size command command for more information on the above.

    +

    See the size command for more information on the above.

    Authentication is required for this call.

    operations/stat: Give information about the supplied file or directory

    This takes the following parameters

    @@ -6083,15 +8051,16 @@

    operations/stat: Give information about the supplied fi
  • item - an object as described in the lsjson command. Will be null if not found.
  • Note that if you are only interested in files then it is much more efficient to set the filesOnly flag in the options.

    -

    See the lsjson command for more information on the above and examples.

    +

    See the lsjson command for more information on the above and examples.

    Authentication is required for this call.

    operations/uploadfile: Upload file using multiform/form-data

    This takes the following parameters:

    • fs - a remote name string e.g. "drive:"
    • remote - a path within that remote e.g. "dir"
    • -
    • each part in body represents a file to be uploaded See the uploadfile command command for more information on the above.
    • +
    • each part in body represents a file to be uploaded
    +

    See the uploadfile command for more information on the above.

    Authentication is required for this call.

    options/blocks: List all the option blocks

    Returns: - options - a list of the options block names

    @@ -6192,7 +8161,7 @@

    rc/noop: Echo the input to the output parameters

    rc/noopauth: Echo the input to the output parameters requiring auth

    This echoes the input parameters to the output parameters for testing purposes. It can be used to check that rclone is still alive and to check that parameter passing is working properly.

    Authentication is required for this call.

    -

    sync/bisync: Perform bidirectonal synchronization between two paths.

    +

    sync/bisync: Perform bidirectional synchronization between two paths.

    This takes the following parameters

    • path1 - a remote directory string e.g. drive:path1
    • @@ -6202,10 +8171,13 @@

      sync/bisync: Perform bidirectonal synchronization between t
    • checkAccess - abort if RCLONE_TEST files are not found on both filesystems
    • checkFilename - file name for checkAccess (default: RCLONE_TEST)
    • maxDelete - abort sync if percentage of deleted files is above this threshold (default: 50)
    • -
    • force - maxDelete safety check and run the sync
    • +
    • force - Bypass maxDelete safety check and run the sync
    • checkSync - true by default, false disables comparison of final listings, only will skip sync, only compare listings from the last run
    • +
    • createEmptySrcDirs - Sync creation and deletion of empty directories. (Not compatible with --remove-empty-dirs)
    • removeEmptyDirs - remove empty directories at the final cleanup step
    • filtersFile - read filtering patterns from a file
    • +
    • ignoreListingChecksum - Do not use checksums for listings
    • +
    • resilient - Allow future runs to retry after certain less-serious errors, instead of requiring resync. Use at your own risk!
    • workdir - server directory for history files (default: /home/ncw/.cache/rclone/bisync)
    • noCleanup - retain working files
    @@ -6218,7 +8190,7 @@

    sync/copy: copy a directory from source remote to destination
  • dstFs - a remote name string e.g. "drive:dst" for the destination
  • createEmptySrcDirs - create empty src directories on destination if set
  • -

    See the copy command command for more information on the above.

    +

    See the copy command for more information on the above.

    Authentication is required for this call.

    sync/move: move a directory from source remote to destination remote

    This takes the following parameters:

    @@ -6228,7 +8200,7 @@

    sync/move: move a directory from source remote to destination
  • createEmptySrcDirs - create empty src directories on destination if set
  • deleteEmptySrcDirs - delete empty src directories if set
  • -

    See the move command command for more information on the above.

    +

    See the move command for more information on the above.

    Authentication is required for this call.

    sync/sync: sync a directory from source remote to destination remote

    This takes the following parameters:

    @@ -6237,7 +8209,7 @@

    sync/sync: sync a directory from source remote to destination
  • dstFs - a remote name string e.g. "drive:dst" for the destination
  • createEmptySrcDirs - create empty src directories on destination if set
  • -

    See the sync command command for more information on the above.

    +

    See the sync command for more information on the above.

    Authentication is required for this call.

    vfs/forget: Forget files or directories in the directory cache.

    This forgets the paths in the directory cache causing them to be re-read from the remote when needed.

    @@ -6428,338 +8400,438 @@

    Features

    Case Insensitive Duplicate Files MIME Type +Metadata 1Fichier Whirlpool -No +- No Yes R +- Akamai Netstorage MD5, SHA256 -Yes +R/W No No R +- Amazon Drive MD5 -No +- Yes No R +- Amazon S3 (or S3 compatible) MD5 -Yes +R/W No No R/W +RWU Backblaze B2 SHA1 -Yes +R/W No No R/W +- Box SHA1 -Yes +R/W Yes No - +- Citrix ShareFile MD5 -Yes +R/W Yes No - +- Dropbox DBHASH ¹ -Yes +R Yes No - +- Enterprise File Fabric - -Yes +R/W Yes No R/W +- FTP - -No +R/W ¹⁰ No No - +- Google Cloud Storage MD5 -Yes +R/W No No R/W +- Google Drive MD5 -Yes +R/W No Yes R/W +- Google Photos - -No +- No Yes R +- HDFS - -Yes +R/W No No - +- +HiDrive +HiDrive ¹² +R/W +No +No +- +- + + HTTP - -No +R No No R +- - -Hubic -MD5 -Yes + +Internet Archive +MD5, SHA1, CRC32 +R/W ¹¹ No No -R/W +- +RWU - + Jottacloud MD5 -Yes +R/W Yes No R +- - + Koofr MD5 -No +- Yes No - +- - + Mail.ru Cloud Mailru ⁶ -Yes +R/W Yes No - +- - + Mega - -No +- No Yes - +- - + Memory MD5 -Yes +R/W No No - +- - + Microsoft Azure Blob Storage MD5 -Yes +R/W No No R/W +- - + Microsoft OneDrive -SHA1 ⁵ -Yes +QuickXorHash ⁵ +R/W Yes No R +- - + OpenDrive MD5 -Yes +R/W Yes Partial ⁸ - +- - + OpenStack Swift MD5 -Yes +R/W +No +No +R/W +- + + +Oracle Object Storage +MD5 +R/W No No R/W +- pCloud MD5, SHA1 ⁷ -Yes +R No No W +- +PikPak +MD5 +R +No +No +R +- + + premiumize.me - -No +- Yes No R +- - + put.io CRC-32 -Yes +R/W No Yes R +- + + +Proton Drive +SHA1 +R/W +No +No +R +- QingStor MD5 -No +- ⁹ No No R/W +- -Seafile +Quatrix by Maytech - -No +R/W No No - +- +Seafile +- +- +No +No +- +- + + SFTP MD5, SHA1 ² -Yes +R/W Depends No - +- - + Sia - +- No No +- +- + + +SMB +- +- +Yes No - +- SugarSync - -No +- No No - +- Storj - -Yes +R No No - +- Uptobox - -No +- No Yes - +- WebDAV MD5, SHA1 ³ -Yes ⁴ +R ⁴ Depends No - +- Yandex Disk MD5 -Yes +R/W No No R +- Zoho WorkDrive - +- No No -No +- - The local filesystem All -Yes +R/W Depends No - +RWU

    Notes

    ¹ Dropbox supports its own custom hash. This is an SHA256 sum of all the 4 MiB block SHA256s.

    ² SFTP supports checksums if the same login has shell access and md5sum or sha1sum as well as echo are in the remote's PATH.

    -

    ³ WebDAV supports hashes when used with Owncloud and Nextcloud only.

    -

    ⁴ WebDAV supports modtimes when used with Owncloud and Nextcloud only.

    -

    ⁵ Microsoft OneDrive Personal supports SHA1 hashes, whereas OneDrive for business and SharePoint server support Microsoft's own QuickXorHash.

    +

    ³ WebDAV supports hashes when used with Fastmail Files, Owncloud and Nextcloud only.

    +

    ⁴ WebDAV supports modtimes when used with Fastmail Files, Owncloud and Nextcloud only.

    +

    QuickXorHash is Microsoft's own hash.

    ⁶ Mail.ru uses its own modified SHA1 hash

    ⁷ pCloud only supports SHA1 (not MD5) in its EU region

    ⁸ Opendrive does not support creation of duplicate files using their web client interface or other stock clients, but the underlying storage platform has been determined to allow duplicate files, and it is possible to create them with rclone. It may be that this is a mistake or an unsupported feature.

    +

    ⁹ QingStor does not support SetModTime for objects bigger than 5 GiB.

    +

    ¹⁰ FTP supports modtimes for the major FTP servers, and also others if they advertised required protocol extensions. See this for more details.

    +

    ¹¹ Internet Archive requires option wait_archive to be set to a non-zero value for full modtime support.

    +

    ¹² HiDrive supports its own custom hash. It combines SHA1 sums for each 4 KiB block hierarchically to a single top-level sum.

    Hash

    The cloud storage system supports various hash types of the objects. The hashes are used when transferring data as an integrity check and can be specifically used with the --checksum flag in syncs and in the check command.

    To use the verify checksums when transferring between cloud storage systems they must support a common hash type.

    ModTime

    -

    The cloud storage system supports setting modification times on objects. If it does then this enables a using the modification times as part of the sync. If not then only the size will be checked by default, though the MD5SUM can be checked with the --checksum flag.

    -

    All cloud storage systems support some kind of date on the object and these will be set when transferring from the cloud storage system.

    +

    Almost all cloud storage systems store some sort of timestamp on objects, but several of them not something that is appropriate to use for syncing. E.g. some backends will only write a timestamp that represent the time of the upload. To be relevant for syncing it should be able to store the modification time of the source object. If this is not the case, rclone will only check the file size by default, though can be configured to check the file hash (with the --checksum flag). Ideally it should also be possible to change the timestamp of an existing file without having to re-upload it.

    +

    Storage systems with a - in the ModTime column, means the modification read on objects is not the modification time of the file when uploaded. It is most likely the time the file was uploaded, or possibly something else (like the time the picture was taken in Google Photos).

    +

    Storage systems with a R (for read-only) in the ModTime column, means the it keeps modification times on objects, and updates them when uploading objects, but it does not support changing only the modification time (SetModTime operation) without re-uploading, possibly not even without deleting existing first. Some operations in rclone, such as copy and sync commands, will automatically check for SetModTime support and re-upload if necessary to keep the modification times in sync. Other commands will not work without SetModTime support, e.g. touch command on an existing file will fail, and changes to modification time only on a files in a mount will be silently ignored.

    +

    Storage systems with R/W (for read/write) in the ModTime column, means they do also support modtime-only operations.

    Case Insensitive

    If a cloud storage systems is case sensitive then it is possible to have two files which differ only in case, e.g. file.txt and FILE.txt. If a cloud storage system is case insensitive then that isn't possible.

    This can cause problems when syncing between a case insensitive system and a case sensitive system. The symptom of this is that no matter how many times you run the sync it never completes fully.

    @@ -7000,120 +9072,158 @@

    Encoding option

    The --backend-encoding flags allow you to change that. You can disable the encoding completely with --backend-encoding None or set encoding = None in the config file.

    Encoding takes a comma separated list of encodings. You can see the list of all possible values by passing an invalid value to this flag, e.g. --local-encoding "help". The command rclone help flags encoding will show you the defaults for the backends.

    +++++ + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + - + + - + +
    Encoding CharactersEncoded as
    Asterisk *
    BackQuote `
    BackSlash \
    Colon :
    CrLf CR 0x0D, LF 0x0A,
    Ctl All control characters 0x00-0x1F␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟
    Del DEL 0x7F
    Dollar $
    Dot . or .. as entire string, ..
    DoubleQuote "
    Hash #
    InvalidUtf8 An invalid UTF-8 character (e.g. latin1)
    LeftCrLfHtVtCR 0x0D, LF 0x0A,HT 0x09, VT 0x0B on the left of a stringCR 0x0D, LF 0x0A, HT 0x09, VT 0x0B on the left of a string, , ,
    LeftPeriod . on the left of a string.
    LeftSpace SPACE on the left of a string
    LeftTilde ~ on the left of a string
    LtGt <, >,
    None No characters are encoded
    Percent %
    Pipe |
    Question ?
    RightCrLfHtVt CR 0x0D, LF 0x0A, HT 0x09, VT 0x0B on the right of a string, , ,
    RightPeriod . on the right of a string.
    RightSpace SPACE on the right of a string
    Semicolon;
    SingleQuote '
    Slash /
    SquareBracket [, ],
    @@ -7139,9 +9249,49 @@

    MIME Type

    Some cloud storage systems support reading (R) the MIME type of objects and some support writing (W) the MIME type of objects.

    The MIME type can be important if you are serving files directly to HTTP from the storage system.

    If you are copying from a remote which supports reading (R) to a remote which supports writing (W) then rclone will preserve the MIME types. Otherwise they will be guessed from the extension, or the remote itself may assign the MIME type.

    +

    Metadata

    +

    Backends may or may support reading or writing metadata. They may support reading and writing system metadata (metadata intrinsic to that backend) and/or user metadata (general purpose metadata).

    +

    The levels of metadata support are

    + + + + + + + + + + + + + + + + + + + + + +
    KeyExplanation
    RRead only System Metadata
    RWRead and write System Metadata
    RWURead and write System Metadata and read and write User Metadata
    +

    See the metadata docs for more info.

    Optional Features

    All rclone remotes support a base command set. Other features depend upon backend-specific capabilities.

    - +
    ++++++++++++++ @@ -7152,6 +9302,7 @@

    Optional Features

    + @@ -7167,11 +9318,26 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7180,12 +9346,13 @@

    Optional Features

    + - - + + @@ -7193,11 +9360,12 @@

    Optional Features

    + - + @@ -7206,11 +9374,12 @@

    Optional Features

    + - + @@ -7219,11 +9388,12 @@

    Optional Features

    + - + @@ -7231,12 +9401,13 @@

    Optional Features

    - + + - + @@ -7245,11 +9416,12 @@

    Optional Features

    + - + @@ -7258,11 +9430,12 @@

    Optional Features

    + - + @@ -7271,11 +9444,12 @@

    Optional Features

    + - + @@ -7284,11 +9458,12 @@

    Optional Features

    + - + @@ -7297,11 +9472,12 @@

    Optional Features

    + - + @@ -7310,11 +9486,12 @@

    Optional Features

    + - + @@ -7323,8 +9500,23 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7336,20 +9528,22 @@

    Optional Features

    + - - - + + + + @@ -7362,11 +9556,26 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7375,11 +9584,12 @@

    Optional Features

    + - + @@ -7388,11 +9598,12 @@

    Optional Features

    + - + @@ -7401,11 +9612,12 @@

    Optional Features

    + - + @@ -7414,11 +9626,12 @@

    Optional Features

    + - + @@ -7427,11 +9640,12 @@

    Optional Features

    + - + @@ -7440,11 +9654,12 @@

    Optional Features

    + - + @@ -7453,8 +9668,23 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7466,11 +9696,26 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7479,11 +9724,12 @@

    Optional Features

    + - + @@ -7492,6 +9738,21 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7505,11 +9766,26 @@

    Optional Features

    + + + + + + + + + + + + + + + @@ -7518,11 +9794,12 @@

    Optional Features

    + - + @@ -7531,11 +9808,40 @@

    Optional Features

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7544,24 +9850,26 @@

    Optional Features

    + - + - - + + - + + - + @@ -7570,11 +9878,12 @@

    Optional Features

    + - + @@ -7583,11 +9892,12 @@

    Optional Features

    + - + @@ -7596,11 +9906,12 @@

    Optional Features

    + - + @@ -7609,11 +9920,12 @@

    Optional Features

    + - + @@ -7622,6 +9934,7 @@

    Optional Features

    + @@ -7630,7 +9943,8 @@

    Optional Features

    Name CleanUp ListR StreamUploadMultithreadUpload LinkSharing About EmptyDir No No NoNo Yes No Yes
    Akamai NetstorageYesNoNoNoNoYesYesNoNoNoYes
    Amazon Drive Yes No No No NoNo No No Yes
    Amazon S3
    Amazon S3 (or S3 compatible) No Yes No Yes Yes YesYes Yes No No
    Backblaze B2 No Yes Yes Yes YesYes Yes No No
    Box Yes Yes Yes ‡‡ No YesNo Yes Yes Yes
    Citrix ShareFile Yes Yes Yes No NoYesNoNo No No Yes
    Dropbox Yes Yes No No YesNo Yes Yes Yes
    Enterprise File Fabric Yes Yes Yes No NoNo No No Yes
    FTP No No No No YesNo No No Yes
    Google Cloud Storage Yes Yes No Yes YesNo No No No
    Google Drive Yes Yes Yes Yes YesNo Yes Yes Yes
    Google Photos No No No No NoNo No No No
    HDFS Yes No No No YesNoNoYesYes
    HiDriveYesYesYesYesNo No YesNoNoNo Yes
    No No NoNo No No Yes
    HubicYes †YesInternet Archive NoYes No No Yes Yes NoNoYes Yes No
    Yes Yes NoNo Yes Yes Yes
    KoofrYesYesYesYesNoNoYesNoYesYesYes
    Mail.ru Cloud Yes Yes Yes No NoNo Yes Yes Yes
    Mega Yes No Yes No NoNo Yes Yes Yes
    Memory No Yes No Yes YesNo No No No
    Microsoft Azure Blob Storage Yes Yes No Yes YesYes No No No
    Microsoft OneDrive Yes Yes Yes No NoNo Yes Yes Yes
    OpenDrive Yes Yes No No NoNo No No Yes
    OpenStack Swift Yes † Yes No Yes YesNoNoYesNo
    Oracle Object StorageNoYes NoNoYes YesYesNoNoNo No
    Yes No NoNo Yes Yes Yes
    PikPakYesYesYesYesYesNoNoNoYesYesYes
    premiumize.me Yes No No No NoNo Yes Yes Yes
    put.io Yes No Yes No YesNoNoYesYes
    Proton DriveYesNoYesYesYesNoNoNo No Yes Yes Yes Yes NoNo No No No
    Quatrix by MaytechYesYesYesYesNoNoNoNoNoYesYes
    Seafile Yes Yes Yes Yes YesNo Yes Yes Yes
    SFTP No No No No YesNoNoYesYes
    SiaNoNoNoNoNo No YesNoNoNo Yes
    SMBNoNoYesYesNoNoYesYesNoNoYes
    SugarSync Yes Yes No No YesNo Yes No Yes
    StorjYes †NoYes ☨Yes Yes No No Yes YesNoNoYes No No
    Uptobox No Yes No No NoNo No No No
    WebDAV Yes Yes No No Yes ‡No No Yes Yes
    Yandex Disk Yes Yes Yes No YesNo Yes Yes Yes
    Zoho WorkDrive Yes Yes No No NoNo No Yes Yes
    The local filesystem Yes No No No YesYes No Yes Yes

    Purge

    This deletes a directory quicker than just deleting all the files in the directory.

    -

    † Note Swift, Hubic, and Storj implement this in order to delete directory markers but they don't actually have a quicker way of deleting files other than deleting them individually.

    +

    † Note Swift implements this in order to delete directory markers but they don't actually have a quicker way of deleting files other than deleting them individually.

    +

    ☨ Storj implements this efficiently only for entire buckets. If purging a directory inside a bucket, files are deleted individually.

    ‡ StreamUpload is not supported with Nextcloud

    Copy

    Used when copying an object to and from the same remote. This known as a server-side copy so you can copy a file without downloading it and uploading it again. It is used if you use rclone copy or rclone move if the remote doesn't support Move directly.

    @@ -7648,6 +9962,8 @@

    ListR

    The remote supports a recursive list to list all the contents beneath a directory quickly. This enables the --fast-list flag to work. See the rclone docs for more details.

    StreamUpload

    Some remotes allow files to be uploaded without knowing the file size in advance. This allows certain operations to work without spooling the file to local disk first, e.g. rclone rcat.

    +

    MultithreadUpload

    +

    Some remotes allow transfers to the remote to be sent as chunks in parallel. If this is supported then rclone will use multi-thread copying to transfer files much faster.

    LinkSharing

    Sets the necessary permissions on a file or folder and prints a link that allows others to access them, even if they don't have an account on the particular cloud provider.

    About

    @@ -7658,620 +9974,829 @@

    About

    EmptyDir

    The remote supports empty directories. See Limitations for details. Most Object/Bucket-based remotes do not support this.

    Global Flags

    -

    This describes the global flags available to every rclone command split into two groups, non backend and backend flags.

    -

    Non Backend Flags

    -

    These flags are available for every command.

    -
          --ask-password                         Allow prompt for password for encrypted configuration (default true)
    -      --auto-confirm                         If enabled, do not request console confirmation
    -      --backup-dir string                    Make backups into hierarchy based in DIR
    -      --bind string                          Local address to bind to for outgoing connections, IPv4, IPv6 or name
    -      --buffer-size SizeSuffix               In memory buffer size when reading files for each --transfer (default 16Mi)
    -      --bwlimit BwTimetable                  Bandwidth limit in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
    -      --bwlimit-file BwTimetable             Bandwidth limit per file in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
    -      --ca-cert string                       CA certificate used to verify servers
    -      --cache-dir string                     Directory rclone will use for caching (default "$HOME/.cache/rclone")
    -      --check-first                          Do all the checks before starting transfers
    -      --checkers int                         Number of checkers to run in parallel (default 8)
    -  -c, --checksum                             Skip based on checksum (if available) & size, not mod-time & size
    -      --client-cert string                   Client SSL certificate (PEM) for mutual TLS auth
    -      --client-key string                    Client SSL private key (PEM) for mutual TLS auth
    -      --compare-dest stringArray             Include additional comma separated server-side paths during comparison
    -      --config string                        Config file (default "$HOME/.config/rclone/rclone.conf")
    -      --contimeout duration                  Connect timeout (default 1m0s)
    -      --copy-dest stringArray                Implies --compare-dest but also copies files from paths into destination
    -      --cpuprofile string                    Write cpu profile to file
    -      --cutoff-mode string                   Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default "HARD")
    -      --delete-after                         When synchronizing, delete files on destination after transferring (default)
    -      --delete-before                        When synchronizing, delete files on destination before transferring
    -      --delete-during                        When synchronizing, delete files during transfer
    -      --delete-excluded                      Delete files on dest excluded from sync
    -      --disable string                       Disable a comma separated list of features (use --disable help to see a list)
    -      --disable-http2                        Disable HTTP/2 in the global transport
    -  -n, --dry-run                              Do a trial run with no permanent changes
    -      --dscp string                          Set DSCP value to connections, value or name, e.g. CS1, LE, DF, AF21
    -      --dump DumpFlags                       List of items to dump from: headers,bodies,requests,responses,auth,filters,goroutines,openfiles
    -      --dump-bodies                          Dump HTTP headers and bodies - may contain sensitive info
    -      --dump-headers                         Dump HTTP headers - may contain sensitive info
    -      --error-on-no-transfer                 Sets exit code 9 if no files are transferred, useful in scripts
    -      --exclude stringArray                  Exclude files matching pattern
    -      --exclude-from stringArray             Read exclude patterns from file (use - to read from stdin)
    -      --exclude-if-present string            Exclude directories if filename is present
    -      --expect-continue-timeout duration     Timeout when using expect / 100-continue in HTTP (default 1s)
    -      --fast-list                            Use recursive list if available; uses more memory but fewer transactions
    -      --files-from stringArray               Read list of source-file names from file (use - to read from stdin)
    -      --files-from-raw stringArray           Read list of source-file names from file without any processing of lines (use - to read from stdin)
    -  -f, --filter stringArray                   Add a file-filtering rule
    -      --filter-from stringArray              Read filtering patterns from a file (use - to read from stdin)
    -      --fs-cache-expire-duration duration    Cache remotes for this long (0 to disable caching) (default 5m0s)
    -      --fs-cache-expire-interval duration    Interval to check for expired remotes (default 1m0s)
    -      --header stringArray                   Set HTTP header for all transactions
    -      --header-download stringArray          Set HTTP header for download transactions
    -      --header-upload stringArray            Set HTTP header for upload transactions
    -      --human-readable                       Print numbers in a human-readable format, sizes with suffix Ki|Mi|Gi|Ti|Pi
    -      --ignore-case                          Ignore case in filters (case insensitive)
    -      --ignore-case-sync                     Ignore case when synchronizing
    -      --ignore-checksum                      Skip post copy check of checksums
    -      --ignore-errors                        Delete even if there are I/O errors
    -      --ignore-existing                      Skip all files that exist on destination
    -      --ignore-size                          Ignore size when skipping use mod-time or checksum
    -  -I, --ignore-times                         Don't skip files that match size and time - transfer all files
    -      --immutable                            Do not modify files, fail if existing files have been modified
    -      --include stringArray                  Include files matching pattern
    -      --include-from stringArray             Read include patterns from file (use - to read from stdin)
    -  -i, --interactive                          Enable interactive mode
    -      --kv-lock-time duration                Maximum time to keep key-value database locked by process (default 1s)
    -      --log-file string                      Log everything to this file
    -      --log-format string                    Comma separated list of log format options (default "date,time")
    -      --log-level string                     Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
    -      --log-systemd                          Activate systemd integration for the logger
    -      --low-level-retries int                Number of low level retries to do (default 10)
    -      --max-age Duration                     Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    -      --max-backlog int                      Maximum number of objects in sync or check backlog (default 10000)
    -      --max-delete int                       When synchronizing, limit the number of deletes (default -1)
    -      --max-depth int                        If set limits the recursion depth to this (default -1)
    -      --max-duration duration                Maximum duration rclone will transfer data for
    -      --max-size SizeSuffix                  Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    -      --max-stats-groups int                 Maximum number of stats groups to keep in memory, on max oldest is discarded (default 1000)
    -      --max-transfer SizeSuffix              Maximum size of data to transfer (default off)
    -      --memprofile string                    Write memory profile to file
    -      --min-age Duration                     Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    -      --min-size SizeSuffix                  Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    -      --modify-window duration               Max time diff to be considered the same (default 1ns)
    -      --multi-thread-cutoff SizeSuffix       Use multi-thread downloads for files above this size (default 250Mi)
    -      --multi-thread-streams int             Max number of streams to use for multi-thread downloads (default 4)
    -      --no-check-certificate                 Do not verify the server SSL certificate (insecure)
    -      --no-check-dest                        Don't check the destination, copy regardless
    -      --no-console                           Hide console window (supported on Windows only)
    -      --no-gzip-encoding                     Don't set Accept-Encoding: gzip
    -      --no-traverse                          Don't traverse destination file system on copy
    -      --no-unicode-normalization             Don't normalize unicode characters in filenames
    -      --no-update-modtime                    Don't update destination mod-time if files identical
    -      --order-by string                      Instructions on how to order the transfers, e.g. 'size,descending'
    -      --password-command SpaceSepList        Command for supplying password for encrypted configuration
    -  -P, --progress                             Show progress during transfer
    -      --progress-terminal-title              Show progress on the terminal title (requires -P/--progress)
    -  -q, --quiet                                Print as little stuff as possible
    -      --rc                                   Enable the remote control server
    -      --rc-addr string                       IPaddress:Port or :Port to bind server to (default "localhost:5572")
    -      --rc-allow-origin string               Set the allowed origin for CORS
    -      --rc-baseurl string                    Prefix for URLs - leave blank for root
    -      --rc-cert string                       SSL PEM key (concatenation of certificate and CA certificate)
    -      --rc-client-ca string                  Client certificate authority to verify clients with
    -      --rc-enable-metrics                    Enable prometheus metrics on /metrics
    -      --rc-files string                      Path to local files to serve on the HTTP server
    -      --rc-htpasswd string                   htpasswd file - if not provided no authentication is done
    -      --rc-job-expire-duration duration      Expire finished async jobs older than this value (default 1m0s)
    -      --rc-job-expire-interval duration      Interval to check for expired async jobs (default 10s)
    -      --rc-key string                        SSL PEM Private key
    -      --rc-max-header-bytes int              Maximum size of request header (default 4096)
    -      --rc-no-auth                           Don't require auth for certain methods
    -      --rc-pass string                       Password for authentication
    -      --rc-realm string                      Realm for authentication (default "rclone")
    -      --rc-serve                             Enable the serving of remote objects
    -      --rc-server-read-timeout duration      Timeout for server reading data (default 1h0m0s)
    -      --rc-server-write-timeout duration     Timeout for server writing data (default 1h0m0s)
    -      --rc-template string                   User-specified template
    -      --rc-user string                       User name for authentication
    -      --rc-web-fetch-url string              URL to fetch the releases for webgui (default "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest")
    -      --rc-web-gui                           Launch WebGUI on localhost
    -      --rc-web-gui-force-update              Force update to latest version of web gui
    -      --rc-web-gui-no-open-browser           Don't open the browser automatically
    -      --rc-web-gui-update                    Check and update to latest version of web gui
    -      --refresh-times                        Refresh the modtime of remote files
    -      --retries int                          Retry operations this many times if they fail (default 3)
    -      --retries-sleep duration               Interval between retrying operations if they fail, e.g. 500ms, 60s, 5m (0 to disable)
    -      --size-only                            Skip based on size only, not mod-time or checksum
    -      --stats duration                       Interval between printing stats, e.g. 500ms, 60s, 5m (0 to disable) (default 1m0s)
    -      --stats-file-name-length int           Max file name length in stats (0 for no limit) (default 45)
    -      --stats-log-level string               Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
    -      --stats-one-line                       Make the stats fit on one line
    -      --stats-one-line-date                  Enable --stats-one-line and add current date/time prefix
    -      --stats-one-line-date-format string    Enable --stats-one-line-date and use custom formatted date: Enclose date string in double quotes ("), see https://golang.org/pkg/time/#Time.Format
    -      --stats-unit string                    Show data rate in stats as either 'bits' or 'bytes' per second (default "bytes")
    -      --streaming-upload-cutoff SizeSuffix   Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
    -      --suffix string                        Suffix to add to changed files
    -      --suffix-keep-extension                Preserve the extension when using --suffix
    -      --syslog                               Use Syslog for logging
    -      --syslog-facility string               Facility for syslog, e.g. KERN,USER,... (default "DAEMON")
    -      --temp-dir string                      Directory rclone will use for temporary files (default "/tmp")
    -      --timeout duration                     IO idle timeout (default 5m0s)
    -      --tpslimit float                       Limit HTTP transactions per second to this
    -      --tpslimit-burst int                   Max burst of transactions for --tpslimit (default 1)
    -      --track-renames                        When synchronizing, track file renames and do a server-side move if possible
    -      --track-renames-strategy string        Strategies to use when synchronizing using track-renames hash|modtime|leaf (default "hash")
    -      --transfers int                        Number of file transfers to run in parallel (default 4)
    -  -u, --update                               Skip files that are newer on the destination
    -      --use-cookies                          Enable session cookiejar
    -      --use-json-log                         Use json log format
    -      --use-mmap                             Use mmap allocator (see docs)
    -      --use-server-modtime                   Use server modified time instead of object metadata
    -      --user-agent string                    Set the user-agent to a specified string (default "rclone/v1.58.0")
    -  -v, --verbose count                        Print lots more stuff (repeat for more)
    -

    Backend Flags

    -

    These flags are available for every command. They control the backends and may be set in the config file.

    -
          --acd-auth-url string                          Auth server URL
    -      --acd-client-id string                         OAuth Client Id
    -      --acd-client-secret string                     OAuth Client Secret
    -      --acd-encoding MultiEncoder                    The encoding for the backend (default Slash,InvalidUtf8,Dot)
    -      --acd-templink-threshold SizeSuffix            Files >= this size will be downloaded via their tempLink (default 9Gi)
    -      --acd-token string                             OAuth Access Token as a JSON blob
    -      --acd-token-url string                         Token server url
    -      --acd-upload-wait-per-gb Duration              Additional time per GiB to wait after a failed complete upload to see if it appears (default 3m0s)
    -      --alias-remote string                          Remote or path to alias
    -      --azureblob-access-tier string                 Access tier of blob: hot, cool or archive
    -      --azureblob-account string                     Storage Account Name
    -      --azureblob-archive-tier-delete                Delete archive tier blobs before overwriting
    -      --azureblob-chunk-size SizeSuffix              Upload chunk size (default 4Mi)
    -      --azureblob-disable-checksum                   Don't store MD5 checksum with object metadata
    -      --azureblob-encoding MultiEncoder              The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8)
    -      --azureblob-endpoint string                    Endpoint for the service
    -      --azureblob-key string                         Storage Account Key
    -      --azureblob-list-chunk int                     Size of blob list (default 5000)
    -      --azureblob-memory-pool-flush-time Duration    How often internal memory buffer pools will be flushed (default 1m0s)
    -      --azureblob-memory-pool-use-mmap               Whether to use mmap buffers in internal memory pool
    -      --azureblob-msi-client-id string               Object ID of the user-assigned MSI to use, if any
    -      --azureblob-msi-mi-res-id string               Azure resource ID of the user-assigned MSI to use, if any
    -      --azureblob-msi-object-id string               Object ID of the user-assigned MSI to use, if any
    -      --azureblob-no-head-object                     If set, do not do HEAD before GET when getting objects
    -      --azureblob-public-access string               Public access level of a container: blob or container
    -      --azureblob-sas-url string                     SAS URL for container level access only
    -      --azureblob-service-principal-file string      Path to file containing credentials for use with a service principal
    -      --azureblob-upload-concurrency int             Concurrency for multipart uploads (default 16)
    -      --azureblob-upload-cutoff string               Cutoff for switching to chunked upload (<= 256 MiB) (deprecated)
    -      --azureblob-use-emulator                       Uses local storage emulator if provided as 'true'
    -      --azureblob-use-msi                            Use a managed service identity to authenticate (only works in Azure)
    -      --b2-account string                            Account ID or Application Key ID
    -      --b2-chunk-size SizeSuffix                     Upload chunk size (default 96Mi)
    -      --b2-copy-cutoff SizeSuffix                    Cutoff for switching to multipart copy (default 4Gi)
    -      --b2-disable-checksum                          Disable checksums for large (> upload cutoff) files
    -      --b2-download-auth-duration Duration           Time before the authorization token will expire in s or suffix ms|s|m|h|d (default 1w)
    -      --b2-download-url string                       Custom endpoint for downloads
    -      --b2-encoding MultiEncoder                     The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --b2-endpoint string                           Endpoint for the service
    -      --b2-hard-delete                               Permanently delete files on remote removal, otherwise hide files
    -      --b2-key string                                Application Key
    -      --b2-memory-pool-flush-time Duration           How often internal memory buffer pools will be flushed (default 1m0s)
    -      --b2-memory-pool-use-mmap                      Whether to use mmap buffers in internal memory pool
    -      --b2-test-mode string                          A flag string for X-Bz-Test-Mode header for debugging
    -      --b2-upload-cutoff SizeSuffix                  Cutoff for switching to chunked upload (default 200Mi)
    -      --b2-versions                                  Include old versions in directory listings
    -      --box-access-token string                      Box App Primary Access Token
    -      --box-auth-url string                          Auth server URL
    -      --box-box-config-file string                   Box App config.json location
    -      --box-box-sub-type string                       (default "user")
    -      --box-client-id string                         OAuth Client Id
    -      --box-client-secret string                     OAuth Client Secret
    -      --box-commit-retries int                       Max number of times to try committing a multipart file (default 100)
    -      --box-encoding MultiEncoder                    The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot)
    -      --box-list-chunk int                           Size of listing chunk 1-1000 (default 1000)
    -      --box-owned-by string                          Only show items owned by the login (email address) passed in
    -      --box-root-folder-id string                    Fill in for rclone to use a non root folder as its starting point
    -      --box-token string                             OAuth Access Token as a JSON blob
    -      --box-token-url string                         Token server url
    -      --box-upload-cutoff SizeSuffix                 Cutoff for switching to multipart upload (>= 50 MiB) (default 50Mi)
    -      --cache-chunk-clean-interval Duration          How often should the cache perform cleanups of the chunk storage (default 1m0s)
    -      --cache-chunk-no-memory                        Disable the in-memory cache for storing chunks during streaming
    -      --cache-chunk-path string                      Directory to cache chunk files (default "$HOME/.cache/rclone/cache-backend")
    -      --cache-chunk-size SizeSuffix                  The size of a chunk (partial file data) (default 5Mi)
    -      --cache-chunk-total-size SizeSuffix            The total size that the chunks can take up on the local disk (default 10Gi)
    -      --cache-db-path string                         Directory to store file structure metadata DB (default "$HOME/.cache/rclone/cache-backend")
    -      --cache-db-purge                               Clear all the cached data for this remote on start
    -      --cache-db-wait-time Duration                  How long to wait for the DB to be available - 0 is unlimited (default 1s)
    -      --cache-info-age Duration                      How long to cache file structure information (directory listings, file size, times, etc.) (default 6h0m0s)
    -      --cache-plex-insecure string                   Skip all certificate verification when connecting to the Plex server
    -      --cache-plex-password string                   The password of the Plex user (obscured)
    -      --cache-plex-url string                        The URL of the Plex server
    -      --cache-plex-username string                   The username of the Plex user
    -      --cache-read-retries int                       How many times to retry a read from a cache storage (default 10)
    -      --cache-remote string                          Remote to cache
    -      --cache-rps int                                Limits the number of requests per second to the source FS (-1 to disable) (default -1)
    -      --cache-tmp-upload-path string                 Directory to keep temporary files until they are uploaded
    -      --cache-tmp-wait-time Duration                 How long should files be stored in local cache before being uploaded (default 15s)
    -      --cache-workers int                            How many workers should run in parallel to download chunks (default 4)
    -      --cache-writes                                 Cache file data on writes through the FS
    -      --chunker-chunk-size SizeSuffix                Files larger than chunk size will be split in chunks (default 2Gi)
    -      --chunker-fail-hard                            Choose how chunker should handle files with missing or invalid chunks
    -      --chunker-hash-type string                     Choose how chunker handles hash sums (default "md5")
    -      --chunker-remote string                        Remote to chunk/unchunk
    -      --compress-level int                           GZIP compression level (-2 to 9) (default -1)
    -      --compress-mode string                         Compression mode (default "gzip")
    -      --compress-ram-cache-limit SizeSuffix          Some remotes don't allow the upload of files with unknown size (default 20Mi)
    -      --compress-remote string                       Remote to compress
    -  -L, --copy-links                                   Follow symlinks and copy the pointed to item
    -      --crypt-directory-name-encryption              Option to either encrypt directory names or leave them intact (default true)
    -      --crypt-filename-encoding string               How to encode the encrypted filename to text string (default "base32")
    -      --crypt-filename-encryption string             How to encrypt the filenames (default "standard")
    -      --crypt-no-data-encryption                     Option to either encrypt file data or leave it unencrypted
    -      --crypt-password string                        Password or pass phrase for encryption (obscured)
    -      --crypt-password2 string                       Password or pass phrase for salt (obscured)
    -      --crypt-remote string                          Remote to encrypt/decrypt
    -      --crypt-server-side-across-configs             Allow server-side operations (e.g. copy) to work across different crypt configs
    -      --crypt-show-mapping                           For all files listed show how the names encrypt
    -      --drive-acknowledge-abuse                      Set to allow files which return cannotDownloadAbusiveFile to be downloaded
    -      --drive-allow-import-name-change               Allow the filetype to change when uploading Google docs
    -      --drive-auth-owner-only                        Only consider files owned by the authenticated user
    -      --drive-auth-url string                        Auth server URL
    -      --drive-chunk-size SizeSuffix                  Upload chunk size (default 8Mi)
    -      --drive-client-id string                       Google Application Client Id
    -      --drive-client-secret string                   OAuth Client Secret
    -      --drive-copy-shortcut-content                  Server side copy contents of shortcuts instead of the shortcut
    -      --drive-disable-http2                          Disable drive using http2 (default true)
    -      --drive-encoding MultiEncoder                  The encoding for the backend (default InvalidUtf8)
    -      --drive-export-formats string                  Comma separated list of preferred formats for downloading Google docs (default "docx,xlsx,pptx,svg")
    -      --drive-formats string                         Deprecated: See export_formats
    -      --drive-impersonate string                     Impersonate this user when using a service account
    -      --drive-import-formats string                  Comma separated list of preferred formats for uploading Google docs
    -      --drive-keep-revision-forever                  Keep new head revision of each file forever
    -      --drive-list-chunk int                         Size of listing chunk 100-1000, 0 to disable (default 1000)
    -      --drive-pacer-burst int                        Number of API calls to allow without sleeping (default 100)
    -      --drive-pacer-min-sleep Duration               Minimum time to sleep between API calls (default 100ms)
    -      --drive-root-folder-id string                  ID of the root folder
    -      --drive-scope string                           Scope that rclone should use when requesting access from drive
    -      --drive-server-side-across-configs             Allow server-side operations (e.g. copy) to work across different drive configs
    -      --drive-service-account-credentials string     Service Account Credentials JSON blob
    -      --drive-service-account-file string            Service Account Credentials JSON file path
    -      --drive-shared-with-me                         Only show files that are shared with me
    -      --drive-size-as-quota                          Show sizes as storage quota usage, not actual size
    -      --drive-skip-checksum-gphotos                  Skip MD5 checksum on Google photos and videos only
    -      --drive-skip-dangling-shortcuts                If set skip dangling shortcut files
    -      --drive-skip-gdocs                             Skip google documents in all listings
    -      --drive-skip-shortcuts                         If set skip shortcut files
    -      --drive-starred-only                           Only show files that are starred
    -      --drive-stop-on-download-limit                 Make download limit errors be fatal
    -      --drive-stop-on-upload-limit                   Make upload limit errors be fatal
    -      --drive-team-drive string                      ID of the Shared Drive (Team Drive)
    -      --drive-token string                           OAuth Access Token as a JSON blob
    -      --drive-token-url string                       Token server url
    -      --drive-trashed-only                           Only show files that are in the trash
    -      --drive-upload-cutoff SizeSuffix               Cutoff for switching to chunked upload (default 8Mi)
    -      --drive-use-created-date                       Use file created date instead of modified date
    -      --drive-use-shared-date                        Use date file was shared instead of modified date
    -      --drive-use-trash                              Send files to the trash instead of deleting permanently (default true)
    -      --drive-v2-download-min-size SizeSuffix        If Object's are greater, use drive v2 API to download (default off)
    -      --dropbox-auth-url string                      Auth server URL
    -      --dropbox-batch-commit-timeout Duration        Max time to wait for a batch to finish comitting (default 10m0s)
    -      --dropbox-batch-mode string                    Upload file batching sync|async|off (default "sync")
    -      --dropbox-batch-size int                       Max number of files in upload batch
    -      --dropbox-batch-timeout Duration               Max time to allow an idle upload batch before uploading (default 0s)
    -      --dropbox-chunk-size SizeSuffix                Upload chunk size (< 150Mi) (default 48Mi)
    -      --dropbox-client-id string                     OAuth Client Id
    -      --dropbox-client-secret string                 OAuth Client Secret
    -      --dropbox-encoding MultiEncoder                The encoding for the backend (default Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot)
    -      --dropbox-impersonate string                   Impersonate this user when using a business account
    -      --dropbox-shared-files                         Instructs rclone to work on individual shared files
    -      --dropbox-shared-folders                       Instructs rclone to work on shared folders
    -      --dropbox-token string                         OAuth Access Token as a JSON blob
    -      --dropbox-token-url string                     Token server url
    -      --fichier-api-key string                       Your API Key, get it from https://1fichier.com/console/params.pl
    -      --fichier-encoding MultiEncoder                The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot)
    -      --fichier-file-password string                 If you want to download a shared file that is password protected, add this parameter (obscured)
    -      --fichier-folder-password string               If you want to list the files in a shared folder that is password protected, add this parameter (obscured)
    -      --fichier-shared-folder string                 If you want to download a shared folder, add this parameter
    -      --filefabric-encoding MultiEncoder             The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
    -      --filefabric-permanent-token string            Permanent Authentication Token
    -      --filefabric-root-folder-id string             ID of the root folder
    -      --filefabric-token string                      Session Token
    -      --filefabric-token-expiry string               Token expiry time
    -      --filefabric-url string                        URL of the Enterprise File Fabric to connect to
    -      --filefabric-version string                    Version read from the file fabric
    -      --ftp-ask-password                             Allow asking for FTP password when needed
    -      --ftp-close-timeout Duration                   Maximum time to wait for a response to close (default 1m0s)
    -      --ftp-concurrency int                          Maximum number of FTP simultaneous connections, 0 for unlimited
    -      --ftp-disable-epsv                             Disable using EPSV even if server advertises support
    -      --ftp-disable-mlsd                             Disable using MLSD even if server advertises support
    -      --ftp-disable-tls13                            Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
    -      --ftp-encoding MultiEncoder                    The encoding for the backend (default Slash,Del,Ctl,RightSpace,Dot)
    -      --ftp-explicit-tls                             Use Explicit FTPS (FTP over TLS)
    -      --ftp-host string                              FTP host to connect to
    -      --ftp-idle-timeout Duration                    Max time before closing idle connections (default 1m0s)
    -      --ftp-no-check-certificate                     Do not verify the TLS certificate of the server
    -      --ftp-pass string                              FTP password (obscured)
    -      --ftp-port int                                 FTP port number (default 21)
    -      --ftp-shut-timeout Duration                    Maximum time to wait for data connection closing status (default 1m0s)
    -      --ftp-tls                                      Use Implicit FTPS (FTP over TLS)
    -      --ftp-tls-cache-size int                       Size of TLS session cache for all control and data connections (default 32)
    -      --ftp-user string                              FTP username (default "$USER")
    -      --ftp-writing-mdtm                             Use MDTM to set modification time (VsFtpd quirk)
    -      --gcs-anonymous                                Access public buckets and objects without credentials
    -      --gcs-auth-url string                          Auth server URL
    -      --gcs-bucket-acl string                        Access Control List for new buckets
    -      --gcs-bucket-policy-only                       Access checks should use bucket-level IAM policies
    -      --gcs-client-id string                         OAuth Client Id
    -      --gcs-client-secret string                     OAuth Client Secret
    -      --gcs-encoding MultiEncoder                    The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
    -      --gcs-location string                          Location for the newly created buckets
    -      --gcs-object-acl string                        Access Control List for new objects
    -      --gcs-project-number string                    Project number
    -      --gcs-service-account-file string              Service Account Credentials JSON file path
    -      --gcs-storage-class string                     The storage class to use when storing objects in Google Cloud Storage
    -      --gcs-token string                             OAuth Access Token as a JSON blob
    -      --gcs-token-url string                         Token server url
    -      --gphotos-auth-url string                      Auth server URL
    -      --gphotos-client-id string                     OAuth Client Id
    -      --gphotos-client-secret string                 OAuth Client Secret
    -      --gphotos-encoding MultiEncoder                The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
    -      --gphotos-include-archived                     Also view and download archived media
    -      --gphotos-read-only                            Set to make the Google Photos backend read only
    -      --gphotos-read-size                            Set to read the size of media items
    -      --gphotos-start-year int                       Year limits the photos to be downloaded to those which are uploaded after the given year (default 2000)
    -      --gphotos-token string                         OAuth Access Token as a JSON blob
    -      --gphotos-token-url string                     Token server url
    -      --hasher-auto-size SizeSuffix                  Auto-update checksum for files smaller than this size (disabled by default)
    -      --hasher-hashes CommaSepList                   Comma separated list of supported checksum types (default md5,sha1)
    -      --hasher-max-age Duration                      Maximum time to keep checksums in cache (0 = no cache, off = cache forever) (default off)
    -      --hasher-remote string                         Remote to cache checksums for (e.g. myRemote:path)
    -      --hdfs-data-transfer-protection string         Kerberos data transfer protection: authentication|integrity|privacy
    -      --hdfs-encoding MultiEncoder                   The encoding for the backend (default Slash,Colon,Del,Ctl,InvalidUtf8,Dot)
    -      --hdfs-namenode string                         Hadoop name node and port
    -      --hdfs-service-principal-name string           Kerberos service principal name for the namenode
    -      --hdfs-username string                         Hadoop user name
    -      --http-headers CommaSepList                    Set HTTP headers for all transactions
    -      --http-no-head                                 Don't use HEAD requests
    -      --http-no-slash                                Set this if the site doesn't end directories with /
    -      --http-url string                              URL of http host to connect to
    -      --hubic-auth-url string                        Auth server URL
    -      --hubic-chunk-size SizeSuffix                  Above this size files will be chunked into a _segments container (default 5Gi)
    -      --hubic-client-id string                       OAuth Client Id
    -      --hubic-client-secret string                   OAuth Client Secret
    -      --hubic-encoding MultiEncoder                  The encoding for the backend (default Slash,InvalidUtf8)
    -      --hubic-no-chunk                               Don't chunk files during streaming upload
    -      --hubic-token string                           OAuth Access Token as a JSON blob
    -      --hubic-token-url string                       Token server url
    -      --jottacloud-encoding MultiEncoder             The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot)
    -      --jottacloud-hard-delete                       Delete files permanently rather than putting them into the trash
    -      --jottacloud-md5-memory-limit SizeSuffix       Files bigger than this will be cached on disk to calculate the MD5 if required (default 10Mi)
    -      --jottacloud-no-versions                       Avoid server side versioning by deleting files and recreating files instead of overwriting them
    -      --jottacloud-trashed-only                      Only show files that are in the trash
    -      --jottacloud-upload-resume-limit SizeSuffix    Files bigger than this can be resumed if the upload fail's (default 10Mi)
    -      --koofr-encoding MultiEncoder                  The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --koofr-endpoint string                        The Koofr API endpoint to use
    -      --koofr-mountid string                         Mount ID of the mount to use
    -      --koofr-password string                        Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password) (obscured)
    -      --koofr-provider string                        Choose your storage provider
    -      --koofr-setmtime                               Does the backend support setting modification time (default true)
    -      --koofr-user string                            Your user name
    -  -l, --links                                        Translate symlinks to/from regular files with a '.rclonelink' extension
    -      --local-case-insensitive                       Force the filesystem to report itself as case insensitive
    -      --local-case-sensitive                         Force the filesystem to report itself as case sensitive
    -      --local-encoding MultiEncoder                  The encoding for the backend (default Slash,Dot)
    -      --local-no-check-updated                       Don't check to see if the files change during upload
    -      --local-no-preallocate                         Disable preallocation of disk space for transferred files
    -      --local-no-set-modtime                         Disable setting modtime
    -      --local-no-sparse                              Disable sparse files for multi-thread downloads
    -      --local-nounc string                           Disable UNC (long path names) conversion on Windows
    -      --local-unicode-normalization                  Apply unicode NFC normalization to paths and filenames
    -      --local-zero-size-links                        Assume the Stat size of links is zero (and read them instead) (deprecated)
    -      --mailru-check-hash                            What should copy do if file checksum is mismatched or invalid (default true)
    -      --mailru-encoding MultiEncoder                 The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --mailru-pass string                           Password (obscured)
    -      --mailru-speedup-enable                        Skip full upload if there is another file with same data hash (default true)
    -      --mailru-speedup-file-patterns string          Comma separated list of file name patterns eligible for speedup (put by hash) (default "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf")
    -      --mailru-speedup-max-disk SizeSuffix           This option allows you to disable speedup (put by hash) for large files (default 3Gi)
    -      --mailru-speedup-max-memory SizeSuffix         Files larger than the size given below will always be hashed on disk (default 32Mi)
    -      --mailru-user string                           User name (usually email)
    -      --mega-debug                                   Output more debug from Mega
    -      --mega-encoding MultiEncoder                   The encoding for the backend (default Slash,InvalidUtf8,Dot)
    -      --mega-hard-delete                             Delete files permanently rather than putting them into the trash
    -      --mega-pass string                             Password (obscured)
    -      --mega-user string                             User name
    -      --netstorage-account string                    Set the NetStorage account name
    -      --netstorage-host string                       Domain+path of NetStorage host to connect to
    -      --netstorage-protocol string                   Select between HTTP or HTTPS protocol (default "https")
    -      --netstorage-secret string                     Set the NetStorage account secret/G2O key for authentication (obscured)
    -  -x, --one-file-system                              Don't cross filesystem boundaries (unix/macOS only)
    -      --onedrive-auth-url string                     Auth server URL
    -      --onedrive-chunk-size SizeSuffix               Chunk size to upload files with - must be multiple of 320k (327,680 bytes) (default 10Mi)
    -      --onedrive-client-id string                    OAuth Client Id
    -      --onedrive-client-secret string                OAuth Client Secret
    -      --onedrive-disable-site-permission             Disable the request for Sites.Read.All permission
    -      --onedrive-drive-id string                     The ID of the drive to use
    -      --onedrive-drive-type string                   The type of the drive (personal | business | documentLibrary)
    -      --onedrive-encoding MultiEncoder               The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8,Dot)
    -      --onedrive-expose-onenote-files                Set to make OneNote files show up in directory listings
    -      --onedrive-link-password string                Set the password for links created by the link command
    -      --onedrive-link-scope string                   Set the scope of the links created by the link command (default "anonymous")
    -      --onedrive-link-type string                    Set the type of the links created by the link command (default "view")
    -      --onedrive-list-chunk int                      Size of listing chunk (default 1000)
    -      --onedrive-no-versions                         Remove all versions on modifying operations
    -      --onedrive-region string                       Choose national cloud region for OneDrive (default "global")
    -      --onedrive-root-folder-id string               ID of the root folder
    -      --onedrive-server-side-across-configs          Allow server-side operations (e.g. copy) to work across different onedrive configs
    -      --onedrive-token string                        OAuth Access Token as a JSON blob
    -      --onedrive-token-url string                    Token server url
    -      --opendrive-chunk-size SizeSuffix              Files will be uploaded in chunks this size (default 10Mi)
    -      --opendrive-encoding MultiEncoder              The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot)
    -      --opendrive-password string                    Password (obscured)
    -      --opendrive-username string                    Username
    -      --pcloud-auth-url string                       Auth server URL
    -      --pcloud-client-id string                      OAuth Client Id
    -      --pcloud-client-secret string                  OAuth Client Secret
    -      --pcloud-encoding MultiEncoder                 The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --pcloud-hostname string                       Hostname to connect to (default "api.pcloud.com")
    -      --pcloud-root-folder-id string                 Fill in for rclone to use a non root folder as its starting point (default "d0")
    -      --pcloud-token string                          OAuth Access Token as a JSON blob
    -      --pcloud-token-url string                      Token server url
    -      --premiumizeme-encoding MultiEncoder           The encoding for the backend (default Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --putio-encoding MultiEncoder                  The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    -      --qingstor-access-key-id string                QingStor Access Key ID
    -      --qingstor-chunk-size SizeSuffix               Chunk size to use for uploading (default 4Mi)
    -      --qingstor-connection-retries int              Number of connection retries (default 3)
    -      --qingstor-encoding MultiEncoder               The encoding for the backend (default Slash,Ctl,InvalidUtf8)
    -      --qingstor-endpoint string                     Enter an endpoint URL to connection QingStor API
    -      --qingstor-env-auth                            Get QingStor credentials from runtime
    -      --qingstor-secret-access-key string            QingStor Secret Access Key (password)
    -      --qingstor-upload-concurrency int              Concurrency for multipart uploads (default 1)
    -      --qingstor-upload-cutoff SizeSuffix            Cutoff for switching to chunked upload (default 200Mi)
    -      --qingstor-zone string                         Zone to connect to
    -      --s3-access-key-id string                      AWS Access Key ID
    -      --s3-acl string                                Canned ACL used when creating buckets and storing or copying objects
    -      --s3-bucket-acl string                         Canned ACL used when creating buckets
    -      --s3-chunk-size SizeSuffix                     Chunk size to use for uploading (default 5Mi)
    -      --s3-copy-cutoff SizeSuffix                    Cutoff for switching to multipart copy (default 4.656Gi)
    -      --s3-disable-checksum                          Don't store MD5 checksum with object metadata
    -      --s3-disable-http2                             Disable usage of http2 for S3 backends
    -      --s3-download-url string                       Custom endpoint for downloads
    -      --s3-encoding MultiEncoder                     The encoding for the backend (default Slash,InvalidUtf8,Dot)
    -      --s3-endpoint string                           Endpoint for S3 API
    -      --s3-env-auth                                  Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars)
    -      --s3-force-path-style                          If true use path style access if false use virtual hosted style (default true)
    -      --s3-leave-parts-on-error                      If true avoid calling abort upload on a failure, leaving all successfully uploaded parts on S3 for manual recovery
    -      --s3-list-chunk int                            Size of listing chunk (response list for each ListObject S3 request) (default 1000)
    -      --s3-list-url-encode Tristate                  Whether to url encode listings: true/false/unset (default unset)
    -      --s3-list-version int                          Version of ListObjects to use: 1,2 or 0 for auto
    -      --s3-location-constraint string                Location constraint - must be set to match the Region
    -      --s3-max-upload-parts int                      Maximum number of parts in a multipart upload (default 10000)
    -      --s3-memory-pool-flush-time Duration           How often internal memory buffer pools will be flushed (default 1m0s)
    -      --s3-memory-pool-use-mmap                      Whether to use mmap buffers in internal memory pool
    -      --s3-no-check-bucket                           If set, don't attempt to check the bucket exists or create it
    -      --s3-no-head                                   If set, don't HEAD uploaded objects to check integrity
    -      --s3-no-head-object                            If set, do not do HEAD before GET when getting objects
    -      --s3-profile string                            Profile to use in the shared credentials file
    -      --s3-provider string                           Choose your S3 provider
    -      --s3-region string                             Region to connect to
    -      --s3-requester-pays                            Enables requester pays option when interacting with S3 bucket
    -      --s3-secret-access-key string                  AWS Secret Access Key (password)
    -      --s3-server-side-encryption string             The server-side encryption algorithm used when storing this object in S3
    -      --s3-session-token string                      An AWS session token
    -      --s3-shared-credentials-file string            Path to the shared credentials file
    -      --s3-sse-customer-algorithm string             If using SSE-C, the server-side encryption algorithm used when storing this object in S3
    -      --s3-sse-customer-key string                   If using SSE-C you must provide the secret encryption key used to encrypt/decrypt your data
    -      --s3-sse-customer-key-md5 string               If using SSE-C you may provide the secret encryption key MD5 checksum (optional)
    -      --s3-sse-kms-key-id string                     If using KMS ID you must provide the ARN of Key
    -      --s3-storage-class string                      The storage class to use when storing new objects in S3
    -      --s3-upload-concurrency int                    Concurrency for multipart uploads (default 4)
    -      --s3-upload-cutoff SizeSuffix                  Cutoff for switching to chunked upload (default 200Mi)
    -      --s3-use-accelerate-endpoint                   If true use the AWS S3 accelerated endpoint
    -      --s3-use-multipart-etag Tristate               Whether to use ETag in multipart uploads for verification (default unset)
    -      --s3-v2-auth                                   If true use v2 authentication
    -      --seafile-2fa                                  Two-factor authentication ('true' if the account has 2FA enabled)
    -      --seafile-create-library                       Should rclone create a library if it doesn't exist
    -      --seafile-encoding MultiEncoder                The encoding for the backend (default Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8)
    -      --seafile-library string                       Name of the library
    -      --seafile-library-key string                   Library password (for encrypted libraries only) (obscured)
    -      --seafile-pass string                          Password (obscured)
    -      --seafile-url string                           URL of seafile host to connect to
    -      --seafile-user string                          User name (usually email address)
    -      --sftp-ask-password                            Allow asking for SFTP password when needed
    -      --sftp-disable-concurrent-reads                If set don't use concurrent reads
    -      --sftp-disable-concurrent-writes               If set don't use concurrent writes
    -      --sftp-disable-hashcheck                       Disable the execution of SSH commands to determine if remote file hashing is available
    -      --sftp-host string                             SSH host to connect to
    -      --sftp-idle-timeout Duration                   Max time before closing idle connections (default 1m0s)
    -      --sftp-key-file string                         Path to PEM-encoded private key file
    -      --sftp-key-file-pass string                    The passphrase to decrypt the PEM-encoded private key file (obscured)
    -      --sftp-key-pem string                          Raw PEM-encoded private key
    -      --sftp-key-use-agent                           When set forces the usage of the ssh-agent
    -      --sftp-known-hosts-file string                 Optional path to known_hosts file
    -      --sftp-md5sum-command string                   The command used to read md5 hashes
    -      --sftp-pass string                             SSH password, leave blank to use ssh-agent (obscured)
    -      --sftp-path-override string                    Override path used by SSH connection
    -      --sftp-port int                                SSH port number (default 22)
    -      --sftp-pubkey-file string                      Optional path to public key file
    -      --sftp-server-command string                   Specifies the path or command to run a sftp server on the remote host
    -      --sftp-set-modtime                             Set the modified time on the remote if set (default true)
    -      --sftp-sha1sum-command string                  The command used to read sha1 hashes
    -      --sftp-skip-links                              Set to skip any symlinks and any other non regular files
    -      --sftp-subsystem string                        Specifies the SSH2 subsystem on the remote host (default "sftp")
    -      --sftp-use-fstat                               If set use fstat instead of stat
    -      --sftp-use-insecure-cipher                     Enable the use of insecure ciphers and key exchange methods
    -      --sftp-user string                             SSH username (default "$USER")
    -      --sharefile-chunk-size SizeSuffix              Upload chunk size (default 64Mi)
    -      --sharefile-encoding MultiEncoder              The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot)
    -      --sharefile-endpoint string                    Endpoint for API calls
    -      --sharefile-root-folder-id string              ID of the root folder
    -      --sharefile-upload-cutoff SizeSuffix           Cutoff for switching to multipart upload (default 128Mi)
    -      --sia-api-password string                      Sia Daemon API Password (obscured)
    -      --sia-api-url string                           Sia daemon API URL, like http://sia.daemon.host:9980 (default "http://127.0.0.1:9980")
    -      --sia-encoding MultiEncoder                    The encoding for the backend (default Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot)
    -      --sia-user-agent string                        Siad User Agent (default "Sia-Agent")
    -      --skip-links                                   Don't warn about skipped symlinks
    -      --storj-access-grant string                    Access grant
    -      --storj-api-key string                         API key
    -      --storj-passphrase string                      Encryption passphrase
    -      --storj-provider string                        Choose an authentication method (default "existing")
    -      --storj-satellite-address string               Satellite address (default "us-central-1.storj.io")
    -      --sugarsync-access-key-id string               Sugarsync Access Key ID
    -      --sugarsync-app-id string                      Sugarsync App ID
    -      --sugarsync-authorization string               Sugarsync authorization
    -      --sugarsync-authorization-expiry string        Sugarsync authorization expiry
    -      --sugarsync-deleted-id string                  Sugarsync deleted folder id
    -      --sugarsync-encoding MultiEncoder              The encoding for the backend (default Slash,Ctl,InvalidUtf8,Dot)
    -      --sugarsync-hard-delete                        Permanently delete files if true
    -      --sugarsync-private-access-key string          Sugarsync Private Access Key
    -      --sugarsync-refresh-token string               Sugarsync refresh token
    -      --sugarsync-root-id string                     Sugarsync root id
    -      --sugarsync-user string                        Sugarsync user
    -      --swift-application-credential-id string       Application Credential ID (OS_APPLICATION_CREDENTIAL_ID)
    -      --swift-application-credential-name string     Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME)
    -      --swift-application-credential-secret string   Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET)
    -      --swift-auth string                            Authentication URL for server (OS_AUTH_URL)
    -      --swift-auth-token string                      Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
    -      --swift-auth-version int                       AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
    -      --swift-chunk-size SizeSuffix                  Above this size files will be chunked into a _segments container (default 5Gi)
    -      --swift-domain string                          User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
    -      --swift-encoding MultiEncoder                  The encoding for the backend (default Slash,InvalidUtf8)
    -      --swift-endpoint-type string                   Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE) (default "public")
    -      --swift-env-auth                               Get swift credentials from environment variables in standard OpenStack form
    -      --swift-key string                             API key or password (OS_PASSWORD)
    -      --swift-leave-parts-on-error                   If true avoid calling abort upload on a failure
    -      --swift-no-chunk                               Don't chunk files during streaming upload
    -      --swift-region string                          Region name - optional (OS_REGION_NAME)
    -      --swift-storage-policy string                  The storage policy to use when creating a new container
    -      --swift-storage-url string                     Storage URL - optional (OS_STORAGE_URL)
    -      --swift-tenant string                          Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
    -      --swift-tenant-domain string                   Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
    -      --swift-tenant-id string                       Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
    -      --swift-user string                            User name to log in (OS_USERNAME)
    -      --swift-user-id string                         User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID)
    -      --union-action-policy string                   Policy to choose upstream on ACTION category (default "epall")
    -      --union-cache-time int                         Cache time of usage and free space (in seconds) (default 120)
    -      --union-create-policy string                   Policy to choose upstream on CREATE category (default "epmfs")
    -      --union-search-policy string                   Policy to choose upstream on SEARCH category (default "ff")
    -      --union-upstreams string                       List of space separated upstreams
    -      --uptobox-access-token string                  Your access token
    -      --uptobox-encoding MultiEncoder                The encoding for the backend (default Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot)
    -      --webdav-bearer-token string                   Bearer token instead of user/pass (e.g. a Macaroon)
    -      --webdav-bearer-token-command string           Command to run to get a bearer token
    -      --webdav-encoding string                       The encoding for the backend
    -      --webdav-headers CommaSepList                  Set HTTP headers for all transactions
    -      --webdav-pass string                           Password (obscured)
    -      --webdav-url string                            URL of http host to connect to
    -      --webdav-user string                           User name
    -      --webdav-vendor string                         Name of the Webdav site/service/software you are using
    -      --yandex-auth-url string                       Auth server URL
    -      --yandex-client-id string                      OAuth Client Id
    -      --yandex-client-secret string                  OAuth Client Secret
    -      --yandex-encoding MultiEncoder                 The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
    -      --yandex-hard-delete                           Delete files permanently rather than putting them into the trash
    -      --yandex-token string                          OAuth Access Token as a JSON blob
    -      --yandex-token-url string                      Token server url
    -      --zoho-auth-url string                         Auth server URL
    -      --zoho-client-id string                        OAuth Client Id
    -      --zoho-client-secret string                    OAuth Client Secret
    -      --zoho-encoding MultiEncoder                   The encoding for the backend (default Del,Ctl,InvalidUtf8)
    -      --zoho-region string                           Zoho region to connect to
    -      --zoho-token string                            OAuth Access Token as a JSON blob
    -      --zoho-token-url string                        Token server url
    +

    This describes the global flags available to every rclone command split into groups.

    +

    Copy

    +

    Flags for anything which can Copy a file.

    +
          --check-first                                 Do all the checks before starting transfers
    +  -c, --checksum                                    Check for changes with size & checksum (if available, or fallback to size only).
    +      --compare-dest stringArray                    Include additional comma separated server-side paths during comparison
    +      --copy-dest stringArray                       Implies --compare-dest but also copies files from paths into destination
    +      --cutoff-mode string                          Mode to stop transfers when reaching the max transfer limit HARD|SOFT|CAUTIOUS (default "HARD")
    +      --ignore-case-sync                            Ignore case when synchronizing
    +      --ignore-checksum                             Skip post copy check of checksums
    +      --ignore-existing                             Skip all files that exist on destination
    +      --ignore-size                                 Ignore size when skipping use mod-time or checksum
    +  -I, --ignore-times                                Don't skip files that match size and time - transfer all files
    +      --immutable                                   Do not modify files, fail if existing files have been modified
    +      --inplace                                     Download directly to destination file instead of atomic download to temp/rename
    +      --max-backlog int                             Maximum number of objects in sync or check backlog (default 10000)
    +      --max-duration Duration                       Maximum duration rclone will transfer data for (default 0s)
    +      --max-transfer SizeSuffix                     Maximum size of data to transfer (default off)
    +  -M, --metadata                                    If set, preserve metadata when copying objects
    +      --modify-window Duration                      Max time diff to be considered the same (default 1ns)
    +      --multi-thread-chunk-size SizeSuffix          Chunk size for multi-thread downloads / uploads, if not set by filesystem (default 64Mi)
    +      --multi-thread-cutoff SizeSuffix              Use multi-thread downloads for files above this size (default 256Mi)
    +      --multi-thread-streams int                    Number of streams to use for multi-thread downloads (default 4)
    +      --multi-thread-write-buffer-size SizeSuffix   In memory buffer size for writing when in multi-thread mode (default 128Ki)
    +      --no-check-dest                               Don't check the destination, copy regardless
    +      --no-traverse                                 Don't traverse destination file system on copy
    +      --no-update-modtime                           Don't update destination mod-time if files identical
    +      --order-by string                             Instructions on how to order the transfers, e.g. 'size,descending'
    +      --refresh-times                               Refresh the modtime of remote files
    +      --server-side-across-configs                  Allow server-side operations (e.g. copy) to work across different configs
    +      --size-only                                   Skip based on size only, not mod-time or checksum
    +      --streaming-upload-cutoff SizeSuffix          Cutoff for switching to chunked upload if file size is unknown, upload starts after reaching cutoff or when file ends (default 100Ki)
    +  -u, --update                                      Skip files that are newer on the destination
    +

    Sync

    +

    Flags just used for rclone sync.

    +
          --backup-dir string               Make backups into hierarchy based in DIR
    +      --delete-after                    When synchronizing, delete files on destination after transferring (default)
    +      --delete-before                   When synchronizing, delete files on destination before transferring
    +      --delete-during                   When synchronizing, delete files during transfer
    +      --ignore-errors                   Delete even if there are I/O errors
    +      --max-delete int                  When synchronizing, limit the number of deletes (default -1)
    +      --max-delete-size SizeSuffix      When synchronizing, limit the total size of deletes (default off)
    +      --suffix string                   Suffix to add to changed files
    +      --suffix-keep-extension           Preserve the extension when using --suffix
    +      --track-renames                   When synchronizing, track file renames and do a server-side move if possible
    +      --track-renames-strategy string   Strategies to use when synchronizing using track-renames hash|modtime|leaf (default "hash")
    +

    Important

    +

    Important flags useful for most commands.

    +
      -n, --dry-run         Do a trial run with no permanent changes
    +  -i, --interactive     Enable interactive mode
    +  -v, --verbose count   Print lots more stuff (repeat for more)
    +

    Check

    +

    Flags used for rclone check.

    +
          --max-backlog int   Maximum number of objects in sync or check backlog (default 10000)
    +

    Networking

    +

    General networking and HTTP stuff.

    +
          --bind string                        Local address to bind to for outgoing connections, IPv4, IPv6 or name
    +      --bwlimit BwTimetable                Bandwidth limit in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
    +      --bwlimit-file BwTimetable           Bandwidth limit per file in KiB/s, or use suffix B|K|M|G|T|P or a full timetable
    +      --ca-cert stringArray                CA certificate used to verify servers
    +      --client-cert string                 Client SSL certificate (PEM) for mutual TLS auth
    +      --client-key string                  Client SSL private key (PEM) for mutual TLS auth
    +      --contimeout Duration                Connect timeout (default 1m0s)
    +      --disable-http-keep-alives           Disable HTTP keep-alives and use each connection once.
    +      --disable-http2                      Disable HTTP/2 in the global transport
    +      --dscp string                        Set DSCP value to connections, value or name, e.g. CS1, LE, DF, AF21
    +      --expect-continue-timeout Duration   Timeout when using expect / 100-continue in HTTP (default 1s)
    +      --header stringArray                 Set HTTP header for all transactions
    +      --header-download stringArray        Set HTTP header for download transactions
    +      --header-upload stringArray          Set HTTP header for upload transactions
    +      --no-check-certificate               Do not verify the server SSL certificate (insecure)
    +      --no-gzip-encoding                   Don't set Accept-Encoding: gzip
    +      --timeout Duration                   IO idle timeout (default 5m0s)
    +      --tpslimit float                     Limit HTTP transactions per second to this
    +      --tpslimit-burst int                 Max burst of transactions for --tpslimit (default 1)
    +      --use-cookies                        Enable session cookiejar
    +      --user-agent string                  Set the user-agent to a specified string (default "rclone/v1.64.0")
    +

    Performance

    +

    Flags helpful for increasing performance.

    +
          --buffer-size SizeSuffix   In memory buffer size when reading files for each --transfer (default 16Mi)
    +      --checkers int             Number of checkers to run in parallel (default 8)
    +      --transfers int            Number of file transfers to run in parallel (default 4)
    +

    Config

    +

    General configuration of rclone.

    +
          --ask-password                        Allow prompt for password for encrypted configuration (default true)
    +      --auto-confirm                        If enabled, do not request console confirmation
    +      --cache-dir string                    Directory rclone will use for caching (default "$HOME/.cache/rclone")
    +      --color string                        When to show colors (and other ANSI codes) AUTO|NEVER|ALWAYS (default "AUTO")
    +      --config string                       Config file (default "$HOME/.config/rclone/rclone.conf")
    +      --default-time Time                   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --disable string                      Disable a comma separated list of features (use --disable help to see a list)
    +  -n, --dry-run                             Do a trial run with no permanent changes
    +      --error-on-no-transfer                Sets exit code 9 if no files are transferred, useful in scripts
    +      --fs-cache-expire-duration Duration   Cache remotes for this long (0 to disable caching) (default 5m0s)
    +      --fs-cache-expire-interval Duration   Interval to check for expired remotes (default 1m0s)
    +      --human-readable                      Print numbers in a human-readable format, sizes with suffix Ki|Mi|Gi|Ti|Pi
    +  -i, --interactive                         Enable interactive mode
    +      --kv-lock-time Duration               Maximum time to keep key-value database locked by process (default 1s)
    +      --low-level-retries int               Number of low level retries to do (default 10)
    +      --no-console                          Hide console window (supported on Windows only)
    +      --no-unicode-normalization            Don't normalize unicode characters in filenames
    +      --password-command SpaceSepList       Command for supplying password for encrypted configuration
    +      --retries int                         Retry operations this many times if they fail (default 3)
    +      --retries-sleep Duration              Interval between retrying operations if they fail, e.g. 500ms, 60s, 5m (0 to disable) (default 0s)
    +      --temp-dir string                     Directory rclone will use for temporary files (default "/tmp")
    +      --use-mmap                            Use mmap allocator (see docs)
    +      --use-server-modtime                  Use server modified time instead of object metadata
    +

    Debugging

    +

    Flags for developers.

    +
          --cpuprofile string   Write cpu profile to file
    +      --dump DumpFlags      List of items to dump from: headers,bodies,requests,responses,auth,filters,goroutines,openfiles
    +      --dump-bodies         Dump HTTP headers and bodies - may contain sensitive info
    +      --dump-headers        Dump HTTP headers - may contain sensitive info
    +      --memprofile string   Write memory profile to file
    +

    Filter

    +

    Flags for filtering directory listings.

    +
          --delete-excluded                     Delete files on dest excluded from sync
    +      --exclude stringArray                 Exclude files matching pattern
    +      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
    +      --exclude-if-present stringArray      Exclude directories if filename is present
    +      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
    +      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
    +  -f, --filter stringArray                  Add a file filtering rule
    +      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
    +      --ignore-case                         Ignore case in filters (case insensitive)
    +      --include stringArray                 Include files matching pattern
    +      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
    +      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --max-depth int                       If set limits the recursion depth to this (default -1)
    +      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
    +      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)
    +

    Listing

    +

    Flags for listing directories.

    +
          --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
    +      --fast-list           Use recursive list if available; uses more memory but fewer transactions
    +

    Logging

    +

    Logging and statistics.

    +
          --log-file string                     Log everything to this file
    +      --log-format string                   Comma separated list of log format options (default "date,time")
    +      --log-level string                    Log level DEBUG|INFO|NOTICE|ERROR (default "NOTICE")
    +      --log-systemd                         Activate systemd integration for the logger
    +      --max-stats-groups int                Maximum number of stats groups to keep in memory, on max oldest is discarded (default 1000)
    +  -P, --progress                            Show progress during transfer
    +      --progress-terminal-title             Show progress on the terminal title (requires -P/--progress)
    +  -q, --quiet                               Print as little stuff as possible
    +      --stats Duration                      Interval between printing stats, e.g. 500ms, 60s, 5m (0 to disable) (default 1m0s)
    +      --stats-file-name-length int          Max file name length in stats (0 for no limit) (default 45)
    +      --stats-log-level string              Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default "INFO")
    +      --stats-one-line                      Make the stats fit on one line
    +      --stats-one-line-date                 Enable --stats-one-line and add current date/time prefix
    +      --stats-one-line-date-format string   Enable --stats-one-line-date and use custom formatted date: Enclose date string in double quotes ("), see https://golang.org/pkg/time/#Time.Format
    +      --stats-unit string                   Show data rate in stats as either 'bits' or 'bytes' per second (default "bytes")
    +      --syslog                              Use Syslog for logging
    +      --syslog-facility string              Facility for syslog, e.g. KERN,USER,... (default "DAEMON")
    +      --use-json-log                        Use json log format
    +  -v, --verbose count                       Print lots more stuff (repeat for more)
    +

    Metadata

    +

    Flags to control metadata.

    +
      -M, --metadata                            If set, preserve metadata when copying objects
    +      --metadata-exclude stringArray        Exclude metadatas matching pattern
    +      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
    +      --metadata-filter stringArray         Add a metadata filtering rule
    +      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
    +      --metadata-include stringArray        Include metadatas matching pattern
    +      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
    +      --metadata-set stringArray            Add metadata key=value when uploading
    +

    RC

    +

    Flags to control the Remote Control API.

    +
          --rc                                 Enable the remote control server
    +      --rc-addr stringArray                IPaddress:Port or :Port to bind server to (default [localhost:5572])
    +      --rc-allow-origin string             Origin which cross-domain request (CORS) can be executed from
    +      --rc-baseurl string                  Prefix for URLs - leave blank for root
    +      --rc-cert string                     TLS PEM key (concatenation of certificate and CA certificate)
    +      --rc-client-ca string                Client certificate authority to verify clients with
    +      --rc-enable-metrics                  Enable prometheus metrics on /metrics
    +      --rc-files string                    Path to local files to serve on the HTTP server
    +      --rc-htpasswd string                 A htpasswd file - if not provided no authentication is done
    +      --rc-job-expire-duration Duration    Expire finished async jobs older than this value (default 1m0s)
    +      --rc-job-expire-interval Duration    Interval to check for expired async jobs (default 10s)
    +      --rc-key string                      TLS PEM Private key
    +      --rc-max-header-bytes int            Maximum size of request header (default 4096)
    +      --rc-min-tls-version string          Minimum TLS version that is acceptable (default "tls1.0")
    +      --rc-no-auth                         Don't require auth for certain methods
    +      --rc-pass string                     Password for authentication
    +      --rc-realm string                    Realm for authentication
    +      --rc-salt string                     Password hashing salt (default "dlPL2MqE")
    +      --rc-serve                           Enable the serving of remote objects
    +      --rc-server-read-timeout Duration    Timeout for server reading data (default 1h0m0s)
    +      --rc-server-write-timeout Duration   Timeout for server writing data (default 1h0m0s)
    +      --rc-template string                 User-specified template
    +      --rc-user string                     User name for authentication
    +      --rc-web-fetch-url string            URL to fetch the releases for webgui (default "https://api.github.com/repos/rclone/rclone-webui-react/releases/latest")
    +      --rc-web-gui                         Launch WebGUI on localhost
    +      --rc-web-gui-force-update            Force update to latest version of web gui
    +      --rc-web-gui-no-open-browser         Don't open the browser automatically
    +      --rc-web-gui-update                  Check and update to latest version of web gui
    +

    Backend

    +

    Backend only flags. These can be set in the config file also.

    +
          --acd-auth-url string                                 Auth server URL
    +      --acd-client-id string                                OAuth Client Id
    +      --acd-client-secret string                            OAuth Client Secret
    +      --acd-encoding MultiEncoder                           The encoding for the backend (default Slash,InvalidUtf8,Dot)
    +      --acd-templink-threshold SizeSuffix                   Files >= this size will be downloaded via their tempLink (default 9Gi)
    +      --acd-token string                                    OAuth Access Token as a JSON blob
    +      --acd-token-url string                                Token server url
    +      --acd-upload-wait-per-gb Duration                     Additional time per GiB to wait after a failed complete upload to see if it appears (default 3m0s)
    +      --alias-remote string                                 Remote or path to alias
    +      --azureblob-access-tier string                        Access tier of blob: hot, cool or archive
    +      --azureblob-account string                            Azure Storage Account Name
    +      --azureblob-archive-tier-delete                       Delete archive tier blobs before overwriting
    +      --azureblob-chunk-size SizeSuffix                     Upload chunk size (default 4Mi)
    +      --azureblob-client-certificate-password string        Password for the certificate file (optional) (obscured)
    +      --azureblob-client-certificate-path string            Path to a PEM or PKCS12 certificate file including the private key
    +      --azureblob-client-id string                          The ID of the client in use
    +      --azureblob-client-secret string                      One of the service principal's client secrets
    +      --azureblob-client-send-certificate-chain             Send the certificate chain when using certificate auth
    +      --azureblob-directory-markers                         Upload an empty object with a trailing slash when a new directory is created
    +      --azureblob-disable-checksum                          Don't store MD5 checksum with object metadata
    +      --azureblob-encoding MultiEncoder                     The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8)
    +      --azureblob-endpoint string                           Endpoint for the service
    +      --azureblob-env-auth                                  Read credentials from runtime (environment variables, CLI or MSI)
    +      --azureblob-key string                                Storage Account Shared Key
    +      --azureblob-list-chunk int                            Size of blob list (default 5000)
    +      --azureblob-msi-client-id string                      Object ID of the user-assigned MSI to use, if any
    +      --azureblob-msi-mi-res-id string                      Azure resource ID of the user-assigned MSI to use, if any
    +      --azureblob-msi-object-id string                      Object ID of the user-assigned MSI to use, if any
    +      --azureblob-no-check-container                        If set, don't attempt to check the container exists or create it
    +      --azureblob-no-head-object                            If set, do not do HEAD before GET when getting objects
    +      --azureblob-password string                           The user's password (obscured)
    +      --azureblob-public-access string                      Public access level of a container: blob or container
    +      --azureblob-sas-url string                            SAS URL for container level access only
    +      --azureblob-service-principal-file string             Path to file containing credentials for use with a service principal
    +      --azureblob-tenant string                             ID of the service principal's tenant. Also called its directory ID
    +      --azureblob-upload-concurrency int                    Concurrency for multipart uploads (default 16)
    +      --azureblob-upload-cutoff string                      Cutoff for switching to chunked upload (<= 256 MiB) (deprecated)
    +      --azureblob-use-emulator                              Uses local storage emulator if provided as 'true'
    +      --azureblob-use-msi                                   Use a managed service identity to authenticate (only works in Azure)
    +      --azureblob-username string                           User name (usually an email address)
    +      --b2-account string                                   Account ID or Application Key ID
    +      --b2-chunk-size SizeSuffix                            Upload chunk size (default 96Mi)
    +      --b2-copy-cutoff SizeSuffix                           Cutoff for switching to multipart copy (default 4Gi)
    +      --b2-disable-checksum                                 Disable checksums for large (> upload cutoff) files
    +      --b2-download-auth-duration Duration                  Time before the authorization token will expire in s or suffix ms|s|m|h|d (default 1w)
    +      --b2-download-url string                              Custom endpoint for downloads
    +      --b2-encoding MultiEncoder                            The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --b2-endpoint string                                  Endpoint for the service
    +      --b2-hard-delete                                      Permanently delete files on remote removal, otherwise hide files
    +      --b2-key string                                       Application Key
    +      --b2-test-mode string                                 A flag string for X-Bz-Test-Mode header for debugging
    +      --b2-upload-concurrency int                           Concurrency for multipart uploads (default 16)
    +      --b2-upload-cutoff SizeSuffix                         Cutoff for switching to chunked upload (default 200Mi)
    +      --b2-version-at Time                                  Show file versions as they were at the specified time (default off)
    +      --b2-versions                                         Include old versions in directory listings
    +      --box-access-token string                             Box App Primary Access Token
    +      --box-auth-url string                                 Auth server URL
    +      --box-box-config-file string                          Box App config.json location
    +      --box-box-sub-type string                              (default "user")
    +      --box-client-id string                                OAuth Client Id
    +      --box-client-secret string                            OAuth Client Secret
    +      --box-commit-retries int                              Max number of times to try committing a multipart file (default 100)
    +      --box-encoding MultiEncoder                           The encoding for the backend (default Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot)
    +      --box-impersonate string                              Impersonate this user ID when using a service account
    +      --box-list-chunk int                                  Size of listing chunk 1-1000 (default 1000)
    +      --box-owned-by string                                 Only show items owned by the login (email address) passed in
    +      --box-root-folder-id string                           Fill in for rclone to use a non root folder as its starting point
    +      --box-token string                                    OAuth Access Token as a JSON blob
    +      --box-token-url string                                Token server url
    +      --box-upload-cutoff SizeSuffix                        Cutoff for switching to multipart upload (>= 50 MiB) (default 50Mi)
    +      --cache-chunk-clean-interval Duration                 How often should the cache perform cleanups of the chunk storage (default 1m0s)
    +      --cache-chunk-no-memory                               Disable the in-memory cache for storing chunks during streaming
    +      --cache-chunk-path string                             Directory to cache chunk files (default "$HOME/.cache/rclone/cache-backend")
    +      --cache-chunk-size SizeSuffix                         The size of a chunk (partial file data) (default 5Mi)
    +      --cache-chunk-total-size SizeSuffix                   The total size that the chunks can take up on the local disk (default 10Gi)
    +      --cache-db-path string                                Directory to store file structure metadata DB (default "$HOME/.cache/rclone/cache-backend")
    +      --cache-db-purge                                      Clear all the cached data for this remote on start
    +      --cache-db-wait-time Duration                         How long to wait for the DB to be available - 0 is unlimited (default 1s)
    +      --cache-info-age Duration                             How long to cache file structure information (directory listings, file size, times, etc.) (default 6h0m0s)
    +      --cache-plex-insecure string                          Skip all certificate verification when connecting to the Plex server
    +      --cache-plex-password string                          The password of the Plex user (obscured)
    +      --cache-plex-url string                               The URL of the Plex server
    +      --cache-plex-username string                          The username of the Plex user
    +      --cache-read-retries int                              How many times to retry a read from a cache storage (default 10)
    +      --cache-remote string                                 Remote to cache
    +      --cache-rps int                                       Limits the number of requests per second to the source FS (-1 to disable) (default -1)
    +      --cache-tmp-upload-path string                        Directory to keep temporary files until they are uploaded
    +      --cache-tmp-wait-time Duration                        How long should files be stored in local cache before being uploaded (default 15s)
    +      --cache-workers int                                   How many workers should run in parallel to download chunks (default 4)
    +      --cache-writes                                        Cache file data on writes through the FS
    +      --chunker-chunk-size SizeSuffix                       Files larger than chunk size will be split in chunks (default 2Gi)
    +      --chunker-fail-hard                                   Choose how chunker should handle files with missing or invalid chunks
    +      --chunker-hash-type string                            Choose how chunker handles hash sums (default "md5")
    +      --chunker-remote string                               Remote to chunk/unchunk
    +      --combine-upstreams SpaceSepList                      Upstreams for combining
    +      --compress-level int                                  GZIP compression level (-2 to 9) (default -1)
    +      --compress-mode string                                Compression mode (default "gzip")
    +      --compress-ram-cache-limit SizeSuffix                 Some remotes don't allow the upload of files with unknown size (default 20Mi)
    +      --compress-remote string                              Remote to compress
    +  -L, --copy-links                                          Follow symlinks and copy the pointed to item
    +      --crypt-directory-name-encryption                     Option to either encrypt directory names or leave them intact (default true)
    +      --crypt-filename-encoding string                      How to encode the encrypted filename to text string (default "base32")
    +      --crypt-filename-encryption string                    How to encrypt the filenames (default "standard")
    +      --crypt-no-data-encryption                            Option to either encrypt file data or leave it unencrypted
    +      --crypt-pass-bad-blocks                               If set this will pass bad blocks through as all 0
    +      --crypt-password string                               Password or pass phrase for encryption (obscured)
    +      --crypt-password2 string                              Password or pass phrase for salt (obscured)
    +      --crypt-remote string                                 Remote to encrypt/decrypt
    +      --crypt-server-side-across-configs                    Deprecated: use --server-side-across-configs instead
    +      --crypt-show-mapping                                  For all files listed show how the names encrypt
    +      --crypt-suffix string                                 If this is set it will override the default suffix of ".bin" (default ".bin")
    +      --drive-acknowledge-abuse                             Set to allow files which return cannotDownloadAbusiveFile to be downloaded
    +      --drive-allow-import-name-change                      Allow the filetype to change when uploading Google docs
    +      --drive-auth-owner-only                               Only consider files owned by the authenticated user
    +      --drive-auth-url string                               Auth server URL
    +      --drive-chunk-size SizeSuffix                         Upload chunk size (default 8Mi)
    +      --drive-client-id string                              Google Application Client Id
    +      --drive-client-secret string                          OAuth Client Secret
    +      --drive-copy-shortcut-content                         Server side copy contents of shortcuts instead of the shortcut
    +      --drive-disable-http2                                 Disable drive using http2 (default true)
    +      --drive-encoding MultiEncoder                         The encoding for the backend (default InvalidUtf8)
    +      --drive-env-auth                                      Get IAM credentials from runtime (environment variables or instance meta data if no env vars)
    +      --drive-export-formats string                         Comma separated list of preferred formats for downloading Google docs (default "docx,xlsx,pptx,svg")
    +      --drive-fast-list-bug-fix                             Work around a bug in Google Drive listing (default true)
    +      --drive-formats string                                Deprecated: See export_formats
    +      --drive-impersonate string                            Impersonate this user when using a service account
    +      --drive-import-formats string                         Comma separated list of preferred formats for uploading Google docs
    +      --drive-keep-revision-forever                         Keep new head revision of each file forever
    +      --drive-list-chunk int                                Size of listing chunk 100-1000, 0 to disable (default 1000)
    +      --drive-pacer-burst int                               Number of API calls to allow without sleeping (default 100)
    +      --drive-pacer-min-sleep Duration                      Minimum time to sleep between API calls (default 100ms)
    +      --drive-resource-key string                           Resource key for accessing a link-shared file
    +      --drive-root-folder-id string                         ID of the root folder
    +      --drive-scope string                                  Scope that rclone should use when requesting access from drive
    +      --drive-server-side-across-configs                    Deprecated: use --server-side-across-configs instead
    +      --drive-service-account-credentials string            Service Account Credentials JSON blob
    +      --drive-service-account-file string                   Service Account Credentials JSON file path
    +      --drive-shared-with-me                                Only show files that are shared with me
    +      --drive-size-as-quota                                 Show sizes as storage quota usage, not actual size
    +      --drive-skip-checksum-gphotos                         Skip MD5 checksum on Google photos and videos only
    +      --drive-skip-dangling-shortcuts                       If set skip dangling shortcut files
    +      --drive-skip-gdocs                                    Skip google documents in all listings
    +      --drive-skip-shortcuts                                If set skip shortcut files
    +      --drive-starred-only                                  Only show files that are starred
    +      --drive-stop-on-download-limit                        Make download limit errors be fatal
    +      --drive-stop-on-upload-limit                          Make upload limit errors be fatal
    +      --drive-team-drive string                             ID of the Shared Drive (Team Drive)
    +      --drive-token string                                  OAuth Access Token as a JSON blob
    +      --drive-token-url string                              Token server url
    +      --drive-trashed-only                                  Only show files that are in the trash
    +      --drive-upload-cutoff SizeSuffix                      Cutoff for switching to chunked upload (default 8Mi)
    +      --drive-use-created-date                              Use file created date instead of modified date
    +      --drive-use-shared-date                               Use date file was shared instead of modified date
    +      --drive-use-trash                                     Send files to the trash instead of deleting permanently (default true)
    +      --drive-v2-download-min-size SizeSuffix               If Object's are greater, use drive v2 API to download (default off)
    +      --dropbox-auth-url string                             Auth server URL
    +      --dropbox-batch-commit-timeout Duration               Max time to wait for a batch to finish committing (default 10m0s)
    +      --dropbox-batch-mode string                           Upload file batching sync|async|off (default "sync")
    +      --dropbox-batch-size int                              Max number of files in upload batch
    +      --dropbox-batch-timeout Duration                      Max time to allow an idle upload batch before uploading (default 0s)
    +      --dropbox-chunk-size SizeSuffix                       Upload chunk size (< 150Mi) (default 48Mi)
    +      --dropbox-client-id string                            OAuth Client Id
    +      --dropbox-client-secret string                        OAuth Client Secret
    +      --dropbox-encoding MultiEncoder                       The encoding for the backend (default Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot)
    +      --dropbox-impersonate string                          Impersonate this user when using a business account
    +      --dropbox-pacer-min-sleep Duration                    Minimum time to sleep between API calls (default 10ms)
    +      --dropbox-shared-files                                Instructs rclone to work on individual shared files
    +      --dropbox-shared-folders                              Instructs rclone to work on shared folders
    +      --dropbox-token string                                OAuth Access Token as a JSON blob
    +      --dropbox-token-url string                            Token server url
    +      --fichier-api-key string                              Your API Key, get it from https://1fichier.com/console/params.pl
    +      --fichier-cdn                                         Set if you wish to use CDN download links
    +      --fichier-encoding MultiEncoder                       The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot)
    +      --fichier-file-password string                        If you want to download a shared file that is password protected, add this parameter (obscured)
    +      --fichier-folder-password string                      If you want to list the files in a shared folder that is password protected, add this parameter (obscured)
    +      --fichier-shared-folder string                        If you want to download a shared folder, add this parameter
    +      --filefabric-encoding MultiEncoder                    The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
    +      --filefabric-permanent-token string                   Permanent Authentication Token
    +      --filefabric-root-folder-id string                    ID of the root folder
    +      --filefabric-token string                             Session Token
    +      --filefabric-token-expiry string                      Token expiry time
    +      --filefabric-url string                               URL of the Enterprise File Fabric to connect to
    +      --filefabric-version string                           Version read from the file fabric
    +      --ftp-ask-password                                    Allow asking for FTP password when needed
    +      --ftp-close-timeout Duration                          Maximum time to wait for a response to close (default 1m0s)
    +      --ftp-concurrency int                                 Maximum number of FTP simultaneous connections, 0 for unlimited
    +      --ftp-disable-epsv                                    Disable using EPSV even if server advertises support
    +      --ftp-disable-mlsd                                    Disable using MLSD even if server advertises support
    +      --ftp-disable-tls13                                   Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
    +      --ftp-disable-utf8                                    Disable using UTF-8 even if server advertises support
    +      --ftp-encoding MultiEncoder                           The encoding for the backend (default Slash,Del,Ctl,RightSpace,Dot)
    +      --ftp-explicit-tls                                    Use Explicit FTPS (FTP over TLS)
    +      --ftp-force-list-hidden                               Use LIST -a to force listing of hidden files and folders. This will disable the use of MLSD
    +      --ftp-host string                                     FTP host to connect to
    +      --ftp-idle-timeout Duration                           Max time before closing idle connections (default 1m0s)
    +      --ftp-no-check-certificate                            Do not verify the TLS certificate of the server
    +      --ftp-pass string                                     FTP password (obscured)
    +      --ftp-port int                                        FTP port number (default 21)
    +      --ftp-shut-timeout Duration                           Maximum time to wait for data connection closing status (default 1m0s)
    +      --ftp-socks-proxy string                              Socks 5 proxy host
    +      --ftp-tls                                             Use Implicit FTPS (FTP over TLS)
    +      --ftp-tls-cache-size int                              Size of TLS session cache for all control and data connections (default 32)
    +      --ftp-user string                                     FTP username (default "$USER")
    +      --ftp-writing-mdtm                                    Use MDTM to set modification time (VsFtpd quirk)
    +      --gcs-anonymous                                       Access public buckets and objects without credentials
    +      --gcs-auth-url string                                 Auth server URL
    +      --gcs-bucket-acl string                               Access Control List for new buckets
    +      --gcs-bucket-policy-only                              Access checks should use bucket-level IAM policies
    +      --gcs-client-id string                                OAuth Client Id
    +      --gcs-client-secret string                            OAuth Client Secret
    +      --gcs-decompress                                      If set this will decompress gzip encoded objects
    +      --gcs-directory-markers                               Upload an empty object with a trailing slash when a new directory is created
    +      --gcs-encoding MultiEncoder                           The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
    +      --gcs-endpoint string                                 Endpoint for the service
    +      --gcs-env-auth                                        Get GCP IAM credentials from runtime (environment variables or instance meta data if no env vars)
    +      --gcs-location string                                 Location for the newly created buckets
    +      --gcs-no-check-bucket                                 If set, don't attempt to check the bucket exists or create it
    +      --gcs-object-acl string                               Access Control List for new objects
    +      --gcs-project-number string                           Project number
    +      --gcs-service-account-file string                     Service Account Credentials JSON file path
    +      --gcs-storage-class string                            The storage class to use when storing objects in Google Cloud Storage
    +      --gcs-token string                                    OAuth Access Token as a JSON blob
    +      --gcs-token-url string                                Token server url
    +      --gcs-user-project string                             User project
    +      --gphotos-auth-url string                             Auth server URL
    +      --gphotos-client-id string                            OAuth Client Id
    +      --gphotos-client-secret string                        OAuth Client Secret
    +      --gphotos-encoding MultiEncoder                       The encoding for the backend (default Slash,CrLf,InvalidUtf8,Dot)
    +      --gphotos-include-archived                            Also view and download archived media
    +      --gphotos-read-only                                   Set to make the Google Photos backend read only
    +      --gphotos-read-size                                   Set to read the size of media items
    +      --gphotos-start-year int                              Year limits the photos to be downloaded to those which are uploaded after the given year (default 2000)
    +      --gphotos-token string                                OAuth Access Token as a JSON blob
    +      --gphotos-token-url string                            Token server url
    +      --hasher-auto-size SizeSuffix                         Auto-update checksum for files smaller than this size (disabled by default)
    +      --hasher-hashes CommaSepList                          Comma separated list of supported checksum types (default md5,sha1)
    +      --hasher-max-age Duration                             Maximum time to keep checksums in cache (0 = no cache, off = cache forever) (default off)
    +      --hasher-remote string                                Remote to cache checksums for (e.g. myRemote:path)
    +      --hdfs-data-transfer-protection string                Kerberos data transfer protection: authentication|integrity|privacy
    +      --hdfs-encoding MultiEncoder                          The encoding for the backend (default Slash,Colon,Del,Ctl,InvalidUtf8,Dot)
    +      --hdfs-namenode string                                Hadoop name node and port
    +      --hdfs-service-principal-name string                  Kerberos service principal name for the namenode
    +      --hdfs-username string                                Hadoop user name
    +      --hidrive-auth-url string                             Auth server URL
    +      --hidrive-chunk-size SizeSuffix                       Chunksize for chunked uploads (default 48Mi)
    +      --hidrive-client-id string                            OAuth Client Id
    +      --hidrive-client-secret string                        OAuth Client Secret
    +      --hidrive-disable-fetching-member-count               Do not fetch number of objects in directories unless it is absolutely necessary
    +      --hidrive-encoding MultiEncoder                       The encoding for the backend (default Slash,Dot)
    +      --hidrive-endpoint string                             Endpoint for the service (default "https://api.hidrive.strato.com/2.1")
    +      --hidrive-root-prefix string                          The root/parent folder for all paths (default "/")
    +      --hidrive-scope-access string                         Access permissions that rclone should use when requesting access from HiDrive (default "rw")
    +      --hidrive-scope-role string                           User-level that rclone should use when requesting access from HiDrive (default "user")
    +      --hidrive-token string                                OAuth Access Token as a JSON blob
    +      --hidrive-token-url string                            Token server url
    +      --hidrive-upload-concurrency int                      Concurrency for chunked uploads (default 4)
    +      --hidrive-upload-cutoff SizeSuffix                    Cutoff/Threshold for chunked uploads (default 96Mi)
    +      --http-headers CommaSepList                           Set HTTP headers for all transactions
    +      --http-no-head                                        Don't use HEAD requests
    +      --http-no-slash                                       Set this if the site doesn't end directories with /
    +      --http-url string                                     URL of HTTP host to connect to
    +      --internetarchive-access-key-id string                IAS3 Access Key
    +      --internetarchive-disable-checksum                    Don't ask the server to test against MD5 checksum calculated by rclone (default true)
    +      --internetarchive-encoding MultiEncoder               The encoding for the backend (default Slash,LtGt,CrLf,Del,Ctl,InvalidUtf8,Dot)
    +      --internetarchive-endpoint string                     IAS3 Endpoint (default "https://s3.us.archive.org")
    +      --internetarchive-front-endpoint string               Host of InternetArchive Frontend (default "https://archive.org")
    +      --internetarchive-secret-access-key string            IAS3 Secret Key (password)
    +      --internetarchive-wait-archive Duration               Timeout for waiting the server's processing tasks (specifically archive and book_op) to finish (default 0s)
    +      --jottacloud-auth-url string                          Auth server URL
    +      --jottacloud-client-id string                         OAuth Client Id
    +      --jottacloud-client-secret string                     OAuth Client Secret
    +      --jottacloud-encoding MultiEncoder                    The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot)
    +      --jottacloud-hard-delete                              Delete files permanently rather than putting them into the trash
    +      --jottacloud-md5-memory-limit SizeSuffix              Files bigger than this will be cached on disk to calculate the MD5 if required (default 10Mi)
    +      --jottacloud-no-versions                              Avoid server side versioning by deleting files and recreating files instead of overwriting them
    +      --jottacloud-token string                             OAuth Access Token as a JSON blob
    +      --jottacloud-token-url string                         Token server url
    +      --jottacloud-trashed-only                             Only show files that are in the trash
    +      --jottacloud-upload-resume-limit SizeSuffix           Files bigger than this can be resumed if the upload fail's (default 10Mi)
    +      --koofr-encoding MultiEncoder                         The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --koofr-endpoint string                               The Koofr API endpoint to use
    +      --koofr-mountid string                                Mount ID of the mount to use
    +      --koofr-password string                               Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password) (obscured)
    +      --koofr-provider string                               Choose your storage provider
    +      --koofr-setmtime                                      Does the backend support setting modification time (default true)
    +      --koofr-user string                                   Your user name
    +  -l, --links                                               Translate symlinks to/from regular files with a '.rclonelink' extension
    +      --local-case-insensitive                              Force the filesystem to report itself as case insensitive
    +      --local-case-sensitive                                Force the filesystem to report itself as case sensitive
    +      --local-encoding MultiEncoder                         The encoding for the backend (default Slash,Dot)
    +      --local-no-check-updated                              Don't check to see if the files change during upload
    +      --local-no-preallocate                                Disable preallocation of disk space for transferred files
    +      --local-no-set-modtime                                Disable setting modtime
    +      --local-no-sparse                                     Disable sparse files for multi-thread downloads
    +      --local-nounc                                         Disable UNC (long path names) conversion on Windows
    +      --local-unicode-normalization                         Apply unicode NFC normalization to paths and filenames
    +      --local-zero-size-links                               Assume the Stat size of links is zero (and read them instead) (deprecated)
    +      --mailru-auth-url string                              Auth server URL
    +      --mailru-check-hash                                   What should copy do if file checksum is mismatched or invalid (default true)
    +      --mailru-client-id string                             OAuth Client Id
    +      --mailru-client-secret string                         OAuth Client Secret
    +      --mailru-encoding MultiEncoder                        The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --mailru-pass string                                  Password (obscured)
    +      --mailru-speedup-enable                               Skip full upload if there is another file with same data hash (default true)
    +      --mailru-speedup-file-patterns string                 Comma separated list of file name patterns eligible for speedup (put by hash) (default "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf")
    +      --mailru-speedup-max-disk SizeSuffix                  This option allows you to disable speedup (put by hash) for large files (default 3Gi)
    +      --mailru-speedup-max-memory SizeSuffix                Files larger than the size given below will always be hashed on disk (default 32Mi)
    +      --mailru-token string                                 OAuth Access Token as a JSON blob
    +      --mailru-token-url string                             Token server url
    +      --mailru-user string                                  User name (usually email)
    +      --mega-debug                                          Output more debug from Mega
    +      --mega-encoding MultiEncoder                          The encoding for the backend (default Slash,InvalidUtf8,Dot)
    +      --mega-hard-delete                                    Delete files permanently rather than putting them into the trash
    +      --mega-pass string                                    Password (obscured)
    +      --mega-use-https                                      Use HTTPS for transfers
    +      --mega-user string                                    User name
    +      --netstorage-account string                           Set the NetStorage account name
    +      --netstorage-host string                              Domain+path of NetStorage host to connect to
    +      --netstorage-protocol string                          Select between HTTP or HTTPS protocol (default "https")
    +      --netstorage-secret string                            Set the NetStorage account secret/G2O key for authentication (obscured)
    +  -x, --one-file-system                                     Don't cross filesystem boundaries (unix/macOS only)
    +      --onedrive-access-scopes SpaceSepList                 Set scopes to be requested by rclone (default Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access)
    +      --onedrive-auth-url string                            Auth server URL
    +      --onedrive-av-override                                Allows download of files the server thinks has a virus
    +      --onedrive-chunk-size SizeSuffix                      Chunk size to upload files with - must be multiple of 320k (327,680 bytes) (default 10Mi)
    +      --onedrive-client-id string                           OAuth Client Id
    +      --onedrive-client-secret string                       OAuth Client Secret
    +      --onedrive-drive-id string                            The ID of the drive to use
    +      --onedrive-drive-type string                          The type of the drive (personal | business | documentLibrary)
    +      --onedrive-encoding MultiEncoder                      The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8,Dot)
    +      --onedrive-expose-onenote-files                       Set to make OneNote files show up in directory listings
    +      --onedrive-hash-type string                           Specify the hash in use for the backend (default "auto")
    +      --onedrive-link-password string                       Set the password for links created by the link command
    +      --onedrive-link-scope string                          Set the scope of the links created by the link command (default "anonymous")
    +      --onedrive-link-type string                           Set the type of the links created by the link command (default "view")
    +      --onedrive-list-chunk int                             Size of listing chunk (default 1000)
    +      --onedrive-no-versions                                Remove all versions on modifying operations
    +      --onedrive-region string                              Choose national cloud region for OneDrive (default "global")
    +      --onedrive-root-folder-id string                      ID of the root folder
    +      --onedrive-server-side-across-configs                 Deprecated: use --server-side-across-configs instead
    +      --onedrive-token string                               OAuth Access Token as a JSON blob
    +      --onedrive-token-url string                           Token server url
    +      --oos-attempt-resume-upload                           If true attempt to resume previously started multipart upload for the object
    +      --oos-chunk-size SizeSuffix                           Chunk size to use for uploading (default 5Mi)
    +      --oos-compartment string                              Object storage compartment OCID
    +      --oos-config-file string                              Path to OCI config file (default "~/.oci/config")
    +      --oos-config-profile string                           Profile name inside the oci config file (default "Default")
    +      --oos-copy-cutoff SizeSuffix                          Cutoff for switching to multipart copy (default 4.656Gi)
    +      --oos-copy-timeout Duration                           Timeout for copy (default 1m0s)
    +      --oos-disable-checksum                                Don't store MD5 checksum with object metadata
    +      --oos-encoding MultiEncoder                           The encoding for the backend (default Slash,InvalidUtf8,Dot)
    +      --oos-endpoint string                                 Endpoint for Object storage API
    +      --oos-leave-parts-on-error                            If true avoid calling abort upload on a failure, leaving all successfully uploaded parts for manual recovery
    +      --oos-max-upload-parts int                            Maximum number of parts in a multipart upload (default 10000)
    +      --oos-namespace string                                Object storage namespace
    +      --oos-no-check-bucket                                 If set, don't attempt to check the bucket exists or create it
    +      --oos-provider string                                 Choose your Auth Provider (default "env_auth")
    +      --oos-region string                                   Object storage Region
    +      --oos-sse-customer-algorithm string                   If using SSE-C, the optional header that specifies "AES256" as the encryption algorithm
    +      --oos-sse-customer-key string                         To use SSE-C, the optional header that specifies the base64-encoded 256-bit encryption key to use to
    +      --oos-sse-customer-key-file string                    To use SSE-C, a file containing the base64-encoded string of the AES-256 encryption key associated
    +      --oos-sse-customer-key-sha256 string                  If using SSE-C, The optional header that specifies the base64-encoded SHA256 hash of the encryption
    +      --oos-sse-kms-key-id string                           if using your own master key in vault, this header specifies the
    +      --oos-storage-tier string                             The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm (default "Standard")
    +      --oos-upload-concurrency int                          Concurrency for multipart uploads (default 10)
    +      --oos-upload-cutoff SizeSuffix                        Cutoff for switching to chunked upload (default 200Mi)
    +      --opendrive-chunk-size SizeSuffix                     Files will be uploaded in chunks this size (default 10Mi)
    +      --opendrive-encoding MultiEncoder                     The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot)
    +      --opendrive-password string                           Password (obscured)
    +      --opendrive-username string                           Username
    +      --pcloud-auth-url string                              Auth server URL
    +      --pcloud-client-id string                             OAuth Client Id
    +      --pcloud-client-secret string                         OAuth Client Secret
    +      --pcloud-encoding MultiEncoder                        The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --pcloud-hostname string                              Hostname to connect to (default "api.pcloud.com")
    +      --pcloud-password string                              Your pcloud password (obscured)
    +      --pcloud-root-folder-id string                        Fill in for rclone to use a non root folder as its starting point (default "d0")
    +      --pcloud-token string                                 OAuth Access Token as a JSON blob
    +      --pcloud-token-url string                             Token server url
    +      --pcloud-username string                              Your pcloud username
    +      --pikpak-auth-url string                              Auth server URL
    +      --pikpak-client-id string                             OAuth Client Id
    +      --pikpak-client-secret string                         OAuth Client Secret
    +      --pikpak-encoding MultiEncoder                        The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,RightSpace,RightPeriod,InvalidUtf8,Dot)
    +      --pikpak-hash-memory-limit SizeSuffix                 Files bigger than this will be cached on disk to calculate hash if required (default 10Mi)
    +      --pikpak-pass string                                  Pikpak password (obscured)
    +      --pikpak-root-folder-id string                        ID of the root folder
    +      --pikpak-token string                                 OAuth Access Token as a JSON blob
    +      --pikpak-token-url string                             Token server url
    +      --pikpak-trashed-only                                 Only show files that are in the trash
    +      --pikpak-use-trash                                    Send files to the trash instead of deleting permanently (default true)
    +      --pikpak-user string                                  Pikpak username
    +      --premiumizeme-auth-url string                        Auth server URL
    +      --premiumizeme-client-id string                       OAuth Client Id
    +      --premiumizeme-client-secret string                   OAuth Client Secret
    +      --premiumizeme-encoding MultiEncoder                  The encoding for the backend (default Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --premiumizeme-token string                           OAuth Access Token as a JSON blob
    +      --premiumizeme-token-url string                       Token server url
    +      --protondrive-2fa string                              The 2FA code
    +      --protondrive-app-version string                      The app version string (default "macos-drive@1.0.0-alpha.1+rclone")
    +      --protondrive-enable-caching                          Caches the files and folders metadata to reduce API calls (default true)
    +      --protondrive-encoding MultiEncoder                   The encoding for the backend (default Slash,LeftSpace,RightSpace,InvalidUtf8,Dot)
    +      --protondrive-mailbox-password string                 The mailbox password of your two-password proton account (obscured)
    +      --protondrive-original-file-size                      Return the file size before encryption (default true)
    +      --protondrive-password string                         The password of your proton account (obscured)
    +      --protondrive-replace-existing-draft                  Create a new revision when filename conflict is detected
    +      --protondrive-username string                         The username of your proton account
    +      --putio-auth-url string                               Auth server URL
    +      --putio-client-id string                              OAuth Client Id
    +      --putio-client-secret string                          OAuth Client Secret
    +      --putio-encoding MultiEncoder                         The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --putio-token string                                  OAuth Access Token as a JSON blob
    +      --putio-token-url string                              Token server url
    +      --qingstor-access-key-id string                       QingStor Access Key ID
    +      --qingstor-chunk-size SizeSuffix                      Chunk size to use for uploading (default 4Mi)
    +      --qingstor-connection-retries int                     Number of connection retries (default 3)
    +      --qingstor-encoding MultiEncoder                      The encoding for the backend (default Slash,Ctl,InvalidUtf8)
    +      --qingstor-endpoint string                            Enter an endpoint URL to connection QingStor API
    +      --qingstor-env-auth                                   Get QingStor credentials from runtime
    +      --qingstor-secret-access-key string                   QingStor Secret Access Key (password)
    +      --qingstor-upload-concurrency int                     Concurrency for multipart uploads (default 1)
    +      --qingstor-upload-cutoff SizeSuffix                   Cutoff for switching to chunked upload (default 200Mi)
    +      --qingstor-zone string                                Zone to connect to
    +      --quatrix-api-key string                              API key for accessing Quatrix account
    +      --quatrix-effective-upload-time string                Wanted upload time for one chunk (default "4s")
    +      --quatrix-encoding MultiEncoder                       The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot)
    +      --quatrix-hard-delete                                 Delete files permanently rather than putting them into the trash
    +      --quatrix-host string                                 Host name of Quatrix account
    +      --quatrix-maximal-summary-chunk-size SizeSuffix       The maximal summary for all chunks. It should not be less than 'transfers'*'minimal_chunk_size' (default 95.367Mi)
    +      --quatrix-minimal-chunk-size SizeSuffix               The minimal size for one chunk (default 9.537Mi)
    +      --s3-access-key-id string                             AWS Access Key ID
    +      --s3-acl string                                       Canned ACL used when creating buckets and storing or copying objects
    +      --s3-bucket-acl string                                Canned ACL used when creating buckets
    +      --s3-chunk-size SizeSuffix                            Chunk size to use for uploading (default 5Mi)
    +      --s3-copy-cutoff SizeSuffix                           Cutoff for switching to multipart copy (default 4.656Gi)
    +      --s3-decompress                                       If set this will decompress gzip encoded objects
    +      --s3-directory-markers                                Upload an empty object with a trailing slash when a new directory is created
    +      --s3-disable-checksum                                 Don't store MD5 checksum with object metadata
    +      --s3-disable-http2                                    Disable usage of http2 for S3 backends
    +      --s3-download-url string                              Custom endpoint for downloads
    +      --s3-encoding MultiEncoder                            The encoding for the backend (default Slash,InvalidUtf8,Dot)
    +      --s3-endpoint string                                  Endpoint for S3 API
    +      --s3-env-auth                                         Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars)
    +      --s3-force-path-style                                 If true use path style access if false use virtual hosted style (default true)
    +      --s3-leave-parts-on-error                             If true avoid calling abort upload on a failure, leaving all successfully uploaded parts on S3 for manual recovery
    +      --s3-list-chunk int                                   Size of listing chunk (response list for each ListObject S3 request) (default 1000)
    +      --s3-list-url-encode Tristate                         Whether to url encode listings: true/false/unset (default unset)
    +      --s3-list-version int                                 Version of ListObjects to use: 1,2 or 0 for auto
    +      --s3-location-constraint string                       Location constraint - must be set to match the Region
    +      --s3-max-upload-parts int                             Maximum number of parts in a multipart upload (default 10000)
    +      --s3-might-gzip Tristate                              Set this if the backend might gzip objects (default unset)
    +      --s3-no-check-bucket                                  If set, don't attempt to check the bucket exists or create it
    +      --s3-no-head                                          If set, don't HEAD uploaded objects to check integrity
    +      --s3-no-head-object                                   If set, do not do HEAD before GET when getting objects
    +      --s3-no-system-metadata                               Suppress setting and reading of system metadata
    +      --s3-profile string                                   Profile to use in the shared credentials file
    +      --s3-provider string                                  Choose your S3 provider
    +      --s3-region string                                    Region to connect to
    +      --s3-requester-pays                                   Enables requester pays option when interacting with S3 bucket
    +      --s3-secret-access-key string                         AWS Secret Access Key (password)
    +      --s3-server-side-encryption string                    The server-side encryption algorithm used when storing this object in S3
    +      --s3-session-token string                             An AWS session token
    +      --s3-shared-credentials-file string                   Path to the shared credentials file
    +      --s3-sse-customer-algorithm string                    If using SSE-C, the server-side encryption algorithm used when storing this object in S3
    +      --s3-sse-customer-key string                          To use SSE-C you may provide the secret encryption key used to encrypt/decrypt your data
    +      --s3-sse-customer-key-base64 string                   If using SSE-C you must provide the secret encryption key encoded in base64 format to encrypt/decrypt your data
    +      --s3-sse-customer-key-md5 string                      If using SSE-C you may provide the secret encryption key MD5 checksum (optional)
    +      --s3-sse-kms-key-id string                            If using KMS ID you must provide the ARN of Key
    +      --s3-storage-class string                             The storage class to use when storing new objects in S3
    +      --s3-sts-endpoint string                              Endpoint for STS
    +      --s3-upload-concurrency int                           Concurrency for multipart uploads (default 4)
    +      --s3-upload-cutoff SizeSuffix                         Cutoff for switching to chunked upload (default 200Mi)
    +      --s3-use-accelerate-endpoint                          If true use the AWS S3 accelerated endpoint
    +      --s3-use-accept-encoding-gzip Accept-Encoding: gzip   Whether to send Accept-Encoding: gzip header (default unset)
    +      --s3-use-multipart-etag Tristate                      Whether to use ETag in multipart uploads for verification (default unset)
    +      --s3-use-presigned-request                            Whether to use a presigned request or PutObject for single part uploads
    +      --s3-v2-auth                                          If true use v2 authentication
    +      --s3-version-at Time                                  Show file versions as they were at the specified time (default off)
    +      --s3-versions                                         Include old versions in directory listings
    +      --seafile-2fa                                         Two-factor authentication ('true' if the account has 2FA enabled)
    +      --seafile-create-library                              Should rclone create a library if it doesn't exist
    +      --seafile-encoding MultiEncoder                       The encoding for the backend (default Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8)
    +      --seafile-library string                              Name of the library
    +      --seafile-library-key string                          Library password (for encrypted libraries only) (obscured)
    +      --seafile-pass string                                 Password (obscured)
    +      --seafile-url string                                  URL of seafile host to connect to
    +      --seafile-user string                                 User name (usually email address)
    +      --sftp-ask-password                                   Allow asking for SFTP password when needed
    +      --sftp-chunk-size SizeSuffix                          Upload and download chunk size (default 32Ki)
    +      --sftp-ciphers SpaceSepList                           Space separated list of ciphers to be used for session encryption, ordered by preference
    +      --sftp-concurrency int                                The maximum number of outstanding requests for one file (default 64)
    +      --sftp-disable-concurrent-reads                       If set don't use concurrent reads
    +      --sftp-disable-concurrent-writes                      If set don't use concurrent writes
    +      --sftp-disable-hashcheck                              Disable the execution of SSH commands to determine if remote file hashing is available
    +      --sftp-host string                                    SSH host to connect to
    +      --sftp-host-key-algorithms SpaceSepList               Space separated list of host key algorithms, ordered by preference
    +      --sftp-idle-timeout Duration                          Max time before closing idle connections (default 1m0s)
    +      --sftp-key-exchange SpaceSepList                      Space separated list of key exchange algorithms, ordered by preference
    +      --sftp-key-file string                                Path to PEM-encoded private key file
    +      --sftp-key-file-pass string                           The passphrase to decrypt the PEM-encoded private key file (obscured)
    +      --sftp-key-pem string                                 Raw PEM-encoded private key
    +      --sftp-key-use-agent                                  When set forces the usage of the ssh-agent
    +      --sftp-known-hosts-file string                        Optional path to known_hosts file
    +      --sftp-macs SpaceSepList                              Space separated list of MACs (message authentication code) algorithms, ordered by preference
    +      --sftp-md5sum-command string                          The command used to read md5 hashes
    +      --sftp-pass string                                    SSH password, leave blank to use ssh-agent (obscured)
    +      --sftp-path-override string                           Override path used by SSH shell commands
    +      --sftp-port int                                       SSH port number (default 22)
    +      --sftp-pubkey-file string                             Optional path to public key file
    +      --sftp-server-command string                          Specifies the path or command to run a sftp server on the remote host
    +      --sftp-set-env SpaceSepList                           Environment variables to pass to sftp and commands
    +      --sftp-set-modtime                                    Set the modified time on the remote if set (default true)
    +      --sftp-sha1sum-command string                         The command used to read sha1 hashes
    +      --sftp-shell-type string                              The type of SSH shell on remote server, if any
    +      --sftp-skip-links                                     Set to skip any symlinks and any other non regular files
    +      --sftp-socks-proxy string                             Socks 5 proxy host
    +      --sftp-ssh SpaceSepList                               Path and arguments to external ssh binary
    +      --sftp-subsystem string                               Specifies the SSH2 subsystem on the remote host (default "sftp")
    +      --sftp-use-fstat                                      If set use fstat instead of stat
    +      --sftp-use-insecure-cipher                            Enable the use of insecure ciphers and key exchange methods
    +      --sftp-user string                                    SSH username (default "$USER")
    +      --sharefile-auth-url string                           Auth server URL
    +      --sharefile-chunk-size SizeSuffix                     Upload chunk size (default 64Mi)
    +      --sharefile-client-id string                          OAuth Client Id
    +      --sharefile-client-secret string                      OAuth Client Secret
    +      --sharefile-encoding MultiEncoder                     The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot)
    +      --sharefile-endpoint string                           Endpoint for API calls
    +      --sharefile-root-folder-id string                     ID of the root folder
    +      --sharefile-token string                              OAuth Access Token as a JSON blob
    +      --sharefile-token-url string                          Token server url
    +      --sharefile-upload-cutoff SizeSuffix                  Cutoff for switching to multipart upload (default 128Mi)
    +      --sia-api-password string                             Sia Daemon API Password (obscured)
    +      --sia-api-url string                                  Sia daemon API URL, like http://sia.daemon.host:9980 (default "http://127.0.0.1:9980")
    +      --sia-encoding MultiEncoder                           The encoding for the backend (default Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot)
    +      --sia-user-agent string                               Siad User Agent (default "Sia-Agent")
    +      --skip-links                                          Don't warn about skipped symlinks
    +      --smb-case-insensitive                                Whether the server is configured to be case-insensitive (default true)
    +      --smb-domain string                                   Domain name for NTLM authentication (default "WORKGROUP")
    +      --smb-encoding MultiEncoder                           The encoding for the backend (default Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot)
    +      --smb-hide-special-share                              Hide special shares (e.g. print$) which users aren't supposed to access (default true)
    +      --smb-host string                                     SMB server hostname to connect to
    +      --smb-idle-timeout Duration                           Max time before closing idle connections (default 1m0s)
    +      --smb-pass string                                     SMB password (obscured)
    +      --smb-port int                                        SMB port number (default 445)
    +      --smb-spn string                                      Service principal name
    +      --smb-user string                                     SMB username (default "$USER")
    +      --storj-access-grant string                           Access grant
    +      --storj-api-key string                                API key
    +      --storj-passphrase string                             Encryption passphrase
    +      --storj-provider string                               Choose an authentication method (default "existing")
    +      --storj-satellite-address string                      Satellite address (default "us1.storj.io")
    +      --sugarsync-access-key-id string                      Sugarsync Access Key ID
    +      --sugarsync-app-id string                             Sugarsync App ID
    +      --sugarsync-authorization string                      Sugarsync authorization
    +      --sugarsync-authorization-expiry string               Sugarsync authorization expiry
    +      --sugarsync-deleted-id string                         Sugarsync deleted folder id
    +      --sugarsync-encoding MultiEncoder                     The encoding for the backend (default Slash,Ctl,InvalidUtf8,Dot)
    +      --sugarsync-hard-delete                               Permanently delete files if true
    +      --sugarsync-private-access-key string                 Sugarsync Private Access Key
    +      --sugarsync-refresh-token string                      Sugarsync refresh token
    +      --sugarsync-root-id string                            Sugarsync root id
    +      --sugarsync-user string                               Sugarsync user
    +      --swift-application-credential-id string              Application Credential ID (OS_APPLICATION_CREDENTIAL_ID)
    +      --swift-application-credential-name string            Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME)
    +      --swift-application-credential-secret string          Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET)
    +      --swift-auth string                                   Authentication URL for server (OS_AUTH_URL)
    +      --swift-auth-token string                             Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
    +      --swift-auth-version int                              AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
    +      --swift-chunk-size SizeSuffix                         Above this size files will be chunked into a _segments container (default 5Gi)
    +      --swift-domain string                                 User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
    +      --swift-encoding MultiEncoder                         The encoding for the backend (default Slash,InvalidUtf8)
    +      --swift-endpoint-type string                          Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE) (default "public")
    +      --swift-env-auth                                      Get swift credentials from environment variables in standard OpenStack form
    +      --swift-key string                                    API key or password (OS_PASSWORD)
    +      --swift-leave-parts-on-error                          If true avoid calling abort upload on a failure
    +      --swift-no-chunk                                      Don't chunk files during streaming upload
    +      --swift-no-large-objects                              Disable support for static and dynamic large objects
    +      --swift-region string                                 Region name - optional (OS_REGION_NAME)
    +      --swift-storage-policy string                         The storage policy to use when creating a new container
    +      --swift-storage-url string                            Storage URL - optional (OS_STORAGE_URL)
    +      --swift-tenant string                                 Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
    +      --swift-tenant-domain string                          Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
    +      --swift-tenant-id string                              Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
    +      --swift-user string                                   User name to log in (OS_USERNAME)
    +      --swift-user-id string                                User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID)
    +      --union-action-policy string                          Policy to choose upstream on ACTION category (default "epall")
    +      --union-cache-time int                                Cache time of usage and free space (in seconds) (default 120)
    +      --union-create-policy string                          Policy to choose upstream on CREATE category (default "epmfs")
    +      --union-min-free-space SizeSuffix                     Minimum viable free space for lfs/eplfs policies (default 1Gi)
    +      --union-search-policy string                          Policy to choose upstream on SEARCH category (default "ff")
    +      --union-upstreams string                              List of space separated upstreams
    +      --uptobox-access-token string                         Your access token
    +      --uptobox-encoding MultiEncoder                       The encoding for the backend (default Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot)
    +      --uptobox-private                                     Set to make uploaded files private
    +      --webdav-bearer-token string                          Bearer token instead of user/pass (e.g. a Macaroon)
    +      --webdav-bearer-token-command string                  Command to run to get a bearer token
    +      --webdav-encoding string                              The encoding for the backend
    +      --webdav-headers CommaSepList                         Set HTTP headers for all transactions
    +      --webdav-nextcloud-chunk-size SizeSuffix              Nextcloud upload chunk size (default 10Mi)
    +      --webdav-pacer-min-sleep Duration                     Minimum time to sleep between API calls (default 10ms)
    +      --webdav-pass string                                  Password (obscured)
    +      --webdav-url string                                   URL of http host to connect to
    +      --webdav-user string                                  User name
    +      --webdav-vendor string                                Name of the WebDAV site/service/software you are using
    +      --yandex-auth-url string                              Auth server URL
    +      --yandex-client-id string                             OAuth Client Id
    +      --yandex-client-secret string                         OAuth Client Secret
    +      --yandex-encoding MultiEncoder                        The encoding for the backend (default Slash,Del,Ctl,InvalidUtf8,Dot)
    +      --yandex-hard-delete                                  Delete files permanently rather than putting them into the trash
    +      --yandex-token string                                 OAuth Access Token as a JSON blob
    +      --yandex-token-url string                             Token server url
    +      --zoho-auth-url string                                Auth server URL
    +      --zoho-client-id string                               OAuth Client Id
    +      --zoho-client-secret string                           OAuth Client Secret
    +      --zoho-encoding MultiEncoder                          The encoding for the backend (default Del,Ctl,InvalidUtf8)
    +      --zoho-region string                                  Zoho region to connect to
    +      --zoho-token string                                   OAuth Access Token as a JSON blob
    +      --zoho-token-url string                               Token server url

    Docker Volume Plugin

    Introduction

    Docker 1.9 has added support for creating named volumes via command-line interface and mounting them in containers as a way to share data between them. Since Docker 1.10 you can create named volumes with Docker Compose by descriptions in docker-compose.yml files for use by container groups on a single host. As of Docker 1.12 volumes are supported by Docker Swarm included with Docker Engine and created from descriptions in swarm compose v3 files for use with swarm stacks across multiple cluster nodes.

    @@ -8460,7 +10985,7 @@

    Getting started

  • Run bisync with the --resync flag, specifying the paths to the local and remote sync directory roots.
  • For successive sync runs, leave off the --resync flag.
  • Consider using a filters file for excluding unnecessary files and directories from the sync.
  • -
  • Consider setting up the --check-access feature for safety.
  • +
  • Consider setting up the --check-access feature for safety.
  • On Linux, consider setting up a crontab entry. bisync can safely run in concurrent cron jobs thanks to lock files it maintains.
  • Here is a typical run log (with timestamps removed for clarity):

    @@ -8527,10 +11052,16 @@

    Command line syntax

    If exceeded, the bisync run will abort. (default: 50%) --force Bypass `--max-delete` safety check and run the sync. Consider using with `--verbose` + --create-empty-src-dirs Sync creation and deletion of empty directories. + (Not compatible with --remove-empty-dirs) --remove-empty-dirs Remove empty directories at the final cleanup step. -1, --resync Performs the resync run. Warning: Path1 files may overwrite Path2 versions. Consider using `--verbose` or `--dry-run` first. + --ignore-listing-checksum Do not use checksums for listings + (add --ignore-checksum to additionally skip post-copy checksum checks) + --resilient Allow future runs to retry after certain less-serious errors, + instead of requiring --resync. Use at your own risk! --localtime Use local time in listings (default: UTC) --no-cleanup Retain working files (useful for troubleshooting and testing). --workdir PATH Use custom working directory (useful for testing). @@ -8539,32 +11070,57 @@

    Command line syntax

    -v, --verbose Increases logging verbosity. May be specified more than once for more details. -h, --help help for bisync
    -

    Arbitrary rclone flags may be specified on the bisync command line, for example rclone bsync ./testdir/path1/ gdrive:testdir/path2/ --drive-skip-gdocs -v -v --timeout 10s Note that interactions of various rclone flags with bisync process flow has not been fully tested yet.

    +

    Arbitrary rclone flags may be specified on the bisync command line, for example rclone bisync ./testdir/path1/ gdrive:testdir/path2/ --drive-skip-gdocs -v -v --timeout 10s Note that interactions of various rclone flags with bisync process flow has not been fully tested yet.

    Paths

    Path1 and Path2 arguments may be references to any mix of local directory paths (absolute or relative), UNC paths (//server/share/path), Windows drive paths (with a drive letter and :) or configured remotes with optional subdirectory paths. Cloud references are distinguished by having a : in the argument (see Windows support below).

    -

    Path1 and Path2 are treated equally, in that neither has priority for file changes, and access efficiency does not change whether a remote is on Path1 or Path2.

    +

    Path1 and Path2 are treated equally, in that neither has priority for file changes (except during --resync), and access efficiency does not change whether a remote is on Path1 or Path2.

    The listings in bisync working directory (default: ~/.cache/rclone/bisync) are named based on the Path1 and Path2 arguments so that separate syncs to individual directories within the tree may be set up, e.g.: path_to_local_tree..dropbox_subdir.lst.

    -

    Any empty directories after the sync on both the Path1 and Path2 filesystems are not deleted by default. If the --remove-empty-dirs flag is specified, then both paths will have any empty directories purged as the last step in the process.

    +

    Any empty directories after the sync on both the Path1 and Path2 filesystems are not deleted by default, unless --create-empty-src-dirs is specified. If the --remove-empty-dirs flag is specified, then both paths will have ALL empty directories purged as the last step in the process.

    Command-line flags

    --resync

    -

    This will effectively make both Path1 and Path2 filesystems contain a matching superset of all files. Path2 files that do not exist in Path1 will be copied to Path1, and the process will then sync the Path1 tree to Path2.

    -

    The base directories on the both Path1 and Path2 filesystems must exist or bisync will fail. This is required for safety - that bisync can verify that both paths are valid.

    -

    When using --resync a newer version of a file on the Path2 filesystem will be overwritten by the Path1 filesystem version. Carefully evaluate deltas using --dry-run.

    +

    This will effectively make both Path1 and Path2 filesystems contain a matching superset of all files. Path2 files that do not exist in Path1 will be copied to Path1, and the process will then copy the Path1 tree to Path2.

    +

    The --resync sequence is roughly equivalent to:

    +
    rclone copy Path2 Path1 --ignore-existing
    +rclone copy Path1 Path2
    +

    Or, if using --create-empty-src-dirs:

    +
    rclone copy Path2 Path1 --ignore-existing
    +rclone copy Path1 Path2 --create-empty-src-dirs
    +rclone copy Path2 Path1 --create-empty-src-dirs
    +

    The base directories on both Path1 and Path2 filesystems must exist or bisync will fail. This is required for safety - that bisync can verify that both paths are valid.

    +

    When using --resync, a newer version of a file on the Path2 filesystem will be overwritten by the Path1 filesystem version. (Note that this is NOT entirely symmetrical.) Carefully evaluate deltas using --dry-run.

    For a resync run, one of the paths may be empty (no files in the path tree). The resync run should result in files on both paths, else a normal non-resync run will fail.

    For a non-resync run, either path being empty (no files in the tree) fails with Empty current PathN listing. Cannot sync to an empty directory: X.pathN.lst This is a safety check that an unexpected empty path does not result in deleting everything in the other path.

    --check-access

    -

    Access check files are an additional safety measure against data loss. bisync will ensure it can find matching RCLONE_TEST files in the same places in the Path1 and Path2 filesystems. Time stamps and file contents are not important, just the names and locations. Place one or more RCLONE_TEST files in the Path1 or Path2 filesystem and then do either a run without --check-access or a --resync to set matching files on both filesystems. If you have symbolic links in your sync tree it is recommended to place RCLONE_TEST files in the linked-to directory tree to protect against bisync assuming a bunch of deleted files if the linked-to tree should not be accessible. Also see the --check-filename flag.

    +

    Access check files are an additional safety measure against data loss. bisync will ensure it can find matching RCLONE_TEST files in the same places in the Path1 and Path2 filesystems. RCLONE_TEST files are not generated automatically. For --check-access to succeed, you must first either: A) Place one or more RCLONE_TEST files in both systems, or B) Set --check-filename to a filename already in use in various locations throughout your sync'd fileset. Recommended methods for A) include: * rclone touch Path1/RCLONE_TEST (create a new file) * rclone copyto Path1/RCLONE_TEST Path2/RCLONE_TEST (copy an existing file) * rclone copy Path1/RCLONE_TEST Path2/RCLONE_TEST --include "RCLONE_TEST" (copy multiple files at once, recursively) * create the files manually (outside of rclone) * run bisync once without --check-access to set matching files on both filesystems will also work, but is not preferred, due to potential for user error (you are temporarily disabling the safety feature).

    +

    Note that --check-access is still enforced on --resync, so bisync --resync --check-access will not work as a method of initially setting the files (this is to ensure that bisync can't inadvertently circumvent its own safety switch.)

    +

    Time stamps and file contents for RCLONE_TEST files are not important, just the names and locations. If you have symbolic links in your sync tree it is recommended to place RCLONE_TEST files in the linked-to directory tree to protect against bisync assuming a bunch of deleted files if the linked-to tree should not be accessible. See also the --check-filename flag.

    +

    --check-filename

    +

    Name of the file(s) used in access health validation. The default --check-filename is RCLONE_TEST. One or more files having this filename must exist, synchronized between your source and destination filesets, in order for --check-access to succeed. See --check-access for additional details.

    --max-delete

    -

    As a safety check, if greater than the --max-delete percent of files were deleted on either the Path1 or Path2 filesystem, then bisync will abort with a warning message, without making any changes. The default --max-delete is 50%. One way to trigger this limit is to rename a directory that contains more than half of your files. This will appear to bisync as a bunch of deleted files and a bunch of new files. This safety check is intended to block bisync from deleting all of the files on both filesystems due to a temporary network access issue, or if the user had inadvertently deleted the files on one side or the other. To force the sync either set a different delete percentage limit, e.g. --max-delete 75 (allows up to 75% deletion), or use --force to bypass the check.

    +

    As a safety check, if greater than the --max-delete percent of files were deleted on either the Path1 or Path2 filesystem, then bisync will abort with a warning message, without making any changes. The default --max-delete is 50%. One way to trigger this limit is to rename a directory that contains more than half of your files. This will appear to bisync as a bunch of deleted files and a bunch of new files. This safety check is intended to block bisync from deleting all of the files on both filesystems due to a temporary network access issue, or if the user had inadvertently deleted the files on one side or the other. To force the sync, either set a different delete percentage limit, e.g. --max-delete 75 (allows up to 75% deletion), or use --force to bypass the check.

    Also see the all files changed check.

    --filters-file

    By using rclone filter features you can exclude file types or directory sub-trees from the sync. See the bisync filters section and generic --filter-from documentation. An example filters file contains filters for non-allowed files for synching with Dropbox.

    -

    If you make changes to your filters file then bisync requires a run with --resync. This is a safety feature, which avoids existing files on the Path1 and/or Path2 side from seeming to disappear from view (since they are excluded in the new listings), which would fool bisync into seeing them as deleted (as compared to the prior run listings), and then bisync would proceed to delete them for real.

    -

    To block this from happening bisync calculates an MD5 hash of the filters file and stores the hash in a .md5 file in the same place as your filters file. On the next runs with --filters-file set, bisync re-calculates the MD5 hash of the current filters file and compares it to the hash stored in .md5 file. If they don't match the run aborts with a critical error and thus forces you to do a --resync, likely avoiding a disaster.

    +

    If you make changes to your filters file then bisync requires a run with --resync. This is a safety feature, which prevents existing files on the Path1 and/or Path2 side from seeming to disappear from view (since they are excluded in the new listings), which would fool bisync into seeing them as deleted (as compared to the prior run listings), and then bisync would proceed to delete them for real.

    +

    To block this from happening, bisync calculates an MD5 hash of the filters file and stores the hash in a .md5 file in the same place as your filters file. On the next run with --filters-file set, bisync re-calculates the MD5 hash of the current filters file and compares it to the hash stored in the .md5 file. If they don't match, the run aborts with a critical error and thus forces you to do a --resync, likely avoiding a disaster.

    --check-sync

    Enabled by default, the check-sync function checks that all of the same files exist in both the Path1 and Path2 history listings. This check-sync integrity check is performed at the end of the sync run by default. Any untrapped failing copy/deletes between the two paths might result in differences between the two listings and in the untracked file content differences between the two paths. A resync run would correct the error.

    Note that the default-enabled integrity check locally executes a load of both the final Path1 and Path2 listings, and thus adds to the run time of a sync. Using --check-sync=false will disable it and may significantly reduce the sync run times for very large numbers of files.

    The check may be run manually with --check-sync=only. It runs only the integrity check and terminates without actually synching.

    +

    See also: Concurrent modifications

    +

    --ignore-listing-checksum

    +

    By default, bisync will retrieve (or generate) checksums (for backends that support them) when creating the listings for both paths, and store the checksums in the listing files. --ignore-listing-checksum will disable this behavior, which may speed things up considerably, especially on backends (such as local) where hashes must be computed on the fly instead of retrieved. Please note the following:

    + +

    --resilient

    +

    Caution: this is an experimental feature. Use at your own risk!

    +

    By default, most errors or interruptions will cause bisync to abort and require --resync to recover. This is a safety feature, to prevent bisync from running again until a user checks things out. However, in some cases, bisync can go too far and enforce a lockout when one isn't actually necessary, like for certain less-serious errors that might resolve themselves on the next run. When --resilient is specified, bisync tries its best to recover and self-correct, and only requires --resync as a last resort when a human's involvement is absolutely necessary. The intended use case is for running bisync as a background process (such as via scheduled cron).

    +

    When using --resilient mode, bisync will still report the error and abort, however it will not lock out future runs -- allowing the possibility of retrying at the next normally scheduled time, without requiring a --resync first. Examples of such retryable errors include access test failures, missing listing files, and filter change detections. These safety features will still prevent the current run from proceeding -- the difference is that if conditions have improved by the time of the next run, that next run will be allowed to proceed. Certain more serious errors will still enforce a --resync lockout, even in --resilient mode, to prevent data loss.

    +

    Behavior of --resilient may change in a future version.

    Operation

    Runtime flow details

    bisync retains the listings of the Path1 and Path2 filesystems from the prior run. On each successive run it will:

    @@ -8665,30 +11221,36 @@

    Unusual sync checks

    +Path1 new/changed AND Path2 new/changed AND Path1 == Path2 +File is new/changed on Path1 AND new/changed on Path2 AND Path1 version is currently identical to Path2 +No change +None + + Path1 new AND Path2 new -File is new on Path1 AND new on Path2 +File is new on Path1 AND new on Path2 (and Path1 version is NOT identical to Path2) Files renamed to _Path1 and _Path2 rclone copy _Path2 file to Path1, rclone copy _Path1 file to Path2 - + Path2 newer AND Path1 changed -File is newer on Path2 AND also changed (newer/older/size) on Path1 +File is newer on Path2 AND also changed (newer/older/size) on Path1 (and Path1 version is NOT identical to Path2) Files renamed to _Path1 and _Path2 rclone copy _Path2 file to Path1, rclone copy _Path1 file to Path2 - + Path2 newer AND Path1 deleted File is newer on Path2 AND also deleted on Path1 Path2 version survives rclone copy Path2 to Path1 - + Path2 deleted AND Path1 changed File is deleted on Path2 AND changed (newer/older/size) on Path1 Path1 version survives rclone copy Path1 to Path2 - + Path1 deleted AND Path2 changed File is deleted on Path1 AND changed (newer/older/size) on Path2 Path2 version survives @@ -8696,8 +11258,9 @@

    Unusual sync checks

    +

    As of rclone v1.64, bisync is now better at detecting false positive sync conflicts, which would previously have resulted in unnecessary renames and duplicates. Now, when bisync comes to a file that it wants to rename (because it is new/changed on both sides), it first checks whether the Path1 and Path2 versions are currently identical (using the same underlying function as check.) If bisync concludes that the files are identical, it will skip them and move on. Otherwise, it will create renamed ..Path1 and ..Path2 duplicates, as before. This behavior also improves the experience of renaming directories, as a --resync is no longer required, so long as the same change has been made on both sides.

    All files changed check

    -

    if all prior existing files on either of the filesystems have changed (e.g. timestamps have changed due to changing the system's timezone) then bisync will abort without making any changes. Any new files are not considered for this check. You could use --force to force the sync (whichever side has the changed timestamp files wins). Alternately, a --resync may be used (Path1 versions will be pushed to Path2). Consider the situation carefully and perhaps use --dry-run before you commit to the changes.

    +

    If all prior existing files on either of the filesystems have changed (e.g. timestamps have changed due to changing the system's timezone) then bisync will abort without making any changes. Any new files are not considered for this check. You could use --force to force the sync (whichever side has the changed timestamp files wins). Alternately, a --resync may be used (Path1 versions will be pushed to Path2). Consider the situation carefully and perhaps use --dry-run before you commit to the changes.

    Modification time

    Bisync relies on file timestamps to identify changed files and will refuse to operate if backend lacks the modification time support.

    If you or your application should change the content of a file without changing the modification time then bisync will not notice the change, and thus will not copy it to the other side.

    @@ -8706,8 +11269,9 @@

    Modification time

    Error handling

    Certain bisync critical errors, such as file copy/move failing, will result in a bisync lockout of following runs. The lockout is asserted because the sync status and history of the Path1 and Path2 filesystems cannot be trusted, so it is safer to block any further changes until someone checks things out. The recovery is to do a --resync again.

    It is recommended to use --resync --dry-run --verbose initially and carefully review what changes will be made before running the --resync without --dry-run.

    -

    Most of these events come up due to a error status from an internal call. On such a critical error the {...}.path1.lst and {...}.path2.lst listing files are renamed to extension .lst-err, which blocks any future bisync runs (since the normal .lst files are not found). Bisync keeps them under bisync subdirectory of the rclone cache direcory, typically at ${HOME}/.cache/rclone/bisync/ on Linux.

    +

    Most of these events come up due to an error status from an internal call. On such a critical error the {...}.path1.lst and {...}.path2.lst listing files are renamed to extension .lst-err, which blocks any future bisync runs (since the normal .lst files are not found). Bisync keeps them under bisync subdirectory of the rclone cache directory, typically at ${HOME}/.cache/rclone/bisync/ on Linux.

    Some errors are considered temporary and re-running the bisync is not blocked. The critical return blocks further bisync runs.

    +

    See also: --resilient

    Lock file

    When bisync is running, a lock file is created in the bisync working directory, typically at ~/.cache/rclone/bisync/PATH1..PATH2.lck on Linux. If bisync should crash or hang, the lock file will remain in place and block any further runs of bisync for the same paths. Delete the lock file as part of debugging the situation. The lock file effectively blocks follow-on (e.g., scheduled by cron) runs when the prior invocation is taking a long time. The lock file contains PID of the blocking process, which may help in debug.

    Note that while concurrent bisync runs are allowed, be very cautious that there is no overlap in the trees being synched between concurrent runs, lest there be replicated files, deleted files and general mayhem.

    @@ -8715,23 +11279,40 @@

    Return codes

    rclone bisync returns the following codes to calling program: - 0 on a successful run, - 1 for a non-critical failing run (a rerun may be successful), - 2 for a critically aborted run (requires a --resync to recover).

    Limitations

    Supported backends

    -

    Bisync is considered BETA and has been tested with the following backends: - Local filesystem - Google Drive - Dropbox - OneDrive - S3 - SFTP

    +

    Bisync is considered BETA and has been tested with the following backends: - Local filesystem - Google Drive - Dropbox - OneDrive - S3 - SFTP - Yandex Disk

    It has not been fully tested with other services yet. If it works, or sorta works, please let us know and we'll update the list. Run the test suite to check for proper operation as described below.

    -

    First release of rclone bisync requires that underlying backend supported the modification time feature and will refuse to run otherwise. This limitation will be lifted in a future rclone bisync release.

    +

    First release of rclone bisync requires that underlying backend supports the modification time feature and will refuse to run otherwise. This limitation will be lifted in a future rclone bisync release.

    Concurrent modifications

    When using Local, FTP or SFTP remotes rclone does not create temporary files at the destination when copying, and thus if the connection is lost the created file may be corrupt, which will likely propagate back to the original path on the next sync, resulting in data loss. This will be solved in a future release, there is no workaround at the moment.

    -

    Files that change during a bisync run may result in data loss. This has been seen in a highly dynamic environment, where the filesystem is getting hammered by running processes during the sync. The solution is to sync at quiet times or filter out unnecessary directories and files.

    +

    Files that change during a bisync run may result in data loss. This has been seen in a highly dynamic environment, where the filesystem is getting hammered by running processes during the sync. The currently recommended solution is to sync at quiet times or filter out unnecessary directories and files.

    +

    As an alternative approach, consider using --check-sync=false (and possibly --resilient) to make bisync more forgiving of filesystems that change during the sync. Be advised that this may cause bisync to miss events that occur during a bisync run, so it is a good idea to supplement this with a periodic independent integrity check, and corrective sync if diffs are found. For example, a possible sequence could look like this:

    +
      +
    1. Normally scheduled bisync run:
    2. +
    +
    rclone bisync Path1 Path2 -MPc --check-access --max-delete 10 --filters-file /path/to/filters.txt -v --check-sync=false --no-cleanup --ignore-listing-checksum --disable ListR --checkers=16 --drive-pacer-min-sleep=10ms --create-empty-src-dirs --resilient
    +
      +
    1. Periodic independent integrity check (perhaps scheduled nightly or weekly):
    2. +
    +
    rclone check -MvPc Path1 Path2 --filter-from /path/to/filters.txt
    +
      +
    1. If diffs are found, you have some choices to correct them. If one side is more up-to-date and you want to make the other side match it, you could run:
    2. +
    +
    rclone sync Path1 Path2 --filter-from /path/to/filters.txt --create-empty-src-dirs -MPc -v  
    +

    (or switch Path1 and Path2 to make Path2 the source-of-truth)

    +

    Or, if neither side is totally up-to-date, you could run a --resync to bring them back into agreement (but remember that this could cause deleted files to re-appear.)

    +

    *Note also that rclone check does not currently include empty directories, so if you want to know if any empty directories are out of sync, consider alternatively running the above rclone sync command with --dry-run added.

    Empty directories

    -

    New empty directories on one path are not propagated to the other side. This is because bisync (and rclone) natively works on files not directories. The following sequence is a workaround but will not propagate the delete of an empty directory to the other side:

    -
    rclone bisync PATH1 PATH2
    -rclone copy PATH1 PATH2 --filter "+ */" --filter "- **" --create-empty-src-dirs
    -rclone copy PATH2 PATH2 --filter "+ */" --filter "- **" --create-empty-src-dirs
    +

    By default, new/deleted empty directories on one path are not propagated to the other side. This is because bisync (and rclone) natively works on files, not directories. However, this can be changed with the --create-empty-src-dirs flag, which works in much the same way as in sync and copy. When used, empty directories created or deleted on one side will also be created or deleted on the other side. The following should be noted: * --create-empty-src-dirs is not compatible with --remove-empty-dirs. Use only one or the other (or neither). * It is not recommended to switch back and forth between --create-empty-src-dirs and the default (no --create-empty-src-dirs) without running --resync. This is because it may appear as though all directories (not just the empty ones) were created/deleted, when actually you've just toggled between making them visible/invisible to bisync. It looks scarier than it is, but it's still probably best to stick to one or the other, and use --resync when you need to switch.

    Renamed directories

    -

    Renaming a folder on the Path1 side results is deleting all files on the Path2 side and then copying all files again from Path1 to Path2. Bisync sees this as all files in the old directory name as deleted and all files in the new directory name as new. Similarly, renaming a directory on both sides to the same name will result in creating ..path1 and ..path2 files on both sides. Currently the most effective and efficient method of renaming a directory is to rename it on both sides, then do a --resync.

    +

    Renaming a folder on the Path1 side results in deleting all files on the Path2 side and then copying all files again from Path1 to Path2. Bisync sees this as all files in the old directory name as deleted and all files in the new directory name as new. Currently, the most effective and efficient method of renaming a directory is to rename it to the same name on both sides. (As of rclone v1.64, a --resync is no longer required after doing so, as bisync will automatically detect that Path1 and Path2 are in agreement.)

    +

    --fast-list used by default

    +

    Unlike most other rclone commands, bisync uses --fast-list by default, for backends that support it. In many cases this is desirable, however, there are some scenarios in which bisync could be faster without --fast-list, and there is also a known issue concerning Google Drive users with many empty directories. For now, the recommended way to avoid using --fast-list is to add --disable ListR to all bisync commands. The default behavior may change in a future version.

    +

    Overridden Configs

    +

    When rclone detects an overridden config, it adds a suffix like {ABCDE} on the fly to the internal name of the remote. Bisync follows suit by including this suffix in its listing filenames. However, this suffix does not necessarily persist from run to run, especially if different flags are provided. So if next time the suffix assigned is {FGHIJ}, bisync will get confused, because it's looking for a listing file with {FGHIJ}, when the file it wants has {ABCDE}. As a result, it throws Bisync critical error: cannot find prior Path1 or Path2 listings, likely due to critical error on prior run and refuses to run again until the user runs a --resync (unless using --resilient). The best workaround at the moment is to set any backend-specific flags in the config file instead of specifying them with command flags. (You can still override them as needed for other rclone commands.)

    Case sensitivity

    -

    Synching with case-insensitive filesystems, such as Windows or Box, can result in file name conflicts. This will be fixed in a future release. The near term workaround is to make sure that files on both sides don't have spelling case differences (Smile.jpg vs. smile.jpg).

    +

    Synching with case-insensitive filesystems, such as Windows or Box, can result in file name conflicts. This will be fixed in a future release. The near-term workaround is to make sure that files on both sides don't have spelling case differences (Smile.jpg vs. smile.jpg).

    Windows support

    -

    Bisync has been tested on Windows 8.1, Windows 10 Pro 64-bit and on Windows Github runners.

    +

    Bisync has been tested on Windows 8.1, Windows 10 Pro 64-bit and on Windows GitHub runners.

    Drive letters are allowed, including drive letters mapped to network drives (rclone bisync J:\localsync GDrive:). If a drive letter is omitted, the shell current drive is the default. Drive letters are a single character follows by :, so cloud names must be more than one character long.

    Absolute paths (with or without a drive letter), and relative paths (with or without a drive letter) are supported.

    Working directory is created at C:\Users\MyLogin\AppData\Local\rclone\bisync.

    @@ -8754,7 +11335,7 @@

    Filters file writing guidelines

  • Excluding such dirs first will make rclone operations (much) faster.
  • Specific files may also be excluded, as with the Dropbox exclusions example below.
  • -
  • Decide if its easier (or cleaner) to: +
  • Decide if it's easier (or cleaner) to:
    • Include select directories and therefore exclude everything else -- or --
    • Exclude select directories and therefore include everything else
    • @@ -8771,7 +11352,7 @@

      Filters file writing guidelines

    • Exclude select directories:
      • Add more lines like in step 1. For example: -/Desktop/tempfiles/, or `- /testdir/. Again, a**` on the end is not necessary.
      • -
      • Do not add a `- **` in the file. Without this line, everything will be included that has not be explicitly excluded.
      • +
      • Do not add a `- **` in the file. Without this line, everything will be included that has not been explicitly excluded.
      • Disregard step 3.
    • @@ -8819,7 +11400,7 @@

      Example filters file for Dropbox

      # NOTICE: If you make changes to this file you MUST do a --resync run. # Run with --dry-run to see what changes will be made. -# Dropbox wont sync some files so filter them away here. +# Dropbox won't sync some files so filter them away here. # See https://help.dropbox.com/installs-integrations/sync-uploads/files-not-syncing - .dropbox.attr - ~*.tmp @@ -8859,11 +11440,11 @@

      Reading bisync logs

      2021/05/16 00:36:52 INFO : Validating listings for Path1 "/path/to/local/tree/" vs Path2 "dropbox:/" 2021/05/16 00:36:52 INFO : Bisync successful
  • Dry run oddity

    -

    The --dry-run messages may indicate that it would try to delete some files. For example, if a file is new on Path2 and does not exist on Path1 then it would normally be copied to Path1, but with --dry-run enabled those copies don't happen, which leads to the attempted delete on the Path2, blocked again by --dry-run: ... Not deleting as --dry-run.

    +

    The --dry-run messages may indicate that it would try to delete some files. For example, if a file is new on Path2 and does not exist on Path1 then it would normally be copied to Path1, but with --dry-run enabled those copies don't happen, which leads to the attempted delete on Path2, blocked again by --dry-run: ... Not deleting as --dry-run.

    This whole confusing situation is an artifact of the --dry-run flag. Scrutinize the proposed deletes carefully, and if the files would have been copied to Path1 then the threatened deletes on Path2 may be disregarded.

    Retries

    -

    Rclone has built in retries. If you run with --verbose you'll see error and retry messages such as shown below. This is usually not a bug. If at the end of the run you see Bisync successful and not Bisync critical error or Bisync aborted then the run was successful, and you can ignore the error messages.

    -

    The following run shows an intermittent fail. Lines 5 and _6- are low level messages. Line 6 is a bubbled-up warning message, conveying the error. Rclone normally retries failing commands, so there may be numerous such messages in the log.

    +

    Rclone has built-in retries. If you run with --verbose you'll see error and retry messages such as shown below. This is usually not a bug. If at the end of the run, you see Bisync successful and not Bisync critical error or Bisync aborted then the run was successful, and you can ignore the error messages.

    +

    The following run shows an intermittent fail. Lines 5 and _6- are low-level messages. Line 6 is a bubbled-up warning message, conveying the error. Rclone normally retries failing commands, so there may be numerous such messages in the log.

    Since there are no final error/warning messages on line 7, rclone has recovered from failure after a retry, and the overall sync was successful.

    1: 2021/05/14 00:44:12 INFO  : Synching Path1 "/path/to/local/tree" with Path2 "dropbox:"
     2: 2021/05/14 00:44:12 INFO  : Path1 checking for diffs
    @@ -8883,7 +11464,7 @@ 

    Retries

    Denied downloads of "infected" or "abusive" files

    Google Drive has a filter for certain file types (.exe, .apk, et cetera) that by default cannot be copied from Google Drive to the local filesystem. If you are having problems, run with --verbose to see specifically which files are generating complaints. If the error is This file has been identified as malware or spam and cannot be downloaded, consider using the flag --drive-acknowledge-abuse.

    Google Doc files

    -

    Google docs exist as virtual files on Google Drive and cannot be transferred to other filesystems natively. While it is possible to export a Google doc to a normal file (with .xlsx extension, for example), it's not possible to import a normal file back into a Google document.

    +

    Google docs exist as virtual files on Google Drive and cannot be transferred to other filesystems natively. While it is possible to export a Google doc to a normal file (with .xlsx extension, for example), it is not possible to import a normal file back into a Google document.

    Bisync's handling of Google Doc files is to flag them in the run log output for user's attention and ignore them for any file transfers, deletes, or syncs. They will show up with a length of -1 in the listings. This bisync run is otherwise successful:

    2021/05/11 08:23:15 INFO  : Synching Path1 "/path/to/local/tree/base/" with Path2 "GDrive:"
     2021/05/11 08:23:15 INFO  : ...path2.lst-new: Ignoring incorrect line: "- -1 - - 2018-07-29T08:49:30.136000000+0000 GoogleDoc.docx"
    @@ -8899,7 +11480,7 @@ 

    Cron

    # Day of Week (0-6 or Sun-Sat) # Command */5 * * * * /path/to/rclone bisync /local/files MyCloud: --check-access --filters-file /path/to/bysync-filters.txt --log-file /path/to//bisync.log
    -

    See crontab syntax). for the details of crontab time interval expressions.

    +

    See crontab syntax for the details of crontab time interval expressions.

    If you run rclone bisync as a cron job, redirect stdout/stderr to a file. The 2nd example runs a sync to Dropbox every hour and logs all stdout (via the >>) and stderr (via 2>&1) to a log file.

    0 * * * * /path/to/rclone bisync /path/to/local/dropbox Dropbox: --check-access --filters-file /home/user/filters.txt >> /path/to/logs/dropbox-run.log 2>&1

    Sharing an encrypted folder tree between hosts

    @@ -8988,11 +11569,11 @@

    Notes about testing

  • path1 and/or path2 subdirectories are created in a temporary directory under the respective local or cloud test remote.
  • By default, the Path1 and Path2 test dirs and workdir will be deleted after each test run. The -no-cleanup flag disables purging these directories when validating and debugging a given test. These directories will be flushed before running another test, independent of the -no-cleanup usage.
  • You will likely want to add `- /testdir/to your normal bisync--filters-fileso that normal syncs do not attempt to sync the test temporary directories, which may haveRCLONE_TESTmiscompares in some testcases which would otherwise trip the--check-accesssystem. The--check-accessmechanism is hard-coded to ignoreRCLONE_TESTfiles beneathbisync/testdata`, so the test cases may reside on the synched tree even if there are check file mismatches in the test tree.
  • -
  • Some Dropbox tests can fail, notably printing the following message: src and dst identical but can't set mod time without deleting and re-uploading This is expected and happens due a way Dropbox handles modificaion times. You should use the -refresh-times test flag to make up for this.
  • +
  • Some Dropbox tests can fail, notably printing the following message: src and dst identical but can't set mod time without deleting and re-uploading This is expected and happens due to the way Dropbox handles modification times. You should use the -refresh-times test flag to make up for this.
  • If Dropbox tests hit request limit for you and print error message too_many_requests/...: Too many requests or write operations. then follow the Dropbox App ID instructions.
  • Updating golden results

    -

    Sometimes even a slight change in the bisync source can cause little changes spread around many log files. Updating them manually would be a nighmare.

    +

    Sometimes even a slight change in the bisync source can cause little changes spread around many log files. Updating them manually would be a nightmare.

    The -golden flag will store the test.log and *.lst listings from each test case into respective golden directories. Golden results will automatically contain generic strings instead of local or cloud paths which means that they should match when run with a different cloud service.

    Your normal workflow might be as follows: 1. Git-clone the rclone sources locally 2. Modify bisync source and check that it builds 3. Run the whole test suite go test ./cmd/bisync -remote local 4. If some tests show log difference, recheck them individually, e.g.: go test ./cmd/bisync -remote local -case basic 5. If you are convinced with the difference, goldenize all tests at once: go test ./cmd/bisync -remote local -golden 6. Use word diff: git diff --word-diff ./cmd/bisync/testdata/. Please note that normal line-level diff is generally useless here. 7. Check the difference carefully! 8. Commit the change (git commit) only if you are sure. If unsure, save your code changes then wipe the log diffs from git: git reset [--hard].

    Structure of test scenarios

    @@ -9009,7 +11590,7 @@

    Supported test commands

  • move-listings <prefix> Similar to copy-listings but removes the source
  • purge-children <dir> This will delete all child files and purge all child subdirs under given directory but keep the parent intact. This behavior is important for tests with Google Drive because removing and re-creating the parent would change its ID.
  • delete-file <file> Delete a single file.
  • -
  • delete-glob <dir> <pattern> Delete a group of files located one level deep in the given directory with names maching a given glob pattern.
  • +
  • delete-glob <dir> <pattern> Delete a group of files located one level deep in the given directory with names matching a given glob pattern.
  • touch-glob YYYY-MM-DD <dir> <pattern> Change modification time on a group of files.
  • touch-copy YYYY-MM-DD <source-file> <dest-dir> Change file modification time then copy it to destination.
  • copy-file <source-file> <dest-dir> Copy a single file to given directory.
  • @@ -9099,8 +11680,111 @@

    References

  • jwink3101/syncrclone
  • DavideRossi/upback
  • -

    Bisync adopts the differential synchronization technique, which is based on keeping history of changes performed by both synchronizing sides. See the Dual Shadow Method section in the Neil Fraser's article.

    +

    Bisync adopts the differential synchronization technique, which is based on keeping history of changes performed by both synchronizing sides. See the Dual Shadow Method section in Neil Fraser's article.

    Also note a number of academic publications by Benjamin Pierce about Unison and synchronization in general.

    +

    Changelog

    +

    v1.64

    + +

    Release signing

    +

    The hashes of the binary artefacts of the rclone release are signed with a public PGP/GPG key. This can be verified manually as described below.

    +

    The same mechanism is also used by rclone selfupdate to verify that the release has not been tampered with before the new update is installed. This checks the SHA256 hash and the signature with a public key compiled into the rclone binary.

    +

    Release signing key

    +

    You may obtain the release signing key from:

    + +

    After importing the key, verify that the fingerprint of one of the keys matches: FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA as this key is used for signing.

    +

    We recommend that you cross-check the fingerprint shown above through the domains listed below. By cross-checking the integrity of the fingerprint across multiple domains you can be confident that you obtained the correct key.

    + +

    If you find anything that doesn't not match, please contact the developers at once.

    +

    How to verify the release

    +

    In the release directory you will see the release files and some files called MD5SUMS, SHA1SUMS and SHA256SUMS.

    +
    $ rclone lsf --http-url https://downloads.rclone.org/v1.63.1 :http:
    +MD5SUMS
    +SHA1SUMS
    +SHA256SUMS
    +rclone-v1.63.1-freebsd-386.zip
    +rclone-v1.63.1-freebsd-amd64.zip
    +...
    +rclone-v1.63.1-windows-arm64.zip
    +rclone-v1.63.1.tar.gz
    +version.txt
    +

    The MD5SUMS, SHA1SUMS and SHA256SUMS contain hashes of the binary files in the release directory along with a signature.

    +

    For example:

    +
    $ rclone cat --http-url https://downloads.rclone.org/v1.63.1 :http:SHA256SUMS
    +-----BEGIN PGP SIGNED MESSAGE-----
    +Hash: SHA1
    +
    +f6d1b2d7477475ce681bdce8cb56f7870f174cb6b2a9ac5d7b3764296ea4a113  rclone-v1.63.1-freebsd-386.zip
    +7266febec1f01a25d6575de51c44ddf749071a4950a6384e4164954dff7ac37e  rclone-v1.63.1-freebsd-amd64.zip
    +...
    +66ca083757fb22198309b73879831ed2b42309892394bf193ff95c75dff69c73  rclone-v1.63.1-windows-amd64.zip
    +bbb47c16882b6c5f2e8c1b04229378e28f68734c613321ef0ea2263760f74cd0  rclone-v1.63.1-windows-arm64.zip
    +-----BEGIN PGP SIGNATURE-----
    +
    +iF0EARECAB0WIQT79zfs6firGGBL0qyTk14C/ztU+gUCZLVKJQAKCRCTk14C/ztU
    ++pZuAJ0XJ+QWLP/3jCtkmgcgc4KAwd/rrwCcCRZQ7E+oye1FPY46HOVzCFU3L7g=
    +=8qrL
    +-----END PGP SIGNATURE-----
    +

    Download the files

    +

    The first step is to download the binary and SUMs file and verify that the SUMs you have downloaded match. Here we download rclone-v1.63.1-windows-amd64.zip - choose the binary (or binaries) appropriate to your architecture. We've also chosen the SHA256SUMS as these are the most secure. You could verify the other types of hash also for extra security. rclone selfupdate verifies just the SHA256SUMS.

    +
    $ mkdir /tmp/check
    +$ cd /tmp/check
    +$ rclone copy --http-url https://downloads.rclone.org/v1.63.1 :http:SHA256SUMS .
    +$ rclone copy --http-url https://downloads.rclone.org/v1.63.1 :http:rclone-v1.63.1-windows-amd64.zip .
    +

    Verify the signatures

    +

    First verify the signatures on the SHA256 file.

    +

    Import the key. See above for ways to verify this key is correct.

    +
    $ gpg --keyserver keyserver.ubuntu.com --receive-keys FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
    +gpg: key 93935E02FF3B54FA: public key "Nick Craig-Wood <nick@craig-wood.com>" imported
    +gpg: Total number processed: 1
    +gpg:               imported: 1
    +

    Then check the signature:

    +
    $ gpg --verify SHA256SUMS 
    +gpg: Signature made Mon 17 Jul 2023 15:03:17 BST
    +gpg:                using DSA key FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
    +gpg: Good signature from "Nick Craig-Wood <nick@craig-wood.com>" [ultimate]
    +

    Verify the signature was good and is using the fingerprint shown above.

    +

    Repeat for MD5SUMS and SHA1SUMS if desired.

    +

    Verify the hashes

    +

    Now that we know the signatures on the hashes are OK we can verify the binaries match the hashes, completing the verification.

    +
    $ sha256sum -c SHA256SUMS 2>&1 | grep OK
    +rclone-v1.63.1-windows-amd64.zip: OK
    +

    Or do the check with rclone

    +
    $ rclone hashsum sha256 -C SHA256SUMS rclone-v1.63.1-windows-amd64.zip 
    +2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 0
    +2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 1
    +2023/09/11 10:53:58 NOTICE: SHA256SUMS: improperly formatted checksum line 49
    +2023/09/11 10:53:58 NOTICE: SHA256SUMS: 4 warning(s) suppressed...
    += rclone-v1.63.1-windows-amd64.zip
    +2023/09/11 10:53:58 NOTICE: Local file system at /tmp/check: 0 differences found
    +2023/09/11 10:53:58 NOTICE: Local file system at /tmp/check: 1 matching files
    +

    Verify signatures and hashes together

    +

    You can verify the signatures and hashes in one command line like this:

    +
    $ gpg --decrypt SHA256SUMS | sha256sum -c --ignore-missing
    +gpg: Signature made Mon 17 Jul 2023 15:03:17 BST
    +gpg:                using DSA key FBF737ECE9F8AB18604BD2AC93935E02FF3B54FA
    +gpg: Good signature from "Nick Craig-Wood <nick@craig-wood.com>" [ultimate]
    +gpg:                 aka "Nick Craig-Wood <nick@memset.com>" [unknown]
    +rclone-v1.63.1-windows-amd64.zip: OK

    1Fichier

    This is a backend for the 1fichier cloud storage service. Note that a Premium subscription is required to use the API.

    Paths are specified as remote:path

    @@ -9223,7 +11907,7 @@

    Restricted filename characters

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    Standard options

    -

    Here are the standard options specific to fichier (1Fichier).

    +

    Here are the Standard options specific to fichier (1Fichier).

    --fichier-api-key

    Your API Key, get it from https://1fichier.com/console/params.pl.

    Properties:

    @@ -9234,7 +11918,7 @@

    --fichier-api-key

  • Required: false
  • Advanced options

    -

    Here are the advanced options specific to fichier (1Fichier).

    +

    Here are the Advanced options specific to fichier (1Fichier).

    --fichier-shared-folder

    If you want to download a shared folder, add this parameter.

    Properties:

    @@ -9264,6 +11948,15 @@

    --fichier-folder-password

  • Type: string
  • Required: false
  • +

    --fichier-cdn

    +

    Set if you wish to use CDN download links.

    +

    Properties:

    +

    --fichier-encoding

    The encoding for the backend.

    See the encoding section in the overview for more info.

    @@ -9276,13 +11969,14 @@

    --fichier-encoding

    Limitations

    rclone about is not supported by the 1Fichier backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    +

    See List of backends that do not support rclone about and rclone about

    Alias

    The alias remote provides a new name for another remote.

    Paths may be as deep as required or a local path, e.g. remote:directory/subdirectory or /directory/subdirectory.

    During the initial setup with rclone config you will specify the target remote. The target remote can either be a local path or another remote.

    Subfolders can be used in target remote. Assume an alias remote named backup with the target mydrive:private/backup. Invoking rclone mkdir backup:desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/desktop.

    There will be no special handling of paths containing .. segments. Invoking rclone mkdir backup:../desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/../desktop. The empty path is not allowed as a remote. To alias the current directory use . instead.

    +

    The target remote can also be a connection string. This can be used to modify the config of a remote for different uses, e.g. the alias myDriveTrash with the target remote myDrive,trashed_only: can be used to only show the trashed files in myDrive.

    Configuration

    Here is an example of how to make an alias called remote for local folder. First run:

     rclone config
    @@ -9334,7 +12028,7 @@

    Configuration

    Copy another local directory to the alias directory called source

    rclone copy /home/source remote:source

    Standard options

    -

    Here are the standard options specific to alias (Alias for an existing remote).

    +

    Here are the Standard options specific to alias (Alias for an existing remote).

    --alias-remote

    Remote or path to alias.

    Can be "myremote:path/to/dir", "myremote:bucket", "myremote:" or "/local/path".

    @@ -9384,9 +12078,10 @@

    Configuration

    token_url> Optional token URL Remote config Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config. -Use auto config? - * Say Y if not sure - * Say N if you are working on a remote or headless machine +Use web browser to automatically authenticate rclone with remote? + * Say Y if the machine running rclone has a web browser you can use + * Say N if running rclone on a (remote) machine without web browser access +If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y @@ -9446,7 +12141,7 @@

    Deleting files

    Using with non .com Amazon accounts

    Let's say you usually use amazon.co.uk. When you authenticate with rclone it will take you to an amazon.com page to log in. Your amazon.co.uk email and password should work here just fine.

    Standard options

    -

    Here are the standard options specific to amazon cloud drive (Amazon Drive).

    +

    Here are the Standard options specific to amazon cloud drive (Amazon Drive).

    --acd-client-id

    OAuth Client Id.

    Leave blank normally.

    @@ -9468,7 +12163,7 @@

    --acd-client-secret

  • Required: false
  • Advanced options

    -

    Here are the advanced options specific to amazon cloud drive (Amazon Drive).

    +

    Here are the Advanced options specific to amazon cloud drive (Amazon Drive).

    --acd-token

    OAuth Access Token as a JSON blob.

    Properties:

    @@ -9549,23 +12244,35 @@

    Limitations

    At the time of writing (Jan 2016) is in the area of 50 GiB per file. This means that larger files are likely to fail.

    Unfortunately there is no way for rclone to see that this failure is because of file size, so it will retry the operation, as any other failure. To avoid this problem, use --max-size 50000M option to limit the maximum size of uploaded files. Note that --max-size does not split files into segments, it only ignores files over this size.

    rclone about is not supported by the Amazon Drive backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    +

    See List of backends that do not support rclone about and rclone about

    Amazon S3 Storage Providers

    The S3 backend can be used with a number of different providers:

    @@ -9578,7 +12285,7 @@

    Amazon S3 Storage Providers

    List the contents of a bucket

    rclone ls remote:bucket

    Sync /home/local/directory to the remote bucket, deleting any excess files in the bucket.

    -
    rclone sync -i /home/local/directory remote:bucket
    +
    rclone sync --interactive /home/local/directory remote:bucket

    Configuration

    Here is an example of making an s3 configuration for the AWS S3 provider. Most applies to the other providers as well, any differences are described below.

    First run

    @@ -9593,7 +12300,7 @@

    Configuration

    Type of storage to configure. Choose a number from below, or type in your own value [snip] -XX / Amazon S3 Compliant Storage Providers including AWS, Ceph, Dreamhost, IBM COS, Minio, and Tencent COS +XX / Amazon S3 Compliant Storage Providers including AWS, Ceph, ChinaMobile, ArvanCloud, Dreamhost, IBM COS, Liara, Minio, and Tencent COS \ "s3" [snip] Storage> s3 @@ -9603,7 +12310,7 @@

    Configuration

    \ "AWS" 2 / Ceph Object Storage \ "Ceph" - 3 / Digital Ocean Spaces + 3 / DigitalOcean Spaces \ "DigitalOcean" 4 / Dreamhost DreamObjects \ "Dreamhost" @@ -9817,7 +12524,7 @@

    Avoiding HEAD requ

    These flags can and should be used in combination with --fast-list - see below.

    If using rclone mount or any command using the VFS (eg rclone serve) commands then you might want to consider using the VFS flag --no-modtime which will stop rclone reading the modification time for every object. You could also use --use-server-modtime if you are happy with the modification times of the objects being the time of upload.

    Avoiding GET requests to read directory listings

    -

    Rclone's default directory traversal is to process each directory individually. This takes one API call per directory. Using the --fast-list flag will read all info about the the objects into memory first using a smaller number of API calls (one per 1000 objects). See the rclone docs for more details.

    +

    Rclone's default directory traversal is to process each directory individually. This takes one API call per directory. Using the --fast-list flag will read all info about the objects into memory first using a smaller number of API calls (one per 1000 objects). See the rclone docs for more details.

    rclone sync --fast-list --checksum /path/to/source s3:bucket

    --fast-list trades off API transactions for memory use. As a rough guide rclone uses 1k of memory per object stored, so using --fast-list on a sync of a million objects will use roughly 1 GiB of RAM.

    If you are only copying a small number of files into a big repository then using --no-traverse is a good idea. This finds objects directly instead of through directory listings. You can do a "top-up" sync very cheaply by using --max-age and --no-traverse to copy only recent files, eg

    @@ -9830,11 +12537,49 @@

    Avoiding HEAD requests after PUT

    Setting this flag increases the chance for undetected upload failures.

    Hashes

    For small objects which weren't uploaded as multipart uploads (objects sized below --s3-upload-cutoff if uploaded with rclone) rclone uses the ETag: header as an MD5 checksum.

    -

    However for objects which were uploaded as multipart uploads or with server side encryption (SSE-AWS or SSE-C) the ETag header is no longer the MD5 sum of the data, so rclone adds an additional piece of metadata X-Amz-Meta-Md5chksum which is a base64 encoded MD5 hash (in the same format as is required for Content-MD5).

    +

    However for objects which were uploaded as multipart uploads or with server side encryption (SSE-AWS or SSE-C) the ETag header is no longer the MD5 sum of the data, so rclone adds an additional piece of metadata X-Amz-Meta-Md5chksum which is a base64 encoded MD5 hash (in the same format as is required for Content-MD5). You can use base64 -d and hexdump to check this value manually:

    +
    echo 'VWTGdNx3LyXQDfA0e2Edxw==' | base64 -d | hexdump
    +

    or you can use rclone check to verify the hashes are OK.

    For large objects, calculating this hash can take some time so the addition of this hash can be disabled with --s3-disable-checksum. This will mean that these objects do not have an MD5 checksum.

    Note that reading this from the object takes an additional HEAD request as the metadata isn't returned in object listings.

    +

    Versions

    +

    When bucket versioning is enabled (this can be done with rclone with the rclone backend versioning command) when rclone uploads a new version of a file it creates a new version of it Likewise when you delete a file, the old version will be marked hidden and still be available.

    +

    Old versions of files, where available, are visible using the --s3-versions flag.

    +

    It is also possible to view a bucket as it was at a certain point in time, using the --s3-version-at flag. This will show the file versions as they were at that time, showing files that have been deleted afterwards, and hiding files that were created since.

    +

    If you wish to remove all the old versions then you can use the rclone backend cleanup-hidden remote:bucket command which will delete all the old hidden versions of files, leaving the current ones intact. You can also supply a path and only old versions under that path will be deleted, e.g. rclone backend cleanup-hidden remote:bucket/path/to/stuff.

    +

    When you purge a bucket, the current and the old versions will be deleted then the bucket will be deleted.

    +

    However delete will cause the current versions of the files to become hidden old versions.

    +

    Here is a session showing the listing and retrieval of an old version followed by a cleanup of the old versions.

    +

    Show current version and all the versions with --s3-versions flag.

    +
    $ rclone -q ls s3:cleanup-test
    +        9 one.txt
    +
    +$ rclone -q --s3-versions ls s3:cleanup-test
    +        9 one.txt
    +        8 one-v2016-07-04-141032-000.txt
    +       16 one-v2016-07-04-141003-000.txt
    +       15 one-v2016-07-02-155621-000.txt
    +

    Retrieve an old version

    +
    $ rclone -q --s3-versions copy s3:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
    +
    +$ ls -l /tmp/one-v2016-07-04-141003-000.txt
    +-rw-rw-r-- 1 ncw ncw 16 Jul  2 17:46 /tmp/one-v2016-07-04-141003-000.txt
    +

    Clean up all the old versions and show that they've gone.

    +
    $ rclone -q backend cleanup-hidden s3:cleanup-test
    +
    +$ rclone -q ls s3:cleanup-test
    +        9 one.txt
    +
    +$ rclone -q --s3-versions ls s3:cleanup-test
    +        9 one.txt
    +

    Versions naming caveat

    +

    When using --s3-versions flag rclone is relying on the file name to work out whether the objects are versions or not. Versions' names are created by inserting timestamp between file name and its extension.

    +
            9 file.txt
    +        8 file-v2023-07-17-161032-000.txt
    +       16 file-v2023-06-15-141003-000.txt
    +

    If there are real files present with the same names as versions, then behaviour of --s3-versions can be unpredictable.

    Cleanup

    -

    If you run rclone cleanup s3:bucket then it will remove all pending multipart uploads older than 24 hours. You can use the -i flag to see exactly what it will do. If you want more control over the expiry date then run rclone backend cleanup s3:bucket -o max-age=1h to expire all uploads older than one hour. You can use rclone backend list-multipart-uploads s3:bucket to see the pending multipart uploads.

    +

    If you run rclone cleanup s3:bucket then it will remove all pending multipart uploads older than 24 hours. You can use the --interactive/i or --dry-run flag to see exactly what it will do. If you want more control over the expiry date then run rclone backend cleanup s3:bucket -o max-age=1h to expire all uploads older than one hour. You can use rclone backend list-multipart-uploads s3:bucket to see the pending multipart uploads.

    Restricted filename characters

    S3 allows any valid UTF-8 string as a key.

    Invalid UTF-8 bytes will be replaced, as they can't be used in XML.

    @@ -9889,7 +12634,7 @@

    Multipart uploads

    Increasing --s3-upload-concurrency will increase throughput (8 would be a sensible value) and increasing --s3-chunk-size also increases throughput (16M would be sensible). Increasing either of these will use more memory. The default values are high enough to gain most of the possible performance without using too much memory.

    Buckets and Regions

    With Amazon S3 you can list buckets (rclone lsd) using any region, but you can only access the content of a bucket from the region it was created in. If you attempt to access a bucket from the wrong region, you will get an error, incorrect region, the bucket is not in 'XXX' region.

    -

    Authentication

    +

    Authentication

    There are a number of ways to supply rclone with a set of AWS credentials, with and without using the environment.

    The different authentication methods are tried in this order:

    -
  • Or, use a named profile: +
  • Or, use a named profile:
    • Profile files are standard files used by AWS CLI tools
    • By default it will use the profile in your home directory (e.g. ~/.aws/credentials on unix based systems) file and the "default" profile, to change set these environment variables: @@ -9979,7 +12724,7 @@

      Object-lock enabled S3 bucket

      As mentioned in the Hashes section, small files that are not uploaded as multipart, use a different tag, causing the upload to fail. A simple solution is to set the --s3-upload-cutoff 0 and force all the files to be uploaded as multipart.

      Standard options

      -

      Here are the standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).

      +

      Here are the Standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, China Mobile, Cloudflare, GCS, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Leviia, Liara, Lyve Cloud, Minio, Netease, Petabox, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi).

      --s3-provider

      Choose your S3 provider.

      Properties:

      @@ -9998,26 +12743,62 @@

      --s3-provider

      • Alibaba Cloud Object Storage System (OSS) formerly Aliyun
    • +
    • "ArvanCloud" +
        +
      • Arvan Cloud Object Storage (AOS)
      • +
    • "Ceph"
      • Ceph Object Storage
    • +
    • "ChinaMobile" +
        +
      • China Mobile Ecloud Elastic Object Storage (EOS)
      • +
    • +
    • "Cloudflare" +
        +
      • Cloudflare R2 Storage
      • +
    • "DigitalOcean"
        -
      • Digital Ocean Spaces
      • +
      • DigitalOcean Spaces
    • "Dreamhost"
      • Dreamhost DreamObjects
    • +
    • "GCS" +
        +
      • Google Cloud Storage
      • +
    • +
    • "HuaweiOBS" +
        +
      • Huawei Object Storage Service
      • +
    • "IBMCOS"
      • IBM COS S3
    • +
    • "IDrive" +
        +
      • IDrive e2
      • +
    • +
    • "IONOS" +
        +
      • IONOS Cloud
      • +
    • "LyveCloud"
      • Seagate Lyve Cloud
    • +
    • "Leviia" +
        +
      • Leviia Object Storage
      • +
    • +
    • "Liara" +
        +
      • Liara Object Storage
      • +
    • "Minio"
      • Minio Object Storage
      • @@ -10026,6 +12807,10 @@

        --s3-provider

        • Netease Object Storage (NOS)
        +
      • "Petabox" +
          +
        • Petabox Object Storage
        • +
      • "RackCorp"
        • RackCorp Object Storage
        • @@ -10046,6 +12831,10 @@

          --s3-provider

          • Storj (S3 Compatible Gateway)
          +
        • "Synology" +
            +
          • Synology C2 Object Storage
          • +
        • "TencentCOS"
          • Tencent Cloud Object Storage (COS)
          • @@ -10054,6 +12843,10 @@

            --s3-provider

            • Wasabi Object Storage
            +
          • "Qiniu" +
              +
            • Qiniu Object Storage (Kodo)
            • +
          • "Other"
            • Any other S3 compatible provider
            • @@ -10348,12122 +13141,20281 @@

              --s3-region

              • Paris, France
              +
            • "pl-waw" +
                +
              • Warsaw, Poland
              • +

          --s3-region

          -

          Region to connect to.

          -

          Leave blank if you are using an S3 clone and you don't have a region.

          +

          Region to connect to. - the location where your bucket will be created and your data stored. Need bo be same with your endpoint.

          Properties:

          • Config: region
          • Env Var: RCLONE_S3_REGION
          • -
          • Provider: !AWS,Alibaba,RackCorp,Scaleway,Storj,TencentCOS
          • +
          • Provider: HuaweiOBS
          • Type: string
          • Required: false
          • Examples:
              -
            • "" +
            • "af-south-1"
                -
              • Use this if unsure.
              • -
              • Will use v4 signatures and an empty region.
              • +
              • AF-Johannesburg
            • -
            • "other-v2-signature" +
            • "ap-southeast-2"
                -
              • Use this only if v4 signatures don't work.
              • -
              • E.g. pre Jewel/v10 CEPH.
              • -
            • +
            • AP-Bangkok
          • -
          -

          --s3-endpoint

          -

          Endpoint for S3 API.

          -

          Leave blank if using AWS to use the default endpoint for the region.

          -

          Properties:

          -
            -
          • Config: endpoint
          • -
          • Env Var: RCLONE_S3_ENDPOINT
          • -
          • Provider: AWS
          • -
          • Type: string
          • -
          • Required: false
          • -
          -

          --s3-endpoint

          -

          Endpoint for IBM COS S3 API.

          -

          Specify if using an IBM COS On Premise.

          -

          Properties:

          -
            -
          • Config: endpoint
          • -
          • Env Var: RCLONE_S3_ENDPOINT
          • -
          • Provider: IBMCOS
          • -
          • Type: string
          • -
          • Required: false
          • -
          • Examples: -
              -
            • "s3.us.cloud-object-storage.appdomain.cloud" +
            • "ap-southeast-3"
                -
              • US Cross Region Endpoint
              • +
              • AP-Singapore
            • -
            • "s3.dal.us.cloud-object-storage.appdomain.cloud" +
            • "cn-east-3"
                -
              • US Cross Region Dallas Endpoint
              • +
              • CN East-Shanghai1
            • -
            • "s3.wdc.us.cloud-object-storage.appdomain.cloud" +
            • "cn-east-2"
                -
              • US Cross Region Washington DC Endpoint
              • +
              • CN East-Shanghai2
            • -
            • "s3.sjc.us.cloud-object-storage.appdomain.cloud" +
            • "cn-north-1"
                -
              • US Cross Region San Jose Endpoint
              • +
              • CN North-Beijing1
            • -
            • "s3.private.us.cloud-object-storage.appdomain.cloud" +
            • "cn-north-4"
                -
              • US Cross Region Private Endpoint
              • +
              • CN North-Beijing4
            • -
            • "s3.private.dal.us.cloud-object-storage.appdomain.cloud" +
            • "cn-south-1"
                -
              • US Cross Region Dallas Private Endpoint
              • +
              • CN South-Guangzhou
            • -
            • "s3.private.wdc.us.cloud-object-storage.appdomain.cloud" +
            • "ap-southeast-1"
                -
              • US Cross Region Washington DC Private Endpoint
              • +
              • CN-Hong Kong
            • -
            • "s3.private.sjc.us.cloud-object-storage.appdomain.cloud" +
            • "sa-argentina-1"
                -
              • US Cross Region San Jose Private Endpoint
              • +
              • LA-Buenos Aires1
            • -
            • "s3.us-east.cloud-object-storage.appdomain.cloud" +
            • "sa-peru-1"
                -
              • US Region East Endpoint
              • +
              • LA-Lima1
            • -
            • "s3.private.us-east.cloud-object-storage.appdomain.cloud" +
            • "na-mexico-1"
                -
              • US Region East Private Endpoint
              • +
              • LA-Mexico City1
            • -
            • "s3.us-south.cloud-object-storage.appdomain.cloud" +
            • "sa-chile-1"
                -
              • US Region South Endpoint
              • +
              • LA-Santiago2
            • -
            • "s3.private.us-south.cloud-object-storage.appdomain.cloud" +
            • "sa-brazil-1"
                -
              • US Region South Private Endpoint
              • +
              • LA-Sao Paulo1
            • -
            • "s3.eu.cloud-object-storage.appdomain.cloud" +
            • "ru-northwest-2"
                -
              • EU Cross Region Endpoint
              • +
              • RU-Moscow2
            • -
            • "s3.fra.eu.cloud-object-storage.appdomain.cloud" -
                -
              • EU Cross Region Frankfurt Endpoint
            • -
            • "s3.mil.eu.cloud-object-storage.appdomain.cloud" +
            +

            --s3-region

            +

            Region to connect to.

            +

            Properties:

              -
            • EU Cross Region Milan Endpoint
            • -
          • -
          • "s3.ams.eu.cloud-object-storage.appdomain.cloud" +
          • Config: region
          • +
          • Env Var: RCLONE_S3_REGION
          • +
          • Provider: Cloudflare
          • +
          • Type: string
          • +
          • Required: false
          • +
          • Examples:
              -
            • EU Cross Region Amsterdam Endpoint
            • -
          • -
          • "s3.private.eu.cloud-object-storage.appdomain.cloud" +
          • "auto"
              -
            • EU Cross Region Private Endpoint
            • +
            • R2 buckets are automatically distributed across Cloudflare's data centers for low latency.
          • -
          • "s3.private.fra.eu.cloud-object-storage.appdomain.cloud" -
              -
            • EU Cross Region Frankfurt Private Endpoint
          • -
          • "s3.private.mil.eu.cloud-object-storage.appdomain.cloud" +
          +

          --s3-region

          +

          Region to connect to.

          +

          Properties:

            -
          • EU Cross Region Milan Private Endpoint
          • -
        • -
        • "s3.private.ams.eu.cloud-object-storage.appdomain.cloud" +
        • Config: region
        • +
        • Env Var: RCLONE_S3_REGION
        • +
        • Provider: Qiniu
        • +
        • Type: string
        • +
        • Required: false
        • +
        • Examples:
            -
          • EU Cross Region Amsterdam Private Endpoint
          • -
        • -
        • "s3.eu-gb.cloud-object-storage.appdomain.cloud" +
        • "cn-east-1"
            -
          • Great Britain Endpoint
          • +
          • The default endpoint - a good choice if you are unsure.
          • +
          • East China Region 1.
          • +
          • Needs location constraint cn-east-1.
        • -
        • "s3.private.eu-gb.cloud-object-storage.appdomain.cloud" +
        • "cn-east-2"
            -
          • Great Britain Private Endpoint
          • +
          • East China Region 2.
          • +
          • Needs location constraint cn-east-2.
        • -
        • "s3.eu-de.cloud-object-storage.appdomain.cloud" +
        • "cn-north-1"
            -
          • EU Region DE Endpoint
          • +
          • North China Region 1.
          • +
          • Needs location constraint cn-north-1.
        • -
        • "s3.private.eu-de.cloud-object-storage.appdomain.cloud" +
        • "cn-south-1"
            -
          • EU Region DE Private Endpoint
          • +
          • South China Region 1.
          • +
          • Needs location constraint cn-south-1.
        • -
        • "s3.ap.cloud-object-storage.appdomain.cloud" +
        • "us-north-1"
            -
          • APAC Cross Regional Endpoint
          • +
          • North America Region.
          • +
          • Needs location constraint us-north-1.
        • -
        • "s3.tok.ap.cloud-object-storage.appdomain.cloud" +
        • "ap-southeast-1"
            -
          • APAC Cross Regional Tokyo Endpoint
          • +
          • Southeast Asia Region 1.
          • +
          • Needs location constraint ap-southeast-1.
        • -
        • "s3.hkg.ap.cloud-object-storage.appdomain.cloud" +
        • "ap-northeast-1"
            -
          • APAC Cross Regional HongKong Endpoint
          • +
          • Northeast Asia Region 1.
          • +
          • Needs location constraint ap-northeast-1.
        • -
        • "s3.seo.ap.cloud-object-storage.appdomain.cloud" -
            -
          • APAC Cross Regional Seoul Endpoint
        • -
        • "s3.private.ap.cloud-object-storage.appdomain.cloud" +
        +

        --s3-region

        +

        Region where your bucket will be created and your data stored.

        +

        Properties:

          -
        • APAC Cross Regional Private Endpoint
        • -
      • -
      • "s3.private.tok.ap.cloud-object-storage.appdomain.cloud" +
      • Config: region
      • +
      • Env Var: RCLONE_S3_REGION
      • +
      • Provider: IONOS
      • +
      • Type: string
      • +
      • Required: false
      • +
      • Examples:
          -
        • APAC Cross Regional Tokyo Private Endpoint
        • -
      • -
      • "s3.private.hkg.ap.cloud-object-storage.appdomain.cloud" +
      • "de"
          -
        • APAC Cross Regional HongKong Private Endpoint
        • +
        • Frankfurt, Germany
      • -
      • "s3.private.seo.ap.cloud-object-storage.appdomain.cloud" +
      • "eu-central-2"
          -
        • APAC Cross Regional Seoul Private Endpoint
        • +
        • Berlin, Germany
      • -
      • "s3.jp-tok.cloud-object-storage.appdomain.cloud" +
      • "eu-south-2"
          -
        • APAC Region Japan Endpoint
        • +
        • Logrono, Spain
      • -
      • "s3.private.jp-tok.cloud-object-storage.appdomain.cloud" -
          -
        • APAC Region Japan Private Endpoint
      • -
      • "s3.au-syd.cloud-object-storage.appdomain.cloud" +
      +

      --s3-region

      +

      Region where your bucket will be created and your data stored.

      +

      Properties:

        -
      • APAC Region Australia Endpoint
      • -
    • -
    • "s3.private.au-syd.cloud-object-storage.appdomain.cloud" +
    • Config: region
    • +
    • Env Var: RCLONE_S3_REGION
    • +
    • Provider: Petabox
    • +
    • Type: string
    • +
    • Required: false
    • +
    • Examples:
        -
      • APAC Region Australia Private Endpoint
      • -
    • -
    • "s3.ams03.cloud-object-storage.appdomain.cloud" +
    • "us-east-1"
        -
      • Amsterdam Single Site Endpoint
      • +
      • US East (N. Virginia)
    • -
    • "s3.private.ams03.cloud-object-storage.appdomain.cloud" +
    • "eu-central-1"
        -
      • Amsterdam Single Site Private Endpoint
      • +
      • Europe (Frankfurt)
    • -
    • "s3.che01.cloud-object-storage.appdomain.cloud" +
    • "ap-southeast-1"
        -
      • Chennai Single Site Endpoint
      • +
      • Asia Pacific (Singapore)
    • -
    • "s3.private.che01.cloud-object-storage.appdomain.cloud" +
    • "me-south-1"
        -
      • Chennai Single Site Private Endpoint
      • +
      • Middle East (Bahrain)
    • -
    • "s3.mel01.cloud-object-storage.appdomain.cloud" +
    • "sa-east-1"
        -
      • Melbourne Single Site Endpoint
      • +
      • South America (São Paulo)
    • -
    • "s3.private.mel01.cloud-object-storage.appdomain.cloud" -
        -
      • Melbourne Single Site Private Endpoint
    • -
    • "s3.osl01.cloud-object-storage.appdomain.cloud" +
    +

    --s3-region

    +

    Region where your data stored.

    +

    Properties:

      -
    • Oslo Single Site Endpoint
    • -
  • -
  • "s3.private.osl01.cloud-object-storage.appdomain.cloud" +
  • Config: region
  • +
  • Env Var: RCLONE_S3_REGION
  • +
  • Provider: Synology
  • +
  • Type: string
  • +
  • Required: false
  • +
  • Examples:
      -
    • Oslo Single Site Private Endpoint
    • -
  • -
  • "s3.tor01.cloud-object-storage.appdomain.cloud" +
  • "eu-001"
      -
    • Toronto Single Site Endpoint
    • +
    • Europe Region 1
  • -
  • "s3.private.tor01.cloud-object-storage.appdomain.cloud" +
  • "eu-002"
      -
    • Toronto Single Site Private Endpoint
    • +
    • Europe Region 2
  • -
  • "s3.seo01.cloud-object-storage.appdomain.cloud" +
  • "us-001"
      -
    • Seoul Single Site Endpoint
    • +
    • US Region 1
  • -
  • "s3.private.seo01.cloud-object-storage.appdomain.cloud" +
  • "us-002"
      -
    • Seoul Single Site Private Endpoint
    • +
    • US Region 2
  • -
  • "s3.mon01.cloud-object-storage.appdomain.cloud" +
  • "tw-001"
      -
    • Montreal Single Site Endpoint
    • +
    • Asia (Taiwan)
  • -
  • "s3.private.mon01.cloud-object-storage.appdomain.cloud" -
      -
    • Montreal Single Site Private Endpoint
  • -
  • "s3.mex01.cloud-object-storage.appdomain.cloud" + +

    --s3-region

    +

    Region to connect to.

    +

    Leave blank if you are using an S3 clone and you don't have a region.

    +

    Properties:

      -
    • Mexico Single Site Endpoint
    • -
  • -
  • "s3.private.mex01.cloud-object-storage.appdomain.cloud" +
  • Config: region
  • +
  • Env Var: RCLONE_S3_REGION
  • +
  • Provider: !AWS,Alibaba,ArvanCloud,ChinaMobile,Cloudflare,IONOS,Petabox,Liara,Qiniu,RackCorp,Scaleway,Storj,Synology,TencentCOS,HuaweiOBS,IDrive
  • +
  • Type: string
  • +
  • Required: false
  • +
  • Examples:
      -
    • Mexico Single Site Private Endpoint
    • -
  • -
  • "s3.sjc04.cloud-object-storage.appdomain.cloud" +
  • ""
      -
    • San Jose Single Site Endpoint
    • +
    • Use this if unsure.
    • +
    • Will use v4 signatures and an empty region.
  • -
  • "s3.private.sjc04.cloud-object-storage.appdomain.cloud" +
  • "other-v2-signature"
      -
    • San Jose Single Site Private Endpoint
    • +
    • Use this only if v4 signatures don't work.
    • +
    • E.g. pre Jewel/v10 CEPH.
  • -
  • "s3.mil01.cloud-object-storage.appdomain.cloud" -
      -
    • Milan Single Site Endpoint
  • -
  • "s3.private.mil01.cloud-object-storage.appdomain.cloud" + +

    --s3-endpoint

    +

    Endpoint for S3 API.

    +

    Leave blank if using AWS to use the default endpoint for the region.

    +

    Properties:

      -
    • Milan Single Site Private Endpoint
    • -
  • -
  • "s3.hkg02.cloud-object-storage.appdomain.cloud" +
  • Config: endpoint
  • +
  • Env Var: RCLONE_S3_ENDPOINT
  • +
  • Provider: AWS
  • +
  • Type: string
  • +
  • Required: false
  • + +

    --s3-endpoint

    +

    Endpoint for China Mobile Ecloud Elastic Object Storage (EOS) API.

    +

    Properties:

    -
  • "s3.private.hkg02.cloud-object-storage.appdomain.cloud" +
  • Config: endpoint
  • +
  • Env Var: RCLONE_S3_ENDPOINT
  • +
  • Provider: ChinaMobile
  • +
  • Type: string
  • +
  • Required: false
  • +
  • Examples:
      -
    • Hong Kong Single Site Private Endpoint
    • -
  • -
  • "s3.par01.cloud-object-storage.appdomain.cloud" +
  • "eos-wuxi-1.cmecloud.cn"
      -
    • Paris Single Site Endpoint
    • +
    • The default endpoint - a good choice if you are unsure.
    • +
    • East China (Suzhou)
  • -
  • "s3.private.par01.cloud-object-storage.appdomain.cloud" +
  • "eos-jinan-1.cmecloud.cn"
      -
    • Paris Single Site Private Endpoint
    • +
    • East China (Jinan)
  • -
  • "s3.sng01.cloud-object-storage.appdomain.cloud" +
  • "eos-ningbo-1.cmecloud.cn"
      -
    • Singapore Single Site Endpoint
    • +
    • East China (Hangzhou)
  • -
  • "s3.private.sng01.cloud-object-storage.appdomain.cloud" +
  • "eos-shanghai-1.cmecloud.cn"
      -
    • Singapore Single Site Private Endpoint
    • -
  • +
  • East China (Shanghai-1)
  • - -

    --s3-endpoint

    -

    Endpoint for OSS API.

    -

    Properties:

    - -

    --s3-endpoint

    -

    Endpoint for Scaleway Object Storage.

    +

    --s3-endpoint

    +

    Endpoint for Arvan Cloud Object Storage (AOS) API.

    Properties:

    -

    --s3-endpoint

    -

    Endpoint for StackPath Object Storage.

    +

    --s3-endpoint

    +

    Endpoint for IBM COS S3 API.

    +

    Specify if using an IBM COS On Premise.

    Properties:

    -

    --s3-endpoint

    -

    Endpoint of the Shared Gateway.

    -

    Properties:

    - -

    --s3-endpoint

    -

    Endpoint for Tencent COS API.

    -

    Properties:

    - -

    --s3-endpoint

    -

    Endpoint for RackCorp Object Storage.

    -

    Properties:

    - -

    --s3-endpoint

    -

    Endpoint for S3 API.

    -

    Required when using an S3 clone.

    -

    Properties:

    - -

    --s3-location-constraint

    -

    Location constraint - must be set to match the Region.

    -

    Used when creating buckets only.

    -

    Properties:

    - +

    --s3-endpoint

    +

    Endpoint for Petabox S3 Object Storage.

    +

    Specify the endpoint from the same region.

    +

    Properties:

    -
  • "ap-northeast-2" +
  • Config: endpoint
  • +
  • Env Var: RCLONE_S3_ENDPOINT
  • +
  • Provider: Petabox
  • +
  • Type: string
  • +
  • Required: true
  • +
  • Examples:
      -
    • Asia Pacific (Seoul) Region
    • -
  • -
  • "ap-northeast-3" +
  • "s3.petabox.io"
      -
    • Asia Pacific (Osaka-Local) Region
    • +
    • US East (N. Virginia)
  • -
  • "ap-south-1" +
  • "s3.us-east-1.petabox.io"
      -
    • Asia Pacific (Mumbai) Region
    • +
    • US East (N. Virginia)
  • -
  • "ap-east-1" +
  • "s3.eu-central-1.petabox.io"
      -
    • Asia Pacific (Hong Kong) Region
    • +
    • Europe (Frankfurt)
  • -
  • "sa-east-1" +
  • "s3.ap-southeast-1.petabox.io"
      -
    • South America (Sao Paulo) Region
    • +
    • Asia Pacific (Singapore)
  • -
  • "me-south-1" +
  • "s3.me-south-1.petabox.io"
      -
    • Middle East (Bahrain) Region
    • +
    • Middle East (Bahrain)
  • -
  • "af-south-1" +
  • "s3.sa-east-1.petabox.io"
      -
    • Africa (Cape Town) Region
    • +
    • South America (São Paulo)
  • -
  • "cn-north-1" -
      -
    • China (Beijing) Region
  • -
  • "cn-northwest-1" + +

    --s3-endpoint

    +

    Endpoint for Leviia Object Storage API.

    +

    Properties:

      -
    • China (Ningxia) Region
    • -
  • -
  • "us-gov-east-1" +
  • Config: endpoint
  • +
  • Env Var: RCLONE_S3_ENDPOINT
  • +
  • Provider: Leviia
  • +
  • Type: string
  • +
  • Required: false
  • +
  • Examples:
      -
    • AWS GovCloud (US-East) Region
    • -
  • -
  • "us-gov-west-1" +
  • "s3.leviia.com"
      -
    • AWS GovCloud (US) Region
    • +
    • The default endpoint
    • +
    • Leviia
  • -

    --s3-location-constraint

    -

    Location constraint - must match endpoint when using IBM Cloud Public.

    -

    For on-prem COS, do not make a selection from this list, hit enter.

    +

    --s3-endpoint

    +

    Endpoint for Liara Object Storage API.

    Properties:

    -

    --s3-location-constraint

    -

    Location constraint - the location where your bucket will be located and your data stored.

    +

    --s3-endpoint

    +

    Endpoint for OBS API.

    Properties:

    -

    --s3-location-constraint

    -

    Location constraint - must be set to match the Region.

    -

    Leave blank if not sure. Used when creating buckets only.

    -

    Properties:

    - -

    --s3-acl

    -

    Canned ACL used when creating buckets and storing or copying objects.

    -

    This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.

    -

    For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl

    -

    Note that this ACL is applied when server-side copying objects as S3 doesn't copy the ACL from the source but rather writes a fresh one.

    +

    --s3-endpoint

    +

    Endpoint for Scaleway Object Storage.

    Properties:

    -

    --s3-server-side-encryption

    -

    The server-side encryption algorithm used when storing this object in S3.

    +

    --s3-endpoint

    +

    Endpoint for StackPath Object Storage.

    Properties:

    -

    --s3-sse-kms-key-id

    -

    If using KMS ID you must provide the ARN of Key.

    +

    --s3-endpoint

    +

    Endpoint for Google Cloud Storage.

    Properties:

    -

    --s3-storage-class

    -

    The storage class to use when storing new objects in S3.

    +

    --s3-endpoint

    +

    Endpoint for Storj Gateway.

    Properties:

    -

    --s3-storage-class

    -

    The storage class to use when storing new objects in OSS.

    +

    --s3-endpoint

    +

    Endpoint for Tencent COS API.

    Properties:

    -

    --s3-storage-class

    -

    The storage class to use when storing new objects in Tencent COS.

    -

    Properties:

    +
  • "cos.ap-nanjing.myqcloud.com"
      -
    • Config: storage_class
    • -
    • Env Var: RCLONE_S3_STORAGE_CLASS
    • -
    • Provider: TencentCOS
    • -
    • Type: string
    • -
    • Required: false
    • -
    • Examples: +
    • Nanjing Region
    • +
  • +
  • "cos.ap-chengdu.myqcloud.com"
      -
    • "" +
    • Chengdu Region
    • +
  • +
  • "cos.ap-chongqing.myqcloud.com"
      -
    • Default
    • +
    • Chongqing Region
  • -
  • "STANDARD" +
  • "cos.ap-hongkong.myqcloud.com"
      -
    • Standard storage class
    • +
    • Hong Kong (China) Region
  • -
  • "ARCHIVE" +
  • "cos.ap-singapore.myqcloud.com"
      -
    • Archive storage mode
    • +
    • Singapore Region
  • -
  • "STANDARD_IA" +
  • "cos.ap-mumbai.myqcloud.com"
      -
    • Infrequent access storage mode
    • +
    • Mumbai Region
  • +
  • "cos.ap-seoul.myqcloud.com" +
      +
    • Seoul Region
  • - -

    --s3-storage-class

    -

    The storage class to use when storing new objects in S3.

    -

    Properties:

    +
  • "cos.ap-bangkok.myqcloud.com"
      -
    • Config: storage_class
    • -
    • Env Var: RCLONE_S3_STORAGE_CLASS
    • -
    • Provider: Scaleway
    • -
    • Type: string
    • -
    • Required: false
    • -
    • Examples: +
    • Bangkok Region
    • +
  • +
  • "cos.ap-tokyo.myqcloud.com"
      -
    • "" +
    • Tokyo Region
    • +
  • +
  • "cos.na-siliconvalley.myqcloud.com"
      -
    • Default.
    • +
    • Silicon Valley Region
  • -
  • "STANDARD" +
  • "cos.na-ashburn.myqcloud.com"
      -
    • The Standard class for any upload.
    • -
    • Suitable for on-demand content like streaming or CDN.
    • +
    • Virginia Region
  • -
  • "GLACIER" +
  • "cos.na-toronto.myqcloud.com"
      -
    • Archived storage.
    • -
    • Prices are lower, but it needs to be restored first to be accessed.
    • +
    • Toronto Region
    • +
  • +
  • "cos.eu-frankfurt.myqcloud.com" +
      +
    • Frankfurt Region
    • +
  • +
  • "cos.eu-moscow.myqcloud.com" +
      +
    • Moscow Region
    • +
  • +
  • "cos.accelerate.myqcloud.com" +
      +
    • Use Tencent COS Accelerate Endpoint
  • -

    Advanced options

    -

    Here are the advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS).

    -

    --s3-bucket-acl

    -

    Canned ACL used when creating buckets.

    -

    For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl

    -

    Note that this ACL is applied when only when creating buckets. If it isn't set then "acl" is used instead.

    +

    --s3-endpoint

    +

    Endpoint for RackCorp Object Storage.

    Properties:

    +
  • "ph.s3.rackcorp.com"
      -
    • Config: sse_customer_algorithm
    • -
    • Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM
    • -
    • Provider: AWS,Ceph,Minio
    • -
    • Type: string
    • -
    • Required: false
    • -
    • Examples: +
    • Manila (Philippines) Endpoint
    • +
  • +
  • "th.s3.rackcorp.com"
      -
    • "" +
    • Bangkok (Thailand) Endpoint
    • +
  • +
  • "hk.s3.rackcorp.com"
      -
    • None
    • +
    • HK (Hong Kong) Endpoint
  • -
  • "AES256" +
  • "mn.s3.rackcorp.com"
      -
    • AES256
    • +
    • Ulaanbaatar (Mongolia) Endpoint
    • +
  • +
  • "kg.s3.rackcorp.com" +
      +
    • Bishkek (Kyrgyzstan) Endpoint
    • +
  • +
  • "id.s3.rackcorp.com" +
      +
    • Jakarta (Indonesia) Endpoint
    • +
  • +
  • "jp.s3.rackcorp.com" +
      +
    • Tokyo (Japan) Endpoint
    • +
  • +
  • "sg.s3.rackcorp.com" +
      +
    • SG (Singapore) Endpoint
    • +
  • +
  • "de.s3.rackcorp.com" +
      +
    • Frankfurt (Germany) Endpoint
    • +
  • +
  • "us.s3.rackcorp.com" +
      +
    • USA (AnyCast) Endpoint
    • +
  • +
  • "us-east-1.s3.rackcorp.com" +
      +
    • New York (USA) Endpoint
    • +
  • +
  • "us-west-1.s3.rackcorp.com" +
      +
    • Freemont (USA) Endpoint
    • +
  • +
  • "nz.s3.rackcorp.com" +
      +
    • Auckland (New Zealand) Endpoint
  • -

    --s3-sse-customer-key

    -

    If using SSE-C you must provide the secret encryption key used to encrypt/decrypt your data.

    +

    --s3-endpoint

    +

    Endpoint for Qiniu Object Storage.

    Properties:

    -

    --s3-sse-customer-key-md5

    -

    If using SSE-C you may provide the secret encryption key MD5 checksum (optional).

    -

    If you leave it blank, this is calculated automatically from the sse_customer_key provided.

    +

    --s3-endpoint

    +

    Endpoint for S3 API.

    +

    Required when using an S3 clone.

    Properties:

    +
  • "fra1.digitaloceanspaces.com"
      -
    • Config: chunk_size
    • -
    • Env Var: RCLONE_S3_CHUNK_SIZE
    • -
    • Type: SizeSuffix
    • -
    • Default: 5Mi
    • -
    -

    --s3-max-upload-parts

    -

    Maximum number of parts in a multipart upload.

    -

    This option defines the maximum number of multipart chunks to use when doing a multipart upload.

    -

    This can be useful if a service does not support the AWS S3 specification of 10,000 chunks.

    -

    Rclone will automatically increase the chunk size when uploading a large file of a known size to stay below this number of chunks limit.

    -

    Properties:

    +
  • DigitalOcean Spaces Frankfurt 1
  • + +
  • "nyc3.digitaloceanspaces.com"
      -
    • Config: max_upload_parts
    • -
    • Env Var: RCLONE_S3_MAX_UPLOAD_PARTS
    • -
    • Type: int
    • -
    • Default: 10000
    • -
    -

    --s3-copy-cutoff

    -

    Cutoff for switching to multipart copy.

    -

    Any files larger than this that need to be server-side copied will be copied in chunks of this size.

    -

    The minimum is 0 and the maximum is 5 GiB.

    -

    Properties:

    +
  • DigitalOcean Spaces New York 3
  • + +
  • "ams3.digitaloceanspaces.com"
      -
    • Config: copy_cutoff
    • -
    • Env Var: RCLONE_S3_COPY_CUTOFF
    • -
    • Type: SizeSuffix
    • -
    • Default: 4.656Gi
    • -
    -

    --s3-disable-checksum

    -

    Don't store MD5 checksum with object metadata.

    -

    Normally rclone will calculate the MD5 checksum of the input before uploading it so it can add it to metadata on the object. This is great for data integrity checking but can cause long delays for large files to start uploading.

    -

    Properties:

    +
  • DigitalOcean Spaces Amsterdam 3
  • + +
  • "sgp1.digitaloceanspaces.com"
      -
    • Config: disable_checksum
    • -
    • Env Var: RCLONE_S3_DISABLE_CHECKSUM
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-shared-credentials-file

    -

    Path to the shared credentials file.

    -

    If env_auth = true then rclone can use a shared credentials file.

    -

    If this variable is empty rclone will look for the "AWS_SHARED_CREDENTIALS_FILE" env variable. If the env value is empty it will default to the current user's home directory.

    -
    Linux/OSX: "$HOME/.aws/credentials"
    -Windows:   "%USERPROFILE%\.aws\credentials"
    -

    Properties:

    +
  • DigitalOcean Spaces Singapore 1
  • + +
  • "localhost:8333"
      -
    • Config: shared_credentials_file
    • -
    • Env Var: RCLONE_S3_SHARED_CREDENTIALS_FILE
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --s3-profile

    -

    Profile to use in the shared credentials file.

    -

    If env_auth = true then rclone can use a shared credentials file. This variable controls which profile is used in that file.

    -

    If empty it will default to the environment variable "AWS_PROFILE" or "default" if that environment variable is also not set.

    -

    Properties:

    +
  • SeaweedFS S3 localhost
  • + +
  • "s3.us-east-1.lyvecloud.seagate.com"
      -
    • Config: profile
    • -
    • Env Var: RCLONE_S3_PROFILE
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --s3-session-token

    -

    An AWS session token.

    -

    Properties:

    +
  • Seagate Lyve Cloud US East 1 (Virginia)
  • + +
  • "s3.us-west-1.lyvecloud.seagate.com"
      -
    • Config: session_token
    • -
    • Env Var: RCLONE_S3_SESSION_TOKEN
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --s3-upload-concurrency

    -

    Concurrency for multipart uploads.

    -

    This is the number of chunks of the same file that are uploaded concurrently.

    -

    If you are uploading small numbers of large files over high-speed links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers.

    -

    Properties:

    +
  • Seagate Lyve Cloud US West 1 (California)
  • + +
  • "s3.ap-southeast-1.lyvecloud.seagate.com"
      -
    • Config: upload_concurrency
    • -
    • Env Var: RCLONE_S3_UPLOAD_CONCURRENCY
    • -
    • Type: int
    • -
    • Default: 4
    • -
    -

    --s3-force-path-style

    -

    If true use path style access if false use virtual hosted style.

    -

    If this is true (the default) then rclone will use path style access, if false then rclone will use virtual path style. See the AWS S3 docs for more info.

    -

    Some providers (e.g. AWS, Aliyun OSS, Netease COS, or Tencent COS) require this set to false - rclone will do this automatically based on the provider setting.

    -

    Properties:

    +
  • Seagate Lyve Cloud AP Southeast 1 (Singapore)
  • + +
  • "s3.wasabisys.com"
      -
    • Config: force_path_style
    • -
    • Env Var: RCLONE_S3_FORCE_PATH_STYLE
    • -
    • Type: bool
    • -
    • Default: true
    • -
    -

    --s3-v2-auth

    -

    If true use v2 authentication.

    -

    If this is false (the default) then rclone will use v4 authentication. If it is set then rclone will use v2 authentication.

    -

    Use this only if v4 signatures don't work, e.g. pre Jewel/v10 CEPH.

    -

    Properties:

    +
  • Wasabi US East 1 (N. Virginia)
  • + +
  • "s3.us-east-2.wasabisys.com"
      -
    • Config: v2_auth
    • -
    • Env Var: RCLONE_S3_V2_AUTH
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-use-accelerate-endpoint

    -

    If true use the AWS S3 accelerated endpoint.

    -

    See: AWS S3 Transfer acceleration

    -

    Properties:

    +
  • Wasabi US East 2 (N. Virginia)
  • + +
  • "s3.us-central-1.wasabisys.com"
      -
    • Config: use_accelerate_endpoint
    • -
    • Env Var: RCLONE_S3_USE_ACCELERATE_ENDPOINT
    • -
    • Provider: AWS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-leave-parts-on-error

    -

    If true avoid calling abort upload on a failure, leaving all successfully uploaded parts on S3 for manual recovery.

    -

    It should be set to true for resuming uploads across different sessions.

    -

    WARNING: Storing parts of an incomplete multipart upload counts towards space usage on S3 and will add additional costs if not cleaned up.

    -

    Properties:

    +
  • Wasabi US Central 1 (Texas)
  • + +
  • "s3.us-west-1.wasabisys.com"
      -
    • Config: leave_parts_on_error
    • -
    • Env Var: RCLONE_S3_LEAVE_PARTS_ON_ERROR
    • -
    • Provider: AWS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-list-chunk

    -

    Size of listing chunk (response list for each ListObject S3 request).

    -

    This option is also known as "MaxKeys", "max-items", or "page-size" from the AWS S3 specification. Most services truncate the response list to 1000 objects even if requested more than that. In AWS S3 this is a global maximum and cannot be changed, see AWS S3. In Ceph, this can be increased with the "rgw list buckets max chunk" option.

    -

    Properties:

    +
  • Wasabi US West 1 (Oregon)
  • + +
  • "s3.ca-central-1.wasabisys.com"
      -
    • Config: list_chunk
    • -
    • Env Var: RCLONE_S3_LIST_CHUNK
    • -
    • Type: int
    • -
    • Default: 1000
    • -
    -

    --s3-list-version

    -

    Version of ListObjects to use: 1,2 or 0 for auto.

    -

    When S3 originally launched it only provided the ListObjects call to enumerate objects in a bucket.

    -

    However in May 2016 the ListObjectsV2 call was introduced. This is much higher performance and should be used if at all possible.

    -

    If set to the default, 0, rclone will guess according to the provider set which list objects method to call. If it guesses wrong, then it may be set manually here.

    -

    Properties:

    +
  • Wasabi CA Central 1 (Toronto)
  • + +
  • "s3.eu-central-1.wasabisys.com"
      -
    • Config: list_version
    • -
    • Env Var: RCLONE_S3_LIST_VERSION
    • -
    • Type: int
    • -
    • Default: 0
    • -
    -

    --s3-list-url-encode

    -

    Whether to url encode listings: true/false/unset

    -

    Some providers support URL encoding listings and where this is available this is more reliable when using control characters in file names. If this is set to unset (the default) then rclone will choose according to the provider setting what to apply, but you can override rclone's choice here.

    -

    Properties:

    +
  • Wasabi EU Central 1 (Amsterdam)
  • + +
  • "s3.eu-central-2.wasabisys.com"
      -
    • Config: list_url_encode
    • -
    • Env Var: RCLONE_S3_LIST_URL_ENCODE
    • -
    • Type: Tristate
    • -
    • Default: unset
    • -
    -

    --s3-no-check-bucket

    -

    If set, don't attempt to check the bucket exists or create it.

    -

    This can be useful when trying to minimise the number of transactions rclone does if you know the bucket exists already.

    -

    It can also be needed if the user you are using does not have bucket creation permissions. Before v1.52.0 this would have passed silently due to a bug.

    -

    Properties:

    +
  • Wasabi EU Central 2 (Frankfurt)
  • + +
  • "s3.eu-west-1.wasabisys.com"
      -
    • Config: no_check_bucket
    • -
    • Env Var: RCLONE_S3_NO_CHECK_BUCKET
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-no-head

    -

    If set, don't HEAD uploaded objects to check integrity.

    -

    This can be useful when trying to minimise the number of transactions rclone does.

    -

    Setting it means that if rclone receives a 200 OK message after uploading an object with PUT then it will assume that it got uploaded properly.

    -

    In particular it will assume:

    +
  • Wasabi EU West 1 (London)
  • + +
  • "s3.eu-west-2.wasabisys.com"
      -
    • the metadata, including modtime, storage class and content type was as uploaded
    • -
    • the size was as uploaded
    • -
    -

    It reads the following items from the response for a single part PUT:

    +
  • Wasabi EU West 2 (Paris)
  • + +
  • "s3.ap-northeast-1.wasabisys.com"
      -
    • the MD5SUM
    • -
    • The uploaded date
    • -
    -

    For multipart uploads these items aren't read.

    -

    If an source object of unknown length is uploaded then rclone will do a HEAD request.

    -

    Setting this flag increases the chance for undetected upload failures, in particular an incorrect size, so it isn't recommended for normal operation. In practice the chance of an undetected upload failure is very small even with this flag.

    -

    Properties:

    +
  • Wasabi AP Northeast 1 (Tokyo) endpoint
  • + +
  • "s3.ap-northeast-2.wasabisys.com"
      -
    • Config: no_head
    • -
    • Env Var: RCLONE_S3_NO_HEAD
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-no-head-object

    -

    If set, do not do HEAD before GET when getting objects.

    -

    Properties:

    +
  • Wasabi AP Northeast 2 (Osaka) endpoint
  • + +
  • "s3.ap-southeast-1.wasabisys.com"
      -
    • Config: no_head_object
    • -
    • Env Var: RCLONE_S3_NO_HEAD_OBJECT
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • Wasabi AP Southeast 1 (Singapore)
  • + +
  • "s3.ap-southeast-2.wasabisys.com"
      -
    • Config: encoding
    • -
    • Env Var: RCLONE_S3_ENCODING
    • -
    • Type: MultiEncoder
    • -
    • Default: Slash,InvalidUtf8,Dot
    • -
    -

    --s3-memory-pool-flush-time

    -

    How often internal memory buffer pools will be flushed.

    -

    Uploads which requires additional buffers (f.e multipart) will use memory pool for allocations. This option controls how often unused buffers will be removed from the pool.

    -

    Properties:

    +
  • Wasabi AP Southeast 2 (Sydney)
  • + +
  • "storage.iran.liara.space"
      -
    • Config: memory_pool_flush_time
    • -
    • Env Var: RCLONE_S3_MEMORY_POOL_FLUSH_TIME
    • -
    • Type: Duration
    • -
    • Default: 1m0s
    • -
    -

    --s3-memory-pool-use-mmap

    -

    Whether to use mmap buffers in internal memory pool.

    -

    Properties:

    +
  • Liara Iran endpoint
  • + +
  • "s3.ir-thr-at1.arvanstorage.ir"
      -
    • Config: memory_pool_use_mmap
    • -
    • Env Var: RCLONE_S3_MEMORY_POOL_USE_MMAP
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --s3-disable-http2

    -

    Disable usage of http2 for S3 backends.

    -

    There is currently an unsolved issue with the s3 (specifically minio) backend and HTTP/2. HTTP/2 is enabled by default for the s3 backend but can be disabled here. When the issue is solved this flag will be removed.

    -

    See: https://github.com/rclone/rclone/issues/4673, https://github.com/rclone/rclone/issues/3631

    -

    Properties:

    +
  • ArvanCloud Tehran Iran (Simin) endpoint
  • + +
  • "s3.ir-tbz-sh1.arvanstorage.ir"
      -
    • Config: disable_http2
    • -
    • Env Var: RCLONE_S3_DISABLE_HTTP2
    • -
    • Type: bool
    • -
    • Default: false
    • +
    • ArvanCloud Tabriz Iran (Shahriar) endpoint
    • +
  • + -

    --s3-download-url

    -

    Custom endpoint for downloads. This is usually set to a CloudFront CDN URL as AWS S3 offers cheaper egress for data downloaded through the CloudFront network.

    +

    --s3-location-constraint

    +

    Location constraint - must be set to match the Region.

    +

    Used when creating buckets only.

    Properties:

    -

    --s3-use-multipart-etag

    -

    Whether to use ETag in multipart uploads for verification

    -

    This should be true, false or left unset to use the default for the provider.

    -

    Properties:

    +
  • Examples:
      -
    • Config: use_multipart_etag
    • -
    • Env Var: RCLONE_S3_USE_MULTIPART_ETAG
    • -
    • Type: Tristate
    • -
    • Default: unset
    • -
    -

    Backend commands

    -

    Here are the commands specific to the s3 backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    restore

    -

    Restore objects from GLACIER to normal storage

    -
    rclone backend restore remote: [options] [<arguments>+]
    -

    This command can be used to restore one or more objects from GLACIER to normal storage.

    -

    Usage Examples:

    -
    rclone backend restore s3:bucket/path/to/object [-o priority=PRIORITY] [-o lifetime=DAYS]
    -rclone backend restore s3:bucket/path/to/directory [-o priority=PRIORITY] [-o lifetime=DAYS]
    -rclone backend restore s3:bucket [-o priority=PRIORITY] [-o lifetime=DAYS]
    -

    This flag also obeys the filters. Test first with -i/--interactive or --dry-run flags

    -
    rclone -i backend restore --include "*.txt" s3:bucket/path -o priority=Standard
    -

    All the objects shown will be marked for restore, then

    -
    rclone backend restore --include "*.txt" s3:bucket/path -o priority=Standard
    -

    It returns a list of status dictionaries with Remote and Status keys. The Status will be OK if it was successful or an error message if not.

    -
    [
    -    {
    -        "Status": "OK",
    -        "Path": "test.txt"
    -    },
    -    {
    -        "Status": "OK",
    -        "Path": "test/file4.txt"
    -    }
    -]
    -

    Options:

    +
  • ""
      -
    • "description": The optional description for the job.
    • -
    • "lifetime": Lifetime of the active copy in days
    • -
    • "priority": Priority of restore: Standard|Expedited|Bulk
    • +
    • Empty for US Region, Northern Virginia, or Pacific Northwest
    • +
  • +
  • "us-east-2" +
      +
    • US East (Ohio) Region
    • +
  • +
  • "us-west-1" +
      +
    • US West (Northern California) Region
    • +
  • +
  • "us-west-2" +
      +
    • US West (Oregon) Region
    • +
  • +
  • "ca-central-1" +
      +
    • Canada (Central) Region
    • +
  • +
  • "eu-west-1" +
      +
    • EU (Ireland) Region
    • +
  • +
  • "eu-west-2" +
      +
    • EU (London) Region
    • +
  • +
  • "eu-west-3" +
      +
    • EU (Paris) Region
    • +
  • +
  • "eu-north-1" +
      +
    • EU (Stockholm) Region
    • +
  • +
  • "eu-south-1" +
      +
    • EU (Milan) Region
    • +
  • +
  • "EU" +
      +
    • EU Region
    • +
  • +
  • "ap-southeast-1" +
      +
    • Asia Pacific (Singapore) Region
    • +
  • +
  • "ap-southeast-2" +
      +
    • Asia Pacific (Sydney) Region
    • +
  • +
  • "ap-northeast-1" +
      +
    • Asia Pacific (Tokyo) Region
    • +
  • +
  • "ap-northeast-2" +
      +
    • Asia Pacific (Seoul) Region
    • +
  • +
  • "ap-northeast-3" +
      +
    • Asia Pacific (Osaka-Local) Region
    • +
  • +
  • "ap-south-1" +
      +
    • Asia Pacific (Mumbai) Region
    • +
  • +
  • "ap-east-1" +
      +
    • Asia Pacific (Hong Kong) Region
    • +
  • +
  • "sa-east-1" +
      +
    • South America (Sao Paulo) Region
    • +
  • +
  • "me-south-1" +
      +
    • Middle East (Bahrain) Region
    • +
  • +
  • "af-south-1" +
      +
    • Africa (Cape Town) Region
    • +
  • +
  • "cn-north-1" +
      +
    • China (Beijing) Region
    • +
  • +
  • "cn-northwest-1" +
      +
    • China (Ningxia) Region
    • +
  • +
  • "us-gov-east-1" +
      +
    • AWS GovCloud (US-East) Region
    • +
  • +
  • "us-gov-west-1" +
      +
    • AWS GovCloud (US) Region
    • +
  • + -

    list-multipart-uploads

    -

    List the unfinished multipart uploads

    -
    rclone backend list-multipart-uploads remote: [options] [<arguments>+]
    -

    This command lists the unfinished multipart uploads in JSON format.

    -
    rclone backend list-multipart s3:bucket/path/to/object
    -

    It returns a dictionary of buckets with values as lists of unfinished multipart uploads.

    -

    You can call it with no bucket in which case it lists all bucket, with a bucket or with a bucket and path.

    -
    {
    -  "rclone": [
    -    {
    -      "Initiated": "2020-06-26T14:20:36Z",
    -      "Initiator": {
    -        "DisplayName": "XXX",
    -        "ID": "arn:aws:iam::XXX:user/XXX"
    -      },
    -      "Key": "KEY",
    -      "Owner": {
    -        "DisplayName": null,
    -        "ID": "XXX"
    -      },
    -      "StorageClass": "STANDARD",
    -      "UploadId": "XXX"
    -    }
    -  ],
    -  "rclone-1000files": [],
    -  "rclone-dst": []
    -}
    -

    cleanup

    -

    Remove unfinished multipart uploads.

    -
    rclone backend cleanup remote: [options] [<arguments>+]
    -

    This command removes unfinished multipart uploads of age greater than max-age which defaults to 24 hours.

    -

    Note that you can use -i/--dry-run with this command to see what it would do.

    -
    rclone backend cleanup s3:bucket/path/to/object
    -rclone backend cleanup -o max-age=7w s3:bucket/path/to/object
    -

    Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.

    -

    Options:

    +

    --s3-location-constraint

    +

    Location constraint - must match endpoint.

    +

    Used when creating buckets only.

    +

    Properties:

    -

    Anonymous access to public buckets

    -

    If you want to use rclone to access a public bucket, configure with a blank access_key_id and secret_access_key. Your config should end up looking like this:

    -
    [anons3]
    -type = s3
    -provider = AWS
    -env_auth = false
    -access_key_id =
    -secret_access_key =
    -region = us-east-1
    -endpoint =
    -location_constraint =
    -acl = private
    -server_side_encryption =
    -storage_class =
    -

    Then use it as normal with the name of the public bucket, e.g.

    -
    rclone lsd anons3:1000genomes
    -

    You will be able to list and copy data but not upload it.

    -

    Providers

    -

    AWS S3

    -

    This is the provider used as main example and described in the configuration section above.

    -

    AWS Snowball Edge

    -

    AWS Snowball is a hardware appliance used for transferring bulk data back to AWS. Its main software interface is S3 object storage.

    -

    To use rclone with AWS Snowball Edge devices, configure as standard for an 'S3 Compatible Service' be sure to set upload_cutoff = 0 otherwise you will run into authentication header issues as the snowball device does not support query parameter based authentication.

    -

    eg.

    -
    [snowball]
    -type = s3
    -provider = Other
    -access_key_id = YOUR_ACCESS_KEY
    -secret_access_key = YOUR_SECRET_KEY
    -endpoint = http://[IP of Snowball]:8080
    -upload_cutoff = 0
    -

    Ceph

    -

    Ceph is an open-source, unified, distributed storage system designed for excellent performance, reliability and scalability. It has an S3 compatible object storage interface.

    -

    To use rclone with Ceph, configure as above but leave the region blank and set the endpoint. You should end up with something like this in your config:

    -
    [ceph]
    -type = s3
    -provider = Ceph
    -env_auth = false
    -access_key_id = XXX
    -secret_access_key = YYY
    -region =
    -endpoint = https://ceph.endpoint.example.com
    -location_constraint =
    -acl =
    -server_side_encryption =
    -storage_class =
    -

    If you are using an older version of CEPH, e.g. 10.2.x Jewel, then you may need to supply the parameter --s3-upload-cutoff 0 or put this in the config file as upload_cutoff 0 to work around a bug which causes uploading of small files to fail.

    -

    Note also that Ceph sometimes puts / in the passwords it gives users. If you read the secret access key using the command line tools you will get a JSON blob with the / escaped as \/. Make sure you only write / in the secret access key.

    -

    Eg the dump from Ceph looks something like this (irrelevant keys removed).

    -
    {
    -    "user_id": "xxx",
    -    "display_name": "xxxx",
    -    "keys": [
    -        {
    -            "user": "xxx",
    -            "access_key": "xxxxxx",
    -            "secret_key": "xxxxxx\/xxxx"
    -        }
    -    ],
    -}
    -

    Because this is a json dump, it is encoding the / as \/, so if you use the secret key as xxxxxx/xxxx it will work fine.

    -

    Dreamhost

    -

    Dreamhost DreamObjects is an object storage system based on CEPH.

    -

    To use rclone with Dreamhost, configure as above but leave the region blank and set the endpoint. You should end up with something like this in your config:

    -
    [dreamobjects]
    -type = s3
    -provider = DreamHost
    -env_auth = false
    -access_key_id = your_access_key
    -secret_access_key = your_secret_key
    -region =
    -endpoint = objects-us-west-1.dream.io
    -location_constraint =
    -acl = private
    -server_side_encryption =
    -storage_class =
    -

    DigitalOcean Spaces

    -

    Spaces is an S3-interoperable object storage service from cloud provider DigitalOcean.

    -

    To connect to DigitalOcean Spaces you will need an access key and secret key. These can be retrieved on the "Applications & API" page of the DigitalOcean control panel. They will be needed when prompted by rclone config for your access_key_id and secret_access_key.

    -

    When prompted for a region or location_constraint, press enter to use the default value. The region must be included in the endpoint setting (e.g. nyc3.digitaloceanspaces.com). The default values can be used for other settings.

    -

    Going through the whole process of creating a new remote by running rclone config, each prompt should be answered as shown below:

    -
    Storage> s3
    -env_auth> 1
    -access_key_id> YOUR_ACCESS_KEY
    -secret_access_key> YOUR_SECRET_KEY
    -region>
    -endpoint> nyc3.digitaloceanspaces.com
    -location_constraint>
    -acl>
    -storage_class>
    -

    The resulting configuration file should look like:

    -
    [spaces]
    -type = s3
    -provider = DigitalOcean
    -env_auth = false
    -access_key_id = YOUR_ACCESS_KEY
    -secret_access_key = YOUR_SECRET_KEY
    -region =
    -endpoint = nyc3.digitaloceanspaces.com
    -location_constraint =
    -acl =
    -server_side_encryption =
    -storage_class =
    -

    Once configured, you can create a new Space and begin copying files. For example:

    -
    rclone mkdir spaces:my-new-space
    -rclone copy /path/to/files spaces:my-new-space
    -

    IBM COS (S3)

    -

    Information stored with IBM Cloud Object Storage is encrypted and dispersed across multiple geographic locations, and accessed through an implementation of the S3 API. This service makes use of the distributed storage technologies provided by IBM’s Cloud Object Storage System (formerly Cleversafe). For more information visit: (http://www.ibm.com/cloud/object-storage)

    -

    To configure access to IBM COS S3, follow the steps below:

    -
      -
    1. Run rclone config and select n for a new remote.
    2. -
    -
        2018/02/14 14:13:11 NOTICE: Config file "C:\\Users\\a\\.config\\rclone\\rclone.conf" not found - using defaults
    -    No remotes found, make a new one?
    -    n) New remote
    -    s) Set configuration password
    -    q) Quit config
    -    n/s/q> n
    -
      -
    1. Enter the name for the configuration
    2. -
    -
        name> <YOUR NAME>
    -
      -
    1. Select "s3" storage.
    2. -
    -
    Choose a number from below, or type in your own value
    -    1 / Alias for an existing remote
    -    \ "alias"
    -    2 / Amazon Drive
    -    \ "amazon cloud drive"
    -    3 / Amazon S3 Complaint Storage Providers (Dreamhost, Ceph, Minio, IBM COS)
    -    \ "s3"
    -    4 / Backblaze B2
    -    \ "b2"
    -[snip]
    -    23 / http Connection
    -    \ "http"
    -Storage> 3
    -
      -
    1. Select IBM COS as the S3 Storage Provider.
    2. -
    -
    Choose the S3 provider.
    -Choose a number from below, or type in your own value
    -     1 / Choose this option to configure Storage to AWS S3
    -       \ "AWS"
    -     2 / Choose this option to configure Storage to Ceph Systems
    -     \ "Ceph"
    -     3 /  Choose this option to configure Storage to Dreamhost
    -     \ "Dreamhost"
    -   4 / Choose this option to the configure Storage to IBM COS S3
    -     \ "IBMCOS"
    -     5 / Choose this option to the configure Storage to Minio
    -     \ "Minio"
    -     Provider>4
    -
      -
    1. Enter the Access Key and Secret.
    2. -
    -
        AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    -    access_key_id> <>
    -    AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    -    secret_access_key> <>
    -
      -
    1. Specify the endpoint for IBM COS. For Public IBM COS, choose from the option below. For On Premise IBM COS, enter an endpoint address.
    2. -
    -
        Endpoint for IBM COS S3 API.
    -    Specify if using an IBM COS On Premise.
    -    Choose a number from below, or type in your own value
    -     1 / US Cross Region Endpoint
    -       \ "s3-api.us-geo.objectstorage.softlayer.net"
    -     2 / US Cross Region Dallas Endpoint
    -       \ "s3-api.dal.us-geo.objectstorage.softlayer.net"
    -     3 / US Cross Region Washington DC Endpoint
    -       \ "s3-api.wdc-us-geo.objectstorage.softlayer.net"
    -     4 / US Cross Region San Jose Endpoint
    -       \ "s3-api.sjc-us-geo.objectstorage.softlayer.net"
    -     5 / US Cross Region Private Endpoint
    -       \ "s3-api.us-geo.objectstorage.service.networklayer.com"
    -     6 / US Cross Region Dallas Private Endpoint
    -       \ "s3-api.dal-us-geo.objectstorage.service.networklayer.com"
    -     7 / US Cross Region Washington DC Private Endpoint
    -       \ "s3-api.wdc-us-geo.objectstorage.service.networklayer.com"
    -     8 / US Cross Region San Jose Private Endpoint
    -       \ "s3-api.sjc-us-geo.objectstorage.service.networklayer.com"
    -     9 / US Region East Endpoint
    -       \ "s3.us-east.objectstorage.softlayer.net"
    -    10 / US Region East Private Endpoint
    -       \ "s3.us-east.objectstorage.service.networklayer.com"
    -    11 / US Region South Endpoint
    -[snip]
    -    34 / Toronto Single Site Private Endpoint
    -       \ "s3.tor01.objectstorage.service.networklayer.com"
    -    endpoint>1
    -
      -
    1. Specify a IBM COS Location Constraint. The location constraint must match endpoint when using IBM Cloud Public. For on-prem COS, do not make a selection from this list, hit enter
    2. -
    -
         1 / US Cross Region Standard
    -       \ "us-standard"
    -     2 / US Cross Region Vault
    -       \ "us-vault"
    -     3 / US Cross Region Cold
    -       \ "us-cold"
    -     4 / US Cross Region Flex
    -       \ "us-flex"
    -     5 / US East Region Standard
    -       \ "us-east-standard"
    -     6 / US East Region Vault
    -       \ "us-east-vault"
    -     7 / US East Region Cold
    -       \ "us-east-cold"
    -     8 / US East Region Flex
    -       \ "us-east-flex"
    -     9 / US South Region Standard
    -       \ "us-south-standard"
    -    10 / US South Region Vault
    -       \ "us-south-vault"
    -[snip]
    -    32 / Toronto Flex
    -       \ "tor01-flex"
    -location_constraint>1
    -
      -
    1. Specify a canned ACL. IBM Cloud (Storage) supports "public-read" and "private". IBM Cloud(Infra) supports all the canned ACLs. On-Premise COS supports all the canned ACLs.
    2. -
    -
    Canned ACL used when creating buckets and/or storing objects in S3.
    -For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    -Choose a number from below, or type in your own value
    -      1 / Owner gets FULL_CONTROL. No one else has access rights (default). This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise COS
    -      \ "private"
    -      2  / Owner gets FULL_CONTROL. The AllUsers group gets READ access. This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise IBM COS
    -      \ "public-read"
    -      3 / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access. This acl is available on IBM Cloud (Infra), On-Premise IBM COS
    -      \ "public-read-write"
    -      4  / Owner gets FULL_CONTROL. The AuthenticatedUsers group gets READ access. Not supported on Buckets. This acl is available on IBM Cloud (Infra) and On-Premise IBM COS
    -      \ "authenticated-read"
    -acl> 1
    -
      -
    1. Review the displayed configuration and accept to save the "remote" then quit. The config file should look like this
    2. -
    -
        [xxx]
    -    type = s3
    -    Provider = IBMCOS
    -    access_key_id = xxx
    -    secret_access_key = yyy
    -    endpoint = s3-api.us-geo.objectstorage.softlayer.net
    -    location_constraint = us-standard
    -    acl = private
    -
      -
    1. Execute rclone commands
    2. -
    -
        1)  Create a bucket.
    -        rclone mkdir IBM-COS-XREGION:newbucket
    -    2)  List available buckets.
    -        rclone lsd IBM-COS-XREGION:
    -        -1 2017-11-08 21:16:22        -1 test
    -        -1 2018-02-14 20:16:39        -1 newbucket
    -    3)  List contents of a bucket.
    -        rclone ls IBM-COS-XREGION:newbucket
    -        18685952 test.exe
    -    4)  Copy a file from local to remote.
    -        rclone copy /Users/file.txt IBM-COS-XREGION:newbucket
    -    5)  Copy a file from remote to local.
    -        rclone copy IBM-COS-XREGION:newbucket/file.txt .
    -    6)  Delete a file on remote.
    -        rclone delete IBM-COS-XREGION:newbucket/file.txt
    -

    Minio

    -

    Minio is an object storage server built for cloud application developers and devops.

    -

    It is very easy to install and provides an S3 compatible server which can be used by rclone.

    -

    To use it, install Minio following the instructions here.

    -

    When it configures itself Minio will print something like this

    -
    Endpoint:  http://192.168.1.106:9000  http://172.23.0.1:9000
    -AccessKey: USWUXHGYZQYFYFFIT3RE
    -SecretKey: MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    -Region:    us-east-1
    -SQS ARNs:  arn:minio:sqs:us-east-1:1:redis arn:minio:sqs:us-east-1:2:redis
    -
    -Browser Access:
    -   http://192.168.1.106:9000  http://172.23.0.1:9000
    -
    -Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide
    -   $ mc config host add myminio http://192.168.1.106:9000 USWUXHGYZQYFYFFIT3RE MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    -
    -Object API (Amazon S3 compatible):
    -   Go:         https://docs.minio.io/docs/golang-client-quickstart-guide
    -   Java:       https://docs.minio.io/docs/java-client-quickstart-guide
    -   Python:     https://docs.minio.io/docs/python-client-quickstart-guide
    -   JavaScript: https://docs.minio.io/docs/javascript-client-quickstart-guide
    -   .NET:       https://docs.minio.io/docs/dotnet-client-quickstart-guide
    -
    -Drive Capacity: 26 GiB Free, 165 GiB Total
    -

    These details need to go into rclone config like this. Note that it is important to put the region in as stated above.

    -
    env_auth> 1
    -access_key_id> USWUXHGYZQYFYFFIT3RE
    -secret_access_key> MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    -region> us-east-1
    -endpoint> http://192.168.1.106:9000
    -location_constraint>
    -server_side_encryption>
    -

    Which makes the config file look like this

    -
    [minio]
    -type = s3
    -provider = Minio
    -env_auth = false
    -access_key_id = USWUXHGYZQYFYFFIT3RE
    -secret_access_key = MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    -region = us-east-1
    -endpoint = http://192.168.1.106:9000
    -location_constraint =
    -server_side_encryption =
    -

    So once set up, for example, to copy files into a bucket

    -
    rclone copy /path/to/files minio:bucket
    -

    RackCorp

    -

    RackCorp Object Storage is an S3 compatible object storage platform from your friendly cloud provider RackCorp. The service is fast, reliable, well priced and located in many strategic locations unserviced by others, to ensure you can maintain data sovereignty.

    -

    Before you can use RackCorp Object Storage, you'll need to "sign up" for an account on our "portal". Next you can create an access key, a secret key and buckets, in your location of choice with ease. These details are required for the next steps of configuration, when rclone config asks for your access_key_id and secret_access_key.

    -

    Your config should end up looking a bit like this:

    -
    [RCS3-demo-config]
    -type = s3
    -provider = RackCorp
    -env_auth = true
    -access_key_id = YOURACCESSKEY
    -secret_access_key = YOURSECRETACCESSKEY
    -region = au-nsw
    -endpoint = s3.rackcorp.com
    -location_constraint = au-nsw
    -

    Scaleway

    -

    Scaleway The Object Storage platform allows you to store anything from backups, logs and web assets to documents and photos. Files can be dropped from the Scaleway console or transferred through our API and CLI or using any S3-compatible tool.

    -

    Scaleway provides an S3 interface which can be configured for use with rclone like this:

    -
    [scaleway]
    -type = s3
    -provider = Scaleway
    -env_auth = false
    -endpoint = s3.nl-ams.scw.cloud
    -access_key_id = SCWXXXXXXXXXXXXXX
    -secret_access_key = 1111111-2222-3333-44444-55555555555555
    -region = nl-ams
    -location_constraint =
    -acl = private
    -server_side_encryption =
    -storage_class =
    -

    Seagate Lyve Cloud

    -

    Seagate Lyve Cloud is an S3 compatible object storage platform from Seagate intended for enterprise use.

    -

    Here is a config run through for a remote called remote - you may choose a different name of course. Note that to create an access key and secret key you will need to create a service account first.

    -
    $ rclone config
    -No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -

    Choose s3 backend

    -
    Type of storage to configure.
    -Choose a number from below, or type in your own value.
    -[snip]
    -XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
    -   \ (s3)
    -[snip]
    -Storage> s3
    -

    Choose LyveCloud as S3 provider

    -
    Choose your S3 provider.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    -[snip]
    -XX / Seagate Lyve Cloud
    -   \ (LyveCloud)
    -[snip]
    -provider> LyveCloud
    -

    Take the default (just press enter) to enter access key and secret in the config file.

    -
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    -Only applies if access_key_id and secret_access_key is blank.
    -Choose a number from below, or type in your own boolean value (true or false).
    -Press Enter for the default (false).
    - 1 / Enter AWS credentials in the next step.
    -   \ (false)
    - 2 / Get AWS credentials from the environment (env vars or IAM).
    -   \ (true)
    -env_auth>
    -
    AWS Access Key ID.
    -Leave blank for anonymous access or runtime credentials.
    -Enter a value. Press Enter to leave empty.
    -access_key_id> XXX
    -
    AWS Secret Access Key (password).
    -Leave blank for anonymous access or runtime credentials.
    -Enter a value. Press Enter to leave empty.
    -secret_access_key> YYY
    -

    Leave region blank

    -
    Region to connect to.
    -Leave blank if you are using an S3 clone and you don't have a region.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    -   / Use this if unsure.
    - 1 | Will use v4 signatures and an empty region.
    -   \ ()
    -   / Use this only if v4 signatures don't work.
    - 2 | E.g. pre Jewel/v10 CEPH.
    -   \ (other-v2-signature)
    -region>
    -

    Choose an endpoint from the list

    -
    Endpoint for S3 API.
    -Required when using an S3 clone.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    - 1 / Seagate Lyve Cloud US East 1 (Virginia)
    -   \ (s3.us-east-1.lyvecloud.seagate.com)
    - 2 / Seagate Lyve Cloud US West 1 (California)
    -   \ (s3.us-west-1.lyvecloud.seagate.com)
    - 3 / Seagate Lyve Cloud AP Southeast 1 (Singapore)
    -   \ (s3.ap-southeast-1.lyvecloud.seagate.com)
    -endpoint> 1
    -

    Leave location constraint blank

    -
    Location constraint - must be set to match the Region.
    -Leave blank if not sure. Used when creating buckets only.
    -Enter a value. Press Enter to leave empty.
    -location_constraint>
    -

    Choose default ACL (private).

    -
    Canned ACL used when creating buckets and storing or copying objects.
    -This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    -For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    -Note that this ACL is applied when server-side copying objects as S3
    -doesn't copy the ACL from the source but rather writes a fresh one.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    -   / Owner gets FULL_CONTROL.
    - 1 | No one else has access rights (default).
    -   \ (private)
    -[snip]
    -acl>
    -

    And the config file should end up looking like this:

    -
    [remote]
    -type = s3
    -provider = LyveCloud
    -access_key_id = XXX
    -secret_access_key = YYY
    -endpoint = s3.us-east-1.lyvecloud.seagate.com
    -

    SeaweedFS

    -

    SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, with O(1) disk seek and a scalable file metadata store. It has an S3 compatible object storage interface. SeaweedFS can also act as a gateway to remote S3 compatible object store to cache data and metadata with asynchronous write back, for fast local speed and minimize access cost.

    -

    Assuming the SeaweedFS are configured with weed shell as such:

    -
    > s3.bucket.create -name foo
    -> s3.configure -access_key=any -secret_key=any -buckets=foo -user=me -actions=Read,Write,List,Tagging,Admin -apply
    -{
    -  "identities": [
    -    {
    -      "name": "me",
    -      "credentials": [
    -        {
    -          "accessKey": "any",
    -          "secretKey": "any"
    -        }
    -      ],
    -      "actions": [
    -        "Read:foo",
    -        "Write:foo",
    -        "List:foo",
    -        "Tagging:foo",
    -        "Admin:foo"
    -      ]
    -    }
    -  ]
    -}
    -

    To use rclone with SeaweedFS, above configuration should end up with something like this in your config:

    -
    [seaweedfs_s3]
    -type = s3
    -provider = SeaweedFS
    -access_key_id = any
    -secret_access_key = any
    -endpoint = localhost:8333
    -

    So once set up, for example to copy files into a bucket

    -
    rclone copy /path/to/files seaweedfs_s3:foo
    -

    Wasabi

    -

    Wasabi is a cloud-based object storage service for a broad range of applications and use cases. Wasabi is designed for individuals and organizations that require a high-performance, reliable, and secure data storage infrastructure at minimal cost.

    -

    Wasabi provides an S3 interface which can be configured for use with rclone like this.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -n/s> n
    -name> wasabi
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Amazon S3 (also Dreamhost, Ceph, Minio)
    -   \ "s3"
    -[snip]
    -Storage> s3
    -Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
    -Choose a number from below, or type in your own value
    - 1 / Enter AWS credentials in the next step
    -   \ "false"
    - 2 / Get AWS credentials from the environment (env vars or IAM)
    -   \ "true"
    -env_auth> 1
    -AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    -access_key_id> YOURACCESSKEY
    -AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    -secret_access_key> YOURSECRETACCESSKEY
    -Region to connect to.
    -Choose a number from below, or type in your own value
    -   / The default endpoint - a good choice if you are unsure.
    - 1 | US Region, Northern Virginia, or Pacific Northwest.
    -   | Leave location constraint empty.
    -   \ "us-east-1"
    -[snip]
    -region> us-east-1
    -Endpoint for S3 API.
    -Leave blank if using AWS to use the default endpoint for the region.
    -Specify if using an S3 clone such as Ceph.
    -endpoint> s3.wasabisys.com
    -Location constraint - must be set to match the Region. Used when creating buckets only.
    -Choose a number from below, or type in your own value
    - 1 / Empty for US Region, Northern Virginia, or Pacific Northwest.
    -   \ ""
    -[snip]
    -location_constraint>
    -Canned ACL used when creating buckets and/or storing objects in S3.
    -For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    -Choose a number from below, or type in your own value
    - 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    -   \ "private"
    -[snip]
    -acl>
    -The server-side encryption algorithm used when storing this object in S3.
    -Choose a number from below, or type in your own value
    - 1 / None
    -   \ ""
    - 2 / AES256
    -   \ "AES256"
    -server_side_encryption>
    -The storage class to use when storing objects in S3.
    -Choose a number from below, or type in your own value
    - 1 / Default
    -   \ ""
    - 2 / Standard storage class
    -   \ "STANDARD"
    - 3 / Reduced redundancy storage class
    -   \ "REDUCED_REDUNDANCY"
    - 4 / Standard Infrequent Access storage class
    -   \ "STANDARD_IA"
    -storage_class>
    -Remote config
    ---------------------
    -[wasabi]
    -env_auth = false
    -access_key_id = YOURACCESSKEY
    -secret_access_key = YOURSECRETACCESSKEY
    -region = us-east-1
    -endpoint = s3.wasabisys.com
    -location_constraint =
    -acl =
    -server_side_encryption =
    -storage_class =
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This will leave the config file looking like this.

    -
    [wasabi]
    -type = s3
    -provider = Wasabi
    -env_auth = false
    -access_key_id = YOURACCESSKEY
    -secret_access_key = YOURSECRETACCESSKEY
    -region =
    -endpoint = s3.wasabisys.com
    -location_constraint =
    -acl =
    -server_side_encryption =
    -storage_class =
    -

    Alibaba OSS

    -

    Here is an example of making an Alibaba Cloud (Aliyun) OSS configuration. First run:

    -
    rclone config
    -

    This will guide you through an interactive setup process.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> oss
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    - 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
    -   \ "s3"
    -[snip]
    -Storage> s3
    -Choose your S3 provider.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Amazon Web Services (AWS) S3
    -   \ "AWS"
    - 2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun
    -   \ "Alibaba"
    - 3 / Ceph Object Storage
    -   \ "Ceph"
    -[snip]
    -provider> Alibaba
    -Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    -Only applies if access_key_id and secret_access_key is blank.
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -Choose a number from below, or type in your own value
    - 1 / Enter AWS credentials in the next step
    -   \ "false"
    - 2 / Get AWS credentials from the environment (env vars or IAM)
    -   \ "true"
    -env_auth> 1
    -AWS Access Key ID.
    -Leave blank for anonymous access or runtime credentials.
    -Enter a string value. Press Enter for the default ("").
    -access_key_id> accesskeyid
    -AWS Secret Access Key (password)
    -Leave blank for anonymous access or runtime credentials.
    -Enter a string value. Press Enter for the default ("").
    -secret_access_key> secretaccesskey
    -Endpoint for OSS API.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / East China 1 (Hangzhou)
    -   \ "oss-cn-hangzhou.aliyuncs.com"
    - 2 / East China 2 (Shanghai)
    -   \ "oss-cn-shanghai.aliyuncs.com"
    - 3 / North China 1 (Qingdao)
    -   \ "oss-cn-qingdao.aliyuncs.com"
    -[snip]
    -endpoint> 1
    -Canned ACL used when creating buckets and storing or copying objects.
    -
    -Note that this ACL is applied when server-side copying objects as S3
    -doesn't copy the ACL from the source but rather writes a fresh one.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    -   \ "private"
    - 2 / Owner gets FULL_CONTROL. The AllUsers group gets READ access.
    -   \ "public-read"
    -   / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access.
    -[snip]
    -acl> 1
    -The storage class to use when storing new objects in OSS.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Default
    -   \ ""
    - 2 / Standard storage class
    -   \ "STANDARD"
    - 3 / Archive storage mode.
    -   \ "GLACIER"
    - 4 / Infrequent access storage mode.
    -   \ "STANDARD_IA"
    -storage_class> 1
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    ---------------------
    -[oss]
    -type = s3
    -provider = Alibaba
    -env_auth = false
    -access_key_id = accesskeyid
    -secret_access_key = secretaccesskey
    -endpoint = oss-cn-hangzhou.aliyuncs.com
    -acl = private
    -storage_class = Standard
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Tencent COS

    -

    Tencent Cloud Object Storage (COS) is a distributed storage service offered by Tencent Cloud for unstructured data. It is secure, stable, massive, convenient, low-delay and low-cost.

    -

    To configure access to Tencent COS, follow the steps below:

    -
      -
    1. Run rclone config and select n for a new remote.
    2. -
    -
    rclone config
    -No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -
      -
    1. Give the name of the configuration. For example, name it 'cos'.
    2. -
    -
    name> cos
    -
      -
    1. Select s3 storage.
    2. -
    -
    Choose a number from below, or type in your own value
    -1 / 1Fichier
    -   \ "fichier"
    - 2 / Alias for an existing remote
    -   \ "alias"
    - 3 / Amazon Drive
    -   \ "amazon cloud drive"
    - 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
    -   \ "s3"
    -[snip]
    -Storage> s3
    -
      -
    1. Select TencentCOS provider.
    2. -
    -
    Choose a number from below, or type in your own value
    -1 / Amazon Web Services (AWS) S3
    -   \ "AWS"
    -[snip]
    -11 / Tencent Cloud Object Storage (COS)
    -   \ "TencentCOS"
    -[snip]
    -provider> TencentCOS
    -
      -
    1. Enter your SecretId and SecretKey of Tencent Cloud.
    2. -
    -
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    -Only applies if access_key_id and secret_access_key is blank.
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -Choose a number from below, or type in your own value
    - 1 / Enter AWS credentials in the next step
    -   \ "false"
    - 2 / Get AWS credentials from the environment (env vars or IAM)
    -   \ "true"
    -env_auth> 1
    -AWS Access Key ID.
    -Leave blank for anonymous access or runtime credentials.
    -Enter a string value. Press Enter for the default ("").
    -access_key_id> AKIDxxxxxxxxxx
    -AWS Secret Access Key (password)
    -Leave blank for anonymous access or runtime credentials.
    -Enter a string value. Press Enter for the default ("").
    -secret_access_key> xxxxxxxxxxx
    -
      -
    1. Select endpoint for Tencent COS. This is the standard endpoint for different region.
    2. -
    -
     1 / Beijing Region.
    -   \ "cos.ap-beijing.myqcloud.com"
    - 2 / Nanjing Region.
    -   \ "cos.ap-nanjing.myqcloud.com"
    - 3 / Shanghai Region.
    -   \ "cos.ap-shanghai.myqcloud.com"
    - 4 / Guangzhou Region.
    -   \ "cos.ap-guangzhou.myqcloud.com"
    -[snip]
    -endpoint> 4
    -
      -
    1. Choose acl and storage class.
    2. -
    -
    Note that this ACL is applied when server-side copying objects as S3
    -doesn't copy the ACL from the source but rather writes a fresh one.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Owner gets Full_CONTROL. No one else has access rights (default).
    -   \ "default"
    -[snip]
    -acl> 1
    -The storage class to use when storing new objects in Tencent COS.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Default
    -   \ ""
    -[snip]
    -storage_class> 1
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    ---------------------
    -[cos]
    -type = s3
    -provider = TencentCOS
    -env_auth = false
    -access_key_id = xxx
    -secret_access_key = xxx
    -endpoint = cos.ap-guangzhou.myqcloud.com
    -acl = default
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -Current remotes:
    -
    -Name                 Type
    -====                 ====
    -cos                  s3
    -

    Netease NOS

    -

    For Netease NOS configure as per the configurator rclone config setting the provider Netease. This will automatically set force_path_style = false which is necessary for it to run properly.

    -

    Storj

    -

    Storj is a decentralized cloud storage which can be used through its native protocol or an S3 compatible gateway.

    -

    The S3 compatible gateway is configured using rclone config with a type of s3 and with a provider name of Storj. Here is an example run of the configurator.

    -
    Type of storage to configure.
    -Storage> s3
    -Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    -Only applies if access_key_id and secret_access_key is blank.
    -Choose a number from below, or type in your own boolean value (true or false).
    -Press Enter for the default (false).
    - 1 / Enter AWS credentials in the next step.
    -   \ (false)
    - 2 / Get AWS credentials from the environment (env vars or IAM).
    -   \ (true)
    -env_auth> 1
    -Option access_key_id.
    -AWS Access Key ID.
    -Leave blank for anonymous access or runtime credentials.
    -Enter a value. Press Enter to leave empty.
    -access_key_id> XXXX (as shown when creating the access grant)
    -Option secret_access_key.
    -AWS Secret Access Key (password).
    -Leave blank for anonymous access or runtime credentials.
    -Enter a value. Press Enter to leave empty.
    -secret_access_key> XXXX (as shown when creating the access grant)
    -Option endpoint.
    -Endpoint of the Shared Gateway.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    - 1 / EU1 Shared Gateway
    -   \ (gateway.eu1.storjshare.io)
    - 2 / US1 Shared Gateway
    -   \ (gateway.us1.storjshare.io)
    - 3 / Asia-Pacific Shared Gateway
    -   \ (gateway.ap1.storjshare.io)
    -endpoint> 1 (as shown when creating the access grant)
    -Edit advanced config?
    -y) Yes
    -n) No (default)
    -y/n> n
    -

    Note that s3 credentials are generated when you create an access grant.

    -

    Backend quirks

    - -

    Backend bugs

    -

    Due to issue #39 uploading multipart files via the S3 gateway causes them to lose their metadata. For rclone's purpose this means that the modification time is not stored, nor is any MD5SUM (if one is available from the source).

    -

    This has the following consequences:

    - -

    One general purpose workaround is to set --s3-upload-cutoff 5G. This means that rclone will upload files smaller than 5GiB as single parts. Note that this can be set in the config file with upload_cutoff = 5G or configured in the advanced settings. If you regularly transfer files larger than 5G then using --checksum or --size-only in rclone sync is the recommended workaround.

    -

    Comparison with the native protocol

    -

    Use the the native protocol to take advantage of client-side encryption as well as to achieve the best possible download performance. Uploads will be erasure-coded locally, thus a 1gb upload will result in 2.68gb of data being uploaded to storage nodes across the network.

    -

    Use this backend and the S3 compatible Hosted Gateway to increase upload performance and reduce the load on your systems and network. Uploads will be encrypted and erasure-coded server-side, thus a 1GB upload will result in only in 1GB of data being uploaded to storage nodes across the network.

    -

    For more detailed comparison please check the documentation of the storj backend.

    -

    Limitations

    -

    rclone about is not supported by the S3 backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Backblaze B2

    -

    B2 is Backblaze's cloud storage system.

    -

    Paths are specified as remote:bucket (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:bucket/path/to/dir.

    -

    Configuration

    -

    Here is an example of making a b2 configuration. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process. To authenticate you will either need your Account ID (a short hex number) and Master Application Key (a long hex number) OR an Application Key, which is the recommended method. See below for further details on generating and using an Application Key.

    -
    No remotes found, make a new one?
    -n) New remote
    -q) Quit config
    -n/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Backblaze B2
    -   \ "b2"
    -[snip]
    -Storage> b2
    -Account ID or Application Key ID
    -account> 123456789abc
    -Application Key
    -key> 0123456789abcdef0123456789abcdef0123456789
    -Endpoint for the service - leave blank normally.
    -endpoint>
    -Remote config
    ---------------------
    -[remote]
    -account = 123456789abc
    -key = 0123456789abcdef0123456789abcdef0123456789
    -endpoint =
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called remote and can now be used like this

    -

    See all buckets

    -
    rclone lsd remote:
    -

    Create a new bucket

    -
    rclone mkdir remote:bucket
    -

    List the contents of a bucket

    -
    rclone ls remote:bucket
    -

    Sync /home/local/directory to the remote bucket, deleting any excess files in the bucket.

    -
    rclone sync -i /home/local/directory remote:bucket
    -

    Application Keys

    -

    B2 supports multiple Application Keys for different access permission to B2 Buckets.

    -

    You can use these with rclone too; you will need to use rclone version 1.43 or later.

    -

    Follow Backblaze's docs to create an Application Key with the required permission and add the applicationKeyId as the account and the Application Key itself as the key.

    -

    Note that you must put the applicationKeyId as the account – you can't use the master Account ID. If you try then B2 will return 401 errors.

    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Modified time

    -

    The modified time is stored as metadata on the object as X-Bz-Info-src_last_modified_millis as milliseconds since 1970-01-01 in the Backblaze standard. Other tools should be able to use this as a modified time.

    -

    Modified times are used in syncing and are fully supported. Note that if a modification time needs to be updated on an object then it will create a new version of the object.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Note that in 2020-05 Backblaze started allowing  characters in file names. Rclone hasn't changed its encoding as this could cause syncs to re-transfer files. If you want rclone not to replace  then see the --b2-encoding flag below and remove the BackSlash from the string. This can be set in the config.

    -

    SHA1 checksums

    -

    The SHA1 checksums of the files are checked on upload and download and will be used in the syncing process.

    -

    Large files (bigger than the limit in --b2-upload-cutoff) which are uploaded in chunks will store their SHA1 on the object as X-Bz-Info-large_file_sha1 as recommended by Backblaze.

    -

    For a large file to be uploaded with an SHA1 checksum, the source needs to support SHA1 checksums. The local disk supports SHA1 checksums so large file transfers from local disk will have an SHA1. See the overview for exactly which remotes support SHA1.

    -

    Sources which don't support SHA1, in particular crypt will upload large files without SHA1 checksums. This may be fixed in the future (see #1767).

    -

    Files sizes below --b2-upload-cutoff will always have an SHA1 regardless of the source.

    -

    Transfers

    -

    Backblaze recommends that you do lots of transfers simultaneously for maximum speed. In tests from my SSD equipped laptop the optimum setting is about --transfers 32 though higher numbers may be used for a slight speed improvement. The optimum number for you may vary depending on your hardware, how big the files are, how much you want to load your computer, etc. The default of --transfers 4 is definitely too low for Backblaze B2 though.

    -

    Note that uploading big files (bigger than 200 MiB by default) will use a 96 MiB RAM buffer by default. There can be at most --transfers of these in use at any moment, so this sets the upper limit on the memory used.

    -

    Versions

    -

    When rclone uploads a new version of a file it creates a new version of it. Likewise when you delete a file, the old version will be marked hidden and still be available. Conversely, you may opt in to a "hard delete" of files with the --b2-hard-delete flag which would permanently remove the file instead of hiding it.

    -

    Old versions of files, where available, are visible using the --b2-versions flag.

    -

    If you wish to remove all the old versions then you can use the rclone cleanup remote:bucket command which will delete all the old versions of files, leaving the current ones intact. You can also supply a path and only old versions under that path will be deleted, e.g. rclone cleanup remote:bucket/path/to/stuff.

    -

    Note that cleanup will remove partially uploaded files from the bucket if they are more than a day old.

    -

    When you purge a bucket, the current and the old versions will be deleted then the bucket will be deleted.

    -

    However delete will cause the current versions of the files to become hidden old versions.

    -

    Here is a session showing the listing and retrieval of an old version followed by a cleanup of the old versions.

    -

    Show current version and all the versions with --b2-versions flag.

    -
    $ rclone -q ls b2:cleanup-test
    -        9 one.txt
    -
    -$ rclone -q --b2-versions ls b2:cleanup-test
    -        9 one.txt
    -        8 one-v2016-07-04-141032-000.txt
    -       16 one-v2016-07-04-141003-000.txt
    -       15 one-v2016-07-02-155621-000.txt
    -

    Retrieve an old version

    -
    $ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp
    -
    -$ ls -l /tmp/one-v2016-07-04-141003-000.txt
    --rw-rw-r-- 1 ncw ncw 16 Jul  2 17:46 /tmp/one-v2016-07-04-141003-000.txt
    -

    Clean up all the old versions and show that they've gone.

    -
    $ rclone -q cleanup b2:cleanup-test
    -
    -$ rclone -q ls b2:cleanup-test
    -        9 one.txt
    -
    -$ rclone -q --b2-versions ls b2:cleanup-test
    -        9 one.txt
    -

    Data usage

    -

    It is useful to know how many requests are sent to the server in different scenarios.

    -

    All copy commands send the following 4 requests:

    -
    /b2api/v1/b2_authorize_account
    -/b2api/v1/b2_create_bucket
    -/b2api/v1/b2_list_buckets
    -/b2api/v1/b2_list_file_names
    -

    The b2_list_file_names request will be sent once for every 1k files in the remote path, providing the checksum and modification time of the listed files. As of version 1.33 issue #818 causes extra requests to be sent when using B2 with Crypt. When a copy operation does not require any files to be uploaded, no more requests will be sent.

    -

    Uploading files that do not require chunking, will send 2 requests per file upload:

    -
    /b2api/v1/b2_get_upload_url
    -/b2api/v1/b2_upload_file/
    -

    Uploading files requiring chunking, will send 2 requests (one each to start and finish the upload) and another 2 requests for each chunk:

    -
    /b2api/v1/b2_start_large_file
    -/b2api/v1/b2_get_upload_part_url
    -/b2api/v1/b2_upload_part/
    -/b2api/v1/b2_finish_large_file
    -

    Versions

    -

    Versions can be viewed with the --b2-versions flag. When it is set rclone will show and act on older versions of files. For example

    -

    Listing without --b2-versions

    -
    $ rclone -q ls b2:cleanup-test
    -        9 one.txt
    -

    And with

    -
    $ rclone -q --b2-versions ls b2:cleanup-test
    -        9 one.txt
    -        8 one-v2016-07-04-141032-000.txt
    -       16 one-v2016-07-04-141003-000.txt
    -       15 one-v2016-07-02-155621-000.txt
    -

    Showing that the current version is unchanged but older versions can be seen. These have the UTC date that they were uploaded to the server to the nearest millisecond appended to them.

    -

    Note that when using --b2-versions no file write operations are permitted, so you can't upload files or delete them.

    - -

    Rclone supports generating file share links for private B2 buckets. They can either be for a file for example:

    -
    ./rclone link B2:bucket/path/to/file.txt
    -https://f002.backblazeb2.com/file/bucket/path/to/file.txt?Authorization=xxxxxxxx
    -
    -

    or if run on a directory you will get:

    -
    ./rclone link B2:bucket/path
    -https://f002.backblazeb2.com/file/bucket/path?Authorization=xxxxxxxx
    -

    you can then use the authorization token (the part of the url from the ?Authorization= on) on any file path under that directory. For example:

    -
    https://f002.backblazeb2.com/file/bucket/path/to/file1?Authorization=xxxxxxxx
    -https://f002.backblazeb2.com/file/bucket/path/file2?Authorization=xxxxxxxx
    -https://f002.backblazeb2.com/file/bucket/path/folder/file3?Authorization=xxxxxxxx
    -
    -

    Standard options

    -

    Here are the standard options specific to b2 (Backblaze B2).

    -

    --b2-account

    -

    Account ID or Application Key ID.

    -

    Properties:

    - -

    --b2-key

    -

    Application Key.

    -

    Properties:

    - -

    --b2-hard-delete

    -

    Permanently delete files on remote removal, otherwise hide files.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to b2 (Backblaze B2).

    -

    --b2-endpoint

    -

    Endpoint for the service.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --b2-test-mode

    -

    A flag string for X-Bz-Test-Mode header for debugging.

    -

    This is for debugging purposes only. Setting it to one of the strings below will cause b2 to return specific errors:

    - -

    These will be set in the "X-Bz-Test-Mode" header which is documented in the b2 integrations checklist.

    -

    Properties:

    - -

    --b2-versions

    -

    Include old versions in directory listings.

    -

    Note that when using this no file write operations are permitted, so you can't upload files or delete them.

    -

    Properties:

    - -

    --b2-upload-cutoff

    -

    Cutoff for switching to chunked upload.

    -

    Files above this size will be uploaded in chunks of "--b2-chunk-size".

    -

    This value should be set no larger than 4.657 GiB (== 5 GB).

    -

    Properties:

    - -

    --b2-copy-cutoff

    -

    Cutoff for switching to multipart copy.

    -

    Any files larger than this that need to be server-side copied will be copied in chunks of this size.

    -

    The minimum is 0 and the maximum is 4.6 GiB.

    -

    Properties:

    - -

    --b2-chunk-size

    -

    Upload chunk size.

    -

    When uploading large files, chunk the file into this size.

    -

    Must fit in memory. These chunks are buffered in memory and there might a maximum of "--transfers" chunks in progress at once.

    -

    5,000,000 Bytes is the minimum size.

    -

    Properties:

    - -

    --b2-disable-checksum

    -

    Disable checksums for large (> upload cutoff) files.

    -

    Normally rclone will calculate the SHA1 checksum of the input before uploading it so it can add it to metadata on the object. This is great for data integrity checking but can cause long delays for large files to start uploading.

    -

    Properties:

    - -

    --b2-download-url

    -

    Custom endpoint for downloads.

    -

    This is usually set to a Cloudflare CDN URL as Backblaze offers free egress for data downloaded through the Cloudflare network. Rclone works with private buckets by sending an "Authorization" header. If the custom endpoint rewrites the requests for authentication, e.g., in Cloudflare Workers, this header needs to be handled properly. Leave blank if you want to use the endpoint provided by Backblaze.

    -

    The URL provided here SHOULD have the protocol and SHOULD NOT have a trailing slash or specify the /file/bucket subpath as rclone will request files with "{download_url}/file/{bucket_name}/{path}".

    -

    Example: > https://mysubdomain.mydomain.tld (No trailing "/", "file" or "bucket")

    -

    Properties:

    - -

    --b2-download-auth-duration

    -

    Time before the authorization token will expire in s or suffix ms|s|m|h|d.

    -

    The duration before the download authorization token will expire. The minimum value is 1 second. The maximum value is one week.

    -

    Properties:

    - -

    --b2-memory-pool-flush-time

    -

    How often internal memory buffer pools will be flushed. Uploads which requires additional buffers (f.e multipart) will use memory pool for allocations. This option controls how often unused buffers will be removed from the pool.

    -

    Properties:

    - -

    --b2-memory-pool-use-mmap

    -

    Whether to use mmap buffers in internal memory pool.

    -

    Properties:

    - -

    --b2-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    rclone about is not supported by the B2 backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Box

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    The initial setup for Box involves getting a token from Box which you can do either in your browser, or with a config.json downloaded from Box to use JWT authentication. rclone config walks you through it.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Box
    -   \ "box"
    -[snip]
    -Storage> box
    -Box App Client Id - leave blank normally.
    -client_id> 
    -Box App Client Secret - leave blank normally.
    -client_secret>
    -Box App config.json location
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -box_config_file>
    -Box App Primary Access Token
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -access_token>
    -
    -Enter a string value. Press Enter for the default ("user").
    -Choose a number from below, or type in your own value
    - 1 / Rclone should act on behalf of a user
    -   \ "user"
    - 2 / Rclone should act on behalf of a service account
    -   \ "enterprise"
    -box_sub_type>
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -client_id = 
    -client_secret = 
    -token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Box. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your Box

    -
    rclone lsd remote:
    -

    List all the files in your Box

    -
    rclone ls remote:
    -

    To copy a local directory to an Box directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Using rclone with an Enterprise account with SSO

    -

    If you have an "Enterprise" account type with Box with single sign on (SSO), you need to create a password to use Box with rclone. This can be done at your Enterprise Box account by going to Settings, "Account" Tab, and then set the password in the "Authentication" field.

    -

    Once you have done this, you can setup your Enterprise Box account using the same procedure detailed above in the, using the password you have just set.

    -

    Invalid refresh token

    -

    According to the box docs:

    -
    -

    Each refresh_token is valid for one use in 60 days.

    -
    -

    This means that if you

    - -

    then rclone will return an error which includes the text Invalid refresh token.

    -

    To fix this you will need to use oauth2 again to update the refresh token. You can use the methods in the remote setup docs, bearing in mind that if you use the copy the config file method, you should not use that remote on the computer you did the authentication on.

    -

    Here is how to do it.

    -
    $ rclone config
    -Current remotes:
    -
    -Name                 Type
    -====                 ====
    -remote               box
    -
    -e) Edit existing remote
    -n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -e/n/d/r/c/s/q> e
    -Choose a number from below, or type in an existing value
    - 1 > remote
    -remote> remote
    ---------------------
    -[remote]
    -type = box
    -token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017-07-08T23:40:08.059167677+01:00"}
    ---------------------
    -Edit remote
    -Value "client_id" = ""
    -Edit? (y/n)>
    -y) Yes
    -n) No
    -y/n> n
    -Value "client_secret" = ""
    -Edit? (y/n)>
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    -Already have a token - refresh?
    -y) Yes
    -n) No
    -y/n> y
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -type = box
    -token = {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017-07-23T12:22:29.259137901+01:00"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Modified time and hashes

    -

    Box allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    Box supports SHA1 type hashes, so you can use the --checksum flag.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    -

    File names can also not end with the following characters. These only get replaced if they are the last character in the name:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    SP0x20
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Transfers

    -

    For files above 50 MiB rclone will use a chunked transfer. Rclone will upload up to --transfers chunks at the same time (shared among all the multipart uploads). Chunks are buffered in memory and are normally 8 MiB so increasing --transfers will increase memory use.

    -

    Deleting files

    -

    Depending on the enterprise settings for your user, the item will either be actually deleted from Box or moved to the trash.

    -

    Emptying the trash is supported via the rclone however cleanup command however this deletes every trashed file and folder individually so it may take a very long time. Emptying the trash via the WebUI does not have this limitation so it is advised to empty the trash via the WebUI.

    -

    Root folder ID

    -

    You can set the root_folder_id for rclone. This is the directory (identified by its Folder ID) that rclone considers to be the root of your Box drive.

    -

    Normally you will leave this blank and rclone will determine the correct root to use itself.

    -

    However you can set this to restrict rclone to a specific folder hierarchy.

    -

    In order to do this you will have to find the Folder ID of the directory you wish rclone to display. This will be the last segment of the URL when you open the relevant folder in the Box web interface.

    -

    So if the folder you want rclone to use has a URL which looks like https://app.box.com/folder/11xxxxxxxxx8 in the browser, then you use 11xxxxxxxxx8 as the root_folder_id in the config.

    -

    Standard options

    -

    Here are the standard options specific to box (Box).

    -

    --box-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --box-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --box-box-config-file

    -

    Box App config.json location

    -

    Leave blank normally.

    -

    Leading ~ will be expanded in the file name as will environment variables such as ${RCLONE_CONFIG_DIR}.

    -

    Properties:

    - -

    --box-access-token

    -

    Box App Primary Access Token

    -

    Leave blank normally.

    -

    Properties:

    - -

    --box-box-sub-type

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to box (Box).

    -

    --box-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --box-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --box-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --box-root-folder-id

    -

    Fill in for rclone to use a non root folder as its starting point.

    -

    Properties:

    - -

    --box-upload-cutoff

    -

    Cutoff for switching to multipart upload (>= 50 MiB).

    -

    Properties:

    - -

    --box-commit-retries

    -

    Max number of times to try committing a multipart file.

    -

    Properties:

    - -

    --box-list-chunk

    -

    Size of listing chunk 1-1000.

    -

    Properties:

    - -

    --box-owned-by

    -

    Only show items owned by the login (email address) passed in.

    -

    Properties:

    - -

    --box-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Note that Box is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    Box file names can't have the \ character in. rclone maps this to and from an identical looking unicode equivalent (U+FF3C Fullwidth Reverse Solidus).

    -

    Box only supports filenames up to 255 characters in length.

    -

    rclone about is not supported by the Box backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Cache (DEPRECATED)

    -

    The cache remote wraps another existing remote and stores file structure and its data for long running tasks like rclone mount.

    -

    Status

    -

    The cache backend code is working but it currently doesn't have a maintainer so there are outstanding bugs which aren't getting fixed.

    -

    The cache backend is due to be phased out in favour of the VFS caching layer eventually which is more tightly integrated into rclone.

    -

    Until this happens we recommend only using the cache backend if you find you can't work without it. There are many docs online describing the use of the cache backend to minimize API hits and by-and-large these are out of date and the cache backend isn't needed in those scenarios any more.

    -

    Configuration

    -

    To get started you just need to have an existing remote which can be configured with cache.

    -

    Here is an example of how to make a remote called test-cache. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -n/r/c/s/q> n
    -name> test-cache
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Cache a remote
    -   \ "cache"
    -[snip]
    -Storage> cache
    -Remote to cache.
    -Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
    -"myremote:bucket" or maybe "myremote:" (not recommended).
    -remote> local:/test
    -Optional: The URL of the Plex server
    -plex_url> http://127.0.0.1:32400
    -Optional: The username of the Plex user
    -plex_username> dummyusername
    -Optional: The password of the Plex user
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank
    -y/g/n> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -The size of a chunk. Lower value good for slow connections but can affect seamless reading.
    -Default: 5M
    -Choose a number from below, or type in your own value
    - 1 / 1 MiB
    -   \ "1M"
    - 2 / 5 MiB
    -   \ "5M"
    - 3 / 10 MiB
    -   \ "10M"
    -chunk_size> 2
    -How much time should object info (file size, file hashes, etc.) be stored in cache. Use a very high value if you don't plan on changing the source FS from outside the cache.
    -Accepted units are: "s", "m", "h".
    -Default: 5m
    -Choose a number from below, or type in your own value
    - 1 / 1 hour
    -   \ "1h"
    - 2 / 24 hours
    -   \ "24h"
    - 3 / 24 hours
    -   \ "48h"
    -info_age> 2
    -The maximum size of stored chunks. When the storage grows beyond this size, the oldest chunks will be deleted.
    -Default: 10G
    -Choose a number from below, or type in your own value
    - 1 / 500 MiB
    -   \ "500M"
    - 2 / 1 GiB
    -   \ "1G"
    - 3 / 10 GiB
    -   \ "10G"
    -chunk_total_size> 3
    -Remote config
    ---------------------
    -[test-cache]
    -remote = local:/test
    -plex_url = http://127.0.0.1:32400
    -plex_username = dummyusername
    -plex_password = *** ENCRYPTED ***
    -chunk_size = 5M
    -info_age = 48h
    -chunk_total_size = 10G
    -

    You can then use it like this,

    -

    List directories in top level of your drive

    -
    rclone lsd test-cache:
    -

    List all the files in your drive

    -
    rclone ls test-cache:
    -

    To start a cached mount

    -
    rclone mount --allow-other test-cache: /var/tmp/test-cache
    -

    Write Features

    -

    Offline uploading

    -

    In an effort to make writing through cache more reliable, the backend now supports this feature which can be activated by specifying a cache-tmp-upload-path.

    -

    A files goes through these states when using this feature:

    -
      -
    1. An upload is started (usually by copying a file on the cache remote)
    2. -
    3. When the copy to the temporary location is complete the file is part of the cached remote and looks and behaves like any other file (reading included)
    4. -
    5. After cache-tmp-wait-time passes and the file is next in line, rclone move is used to move the file to the cloud provider
    6. -
    7. Reading the file still works during the upload but most modifications on it will be prohibited
    8. -
    9. Once the move is complete the file is unlocked for modifications as it becomes as any other regular file
    10. -
    11. If the file is being read through cache when it's actually deleted from the temporary path then cache will simply swap the source to the cloud provider without interrupting the reading (small blip can happen though)
    12. -
    -

    Files are uploaded in sequence and only one file is uploaded at a time. Uploads will be stored in a queue and be processed based on the order they were added. The queue and the temporary storage is persistent across restarts but can be cleared on startup with the --cache-db-purge flag.

    -

    Write Support

    -

    Writes are supported through cache. One caveat is that a mounted cache remote does not add any retry or fallback mechanism to the upload operation. This will depend on the implementation of the wrapped remote. Consider using Offline uploading for reliable writes.

    -

    One special case is covered with cache-writes which will cache the file data at the same time as the upload when it is enabled making it available from the cache store immediately once the upload is finished.

    -

    Read Features

    -

    Multiple connections

    -

    To counter the high latency between a local PC where rclone is running and cloud providers, the cache remote can split multiple requests to the cloud provider for smaller file chunks and combines them together locally where they can be available almost immediately before the reader usually needs them.

    -

    This is similar to buffering when media files are played online. Rclone will stay around the current marker but always try its best to stay ahead and prepare the data before.

    -

    Plex Integration

    -

    There is a direct integration with Plex which allows cache to detect during reading if the file is in playback or not. This helps cache to adapt how it queries the cloud provider depending on what is needed for.

    -

    Scans will have a minimum amount of workers (1) while in a confirmed playback cache will deploy the configured number of workers.

    -

    This integration opens the doorway to additional performance improvements which will be explored in the near future.

    -

    Note: If Plex options are not configured, cache will function with its configured options without adapting any of its settings.

    -

    How to enable? Run rclone config and add all the Plex options (endpoint, username and password) in your remote and it will be automatically enabled.

    -

    Affected settings: - cache-workers: Configured value during confirmed playback or 1 all the other times

    -
    Certificate Validation
    -

    When the Plex server is configured to only accept secure connections, it is possible to use .plex.direct URLs to ensure certificate validation succeeds. These URLs are used by Plex internally to connect to the Plex server securely.

    -

    The format for these URLs is the following:

    -

    https://ip-with-dots-replaced.server-hash.plex.direct:32400/

    -

    The ip-with-dots-replaced part can be any IPv4 address, where the dots have been replaced with dashes, e.g. 127.0.0.1 becomes 127-0-0-1.

    -

    To get the server-hash part, the easiest way is to visit

    -

    https://plex.tv/api/resources?includeHttps=1&X-Plex-Token=your-plex-token

    -

    This page will list all the available Plex servers for your account with at least one .plex.direct link for each. Copy one URL and replace the IP address with the desired address. This can be used as the plex_url value.

    -

    Known issues

    -

    Mount and --dir-cache-time

    -

    --dir-cache-time controls the first layer of directory caching which works at the mount layer. Being an independent caching mechanism from the cache backend, it will manage its own entries based on the configured time.

    -

    To avoid getting in a scenario where dir cache has obsolete data and cache would have the correct one, try to set --dir-cache-time to a lower time than --cache-info-age. Default values are already configured in this way.

    -

    Windows support - Experimental

    -

    There are a couple of issues with Windows mount functionality that still require some investigations. It should be considered as experimental thus far as fixes come in for this OS.

    -

    Most of the issues seem to be related to the difference between filesystems on Linux flavors and Windows as cache is heavily dependent on them.

    -

    Any reports or feedback on how cache behaves on this OS is greatly appreciated.

    - -

    Risk of throttling

    -

    Future iterations of the cache backend will make use of the pooling functionality of the cloud provider to synchronize and at the same time make writing through it more tolerant to failures.

    -

    There are a couple of enhancements in track to add these but in the meantime there is a valid concern that the expiring cache listings can lead to cloud provider throttles or bans due to repeated queries on it for very large mounts.

    -

    Some recommendations: - don't use a very small interval for entry information (--cache-info-age) - while writes aren't yet optimised, you can still write through cache which gives you the advantage of adding the file in the cache at the same time if configured to do so.

    -

    Future enhancements:

    - -

    cache and crypt

    -

    One common scenario is to keep your data encrypted in the cloud provider using the crypt remote. crypt uses a similar technique to wrap around an existing remote and handles this translation in a seamless way.

    -

    There is an issue with wrapping the remotes in this order: cloud remote -> crypt -> cache

    -

    During testing, I experienced a lot of bans with the remotes in this order. I suspect it might be related to how crypt opens files on the cloud provider which makes it think we're downloading the full file instead of small chunks. Organizing the remotes in this order yields better results: cloud remote -> cache -> crypt

    -

    absolute remote paths

    -

    cache can not differentiate between relative and absolute paths for the wrapped remote. Any path given in the remote config setting and on the command line will be passed to the wrapped remote as is, but for storing the chunks on disk the path will be made relative by removing any leading / character.

    -

    This behavior is irrelevant for most backend types, but there are backends where a leading / changes the effective directory, e.g. in the sftp backend paths starting with a / are relative to the root of the SSH server and paths without are relative to the user home directory. As a result sftp:bin and sftp:/bin will share the same cache folder, even if they represent a different directory on the SSH server.

    -

    Cache and Remote Control (--rc)

    -

    Cache supports the new --rc mode in rclone and can be remote controlled through the following end points: By default, the listener is disabled if you do not add the flag.

    -

    rc cache/expire

    -

    Purge a remote from the cache backend. Supports either a directory or a file. It supports both encrypted and unencrypted file names if cache is wrapped by crypt.

    -

    Params: - remote = path to remote (required) - withData = true/false to delete cached data (chunks) as well (optional, false by default)

    -

    Standard options

    -

    Here are the standard options specific to cache (Cache a remote).

    -

    --cache-remote

    -

    Remote to cache.

    -

    Normally should contain a ':' and a path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended).

    -

    Properties:

    - -

    --cache-plex-url

    -

    The URL of the Plex server.

    -

    Properties:

    - -

    --cache-plex-username

    -

    The username of the Plex user.

    -

    Properties:

    - -

    --cache-plex-password

    -

    The password of the Plex user.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --cache-chunk-size

    -

    The size of a chunk (partial file data).

    -

    Use lower numbers for slower connections. If the chunk size is changed, any downloaded chunks will be invalid and cache-chunk-path will need to be cleared or unexpected EOF errors will occur.

    -

    Properties:

    - -

    --cache-info-age

    -

    How long to cache file structure information (directory listings, file size, times, etc.). If all write operations are done through the cache then you can safely make this value very large as the cache store will also be updated in real time.

    -

    Properties:

    - -

    --cache-chunk-total-size

    -

    The total size that the chunks can take up on the local disk.

    -

    If the cache exceeds this value then it will start to delete the oldest chunks until it goes under this value.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to cache (Cache a remote).

    -

    --cache-plex-token

    -

    The plex token for authentication - auto set normally.

    -

    Properties:

    - -

    --cache-plex-insecure

    -

    Skip all certificate verification when connecting to the Plex server.

    -

    Properties:

    - -

    --cache-db-path

    -

    Directory to store file structure metadata DB.

    -

    The remote name is used as the DB file name.

    -

    Properties:

    - -

    --cache-chunk-path

    -

    Directory to cache chunk files.

    -

    Path to where partial file data (chunks) are stored locally. The remote name is appended to the final path.

    -

    This config follows the "--cache-db-path". If you specify a custom location for "--cache-db-path" and don't specify one for "--cache-chunk-path" then "--cache-chunk-path" will use the same path as "--cache-db-path".

    -

    Properties:

    - -

    --cache-db-purge

    -

    Clear all the cached data for this remote on start.

    -

    Properties:

    - -

    --cache-chunk-clean-interval

    -

    How often should the cache perform cleanups of the chunk storage.

    -

    The default value should be ok for most people. If you find that the cache goes over "cache-chunk-total-size" too often then try to lower this value to force it to perform cleanups more often.

    -

    Properties:

    - -

    --cache-read-retries

    -

    How many times to retry a read from a cache storage.

    -

    Since reading from a cache stream is independent from downloading file data, readers can get to a point where there's no more data in the cache. Most of the times this can indicate a connectivity issue if cache isn't able to provide file data anymore.

    -

    For really slow connections, increase this to a point where the stream is able to provide data but your experience will be very stuttering.

    -

    Properties:

    - -

    --cache-workers

    -

    How many workers should run in parallel to download chunks.

    -

    Higher values will mean more parallel processing (better CPU needed) and more concurrent requests on the cloud provider. This impacts several aspects like the cloud provider API limits, more stress on the hardware that rclone runs on but it also means that streams will be more fluid and data will be available much more faster to readers.

    -

    Note: If the optional Plex integration is enabled then this setting will adapt to the type of reading performed and the value specified here will be used as a maximum number of workers to use.

    -

    Properties:

    - -

    --cache-chunk-no-memory

    -

    Disable the in-memory cache for storing chunks during streaming.

    -

    By default, cache will keep file data during streaming in RAM as well to provide it to readers as fast as possible.

    -

    This transient data is evicted as soon as it is read and the number of chunks stored doesn't exceed the number of workers. However, depending on other settings like "cache-chunk-size" and "cache-workers" this footprint can increase if there are parallel streams too (multiple files being read at the same time).

    -

    If the hardware permits it, use this feature to provide an overall better performance during streaming but it can also be disabled if RAM is not available on the local machine.

    -

    Properties:

    - -

    --cache-rps

    -

    Limits the number of requests per second to the source FS (-1 to disable).

    -

    This setting places a hard limit on the number of requests per second that cache will be doing to the cloud provider remote and try to respect that value by setting waits between reads.

    -

    If you find that you're getting banned or limited on the cloud provider through cache and know that a smaller number of requests per second will allow you to work with it then you can use this setting for that.

    -

    A good balance of all the other settings should make this setting useless but it is available to set for more special cases.

    -

    NOTE: This will limit the number of requests during streams but other API calls to the cloud provider like directory listings will still pass.

    -

    Properties:

    - -

    --cache-writes

    -

    Cache file data on writes through the FS.

    -

    If you need to read files immediately after you upload them through cache you can enable this flag to have their data stored in the cache store at the same time during upload.

    -

    Properties:

    - -

    --cache-tmp-upload-path

    -

    Directory to keep temporary files until they are uploaded.

    -

    This is the path where cache will use as a temporary storage for new files that need to be uploaded to the cloud provider.

    -

    Specifying a value will enable this feature. Without it, it is completely disabled and files will be uploaded directly to the cloud provider

    -

    Properties:

    - -

    --cache-tmp-wait-time

    -

    How long should files be stored in local cache before being uploaded.

    -

    This is the duration that a file must wait in the temporary location cache-tmp-upload-path before it is selected for upload.

    -

    Note that only one file is uploaded at a time and it can take longer to start the upload if a queue formed for this purpose.

    -

    Properties:

    - -

    --cache-db-wait-time

    -

    How long to wait for the DB to be available - 0 is unlimited.

    -

    Only one process can have the DB open at any one time, so rclone waits for this duration for the DB to become available before it gives an error.

    -

    If you set it to 0 then it will wait forever.

    -

    Properties:

    - -

    Backend commands

    -

    Here are the commands specific to the cache backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    stats

    -

    Print stats on the cache backend in JSON format.

    -
    rclone backend stats remote: [options] [<arguments>+]
    -

    Chunker (BETA)

    -

    The chunker overlay transparently splits large files into smaller chunks during upload to wrapped remote and transparently assembles them back when the file is downloaded. This allows to effectively overcome size limits imposed by storage providers.

    -

    Configuration

    -

    To use it, first set up the underlying remote following the configuration instructions for that remote. You can also use a local pathname instead of a remote.

    -

    First check your chosen remote is working - we'll call it remote:path here. Note that anything inside remote:path will be chunked and anything outside won't. This means that if you are using a bucket-based remote (e.g. S3, B2, swift) then you should probably put the bucket in the remote s3:bucket.

    -

    Now configure chunker using rclone config. We will call this one overlay to separate it from the remote itself.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> overlay
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Transparently chunk/split large files
    -   \ "chunker"
    -[snip]
    -Storage> chunker
    -Remote to chunk/unchunk.
    -Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
    -"myremote:bucket" or maybe "myremote:" (not recommended).
    -Enter a string value. Press Enter for the default ("").
    -remote> remote:path
    -Files larger than chunk size will be split in chunks.
    -Enter a size with suffix K,M,G,T. Press Enter for the default ("2G").
    -chunk_size> 100M
    -Choose how chunker handles hash sums. All modes but "none" require metadata.
    -Enter a string value. Press Enter for the default ("md5").
    -Choose a number from below, or type in your own value
    - 1 / Pass any hash supported by wrapped remote for non-chunked files, return nothing otherwise
    -   \ "none"
    - 2 / MD5 for composite files
    -   \ "md5"
    - 3 / SHA1 for composite files
    -   \ "sha1"
    - 4 / MD5 for all files
    -   \ "md5all"
    - 5 / SHA1 for all files
    -   \ "sha1all"
    - 6 / Copying a file to chunker will request MD5 from the source falling back to SHA1 if unsupported
    -   \ "md5quick"
    - 7 / Similar to "md5quick" but prefers SHA1 over MD5
    -   \ "sha1quick"
    -hash_type> md5
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    ---------------------
    -[overlay]
    -type = chunker
    -remote = remote:bucket
    -chunk_size = 100M
    -hash_type = md5
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Specifying the remote

    -

    In normal use, make sure the remote has a : in. If you specify the remote without a : then rclone will use a local directory of that name. So if you use a remote of /path/to/secret/files then rclone will chunk stuff in that directory. If you use a remote of name then rclone will put files in a directory called name in the current directory.

    -

    Chunking

    -

    When rclone starts a file upload, chunker checks the file size. If it doesn't exceed the configured chunk size, chunker will just pass the file to the wrapped remote. If a file is large, chunker will transparently cut data in pieces with temporary names and stream them one by one, on the fly. Each data chunk will contain the specified number of bytes, except for the last one which may have less data. If file size is unknown in advance (this is called a streaming upload), chunker will internally create a temporary copy, record its size and repeat the above process.

    -

    When upload completes, temporary chunk files are finally renamed. This scheme guarantees that operations can be run in parallel and look from outside as atomic. A similar method with hidden temporary chunks is used for other operations (copy/move/rename, etc.). If an operation fails, hidden chunks are normally destroyed, and the target composite file stays intact.

    -

    When a composite file download is requested, chunker transparently assembles it by concatenating data chunks in order. As the split is trivial one could even manually concatenate data chunks together to obtain the original content.

    -

    When the list rclone command scans a directory on wrapped remote, the potential chunk files are accounted for, grouped and assembled into composite directory entries. Any temporary chunks are hidden.

    -

    List and other commands can sometimes come across composite files with missing or invalid chunks, e.g. shadowed by like-named directory or another file. This usually means that wrapped file system has been directly tampered with or damaged. If chunker detects a missing chunk it will by default print warning, skip the whole incomplete group of chunks but proceed with current command. You can set the --chunker-fail-hard flag to have commands abort with error message in such cases.

    -

    Chunk names

    -

    The default chunk name format is *.rclone_chunk.###, hence by default chunk names are BIG_FILE_NAME.rclone_chunk.001, BIG_FILE_NAME.rclone_chunk.002 etc. You can configure another name format using the name_format configuration file option. The format uses asterisk * as a placeholder for the base file name and one or more consecutive hash characters # as a placeholder for sequential chunk number. There must be one and only one asterisk. The number of consecutive hash characters defines the minimum length of a string representing a chunk number. If decimal chunk number has less digits than the number of hashes, it is left-padded by zeros. If the decimal string is longer, it is left intact. By default numbering starts from 1 but there is another option that allows user to start from 0, e.g. for compatibility with legacy software.

    -

    For example, if name format is big_*-##.part and original file name is data.txt and numbering starts from 0, then the first chunk will be named big_data.txt-00.part, the 99th chunk will be big_data.txt-98.part and the 302nd chunk will become big_data.txt-301.part.

    -

    Note that list assembles composite directory entries only when chunk names match the configured format and treats non-conforming file names as normal non-chunked files.

    -

    When using norename transactions, chunk names will additionally have a unique file version suffix. For example, BIG_FILE_NAME.rclone_chunk.001_bp562k.

    -

    Metadata

    -

    Besides data chunks chunker will by default create metadata object for a composite file. The object is named after the original file. Chunker allows user to disable metadata completely (the none format). Note that metadata is normally not created for files smaller than the configured chunk size. This may change in future rclone releases.

    -

    Simple JSON metadata format

    -

    This is the default format. It supports hash sums and chunk validation for composite files. Meta objects carry the following fields:

    - -

    There is no field for composite file name as it's simply equal to the name of meta object on the wrapped remote. Please refer to respective sections for details on hashsums and modified time handling.

    -

    No metadata

    -

    You can disable meta objects by setting the meta format option to none. In this mode chunker will scan directory for all files that follow configured chunk name format, group them by detecting chunks with the same base name and show group names as virtual composite files. This method is more prone to missing chunk errors (especially missing last chunk) than format with metadata enabled.

    -

    Hashsums

    -

    Chunker supports hashsums only when a compatible metadata is present. Hence, if you choose metadata format of none, chunker will report hashsum as UNSUPPORTED.

    -

    Please note that by default metadata is stored only for composite files. If a file is smaller than configured chunk size, chunker will transparently redirect hash requests to wrapped remote, so support depends on that. You will see the empty string as a hashsum of requested type for small files if the wrapped remote doesn't support it.

    -

    Many storage backends support MD5 and SHA1 hash types, so does chunker. With chunker you can choose one or another but not both. MD5 is set by default as the most supported type. Since chunker keeps hashes for composite files and falls back to the wrapped remote hash for non-chunked ones, we advise you to choose the same hash type as supported by wrapped remote so that your file listings look coherent.

    -

    If your storage backend does not support MD5 or SHA1 but you need consistent file hashing, configure chunker with md5all or sha1all. These two modes guarantee given hash for all files. If wrapped remote doesn't support it, chunker will then add metadata to all files, even small. However, this can double the amount of small files in storage and incur additional service charges. You can even use chunker to force md5/sha1 support in any other remote at expense of sidecar meta objects by setting e.g. chunk_type=sha1all to force hashsums and chunk_size=1P to effectively disable chunking.

    -

    Normally, when a file is copied to chunker controlled remote, chunker will ask the file source for compatible file hash and revert to on-the-fly calculation if none is found. This involves some CPU overhead but provides a guarantee that given hashsum is available. Also, chunker will reject a server-side copy or move operation if source and destination hashsum types are different resulting in the extra network bandwidth, too. In some rare cases this may be undesired, so chunker provides two optional choices: sha1quick and md5quick. If the source does not support primary hash type and the quick mode is enabled, chunker will try to fall back to the secondary type. This will save CPU and bandwidth but can result in empty hashsums at destination. Beware of consequences: the sync command will revert (sometimes silently) to time/size comparison if compatible hashsums between source and target are not found.

    -

    Modified time

    -

    Chunker stores modification times using the wrapped remote so support depends on that. For a small non-chunked file the chunker overlay simply manipulates modification time of the wrapped remote file. For a composite file with metadata chunker will get and set modification time of the metadata object on the wrapped remote. If file is chunked but metadata format is none then chunker will use modification time of the first data chunk.

    -

    Migrations

    -

    The idiomatic way to migrate to a different chunk size, hash type, transaction style or chunk naming scheme is to:

    - -

    If rclone gets killed during a long operation on a big composite file, hidden temporary chunks may stay in the directory. They will not be shown by the list command but will eat up your account quota. Please note that the deletefile command deletes only active chunks of a file. As a workaround, you can use remote of the wrapped file system to see them. An easy way to get rid of hidden garbage is to copy littered directory somewhere using the chunker remote and purge the original directory. The copy command will copy only active chunks while the purge will remove everything including garbage.

    -

    Caveats and Limitations

    -

    Chunker requires wrapped remote to support server-side move (or copy + delete) operations, otherwise it will explicitly refuse to start. This is because it internally renames temporary chunk files to their final names when an operation completes successfully.

    -

    Chunker encodes chunk number in file name, so with default name_format setting it adds 17 characters. Also chunker adds 7 characters of temporary suffix during operations. Many file systems limit base file name without path by 255 characters. Using rclone's crypt remote as a base file system limits file name by 143 characters. Thus, maximum name length is 231 for most files and 119 for chunker-over-crypt. A user in need can change name format to e.g. *.rcc## and save 10 characters (provided at most 99 chunks per file).

    -

    Note that a move implemented using the copy-and-delete method may incur double charging with some cloud storage providers.

    -

    Chunker will not automatically rename existing chunks when you run rclone config on a live remote and change the chunk name format. Beware that in result of this some files which have been treated as chunks before the change can pop up in directory listings as normal files and vice versa. The same warning holds for the chunk size. If you desperately need to change critical chunking settings, you should run data migration as described above.

    -

    If wrapped remote is case insensitive, the chunker overlay will inherit that property (so you can't have a file called "Hello.doc" and "hello.doc" in the same directory).

    -

    Chunker included in rclone releases up to v1.54 can sometimes fail to detect metadata produced by recent versions of rclone. We recommend users to keep rclone up-to-date to avoid data corruption.

    -

    Changing transactions is dangerous and requires explicit migration.

    -

    Standard options

    -

    Here are the standard options specific to chunker (Transparently chunk/split large files).

    -

    --chunker-remote

    -

    Remote to chunk/unchunk.

    -

    Normally should contain a ':' and a path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended).

    -

    Properties:

    - -

    --chunker-chunk-size

    -

    Files larger than chunk size will be split in chunks.

    -

    Properties:

    - -

    --chunker-hash-type

    -

    Choose how chunker handles hash sums.

    -

    All modes but "none" require metadata.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to chunker (Transparently chunk/split large files).

    -

    --chunker-name-format

    -

    String format of chunk file names.

    -

    The two placeholders are: base file name (*) and chunk number (#...). There must be one and only one asterisk and one or more consecutive hash characters. If chunk number has less digits than the number of hashes, it is left-padded by zeros. If there are more digits in the number, they are left as is. Possible chunk files are ignored if their name does not match given format.

    -

    Properties:

    - -

    --chunker-start-from

    -

    Minimum valid chunk number. Usually 0 or 1.

    -

    By default chunk numbers start from 1.

    -

    Properties:

    - -

    --chunker-meta-format

    -

    Format of the metadata object or "none".

    -

    By default "simplejson". Metadata is a small JSON file named after the composite file.

    -

    Properties:

    - -

    --chunker-fail-hard

    -

    Choose how chunker should handle files with missing or invalid chunks.

    -

    Properties:

    - -

    --chunker-transactions

    -

    Choose how chunker should handle temporary files during transactions.

    -

    Properties:

    - -

    Citrix ShareFile

    -

    Citrix ShareFile is a secure file sharing and transfer service aimed as business.

    -

    Configuration

    -

    The initial setup for Citrix ShareFile involves getting a token from Citrix ShareFile which you can in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -XX / Citrix Sharefile
    -   \ "sharefile"
    -Storage> sharefile
    -** See help for sharefile backend at: https://rclone.org/sharefile/ **
    -
    -ID of the root folder
    -
    -Leave blank to access "Personal Folders".  You can use one of the
    -standard values here or any folder ID (long hex number ID).
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Access the Personal Folders. (Default)
    -   \ ""
    - 2 / Access the Favorites folder.
    -   \ "favorites"
    - 3 / Access all the shared folders.
    -   \ "allshared"
    - 4 / Access all the individual connectors.
    -   \ "connectors"
    - 5 / Access the home, favorites, and shared folders as well as the connectors.
    -   \ "top"
    -root_folder_id> 
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXX
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -type = sharefile
    -endpoint = https://XXX.sharefile.com
    -token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-09-30T19:41:45.878561877+01:00"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Citrix ShareFile. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your ShareFile

    -
    rclone lsd remote:
    -

    List all the files in your ShareFile

    -
    rclone ls remote:
    -

    To copy a local directory to an ShareFile directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Modified time and hashes

    -

    ShareFile allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    ShareFile supports MD5 type hashes, so you can use the --checksum flag.

    -

    Transfers

    -

    For files above 128 MiB rclone will use a chunked transfer. Rclone will upload up to --transfers chunks at the same time (shared among all the multipart uploads). Chunks are buffered in memory and are normally 64 MiB so increasing --transfers will increase memory use.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    *0x2A
    <0x3C
    >0x3E
    ?0x3F
    :0x3A
    |0x7C
    "0x22
    -

    File names can also not start or end with the following characters. These only get replaced if they are the first or last character in the name:

    - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    SP0x20
    .0x2E
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to sharefile (Citrix Sharefile).

    -

    --sharefile-root-folder-id

    -

    ID of the root folder.

    -

    Leave blank to access "Personal Folders". You can use one of the standard values here or any folder ID (long hex number ID).

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to sharefile (Citrix Sharefile).

    -

    --sharefile-upload-cutoff

    -

    Cutoff for switching to multipart upload.

    -

    Properties:

    - -

    --sharefile-chunk-size

    -

    Upload chunk size.

    -

    Must a power of 2 >= 256k.

    -

    Making this larger will improve performance, but note that each chunk is buffered in memory one per transfer.

    -

    Reducing this will reduce memory usage but decrease performance.

    -

    Properties:

    - -

    --sharefile-endpoint

    -

    Endpoint for API calls.

    -

    This is usually auto discovered as part of the oauth process, but can be set manually to something like: https://XXX.sharefile.com

    -

    Properties:

    - -

    --sharefile-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Note that ShareFile is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    ShareFile only supports filenames up to 256 characters in length.

    -

    rclone about is not supported by the Citrix ShareFile backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Crypt

    -

    Rclone crypt remotes encrypt and decrypt other remotes.

    -

    A remote of type crypt does not access a storage system directly, but instead wraps another remote, which in turn accesses the storage system. This is similar to how alias, union, chunker and a few others work. It makes the usage very flexible, as you can add a layer, in this case an encryption layer, on top of any other backend, even in multiple layers. Rclone's functionality can be used as with any other remote, for example you can mount a crypt remote.

    -

    Accessing a storage system through a crypt remote realizes client-side encryption, which makes it safe to keep your data in a location you do not trust will not get compromised. When working against the crypt remote, rclone will automatically encrypt (before uploading) and decrypt (after downloading) on your local system as needed on the fly, leaving the data encrypted at rest in the wrapped remote. If you access the storage system using an application other than rclone, or access the wrapped remote directly using rclone, there will not be any encryption/decryption: Downloading existing content will just give you the encrypted (scrambled) format, and anything you upload will not become encrypted.

    -

    The encryption is a secret-key encryption (also called symmetric key encryption) algorithm, where a password (or pass phrase) is used to generate real encryption key. The password can be supplied by user, or you may chose to let rclone generate one. It will be stored in the configuration file, in a lightly obscured form. If you are in an environment where you are not able to keep your configuration secured, you should add configuration encryption as protection. As long as you have this configuration file, you will be able to decrypt your data. Without the configuration file, as long as you remember the password (or keep it in a safe place), you can re-create the configuration and gain access to the existing data. You may also configure a corresponding remote in a different installation to access the same data. See below for guidance to changing password.

    -

    Encryption uses cryptographic salt, to permute the encryption key so that the same string may be encrypted in different ways. When configuring the crypt remote it is optional to enter a salt, or to let rclone generate a unique salt. If omitted, rclone uses a built-in unique string. Normally in cryptography, the salt is stored together with the encrypted content, and do not have to be memorized by the user. This is not the case in rclone, because rclone does not store any additional information on the remotes. Use of custom salt is effectively a second password that must be memorized.

    -

    File content encryption is performed using NaCl SecretBox, based on XSalsa20 cipher and Poly1305 for integrity. Names (file- and directory names) are also encrypted by default, but this has some implications and is therefore possible to turned off.

    -

    Configuration

    -

    Here is an example of how to make a remote called secret.

    -

    To use crypt, first set up the underlying remote. Follow the rclone config instructions for the specific backend.

    -

    Before configuring the crypt remote, check the underlying remote is working. In this example the underlying remote is called remote. We will configure a path path within this remote to contain the encrypted content. Anything inside remote:path will be encrypted and anything outside will not.

    -

    Configure crypt using rclone config. In this example the crypt remote is called secret, to differentiate it from the underlying remote.

    -

    When you are done you can use the crypt remote named secret just as you would with any other remote, e.g. rclone copy D:\docs secret:\docs, and rclone will encrypt and decrypt as needed on the fly. If you access the wrapped remote remote:path directly you will bypass the encryption, and anything you read will be in encrypted form, and anything you write will be unencrypted. To avoid issues it is best to configure a dedicated path for encrypted content, and access it exclusively through a crypt remote.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> secret
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Encrypt/Decrypt a remote
    -   \ "crypt"
    -[snip]
    -Storage> crypt
    -** See help for crypt backend at: https://rclone.org/crypt/ **
    -
    -Remote to encrypt/decrypt.
    -Normally should contain a ':' and a path, eg "myremote:path/to/dir",
    -"myremote:bucket" or maybe "myremote:" (not recommended).
    -Enter a string value. Press Enter for the default ("").
    -remote> remote:path
    -How to encrypt the filenames.
    -Enter a string value. Press Enter for the default ("standard").
    -Choose a number from below, or type in your own value.
    -   / Encrypt the filenames.
    - 1 | See the docs for the details.
    -   \ "standard"
    - 2 / Very simple filename obfuscation.
    -   \ "obfuscate"
    -   / Don't encrypt the file names.
    - 3 | Adds a ".bin" extension only.
    -   \ "off"
    -filename_encryption>
    -Option to either encrypt directory names or leave them intact.
    -
    -NB If filename_encryption is "off" then this option will do nothing.
    -Enter a boolean value (true or false). Press Enter for the default ("true").
    -Choose a number from below, or type in your own value
    - 1 / Encrypt directory names.
    -   \ "true"
    - 2 / Don't encrypt directory names, leave them intact.
    -   \ "false"
    -directory_name_encryption>
    -Password or pass phrase for encryption.
    -y) Yes type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Password or pass phrase for salt. Optional but recommended.
    -Should be different to the previous password.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g/n> g
    -Password strength in bits.
    -64 is just about memorable
    -128 is secure
    -1024 is the maximum
    -Bits> 128
    -Your password is: JAsJvRcgR-_veXNfy_sGmQ
    -Use this password? Please note that an obscured version of this
    -password (and not the password itself) will be stored under your
    -configuration file, so keep this generated password in a safe place.
    -y) Yes (default)
    -n) No
    -y/n>
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n>
    -Remote config
    ---------------------
    -[secret]
    -type = crypt
    -remote = remote:path
    -password = *** ENCRYPTED ***
    -password2 = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d>
    -

    Important The crypt password stored in rclone.conf is lightly obscured. That only protects it from cursory inspection. It is not secure unless configuration encryption of rclone.conf is specified.

    -

    A long passphrase is recommended, or rclone config can generate a random one.

    -

    The obscured password is created using AES-CTR with a static key. The salt is stored verbatim at the beginning of the obscured password. This static key is shared between all versions of rclone.

    -

    If you reconfigure rclone with the same passwords/passphrases elsewhere it will be compatible, but the obscured version will be different due to the different salt.

    -

    Rclone does not encrypt

    - -

    Specifying the remote

    -

    When configuring the remote to encrypt/decrypt, you may specify any string that rclone accepts as a source/destination of other commands.

    -

    The primary use case is to specify the path into an already configured remote (e.g. remote:path/to/dir or remote:bucket), such that data in a remote untrusted location can be stored encrypted.

    -

    You may also specify a local filesystem path, such as /path/to/dir on Linux, C:\path\to\dir on Windows. By creating a crypt remote pointing to such a local filesystem path, you can use rclone as a utility for pure local file encryption, for example to keep encrypted files on a removable USB drive.

    -

    Note: A string which do not contain a : will by rclone be treated as a relative path in the local filesystem. For example, if you enter the name remote without the trailing :, it will be treated as a subdirectory of the current directory with name "remote".

    -

    If a path remote:path/to/dir is specified, rclone stores encrypted files in path/to/dir on the remote. With file name encryption, files saved to secret:subdir/subfile are stored in the unencrypted path path/to/dir but the subdir/subpath element is encrypted.

    -

    The path you specify does not have to exist, rclone will create it when needed.

    -

    If you intend to use the wrapped remote both directly for keeping unencrypted content, as well as through a crypt remote for encrypted content, it is recommended to point the crypt remote to a separate directory within the wrapped remote. If you use a bucket-based storage system (e.g. Swift, S3, Google Compute Storage, B2, Hubic) it is generally advisable to wrap the crypt remote around a specific bucket (s3:bucket). If wrapping around the entire root of the storage (s3:), and use the optional file name encryption, rclone will encrypt the bucket name.

    -

    Changing password

    -

    Should the password, or the configuration file containing a lightly obscured form of the password, be compromised, you need to re-encrypt your data with a new password. Since rclone uses secret-key encryption, where the encryption key is generated directly from the password kept on the client, it is not possible to change the password/key of already encrypted content. Just changing the password configured for an existing crypt remote means you will no longer able to decrypt any of the previously encrypted content. The only possibility is to re-upload everything via a crypt remote configured with your new password.

    -

    Depending on the size of your data, your bandwith, storage quota etc, there are different approaches you can take: - If you have everything in a different location, for example on your local system, you could remove all of the prior encrypted files, change the password for your configured crypt remote (or delete and re-create the crypt configuration), and then re-upload everything from the alternative location. - If you have enough space on the storage system you can create a new crypt remote pointing to a separate directory on the same backend, and then use rclone to copy everything from the original crypt remote to the new, effectively decrypting everything on the fly using the old password and re-encrypting using the new password. When done, delete the original crypt remote directory and finally the rclone crypt configuration with the old password. All data will be streamed from the storage system and back, so you will get half the bandwith and be charged twice if you have upload and download quota on the storage system.

    -

    Note: A security problem related to the random password generator was fixed in rclone version 1.53.3 (released 2020-11-19). Passwords generated by rclone config in version 1.49.0 (released 2019-08-26) to 1.53.2 (released 2020-10-26) are not considered secure and should be changed. If you made up your own password, or used rclone version older than 1.49.0 or newer than 1.53.2 to generate it, you are not affected by this issue. See issue #4783 for more details, and a tool you can use to check if you are affected.

    -

    Example

    -

    Create the following file structure using "standard" file name encryption.

    -
    plaintext/
    -├── file0.txt
    -├── file1.txt
    -└── subdir
    -    ├── file2.txt
    -    ├── file3.txt
    -    └── subsubdir
    -        └── file4.txt
    -

    Copy these to the remote, and list them

    -
    $ rclone -q copy plaintext secret:
    -$ rclone -q ls secret:
    -        7 file1.txt
    -        6 file0.txt
    -        8 subdir/file2.txt
    -       10 subdir/subsubdir/file4.txt
    -        9 subdir/file3.txt
    -

    The crypt remote looks like

    -
    $ rclone -q ls remote:path
    -       55 hagjclgavj2mbiqm6u6cnjjqcg
    -       54 v05749mltvv1tf4onltun46gls
    -       57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo
    -       58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc
    -       56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps
    -

    The directory structure is preserved

    -
    $ rclone -q ls secret:subdir
    -        8 file2.txt
    -        9 file3.txt
    -       10 subsubdir/file4.txt
    -

    Without file name encryption .bin extensions are added to underlying names. This prevents the cloud provider attempting to interpret file content.

    -
    $ rclone -q ls remote:path
    -       54 file0.txt.bin
    -       57 subdir/file3.txt.bin
    -       56 subdir/file2.txt.bin
    -       58 subdir/subsubdir/file4.txt.bin
    -       55 file1.txt.bin
    -

    File name encryption modes

    -

    Off

    - -

    Standard

    - -

    Obfuscation

    -

    This is a simple "rotate" of the filename, with each file having a rot distance based on the filename. Rclone stores the distance at the beginning of the filename. A file called "hello" may become "53.jgnnq".

    -

    Obfuscation is not a strong encryption of filenames, but hinders automated scanning tools picking up on filename patterns. It is an intermediate between "off" and "standard" which allows for longer path segment names.

    -

    There is a possibility with some unicode based filenames that the obfuscation is weak and may map lower case characters to upper case equivalents.

    -

    Obfuscation cannot be relied upon for strong protection.

    - -

    Cloud storage systems have limits on file name length and total path length which rclone is more likely to breach using "Standard" file name encryption. Where file names are less than 156 characters in length issues should not be encountered, irrespective of cloud storage provider.

    -

    An experimental advanced option filename_encoding is now provided to address this problem to a certain degree. For cloud storage systems with case sensitive file names (e.g. Google Drive), base64 can be used to reduce file name length. For cloud storage systems using UTF-16 to store file names internally (e.g. OneDrive), base32768 can be used to drastically reduce file name length.

    -

    An alternative, future rclone file name encryption mode may tolerate backend provider path length limits.

    -

    Directory name encryption

    -

    Crypt offers the option of encrypting dir names or leaving them intact. There are two options:

    -

    True

    -

    Encrypts the whole file path including directory names Example: 1/12/123.txt is encrypted to p0e52nreeaj0a5ea7s64m4j72s/l42g6771hnv3an9cgc8cr2n1ng/qgm4avr35m5loi1th53ato71v0

    -

    False

    -

    Only encrypts file names, skips directory names Example: 1/12/123.txt is encrypted to 1/12/qgm4avr35m5loi1th53ato71v0

    -

    Modified time and hashes

    -

    Crypt stores modification times using the underlying remote so support depends on that.

    -

    Hashes are not stored for crypt. However the data integrity is protected by an extremely strong crypto authenticator.

    -

    Use the rclone cryptcheck command to check the integrity of a crypted remote instead of rclone check which can't check the checksums properly.

    -

    Standard options

    -

    Here are the standard options specific to crypt (Encrypt/Decrypt a remote).

    -

    --crypt-remote

    -

    Remote to encrypt/decrypt.

    -

    Normally should contain a ':' and a path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended).

    -

    Properties:

    - -

    --crypt-filename-encryption

    -

    How to encrypt the filenames.

    +

    --s3-location-constraint

    +

    Location constraint - must match endpoint.

    +

    Used when creating buckets only.

    Properties:

    -

    --crypt-directory-name-encryption

    -

    Option to either encrypt directory names or leave them intact.

    -

    NB If filename_encryption is "off" then this option will do nothing.

    -

    Properties:

    - -

    --crypt-password

    -

    Password or pass phrase for encryption.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --crypt-password2

    -

    Password or pass phrase for salt.

    -

    Optional but recommended. Should be different to the previous password.

    -

    NB Input to this must be obscured - see rclone obscure.

    +

    --s3-location-constraint

    +

    Location constraint - must match endpoint when using IBM Cloud Public.

    +

    For on-prem COS, do not make a selection from this list, hit enter.

    Properties:

    -

    Advanced options

    -

    Here are the advanced options specific to crypt (Encrypt/Decrypt a remote).

    -

    --crypt-server-side-across-configs

    -

    Allow server-side operations (e.g. copy) to work across different crypt configs.

    -

    Normally this option is not what you want, but if you have two crypts pointing to the same backend you can use it.

    -

    This can be used, for example, to change file name encryption type without re-uploading all the data. Just make two crypt backends pointing to two different directories with the single changed parameter and use rclone move to move the files between the crypt remotes.

    -

    Properties:

    - -

    --crypt-show-mapping

    -

    For all files listed show how the names encrypt.

    -

    If this flag is set then for each file that the remote is asked to list, it will log (at level INFO) a line stating the decrypted file name and the encrypted file name.

    -

    This is so you can work out which encrypted names are which decrypted names just in case you need to do something with the encrypted file names, or for debugging purposes.

    -

    Properties:

    - -

    --crypt-no-data-encryption

    -

    Option to either encrypt file data or leave it unencrypted.

    -

    Properties:

    - -

    --crypt-filename-encoding

    -

    How to encode the encrypted filename to text string.

    -

    This option could help with shortening the encrypted filename. The suitable option would depend on the way your remote count the filename length and if it's case sensitve.

    -

    Properties:

    - -

    Backend commands

    -

    Here are the commands specific to the crypt backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    encode

    -

    Encode the given filename(s)

    -
    rclone backend encode remote: [options] [<arguments>+]
    -

    This encodes the filenames given as arguments returning a list of strings of the encoded results.

    -

    Usage Example:

    -
    rclone backend encode crypt: file1 [file2...]
    -rclone rc backend/command command=encode fs=crypt: file1 [file2...]
    -

    decode

    -

    Decode the given filename(s)

    -
    rclone backend decode remote: [options] [<arguments>+]
    -

    This decodes the filenames given as arguments returning a list of strings of the decoded results. It will return an error if any of the inputs are invalid.

    -

    Usage Example:

    -
    rclone backend decode crypt: encryptedfile1 [encryptedfile2...]
    -rclone rc backend/command command=decode fs=crypt: encryptedfile1 [encryptedfile2...]
    -

    Backing up a crypted remote

    -

    If you wish to backup a crypted remote, it is recommended that you use rclone sync on the encrypted files, and make sure the passwords are the same in the new encrypted remote.

    -

    This will have the following advantages

    - -

    For example, let's say you have your original remote at remote: with the encrypted version at eremote: with path remote:crypt. You would then set up the new remote remote2: and then the encrypted version eremote2: with path remote2:crypt using the same passwords as eremote:.

    -

    To sync the two remotes you would do

    -
    rclone sync -i remote:crypt remote2:crypt
    -

    And to check the integrity you would do

    -
    rclone check remote:crypt remote2:crypt
    -

    File formats

    -

    File encryption

    -

    Files are encrypted 1:1 source file to destination object. The file has a header and is divided into chunks.

    -

    Header

    - -

    The initial nonce is generated from the operating systems crypto strong random number generator. The nonce is incremented for each chunk read making sure each nonce is unique for each block written. The chance of a nonce being re-used is minuscule. If you wrote an exabyte of data (10¹⁸ bytes) you would have a probability of approximately 2×10⁻³² of re-using a nonce.

    -

    Chunk

    -

    Each chunk will contain 64 KiB of data, except for the last one which may have less data. The data chunk is in standard NaCl SecretBox format. SecretBox uses XSalsa20 and Poly1305 to encrypt and authenticate messages.

    -

    Each chunk contains:

    - -

    64k chunk size was chosen as the best performing chunk size (the authenticator takes too much time below this and the performance drops off due to cache effects above this). Note that these chunks are buffered in memory so they can't be too big.

    -

    This uses a 32 byte (256 bit key) key derived from the user password.

    -

    Examples

    -

    1 byte file will encrypt to

    - -

    49 bytes total

    -

    1 MiB (1048576 bytes) file will encrypt to

    - -

    1049120 bytes total (a 0.05% overhead). This is the overhead for big files.

    -

    Name encryption

    -

    File names are encrypted segment by segment - the path is broken up into / separated strings and these are encrypted individually.

    -

    File segments are padded using PKCS#7 to a multiple of 16 bytes before encryption.

    -

    They are then encrypted with EME using AES with 256 bit key. EME (ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003 paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.

    -

    This makes for deterministic encryption which is what we want - the same filename must encrypt to the same thing otherwise we can't find it on the cloud storage system.

    -

    This means that

    - -

    This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password.

    -

    After encryption they are written out using a modified version of standard base32 encoding as described in RFC4648. The standard encoding is modified in two ways:

    - -

    base32 is used rather than the more efficient base64 so rclone can be used on case insensitive remotes (e.g. Windows, Amazon Drive).

    -

    Key derivation

    -

    Rclone uses scrypt with parameters N=16384, r=8, p=1 with an optional user supplied salt (password2) to derive the 32+32+16 = 80 bytes of key material required. If the user doesn't supply a salt then rclone uses an internal one.

    -

    scrypt makes it impractical to mount a dictionary attack on rclone encrypted data. For full protection against this you should always use a salt.

    -

    SEE ALSO

    - -

    Compress (Experimental)

    -

    Warning

    -

    This remote is currently experimental. Things may break and data may be lost. Anything you do with this remote is at your own risk. Please understand the risks associated with using experimental code and don't use this remote in critical applications.

    -

    The Compress remote adds compression to another remote. It is best used with remotes containing many large compressible files.

    -

    Configuration

    -

    To use this remote, all you need to do is specify another remote and a compression mode to use:

    -
    Current remotes:
    -
    -Name                 Type
    -====                 ====
    -remote_to_press      sometype
    -
    -e) Edit existing remote
    -$ rclone config
    -n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -e/n/d/r/c/s/q> n
    -name> compress
    -...
    - 8 / Compress a remote
    -   \ "compress"
    -...
    -Storage> compress
    -** See help for compress backend at: https://rclone.org/compress/ **
    -
    -Remote to compress.
    -Enter a string value. Press Enter for the default ("").
    -remote> remote_to_press:subdir 
    -Compression mode.
    -Enter a string value. Press Enter for the default ("gzip").
    -Choose a number from below, or type in your own value
    - 1 / Gzip compression balanced for speed and compression strength.
    -   \ "gzip"
    -compression_mode> gzip
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    ---------------------
    -[compress]
    -type = compress
    -remote = remote_to_press:subdir
    -compression_mode = gzip
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Compression Modes

    -

    Currently only gzip compression is supported. It provides a decent balance between speed and size and is well supported by other applications. Compression strength can further be configured via an advanced setting where 0 is no compression and 9 is strongest compression.

    -

    File types

    -

    If you open a remote wrapped by compress, you will see that there are many files with an extension corresponding to the compression algorithm you chose. These files are standard files that can be opened by various archive programs, but they have some hidden metadata that allows them to be used by rclone. While you may download and decompress these files at will, do not manually delete or rename files. Files without correct metadata files will not be recognized by rclone.

    -

    File names

    -

    The compressed files will be named *.###########.gz where * is the base file and the # part is base64 encoded size of the uncompressed file. The file names should not be changed by anything other than the rclone compression backend.

    -

    Standard options

    -

    Here are the standard options specific to compress (Compress a remote).

    -

    --compress-remote

    -

    Remote to compress.

    -

    Properties:

    - -

    --compress-mode

    -

    Compression mode.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to compress (Compress a remote).

    -

    --compress-level

    -

    GZIP compression level (-2 to 9).

    -

    Generally -1 (default, equivalent to 5) is recommended. Levels 1 to 9 increase compression at the cost of speed. Going past 6 generally offers very little return.

    -

    Level -2 uses Huffmann encoding only. Only use if you know what you are doing. Level 0 turns off compression.

    -

    Properties:

    - -

    --compress-ram-cache-limit

    -

    Some remotes don't allow the upload of files with unknown size. In this case the compressed file will need to be cached to determine it's size.

    -

    Files smaller than this limit will be cached in RAM, files larger than this limit will be cached on disk.

    -

    Properties:

    - -

    Dropbox

    -

    Paths are specified as remote:path

    -

    Dropbox paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for dropbox involves getting a token from Dropbox which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    n) New remote
    -d) Delete remote
    -q) Quit config
    -e/n/d/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Dropbox
    -   \ "dropbox"
    -[snip]
    -Storage> dropbox
    -Dropbox App Key - leave blank normally.
    -app_key>
    -Dropbox App Secret - leave blank normally.
    -app_secret>
    -Remote config
    -Please visit:
    -https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code
    -Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX
    ---------------------
    -[remote]
    -app_key =
    -app_secret =
    -token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    You can then use it like this,

    -

    List directories in top level of your dropbox

    -
    rclone lsd remote:
    -

    List all the files in your dropbox

    -
    rclone ls remote:
    -

    To copy a local directory to a dropbox directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Dropbox for business

    -

    Rclone supports Dropbox for business and Team Folders.

    -

    When using Dropbox for business remote: and remote:path/to/file will refer to your personal folder.

    -

    If you wish to see Team Folders you must use a leading / in the path, so rclone lsd remote:/ will refer to the root and show you all Team Folders and your User Folder.

    -

    You can then use team folders like this remote:/TeamFolder and remote:/TeamFolder/path/to/file.

    -

    A leading / for a Dropbox personal account will do nothing, but it will take an extra HTTP transaction so it should be avoided.

    -

    Modified time and Hashes

    -

    Dropbox supports modified times, but the only way to set a modification time is to re-upload the file.

    -

    This means that if you uploaded your data with an older version of rclone which didn't support the v2 API and modified times, rclone will decide to upload all your old data to fix the modification times. If you don't want this to happen use --size-only or --checksum flag to stop it.

    -

    Dropbox supports its own hash type which is checked for all transfers.

    -

    Restricted filename characters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    NUL0x00
    /0x2F
    DEL0x7F
    \0x5C
    -

    File names can also not end with the following characters. These only get replaced if they are the last character in the name:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    SP0x20
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Batch mode uploads

    -

    Using batch mode uploads is very important for performance when using the Dropbox API. See the dropbox performance guide for more info.

    -

    There are 3 modes rclone can use for uploads.

    -

    --dropbox-batch-mode off

    -

    In this mode rclone will not use upload batching. This was the default before rclone v1.55. It has the disadvantage that it is very likely to encounter too_many_requests errors like this

    -
    NOTICE: too_many_requests/.: Too many requests or write operations. Trying again in 15 seconds.
    -

    When rclone receives these it has to wait for 15s or sometimes 300s before continuing which really slows down transfers.

    -

    This will happen especially if --transfers is large, so this mode isn't recommended except for compatibility or investigating problems.

    -

    --dropbox-batch-mode sync

    -

    In this mode rclone will batch up uploads to the size specified by --dropbox-batch-size and commit them together.

    -

    Using this mode means you can use a much higher --transfers parameter (32 or 64 works fine) without receiving too_many_requests errors.

    -

    This mode ensures full data integrity.

    -

    Note that there may be a pause when quitting rclone while rclone finishes up the last batch using this mode.

    -

    --dropbox-batch-mode async

    -

    In this mode rclone will batch up uploads to the size specified by --dropbox-batch-size and commit them together.

    -

    However it will not wait for the status of the batch to be returned to the caller. This means rclone can use a much bigger batch size (much bigger than --transfers), at the cost of not being able to check the status of the upload.

    -

    This provides the maximum possible upload speed especially with lots of small files, however rclone can't check the file got uploaded properly using this mode.

    -

    If you are using this mode then using "rclone check" after the transfer completes is recommended. Or you could do an initial transfer with --dropbox-batch-mode async then do a final transfer with --dropbox-batch-mode sync (the default).

    -

    Note that there may be a pause when quitting rclone while rclone finishes up the last batch using this mode.

    -

    Standard options

    -

    Here are the standard options specific to dropbox (Dropbox).

    -

    --dropbox-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --dropbox-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to dropbox (Dropbox).

    -

    --dropbox-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --dropbox-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --dropbox-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --dropbox-chunk-size

    -

    Upload chunk size (< 150Mi).

    -

    Any files larger than this will be uploaded in chunks of this size.

    -

    Note that chunks are buffered in memory (one at a time) so rclone can deal with retries. Setting this larger will increase the speed slightly (at most 10% for 128 MiB in tests) at the cost of using more memory. It can be set smaller if you are tight on memory.

    -

    Properties:

    - -

    --dropbox-impersonate

    -

    Impersonate this user when using a business account.

    -

    Note that if you want to use impersonate, you should make sure this flag is set when running "rclone config" as this will cause rclone to request the "members.read" scope which it won't normally. This is needed to lookup a members email address into the internal ID that dropbox uses in the API.

    -

    Using the "members.read" scope will require a Dropbox Team Admin to approve during the OAuth flow.

    -

    You will have to use your own App (setting your own client_id and client_secret) to use this option as currently rclone's default set of permissions doesn't include "members.read". This can be added once v1.55 or later is in use everywhere.

    -

    Properties:

    +
  • "us-east-cold"
      -
    • Config: impersonate
    • -
    • Env Var: RCLONE_DROPBOX_IMPERSONATE
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --dropbox-shared-files

    -

    Instructs rclone to work on individual shared files.

    -

    In this mode rclone's features are extremely limited - only list (ls, lsl, etc.) operations and read operations (e.g. downloading) are supported in this mode. All other operations will be disabled.

    -

    Properties:

    +
  • US East Region Cold
  • + +
  • "us-east-flex"
      -
    • Config: shared_files
    • -
    • Env Var: RCLONE_DROPBOX_SHARED_FILES
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --dropbox-shared-folders

    -

    Instructs rclone to work on shared folders.

    -

    When this flag is used with no path only the List operation is supported and all available shared folders will be listed. If you specify a path the first part will be interpreted as the name of shared folder. Rclone will then try to mount this shared to the root namespace. On success shared folder rclone proceeds normally. The shared folder is now pretty much a normal folder and all normal operations are supported.

    -

    Note that we don't unmount the shared folder afterwards so the --dropbox-shared-folders can be omitted after the first use of a particular shared folder.

    -

    Properties:

    +
  • US East Region Flex
  • + +
  • "us-south-standard"
      -
    • Config: shared_folders
    • -
    • Env Var: RCLONE_DROPBOX_SHARED_FOLDERS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --dropbox-batch-mode

    -

    Upload file batching sync|async|off.

    -

    This sets the batch mode used by rclone.

    -

    For full info see the main docs

    -

    This has 3 possible values

    +
  • US South Region Standard
  • + +
  • "us-south-vault"
      -
    • off - no batching
    • -
    • sync - batch uploads and check completion (default)
    • -
    • async - batch upload and don't check completion
    • -
    -

    Rclone will close any outstanding batches when it exits which may make a delay on quit.

    -

    Properties:

    +
  • US South Region Vault
  • + +
  • "us-south-cold"
      -
    • Config: batch_mode
    • -
    • Env Var: RCLONE_DROPBOX_BATCH_MODE
    • -
    • Type: string
    • -
    • Default: "sync"
    • -
    -

    --dropbox-batch-size

    -

    Max number of files in upload batch.

    -

    This sets the batch size of files to upload. It has to be less than 1000.

    -

    By default this is 0 which means rclone which calculate the batch size depending on the setting of batch_mode.

    +
  • US South Region Cold
  • + +
  • "us-south-flex"
      -
    • batch_mode: async - default batch_size is 100
    • -
    • batch_mode: sync - default batch_size is the same as --transfers
    • -
    • batch_mode: off - not in use
    • -
    -

    Rclone will close any outstanding batches when it exits which may make a delay on quit.

    -

    Setting this is a great idea if you are uploading lots of small files as it will make them a lot quicker. You can use --transfers 32 to maximise throughput.

    -

    Properties:

    +
  • US South Region Flex
  • + +
  • "eu-standard"
      -
    • Config: batch_size
    • -
    • Env Var: RCLONE_DROPBOX_BATCH_SIZE
    • -
    • Type: int
    • -
    • Default: 0
    • -
    -

    --dropbox-batch-timeout

    -

    Max time to allow an idle upload batch before uploading.

    -

    If an upload batch is idle for more than this long then it will be uploaded.

    -

    The default for this is 0 which means rclone will choose a sensible default based on the batch_mode in use.

    +
  • EU Cross Region Standard
  • + +
  • "eu-vault"
      -
    • batch_mode: async - default batch_timeout is 500ms
    • -
    • batch_mode: sync - default batch_timeout is 10s
    • -
    • batch_mode: off - not in use
    • -
    -

    Properties:

    +
  • EU Cross Region Vault
  • + +
  • "eu-cold"
      -
    • Config: batch_timeout
    • -
    • Env Var: RCLONE_DROPBOX_BATCH_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 0s
    • -
    -

    --dropbox-batch-commit-timeout

    -

    Max time to wait for a batch to finish comitting

    -

    Properties:

    +
  • EU Cross Region Cold
  • + +
  • "eu-flex"
      -
    • Config: batch_commit_timeout
    • -
    • Env Var: RCLONE_DROPBOX_BATCH_COMMIT_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 10m0s
    • -
    -

    --dropbox-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • EU Cross Region Flex
  • + +
  • "eu-gb-standard"
      -
    • Config: encoding
    • -
    • Env Var: RCLONE_DROPBOX_ENCODING
    • -
    • Type: MultiEncoder
    • -
    • Default: Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot
    • -
    -

    Limitations

    -

    Note that Dropbox is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    There are some file names such as thumbs.db which Dropbox can't store. There is a full list of them in the "Ignored Files" section of this document. Rclone will issue an error message File name disallowed - not uploading if it attempts to upload one of those file names, but the sync won't fail.

    -

    Some errors may occur if you try to sync copyright-protected files because Dropbox has its own copyright detector that prevents this sort of file being downloaded. This will return the error ERROR : /path/to/your/file: Failed to copy: failed to open source object: path/restricted_content/.

    -

    If you have more than 10,000 files in a directory then rclone purge dropbox:dir will return the error Failed to purge: There are too many files involved in this operation. As a work-around do an rclone delete dropbox:dir followed by an rclone rmdir dropbox:dir.

    -

    When using rclone link you'll need to set --expire if using a non-personal account otherwise the visibility may not be correct. (Note that --expire isn't supported on personal accounts). See the forum discussion and the dropbox SDK issue.

    -

    Get your own Dropbox App ID

    -

    When you use rclone with Dropbox in its default configuration you are using rclone's App ID. This is shared between all the rclone users.

    -

    Here is how to create your own Dropbox App ID for rclone:

    -
      -
    1. Log into the Dropbox App console with your Dropbox Account (It need not to be the same account as the Dropbox you want to access)

    2. -
    3. Choose an API => Usually this should be Dropbox API

    4. -
    5. Choose the type of access you want to use => Full Dropbox or App Folder

    6. -
    7. Name your App. The app name is global, so you can't use rclone for example

    8. -
    9. Click the button Create App

    10. -
    11. Switch to the Permissions tab. Enable at least the following permissions: account_info.read, files.metadata.write, files.content.write, files.content.read, sharing.write. The files.metadata.read and sharing.read checkboxes will be marked too. Click Submit

    12. -
    13. Switch to the Settings tab. Fill OAuth2 - Redirect URIs as http://localhost:53682/

    14. -
    15. Find the App key and App secret values on the Settings tab. Use these values in rclone config to add a new remote or edit an existing remote. The App key setting corresponds to client_id in rclone config, the App secret corresponds to client_secret

    16. -
    -

    Enterprise File Fabric

    -

    This backend supports Storage Made Easy's Enterprise File Fabric™ which provides a software solution to integrate and unify File and Object Storage accessible through a global file system.

    -

    Configuration

    -

    The initial setup for the Enterprise File Fabric backend involves getting a token from the the Enterprise File Fabric which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Enterprise File Fabric
    -   \ "filefabric"
    -[snip]
    -Storage> filefabric
    -** See help for filefabric backend at: https://rclone.org/filefabric/ **
    -
    -URL of the Enterprise File Fabric to connect to
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Storage Made Easy US
    -   \ "https://storagemadeeasy.com"
    - 2 / Storage Made Easy EU
    -   \ "https://eu.storagemadeeasy.com"
    - 3 / Connect to your Enterprise File Fabric
    -   \ "https://yourfabric.smestorage.com"
    -url> https://yourfabric.smestorage.com/
    -ID of the root folder
    -Leave blank normally.
    -
    -Fill in to make rclone start with directory of a given ID.
    -
    -Enter a string value. Press Enter for the default ("").
    -root_folder_id> 
    -Permanent Authentication Token
    -
    -A Permanent Authentication Token can be created in the Enterprise File
    -Fabric, on the users Dashboard under Security, there is an entry
    -you'll see called "My Authentication Tokens". Click the Manage button
    -to create one.
    -
    -These tokens are normally valid for several years.
    -
    -For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens
    -
    -Enter a string value. Press Enter for the default ("").
    -permanent_token> xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    ---------------------
    -[remote]
    -type = filefabric
    -url = https://yourfabric.smestorage.com/
    -permanent_token = xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your Enterprise File Fabric

    -
    rclone lsd remote:
    -

    List all the files in your Enterprise File Fabric

    -
    rclone ls remote:
    -

    To copy a local directory to an Enterprise File Fabric directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    The Enterprise File Fabric allows modification times to be set on files accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    The Enterprise File Fabric does not support any data hashes at this time.

    -

    Restricted filename characters

    -

    The default restricted characters set will be replaced.

    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Empty files

    -

    Empty files aren't supported by the Enterprise File Fabric. Rclone will therefore upload an empty file as a single space with a mime type of application/vnd.rclone.empty.file and files with that mime type are treated as empty.

    -

    Root folder ID

    -

    You can set the root_folder_id for rclone. This is the directory (identified by its Folder ID) that rclone considers to be the root of your Enterprise File Fabric.

    -

    Normally you will leave this blank and rclone will determine the correct root to use itself.

    -

    However you can set this to restrict rclone to a specific folder hierarchy.

    -

    In order to do this you will have to find the Folder ID of the directory you wish rclone to display. These aren't displayed in the web interface, but you can use rclone lsf to find them, for example

    -
    $ rclone lsf --dirs-only -Fip --csv filefabric:
    -120673758,Burnt PDFs/
    -120673759,My Quick Uploads/
    -120673755,My Syncs/
    -120673756,My backups/
    -120673757,My contacts/
    -120673761,S3 Storage/
    -

    The ID for "S3 Storage" would be 120673761.

    -

    Standard options

    -

    Here are the standard options specific to filefabric (Enterprise File Fabric).

    -

    --filefabric-url

    -

    URL of the Enterprise File Fabric to connect to.

    -

    Properties:

    +
  • Great Britain Standard
  • + +
  • "eu-gb-vault"
      -
    • Config: url
    • -
    • Env Var: RCLONE_FILEFABRIC_URL
    • -
    • Type: string
    • -
    • Required: true
    • -
    • Examples: +
    • Great Britain Vault
    • +
  • +
  • "eu-gb-cold"
      -
    • "https://storagemadeeasy.com" +
    • Great Britain Cold
    • +
  • +
  • "eu-gb-flex"
      -
    • Storage Made Easy US
    • +
    • Great Britain Flex
  • -
  • "https://eu.storagemadeeasy.com" +
  • "ap-standard"
      -
    • Storage Made Easy EU
    • +
    • APAC Standard
  • -
  • "https://yourfabric.smestorage.com" +
  • "ap-vault"
      -
    • Connect to your Enterprise File Fabric
    • +
    • APAC Vault
  • +
  • "ap-cold" +
      +
    • APAC Cold
  • - -

    --filefabric-root-folder-id

    -

    ID of the root folder.

    -

    Leave blank normally.

    -

    Fill in to make rclone start with directory of a given ID.

    -

    Properties:

    +
  • "ap-flex"
      -
    • Config: root_folder_id
    • -
    • Env Var: RCLONE_FILEFABRIC_ROOT_FOLDER_ID
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --filefabric-permanent-token

    -

    Permanent Authentication Token.

    -

    A Permanent Authentication Token can be created in the Enterprise File Fabric, on the users Dashboard under Security, there is an entry you'll see called "My Authentication Tokens". Click the Manage button to create one.

    -

    These tokens are normally valid for several years.

    -

    For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens

    -

    Properties:

    +
  • APAC Flex
  • + +
  • "mel01-standard"
      -
    • Config: permanent_token
    • -
    • Env Var: RCLONE_FILEFABRIC_PERMANENT_TOKEN
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    Advanced options

    -

    Here are the advanced options specific to filefabric (Enterprise File Fabric).

    -

    --filefabric-token

    -

    Session Token.

    -

    This is a session token which rclone caches in the config file. It is usually valid for 1 hour.

    -

    Don't set this value - rclone will set it automatically.

    -

    Properties:

    +
  • Melbourne Standard
  • + +
  • "mel01-vault"
      -
    • Config: token
    • -
    • Env Var: RCLONE_FILEFABRIC_TOKEN
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --filefabric-token-expiry

    -

    Token expiry time.

    -

    Don't set this value - rclone will set it automatically.

    -

    Properties:

    +
  • Melbourne Vault
  • + +
  • "mel01-cold"
      -
    • Config: token_expiry
    • -
    • Env Var: RCLONE_FILEFABRIC_TOKEN_EXPIRY
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --filefabric-version

    -

    Version read from the file fabric.

    -

    Don't set this value - rclone will set it automatically.

    -

    Properties:

    +
  • Melbourne Cold
  • + +
  • "mel01-flex"
      -
    • Config: version
    • -
    • Env Var: RCLONE_FILEFABRIC_VERSION
    • -
    • Type: string
    • -
    • Required: false
    • -
    -

    --filefabric-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • Melbourne Flex
  • + +
  • "tor01-standard"
      -
    • Config: encoding
    • -
    • Env Var: RCLONE_FILEFABRIC_ENCODING
    • -
    • Type: MultiEncoder
    • -
    • Default: Slash,Del,Ctl,InvalidUtf8,Dot
    • -
    -

    FTP

    -

    FTP is the File Transfer Protocol. Rclone FTP support is provided using the github.com/jlaffaye/ftp package.

    -

    Limitations of Rclone's FTP backend

    -

    Paths are specified as remote:path. If the path does not begin with a / it is relative to the home directory of the user. An empty path remote: refers to the user's home directory.

    -

    Configuration

    -

    To create an FTP configuration named remote, run

    -
    rclone config
    -

    Rclone config guides you through an interactive setup process. A minimal rclone FTP remote definition only requires host, username and password. For an anonymous FTP server, use anonymous as username and your email address as password.

    -
    No remotes found, make a new one?
    -n) New remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -n/r/c/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / FTP Connection
    -   \ "ftp"
    -[snip]
    -Storage> ftp
    -** See help for ftp backend at: https://rclone.org/ftp/ **
    -
    -FTP host to connect to
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Connect to ftp.example.com
    -   \ "ftp.example.com"
    -host> ftp.example.com
    -FTP username
    -Enter a string value. Press Enter for the default ("$USER").
    -user> 
    -FTP port number
    -Enter a signed integer. Press Enter for the default (21).
    -port> 
    -FTP password
    -y) Yes type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Use FTP over TLS (Implicit)
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -tls> 
    -Use FTP over TLS (Explicit)
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -explicit_tls> 
    -Remote config
    ---------------------
    -[remote]
    -type = ftp
    -host = ftp.example.com
    -pass = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    To see all directories in the home directory of remote

    -
    rclone lsd remote:
    -

    Make a new directory

    -
    rclone mkdir remote:path/to/directory
    -

    List the contents of a directory

    -
    rclone ls remote:path/to/directory
    -

    Sync /home/local/directory to the remote directory, deleting any excess files in the directory.

    -
    rclone sync -i /home/local/directory remote:directory
    -

    Example without a config file

    -
    rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-pass=`rclone obscure dummy`
    -

    Implicit TLS

    -

    Rlone FTP supports implicit FTP over TLS servers (FTPS). This has to be enabled in the FTP backend config for the remote, or with --ftp-tls. The default FTPS port is 990, not 21 and can be set with --ftp-port.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    -

    File names cannot end with the following characters. Repacement is limited to the last character in a file name:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    SP0x20
    -

    Not all FTP servers can have all characters in file names, for example:

    - - - - - - - - - - - - - - - - - -
    FTP ServerForbidden characters
    proftpd*
    pureftpd\ [ ]
    -

    This backend's interactive configuration wizard provides a selection of sensible encoding settings for major FTP servers: ProFTPd, PureFTPd, VsFTPd. Just hit a selection number when prompted.

    -

    Standard options

    -

    Here are the standard options specific to ftp (FTP Connection).

    -

    --ftp-host

    -

    FTP host to connect to.

    -

    E.g. "ftp.example.com".

    -

    Properties:

    +
  • Toronto Standard
  • + +
  • "tor01-vault"
      -
    • Config: host
    • -
    • Env Var: RCLONE_FTP_HOST
    • -
    • Type: string
    • -
    • Required: true
    • -
    -

    --ftp-user

    -

    FTP username.

    -

    Properties:

    +
  • Toronto Vault
  • + +
  • "tor01-cold"
      -
    • Config: user
    • -
    • Env Var: RCLONE_FTP_USER
    • -
    • Type: string
    • -
    • Default: "$USER"
    • -
    -

    --ftp-port

    -

    FTP port number.

    -

    Properties:

    +
  • Toronto Cold
  • + +
  • "tor01-flex"
      -
    • Config: port
    • -
    • Env Var: RCLONE_FTP_PORT
    • -
    • Type: int
    • -
    • Default: 21
    • +
    • Toronto Flex
    • +
  • + -

    --ftp-pass

    -

    FTP password.

    -

    NB Input to this must be obscured - see rclone obscure.

    +

    --s3-location-constraint

    +

    Location constraint - the location where your bucket will be located and your data stored.

    Properties:

    -

    --ftp-tls

    -

    Use Implicit FTPS (FTP over TLS).

    -

    When using implicit FTP over TLS the client connects using TLS right from the start which breaks compatibility with non-TLS-aware servers. This is usually served over port 990 rather than port 21. Cannot be used in combination with explicit FTP.

    -

    Properties:

    +
  • Examples:
      -
    • Config: tls
    • -
    • Env Var: RCLONE_FTP_TLS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-explicit-tls

    -

    Use Explicit FTPS (FTP over TLS).

    -

    When using explicit FTP over TLS the client explicitly requests security from the server in order to upgrade a plain text connection to an encrypted one. Cannot be used in combination with implicit FTP.

    -

    Properties:

    +
  • "global"
      -
    • Config: explicit_tls
    • -
    • Env Var: RCLONE_FTP_EXPLICIT_TLS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    Advanced options

    -

    Here are the advanced options specific to ftp (FTP Connection).

    -

    --ftp-concurrency

    -

    Maximum number of FTP simultaneous connections, 0 for unlimited.

    -

    Properties:

    +
  • Global CDN Region
  • + +
  • "au"
      -
    • Config: concurrency
    • -
    • Env Var: RCLONE_FTP_CONCURRENCY
    • -
    • Type: int
    • -
    • Default: 0
    • -
    -

    --ftp-no-check-certificate

    -

    Do not verify the TLS certificate of the server.

    -

    Properties:

    +
  • Australia (All locations)
  • + +
  • "au-nsw"
      -
    • Config: no_check_certificate
    • -
    • Env Var: RCLONE_FTP_NO_CHECK_CERTIFICATE
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-disable-epsv

    -

    Disable using EPSV even if server advertises support.

    -

    Properties:

    +
  • NSW (Australia) Region
  • + +
  • "au-qld"
      -
    • Config: disable_epsv
    • -
    • Env Var: RCLONE_FTP_DISABLE_EPSV
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-disable-mlsd

    -

    Disable using MLSD even if server advertises support.

    -

    Properties:

    +
  • QLD (Australia) Region
  • + +
  • "au-vic"
      -
    • Config: disable_mlsd
    • -
    • Env Var: RCLONE_FTP_DISABLE_MLSD
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-writing-mdtm

    -

    Use MDTM to set modification time (VsFtpd quirk)

    -

    Properties:

    +
  • VIC (Australia) Region
  • + +
  • "au-wa"
      -
    • Config: writing_mdtm
    • -
    • Env Var: RCLONE_FTP_WRITING_MDTM
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-idle-timeout

    -

    Max time before closing idle connections.

    -

    If no connections have been returned to the connection pool in the time given, rclone will empty the connection pool.

    -

    Set to 0 to keep connections indefinitely.

    -

    Properties:

    +
  • Perth (Australia) Region
  • + +
  • "ph"
      -
    • Config: idle_timeout
    • -
    • Env Var: RCLONE_FTP_IDLE_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 1m0s
    • -
    -

    --ftp-close-timeout

    -

    Maximum time to wait for a response to close.

    -

    Properties:

    +
  • Manila (Philippines) Region
  • + +
  • "th"
      -
    • Config: close_timeout
    • -
    • Env Var: RCLONE_FTP_CLOSE_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 1m0s
    • -
    -

    --ftp-tls-cache-size

    -

    Size of TLS session cache for all control and data connections.

    -

    TLS cache allows to resume TLS sessions and reuse PSK between connections. Increase if default size is not enough resulting in TLS resumption errors. Enabled by default. Use 0 to disable.

    -

    Properties:

    +
  • Bangkok (Thailand) Region
  • + +
  • "hk"
      -
    • Config: tls_cache_size
    • -
    • Env Var: RCLONE_FTP_TLS_CACHE_SIZE
    • -
    • Type: int
    • -
    • Default: 32
    • -
    -

    --ftp-disable-tls13

    -

    Disable TLS 1.3 (workaround for FTP servers with buggy TLS)

    -

    Properties:

    +
  • HK (Hong Kong) Region
  • + +
  • "mn"
      -
    • Config: disable_tls13
    • -
    • Env Var: RCLONE_FTP_DISABLE_TLS13
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-shut-timeout

    -

    Maximum time to wait for data connection closing status.

    -

    Properties:

    +
  • Ulaanbaatar (Mongolia) Region
  • + +
  • "kg"
      -
    • Config: shut_timeout
    • -
    • Env Var: RCLONE_FTP_SHUT_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 1m0s
    • -
    -

    --ftp-ask-password

    -

    Allow asking for FTP password when needed.

    -

    If this is set and no password is supplied then rclone will ask for a password

    -

    Properties:

    +
  • Bishkek (Kyrgyzstan) Region
  • + +
  • "id"
      -
    • Config: ask_password
    • -
    • Env Var: RCLONE_FTP_ASK_PASSWORD
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --ftp-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • Jakarta (Indonesia) Region
  • + +
  • "jp"
      -
    • Config: encoding
    • -
    • Env Var: RCLONE_FTP_ENCODING
    • -
    • Type: MultiEncoder
    • -
    • Default: Slash,Del,Ctl,RightSpace,Dot
    • -
    • Examples: +
    • Tokyo (Japan) Region
    • +
  • +
  • "sg" +
      +
    • SG (Singapore) Region
    • +
  • +
  • "de" +
      +
    • Frankfurt (Germany) Region
    • +
  • +
  • "us"
      -
    • "Asterisk,Ctl,Dot,Slash" +
    • USA (AnyCast) Region
    • +
  • +
  • "us-east-1"
      -
    • ProFTPd can't handle '*' in file names
    • +
    • New York (USA) Region
  • -
  • "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket" +
  • "us-west-1"
      -
    • PureFTPd can't handle '[]' or '*' in file names
    • +
    • Freemont (USA) Region
  • -
  • "Ctl,LeftPeriod,Slash" +
  • "nz"
      -
    • VsFTPd can't handle file names starting with dot
    • +
    • Auckland (New Zealand) Region
  • -

    Limitations

    -

    FTP servers acting as rclone remotes must support passive mode. The mode cannot be configured as passive is the only supported one. Rclone's FTP implementation is not compatible with active mode as the library it uses doesn't support it. This will likely never be supported due to security concerns.

    -

    Rclone's FTP backend does not support any checksums but can compare file sizes.

    -

    rclone about is not supported by the FTP backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    The implementation of : --dump headers, --dump bodies, --dump auth for debugging isn't the same as for rclone HTTP based backends - it has less fine grained control.

    -

    --timeout isn't supported (but --contimeout is).

    -

    --bind isn't supported.

    -

    Rclone's FTP backend could support server-side move but does not at present.

    -

    The ftp_proxy environment variable is not currently supported.

    -

    Modified time

    -

    File modification time (timestamps) is supported to 1 second resolution for major FTP servers: ProFTPd, PureFTPd, VsFTPd, and FileZilla FTP server. The VsFTPd server has non-standard implementation of time related protocol commands and needs a special configuration setting: writing_mdtm = true.

    -

    Support for precise file time with other FTP servers varies depending on what protocol extensions they advertise. If all the MLSD, MDTM and MFTM extensions are present, rclone will use them together to provide precise time. Otherwise the times you see on the FTP server through rclone are those of the last file upload.

    -

    You can use the following command to check whether rclone can use precise time with your FTP server: rclone backend features your_ftp_remote: (the trailing colon is important). Look for the number in the line tagged by Precision designating the remote time precision expressed as nanoseconds. A value of 1000000000 means that file time precision of 1 second is available. A value of 3153600000000000000 (or another large number) means "unsupported".

    -

    Google Cloud Storage

    -

    Paths are specified as remote:bucket (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:bucket/path/to/dir.

    -

    Configuration

    -

    The initial setup for google cloud storage involves getting a token from Google Cloud Storage which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    n) New remote
    -d) Delete remote
    -q) Quit config
    -e/n/d/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Google Cloud Storage (this is not Google Drive)
    -   \ "google cloud storage"
    -[snip]
    -Storage> google cloud storage
    -Google Application Client Id - leave blank normally.
    -client_id>
    -Google Application Client Secret - leave blank normally.
    -client_secret>
    -Project number optional - needed only for list/create/delete buckets - see your developer console.
    -project_number> 12345678
    -Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
    -service_account_file>
    -Access Control List for new objects.
    -Choose a number from below, or type in your own value
    - 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
    -   \ "authenticatedRead"
    - 2 / Object owner gets OWNER access, and project team owners get OWNER access.
    -   \ "bucketOwnerFullControl"
    - 3 / Object owner gets OWNER access, and project team owners get READER access.
    -   \ "bucketOwnerRead"
    - 4 / Object owner gets OWNER access [default if left blank].
    -   \ "private"
    - 5 / Object owner gets OWNER access, and project team members get access according to their roles.
    -   \ "projectPrivate"
    - 6 / Object owner gets OWNER access, and all Users get READER access.
    -   \ "publicRead"
    -object_acl> 4
    -Access Control List for new buckets.
    -Choose a number from below, or type in your own value
    - 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
    -   \ "authenticatedRead"
    - 2 / Project team owners get OWNER access [default if left blank].
    -   \ "private"
    - 3 / Project team members get access according to their roles.
    -   \ "projectPrivate"
    - 4 / Project team owners get OWNER access, and all Users get READER access.
    -   \ "publicRead"
    - 5 / Project team owners get OWNER access, and all Users get WRITER access.
    -   \ "publicReadWrite"
    -bucket_acl> 2
    -Location for the newly created buckets.
    -Choose a number from below, or type in your own value
    - 1 / Empty for default location (US).
    -   \ ""
    - 2 / Multi-regional location for Asia.
    -   \ "asia"
    - 3 / Multi-regional location for Europe.
    -   \ "eu"
    - 4 / Multi-regional location for United States.
    -   \ "us"
    - 5 / Taiwan.
    -   \ "asia-east1"
    - 6 / Tokyo.
    -   \ "asia-northeast1"
    - 7 / Singapore.
    -   \ "asia-southeast1"
    - 8 / Sydney.
    -   \ "australia-southeast1"
    - 9 / Belgium.
    -   \ "europe-west1"
    -10 / London.
    -   \ "europe-west2"
    -11 / Iowa.
    -   \ "us-central1"
    -12 / South Carolina.
    -   \ "us-east1"
    -13 / Northern Virginia.
    -   \ "us-east4"
    -14 / Oregon.
    -   \ "us-west1"
    -location> 12
    -The storage class to use when storing objects in Google Cloud Storage.
    -Choose a number from below, or type in your own value
    - 1 / Default
    -   \ ""
    - 2 / Multi-regional storage class
    -   \ "MULTI_REGIONAL"
    - 3 / Regional storage class
    -   \ "REGIONAL"
    - 4 / Nearline storage class
    -   \ "NEARLINE"
    - 5 / Coldline storage class
    -   \ "COLDLINE"
    - 6 / Durable reduced availability storage class
    -   \ "DURABLE_REDUCED_AVAILABILITY"
    -storage_class> 5
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine or Y didn't work
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -type = google cloud storage
    -client_id =
    -client_secret =
    -token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
    -project_number = 12345678
    -object_acl = private
    -bucket_acl = private
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall, or use manual mode.

    -

    This remote is called remote and can now be used like this

    -

    See all the buckets in your project

    -
    rclone lsd remote:
    -

    Make a new bucket

    -
    rclone mkdir remote:bucket
    -

    List the contents of a bucket

    -
    rclone ls remote:bucket
    -

    Sync /home/local/directory to the remote bucket, deleting any excess files in the bucket.

    -
    rclone sync -i /home/local/directory remote:bucket
    -

    Service Account support

    -

    You can set up rclone with Google Cloud Storage in an unattended mode, i.e. not tied to a specific end-user Google account. This is useful when you want to synchronise files onto machines that don't have actively logged-in users, for example build machines.

    -

    To get credentials for Google Cloud Platform IAM Service Accounts, please head to the Service Account section of the Google Developer Console. Service Accounts behave just like normal User permissions in Google Cloud Storage ACLs, so you can limit their access (e.g. make them read only). After creating an account, a JSON file containing the Service Account's credentials will be downloaded onto your machines. These credentials are what rclone will use for authentication.

    -

    To use a Service Account instead of OAuth2 token flow, enter the path to your Service Account credentials at the service_account_file prompt and rclone won't use the browser based authentication flow. If you'd rather stuff the contents of the credentials file into the rclone config file, you can set service_account_credentials with the actual contents of the file instead, or set the equivalent environment variable.

    -

    Anonymous Access

    -

    For downloads of objects that permit public access you can configure rclone to use anonymous access by setting anonymous to true. With unauthorized access you can't write or create files but only read or list those buckets and objects that have public read access.

    -

    Application Default Credentials

    -

    If no other source of credentials is provided, rclone will fall back to Application Default Credentials this is useful both when you already have configured authentication for your developer account, or in production when running on a google compute host. Note that if running in docker, you may need to run additional commands on your google compute machine - see this page.

    -

    Note that in the case application default credentials are used, there is no need to explicitly configure a project number.

    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Custom upload headers

    -

    You can set custom upload headers with the --header-upload flag. Google Cloud Storage supports the headers as described in the working with metadata documentation

    - -

    Eg --header-upload "Content-Type text/potato"

    -

    Note that the last of these is for setting custom metadata in the form --header-upload "x-goog-meta-key: value"

    -

    Modification time

    -

    Google Cloud Storage stores md5sum natively. Google's gsutil tool stores modification time with one-second precision as goog-reserved-file-mtime in file metadata.

    -

    To ensure compatibility with gsutil, rclone stores modification time in 2 separate metadata entries. mtime uses RFC3339 format with one-nanosecond precision. goog-reserved-file-mtime uses Unix timestamp format with one-second precision. To get modification time from object metadata, rclone reads the metadata in the following order: mtime, goog-reserved-file-mtime, object updated time.

    -

    Note that rclone's default modify window is 1ns. Files uploaded by gsutil only contain timestamps with one-second precision. If you use rclone to sync files previously uploaded by gsutil, rclone will attempt to update modification time for all these files. To avoid these possibly unnecessary updates, use --modify-window 1s.

    -

    Restricted filename characters

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    NUL0x00
    LF0x0A
    CR0x0D
    /0x2F
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).

    -

    --gcs-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    +

    --s3-location-constraint

    +

    Location constraint - must be set to match the Region.

    +

    Used when creating buckets only.

    Properties:

    -

    --gcs-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    +
  • Examples: +
      +
    • "cn-east-1" +
        +
      • East China Region 1
      • +
    • +
    • "cn-east-2" +
        +
      • East China Region 2
      • +
    • +
    • "cn-north-1" +
        +
      • North China Region 1
      • +
    • +
    • "cn-south-1" +
        +
      • South China Region 1
      • +
    • +
    • "us-north-1" +
        +
      • North America Region 1
      • +
    • +
    • "ap-southeast-1"
        -
      • Config: client_secret
      • -
      • Env Var: RCLONE_GCS_CLIENT_SECRET
      • -
      • Type: string
      • -
      • Required: false
      • -
      -

      --gcs-project-number

      -

      Project number.

      -

      Optional - needed only for list/create/delete buckets - see your developer console.

      -

      Properties:

      +
    • Southeast Asia Region 1
    • +
  • +
  • "ap-northeast-1"
      -
    • Config: project_number
    • -
    • Env Var: RCLONE_GCS_PROJECT_NUMBER
    • -
    • Type: string
    • -
    • Required: false
    • +
    • Northeast Asia Region 1
    • +
  • + -

    --gcs-service-account-file

    -

    Service Account Credentials JSON file path.

    -

    Leave blank normally. Needed only if you want use SA instead of interactive login.

    -

    Leading ~ will be expanded in the file name as will environment variables such as ${RCLONE_CONFIG_DIR}.

    +

    --s3-location-constraint

    +

    Location constraint - must be set to match the Region.

    +

    Leave blank if not sure. Used when creating buckets only.

    Properties:

    -

    --gcs-service-account-credentials

    -

    Service Account Credentials JSON blob.

    -

    Leave blank normally. Needed only if you want use SA instead of interactive login.

    +

    --s3-acl

    +

    Canned ACL used when creating buckets and storing or copying objects.

    +

    This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.

    +

    For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl

    +

    Note that this ACL is applied when server-side copying objects as S3 doesn't copy the ACL from the source but rather writes a fresh one.

    +

    If the acl is an empty string then no X-Amz-Acl: header is added and the default (private) will be used.

    Properties:

    -

    --gcs-anonymous

    -

    Access public buckets and objects without credentials.

    -

    Set to 'true' if you just want to download files and don't configure credentials.

    -

    Properties:

    +
  • Examples:
      -
    • Config: anonymous
    • -
    • Env Var: RCLONE_GCS_ANONYMOUS
    • -
    • Type: bool
    • -
    • Default: false
    • -
    -

    --gcs-object-acl

    -

    Access Control List for new objects.

    -

    Properties:

    +
  • "default"
      -
    • Config: object_acl
    • -
    • Env Var: RCLONE_GCS_OBJECT_ACL
    • -
    • Type: string
    • -
    • Required: false
    • -
    • Examples: +
    • Owner gets Full_CONTROL.
    • +
    • No one else has access rights (default).
    • +
  • +
  • "private" +
      +
    • Owner gets FULL_CONTROL.
    • +
    • No one else has access rights (default).
    • +
  • +
  • "public-read" +
      +
    • Owner gets FULL_CONTROL.
    • +
    • The AllUsers group gets READ access.
    • +
  • +
  • "public-read-write"
      -
    • "authenticatedRead" +
    • Owner gets FULL_CONTROL.
    • +
    • The AllUsers group gets READ and WRITE access.
    • +
    • Granting this on a bucket is generally not recommended.
    • +
  • +
  • "authenticated-read"
      -
    • Object owner gets OWNER access.
    • -
    • All Authenticated Users get READER access.
    • +
    • Owner gets FULL_CONTROL.
    • +
    • The AuthenticatedUsers group gets READ access.
  • -
  • "bucketOwnerFullControl" +
  • "bucket-owner-read"
      -
    • Object owner gets OWNER access.
    • -
    • Project team owners get OWNER access.
    • +
    • Object owner gets FULL_CONTROL.
    • +
    • Bucket owner gets READ access.
    • +
    • If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  • -
  • "bucketOwnerRead" +
  • "bucket-owner-full-control"
      -
    • Object owner gets OWNER access.
    • -
    • Project team owners get READER access.
    • +
    • Both the object owner and the bucket owner get FULL_CONTROL over the object.
    • +
    • If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
  • "private"
      -
    • Object owner gets OWNER access.
    • -
    • Default if left blank.
    • +
    • Owner gets FULL_CONTROL.
    • +
    • No one else has access rights (default).
    • +
    • This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise COS.
    • +
  • +
  • "public-read" +
      +
    • Owner gets FULL_CONTROL.
    • +
    • The AllUsers group gets READ access.
    • +
    • This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise IBM COS.
  • -
  • "projectPrivate" +
  • "public-read-write"
      -
    • Object owner gets OWNER access.
    • -
    • Project team members get access according to their roles.
    • +
    • Owner gets FULL_CONTROL.
    • +
    • The AllUsers group gets READ and WRITE access.
    • +
    • This acl is available on IBM Cloud (Infra), On-Premise IBM COS.
  • -
  • "publicRead" +
  • "authenticated-read"
      -
    • Object owner gets OWNER access.
    • -
    • All Users get READER access.
    • +
    • Owner gets FULL_CONTROL.
    • +
    • The AuthenticatedUsers group gets READ access.
    • +
    • Not supported on Buckets.
    • +
    • This acl is available on IBM Cloud (Infra) and On-Premise IBM COS.
  • -

    --gcs-bucket-acl

    -

    Access Control List for new buckets.

    +

    --s3-server-side-encryption

    +

    The server-side encryption algorithm used when storing this object in S3.

    Properties:

    +

    --s3-sse-kms-key-id

    +

    If using KMS ID you must provide the ARN of Key.

    +

    Properties:

    + -

    --gcs-bucket-policy-only

    -

    Access checks should use bucket-level IAM policies.

    -

    If you want to upload objects to a bucket with Bucket Policy Only set then you will need to set this.

    -

    When it is set, rclone:

    - -

    Docs: https://cloud.google.com/storage/docs/bucket-policy-only

    -

    Properties:

    - -

    --gcs-location

    -

    Location for the newly created buckets.

    +

    --s3-storage-class

    +

    The storage class to use when storing new objects in S3.

    Properties:

    +

    --s3-storage-class

    +

    The storage class to use when storing new objects in ChinaMobile.

    +

    Properties:

    -
  • "europe-west3" +
  • Config: storage_class
  • +
  • Env Var: RCLONE_S3_STORAGE_CLASS
  • +
  • Provider: ChinaMobile
  • +
  • Type: string
  • +
  • Required: false
  • +
  • Examples: +
      +
    • ""
        -
      • Frankfurt
      • +
      • Default
    • -
    • "europe-west4" +
    • "STANDARD"
        -
      • Netherlands
      • +
      • Standard storage class
    • -
    • "europe-west6" +
    • "GLACIER"
        -
      • Zürich
      • +
      • Archive storage mode
    • -
    • "europe-central2" +
    • "STANDARD_IA"
        -
      • Warsaw
      • +
      • Infrequent access storage mode
    • -
    • "us-central1" +
  • + +

    --s3-storage-class

    +

    The storage class to use when storing new objects in Liara

    +

    Properties:

    + +

    --s3-storage-class

    +

    The storage class to use when storing new objects in ArvanCloud.

    +

    Properties:

    + +

    --s3-storage-class

    +

    The storage class to use when storing new objects in Tencent COS.

    +

    Properties:

    + +

    --s3-storage-class

    +

    The storage class to use when storing new objects in S3.

    +

    Properties:

    + +

    --s3-storage-class

    +

    The storage class to use when storing new objects in Qiniu.

    +

    Properties:

    + -

    --gcs-storage-class

    -

    The storage class to use when storing objects in Google Cloud Storage.

    +

    Advanced options

    +

    Here are the Advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, China Mobile, Cloudflare, GCS, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Leviia, Liara, Lyve Cloud, Minio, Netease, Petabox, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi).

    +

    --s3-bucket-acl

    +

    Canned ACL used when creating buckets.

    +

    For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl

    +

    Note that this ACL is applied when only when creating buckets. If it isn't set then "acl" is used instead.

    +

    If the "acl" and "bucket_acl" are empty strings then no X-Amz-Acl: header is added and the default (private) will be used.

    Properties:

    -

    Advanced options

    -

    Here are the advanced options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).

    -

    --gcs-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --gcs-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    +

    --s3-requester-pays

    +

    Enables requester pays option when interacting with S3 bucket.

    Properties:

    -

    --gcs-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    +

    --s3-sse-customer-algorithm

    +

    If using SSE-C, the server-side encryption algorithm used when storing this object in S3.

    Properties:

    -

    --gcs-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • Examples:
      -
    • Config: encoding
    • -
    • Env Var: RCLONE_GCS_ENCODING
    • -
    • Type: MultiEncoder
    • -
    • Default: Slash,CrLf,InvalidUtf8,Dot
    • -
    -

    Limitations

    -

    rclone about is not supported by the Google Cloud Storage backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Google Drive

    -

    Paths are specified as drive:path

    -

    Drive paths may be as deep as required, e.g. drive:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for drive involves getting a token from Google drive which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -n/r/c/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Google Drive
    -   \ "drive"
    -[snip]
    -Storage> drive
    -Google Application Client Id - leave blank normally.
    -client_id>
    -Google Application Client Secret - leave blank normally.
    -client_secret>
    -Scope that rclone should use when requesting access from drive.
    -Choose a number from below, or type in your own value
    - 1 / Full access all files, excluding Application Data Folder.
    -   \ "drive"
    - 2 / Read-only access to file metadata and file contents.
    -   \ "drive.readonly"
    -   / Access to files created by rclone only.
    - 3 | These are visible in the drive website.
    -   | File authorization is revoked when the user deauthorizes the app.
    -   \ "drive.file"
    -   / Allows read and write access to the Application Data folder.
    - 4 | This is not visible in the drive website.
    -   \ "drive.appfolder"
    -   / Allows read-only access to file metadata but
    - 5 | does not allow any access to read or download file content.
    -   \ "drive.metadata.readonly"
    -scope> 1
    -ID of the root folder - leave blank normally.  Fill in to access "Computers" folders. (see docs).
    -root_folder_id> 
    -Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
    -service_account_file>
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine or Y didn't work
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    -Configure this as a Shared Drive (Team Drive)?
    -y) Yes
    -n) No
    -y/n> n
    ---------------------
    -[remote]
    -client_id = 
    -client_secret = 
    -scope = drive
    -root_folder_id = 
    -service_account_file =
    -token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and it may require you to unblock it temporarily if you are running a host firewall, or use manual mode.

    -

    You can then use it like this,

    -

    List directories in top level of your drive

    -
    rclone lsd remote:
    -

    List all the files in your drive

    -
    rclone ls remote:
    -

    To copy a local directory to a drive directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Scopes

    -

    Rclone allows you to select which scope you would like for rclone to use. This changes what type of token is granted to rclone. The scopes are defined here.

    -

    The scope are

    -

    drive

    -

    This is the default scope and allows full access to all files, except for the Application Data Folder (see below).

    -

    Choose this one if you aren't sure.

    -

    drive.readonly

    -

    This allows read only access to all files. Files may be listed and downloaded but not uploaded, renamed or deleted.

    -

    drive.file

    -

    With this scope rclone can read/view/modify only those files and folders it creates.

    -

    So if you uploaded files to drive via the web interface (or any other means) they will not be visible to rclone.

    -

    This can be useful if you are using rclone to backup data and you want to be sure confidential data on your drive is not visible to rclone.

    -

    Files created with this scope are visible in the web interface.

    -

    drive.appfolder

    -

    This gives rclone its own private area to store files. Rclone will not be able to see any other files on your drive and you won't be able to see rclone's files from the web interface either.

    -

    drive.metadata.readonly

    -

    This allows read only access to file names only. It does not allow rclone to download or upload data, or rename or delete files or directories.

    -

    Root folder ID

    -

    You can set the root_folder_id for rclone. This is the directory (identified by its Folder ID) that rclone considers to be the root of your drive.

    -

    Normally you will leave this blank and rclone will determine the correct root to use itself.

    -

    However you can set this to restrict rclone to a specific folder hierarchy or to access data within the "Computers" tab on the drive web interface (where files from Google's Backup and Sync desktop program go).

    -

    In order to do this you will have to find the Folder ID of the directory you wish rclone to display. This will be the last segment of the URL when you open the relevant folder in the drive web interface.

    -

    So if the folder you want rclone to use has a URL which looks like https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh in the browser, then you use 1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh as the root_folder_id in the config.

    -

    NB folders under the "Computers" tab seem to be read only (drive gives a 500 error) when using rclone.

    -

    There doesn't appear to be an API to discover the folder IDs of the "Computers" tab - please contact us if you know otherwise!

    -

    Note also that rclone can't access any data under the "Backups" tab on the google drive web interface yet.

    -

    Service Account support

    -

    You can set up rclone with Google Drive in an unattended mode, i.e. not tied to a specific end-user Google account. This is useful when you want to synchronise files onto machines that don't have actively logged-in users, for example build machines.

    -

    To use a Service Account instead of OAuth2 token flow, enter the path to your Service Account credentials at the service_account_file prompt during rclone config and rclone won't use the browser based authentication flow. If you'd rather stuff the contents of the credentials file into the rclone config file, you can set service_account_credentials with the actual contents of the file instead, or set the equivalent environment variable.

    -

    Use case - Google Apps/G-suite account and individual Drive

    -

    Let's say that you are the administrator of a Google Apps (old) or G-suite account. The goal is to store data on an individual's Drive account, who IS a member of the domain. We'll call the domain example.com, and the user foo@example.com.

    -

    There's a few steps we need to go through to accomplish this:

    -
    1. Create a service account for example.com
    -
      -
    • To create a service account and obtain its credentials, go to the Google Developer Console.
    • -
    • You must have a project - create one if you don't.
    • -
    • Then go to "IAM & admin" -> "Service Accounts".
    • -
    • Use the "Create Credentials" button. Fill in "Service account name" with something that identifies your client. "Role" can be empty.
    • -
    • Tick "Furnish a new private key" - select "Key type JSON".
    • -
    • Tick "Enable G Suite Domain-wide Delegation". This option makes "impersonation" possible, as documented here: Delegating domain-wide authority to the service account
    • -
    • These credentials are what rclone will use for authentication. If you ever need to remove access, press the "Delete service account key" button.
    • -
    -
    2. Allowing API access to example.com Google Drive
    -
      -
    • Go to example.com's admin console
    • -
    • Go into "Security" (or use the search bar)
    • -
    • Select "Show more" and then "Advanced settings"
    • -
    • Select "Manage API client access" in the "Authentication" section
    • -
    • In the "Client Name" field enter the service account's "Client ID" - this can be found in the Developer Console under "IAM & Admin" -> "Service Accounts", then "View Client ID" for the newly created service account. It is a ~21 character numerical string.
    • -
    • In the next field, "One or More API Scopes", enter https://www.googleapis.com/auth/drive to grant access to Google Drive specifically.
    • -
    -
    3. Configure rclone, assuming a new install
    -
    rclone config
    -
    -n/s/q> n         # New
    -name>gdrive      # Gdrive is an example name
    -Storage>         # Select the number shown for Google Drive
    -client_id>       # Can be left blank
    -client_secret>   # Can be left blank
    -scope>           # Select your scope, 1 for example
    -root_folder_id>  # Can be left blank
    -service_account_file> /home/foo/myJSONfile.json # This is where the JSON file goes!
    -y/n>             # Auto config, n
    -
    -
    4. Verify that it's working
    +
  • ""
      -
    • rclone -v --drive-impersonate foo@example.com lsf gdrive:backup
    • -
    • The arguments do: +
    • None
    • +
  • +
  • "AES256"
      -
    • -v - verbose logging
    • -
    • --drive-impersonate foo@example.com - this is what does the magic, pretending to be user foo.
    • -
    • lsf - list files in a parsing friendly way
    • -
    • gdrive:backup - use the remote called gdrive, work in the folder named backup.
    • +
    • AES256
    • +
  • -

    Note: in case you configured a specific root folder on gdrive and rclone is unable to access the contents of that folder when using --drive-impersonate, do this instead: - in the gdrive web interface, share your root folder with the user/email of the new Service Account you created/selected at step #1 - use rclone without specifying the --drive-impersonate option, like this: rclone -v lsf gdrive:backup

    -

    Shared drives (team drives)

    -

    If you want to configure the remote to point to a Google Shared Drive (previously known as Team Drives) then answer y to the question Configure this as a Shared Drive (Team Drive)?.

    -

    This will fetch the list of Shared Drives from google and allow you to configure which one you want to use. You can also type in a Shared Drive ID if you prefer.

    -

    For example:

    -
    Configure this as a Shared Drive (Team Drive)?
    -y) Yes
    -n) No
    -y/n> y
    -Fetching Shared Drive list...
    -Choose a number from below, or type in your own value
    - 1 / Rclone Test
    -   \ "xxxxxxxxxxxxxxxxxxxx"
    - 2 / Rclone Test 2
    -   \ "yyyyyyyyyyyyyyyyyyyy"
    - 3 / Rclone Test 3
    -   \ "zzzzzzzzzzzzzzzzzzzz"
    -Enter a Shared Drive ID> 1
    ---------------------
    -[remote]
    -client_id =
    -client_secret =
    -token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null}
    -team_drive = xxxxxxxxxxxxxxxxxxxx
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    It does this by combining multiple list calls into a single API request.

    -

    This works by combining many '%s' in parents filters into one expression. To list the contents of directories a, b and c, the following requests will be send by the regular List function:

    -
    trashed=false and 'a' in parents
    -trashed=false and 'b' in parents
    -trashed=false and 'c' in parents
    -

    These can now be combined into a single request:

    -
    trashed=false and ('a' in parents or 'b' in parents or 'c' in parents)
    -

    The implementation of ListR will put up to 50 parents filters into one request. It will use the --checkers value to specify the number of requests to run in parallel.

    -

    In tests, these batch requests were up to 20x faster than the regular method. Running the following command against different sized folders gives:

    -
    rclone lsjson -vv -R --checkers=6 gdrive:folder
    -

    small folder (220 directories, 700 files):

    - -

    large folder (10600 directories, 39000 files):

    - -

    Modified time

    -

    Google drive stores modification times accurate to 1 ms.

    -

    Restricted filename characters

    -

    Only Invalid UTF-8 bytes will be replaced, as they can't be used in JSON strings.

    -

    In contrast to other backends, / can also be used in names and . or .. are valid names.

    -

    Revisions

    -

    Google drive stores revisions of files. When you upload a change to an existing file to google drive using rclone it will create a new revision of that file.

    -

    Revisions follow the standard google policy which at time of writing was

    - -

    Deleting files

    -

    By default rclone will send all files to the trash when deleting files. If deleting them permanently is required then use the --drive-use-trash=false flag, or set the equivalent environment variable.

    -

    Shortcuts

    -

    In March 2020 Google introduced a new feature in Google Drive called drive shortcuts (API). These will (by September 2020) replace the ability for files or folders to be in multiple folders at once.

    -

    Shortcuts are files that link to other files on Google Drive somewhat like a symlink in unix, except they point to the underlying file data (e.g. the inode in unix terms) so they don't break if the source is renamed or moved about.

    -

    Be default rclone treats these as follows.

    -

    For shortcuts pointing to files:

    - -

    For shortcuts pointing to folders:

    - -

    The rclone backend command can be used to create shortcuts.

    -

    Shortcuts can be completely ignored with the --drive-skip-shortcuts flag or the corresponding skip_shortcuts configuration setting.

    -

    Emptying trash

    -

    If you wish to empty your trash you can use the rclone cleanup remote: command which will permanently delete all your trashed files. This command does not take any path arguments.

    -

    Note that Google Drive takes some time (minutes to days) to empty the trash even though the command returns within a few seconds. No output is echoed, so there will be no confirmation even using -v or -vv.

    -

    Quota information

    -

    To view your current quota you can use the rclone about remote: command which will display your usage limit (quota), the usage in Google Drive, the size of all files in the Trash and the space used by other Google services such as Gmail. This command does not take any path arguments.

    -

    Import/Export of google documents

    -

    Google documents can be exported from and uploaded to Google Drive.

    -

    When rclone downloads a Google doc it chooses a format to download depending upon the --drive-export-formats setting. By default the export formats are docx,xlsx,pptx,svg which are a sensible default for an editable document.

    -

    When choosing a format, rclone runs down the list provided in order and chooses the first file format the doc can be exported as from the list. If the file can't be exported to a format on the formats list, then rclone will choose a format from the default list.

    -

    If you prefer an archive copy then you might use --drive-export-formats pdf, or if you prefer openoffice/libreoffice formats you might use --drive-export-formats ods,odt,odp.

    -

    Note that rclone adds the extension to the google doc, so if it is called My Spreadsheet on google docs, it will be exported as My Spreadsheet.xlsx or My Spreadsheet.pdf etc.

    -

    When importing files into Google Drive, rclone will convert all files with an extension in --drive-import-formats to their associated document type. rclone will not convert any files by default, since the conversion is lossy process.

    -

    The conversion must result in a file with the same extension when the --drive-export-formats rules are applied to the uploaded document.

    -

    Here are some examples for allowed and prohibited conversions.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    export-formatsimport-formatsUpload ExtDocument ExtAllowed
    odtodtodtodtYes
    odtdocx,odtodtodtYes
    docxdocxdocxYes
    odtodtdocxNo
    odt,docxdocx,odtdocxodtNo
    docx,odtdocx,odtdocxdocxYes
    docx,odtdocx,odtodtdocxNo
    -

    This limitation can be disabled by specifying --drive-allow-import-name-change. When using this flag, rclone can convert multiple files types resulting in the same document type at once, e.g. with --drive-import-formats docx,odt,txt, all files having these extension would result in a document represented as a docx file. This brings the additional risk of overwriting a document, if multiple files have the same stem. Many rclone operations will not handle this name change in any way. They assume an equal name when copying files and might copy the file again or delete them when the name changes.

    -

    Here are the possible export extensions with their corresponding mime types. Most of these can also be used for importing, but there more that are not listed here. Some of these additional ones might only be available when the operating system provides the correct MIME type entries.

    -

    This list can be changed by Google Drive at any time and might not represent the currently available conversions.

    - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ExtensionMime TypeDescription
    csvtext/csvStandard CSV format for Spreadsheets
    docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentMicrosoft Office Document
    epubapplication/epub+zipE-book format
    htmltext/htmlAn HTML Document
    jpgimage/jpegA JPEG Image File
    jsonapplication/vnd.google-apps.script+jsonJSON Text Format
    odpapplication/vnd.oasis.opendocument.presentationOpenoffice Presentation
    odsapplication/vnd.oasis.opendocument.spreadsheetOpenoffice Spreadsheet
    odsapplication/x-vnd.oasis.opendocument.spreadsheetOpenoffice Spreadsheet
    odtapplication/vnd.oasis.opendocument.textOpenoffice Document
    pdfapplication/pdfAdobe PDF Format
    pngimage/pngPNG Image Format
    pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentationMicrosoft Office Powerpoint
    rtfapplication/rtfRich Text Format
    svgimage/svg+xmlScalable Vector Graphics Format
    tsvtext/tab-separated-valuesStandard TSV format for spreadsheets
    txttext/plainPlain Text
    xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetMicrosoft Office Spreadsheet
    zipapplication/zipA ZIP file of HTML, Images CSS
    -

    Google documents can also be exported as link files. These files will open a browser window for the Google Docs website of that document when opened. The link file extension has to be specified as a --drive-export-formats parameter. They will match all available Google Documents.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ExtensionDescriptionOS Support
    desktopfreedesktop.org specified desktop entryLinux
    link.htmlAn HTML Document with a redirectAll
    urlINI style link filemacOS, Windows
    weblocmacOS specific XML formatmacOS
    -

    Standard options

    -

    Here are the standard options specific to drive (Google Drive).

    -

    --drive-client-id

    -

    Google Application Client Id Setting your own is recommended. See https://rclone.org/drive/#making-your-own-client-id for how to create your own. If you leave this blank, it will use an internal key which is low performance.

    +

    --s3-sse-customer-key

    +

    To use SSE-C you may provide the secret encryption key used to encrypt/decrypt your data.

    +

    Alternatively you can provide --sse-customer-key-base64.

    Properties:

    -

    --drive-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    +

    --s3-sse-customer-key-base64

    +

    If using SSE-C you must provide the secret encryption key encoded in base64 format to encrypt/decrypt your data.

    +

    Alternatively you can provide --sse-customer-key.

    Properties:

    -

    --drive-scope

    -

    Scope that rclone should use when requesting access from drive.

    +

    --s3-sse-customer-key-md5

    +

    If using SSE-C you may provide the secret encryption key MD5 checksum (optional).

    +

    If you leave it blank, this is calculated automatically from the sse_customer_key provided.

    Properties:

    -

    --drive-root-folder-id

    -

    ID of the root folder. Leave blank normally.

    -

    Fill in to access "Computers" folders (see docs), or for rclone to use a non root folder as its starting point.

    +

    --s3-upload-cutoff

    +

    Cutoff for switching to chunked upload.

    +

    Any files larger than this will be uploaded in chunks of chunk_size. The minimum is 0 and the maximum is 5 GiB.

    Properties:

    -

    --drive-service-account-file

    -

    Service Account Credentials JSON file path.

    -

    Leave blank normally. Needed only if you want use SA instead of interactive login.

    -

    Leading ~ will be expanded in the file name as will environment variables such as ${RCLONE_CONFIG_DIR}.

    +

    --s3-chunk-size

    +

    Chunk size to use for uploading.

    +

    When uploading files larger than upload_cutoff or files with unknown size (e.g. from "rclone rcat" or uploaded with "rclone mount" or google photos or google docs) they will be uploaded as multipart uploads using this chunk size.

    +

    Note that "--s3-upload-concurrency" chunks of this size are buffered in memory per transfer.

    +

    If you are transferring large files over high-speed links and you have enough memory, then increasing this will speed up the transfers.

    +

    Rclone will automatically increase the chunk size when uploading a large file of known size to stay below the 10,000 chunks limit.

    +

    Files of unknown size are uploaded with the configured chunk_size. Since the default chunk size is 5 MiB and there can be at most 10,000 chunks, this means that by default the maximum size of a file you can stream upload is 48 GiB. If you wish to stream upload larger files then you will need to increase chunk_size.

    +

    Increasing the chunk size decreases the accuracy of the progress statistics displayed with "-P" flag. Rclone treats chunk as sent when it's buffered by the AWS SDK, when in fact it may still be uploading. A bigger chunk size means a bigger AWS SDK buffer and progress reporting more deviating from the truth.

    Properties:

    -

    --drive-alternate-export

    -

    Deprecated: No longer needed.

    +

    --s3-max-upload-parts

    +

    Maximum number of parts in a multipart upload.

    +

    This option defines the maximum number of multipart chunks to use when doing a multipart upload.

    +

    This can be useful if a service does not support the AWS S3 specification of 10,000 chunks.

    +

    Rclone will automatically increase the chunk size when uploading a large file of a known size to stay below this number of chunks limit.

    Properties:

    -

    Advanced options

    -

    Here are the advanced options specific to drive (Google Drive).

    -

    --drive-token

    -

    OAuth Access Token as a JSON blob.

    +

    --s3-copy-cutoff

    +

    Cutoff for switching to multipart copy.

    +

    Any files larger than this that need to be server-side copied will be copied in chunks of this size.

    +

    The minimum is 0 and the maximum is 5 GiB.

    Properties:

    -

    --drive-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    +

    --s3-disable-checksum

    +

    Don't store MD5 checksum with object metadata.

    +

    Normally rclone will calculate the MD5 checksum of the input before uploading it so it can add it to metadata on the object. This is great for data integrity checking but can cause long delays for large files to start uploading.

    Properties:

    -

    --drive-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    +

    --s3-shared-credentials-file

    +

    Path to the shared credentials file.

    +

    If env_auth = true then rclone can use a shared credentials file.

    +

    If this variable is empty rclone will look for the "AWS_SHARED_CREDENTIALS_FILE" env variable. If the env value is empty it will default to the current user's home directory.

    +
    Linux/OSX: "$HOME/.aws/credentials"
    +Windows:   "%USERPROFILE%\.aws\credentials"

    Properties:

    -

    --drive-service-account-credentials

    -

    Service Account Credentials JSON blob.

    -

    Leave blank normally. Needed only if you want use SA instead of interactive login.

    +

    --s3-profile

    +

    Profile to use in the shared credentials file.

    +

    If env_auth = true then rclone can use a shared credentials file. This variable controls which profile is used in that file.

    +

    If empty it will default to the environment variable "AWS_PROFILE" or "default" if that environment variable is also not set.

    Properties:

    -

    --drive-team-drive

    -

    ID of the Shared Drive (Team Drive).

    +

    --s3-session-token

    +

    An AWS session token.

    Properties:

    -

    --drive-auth-owner-only

    -

    Only consider files owned by the authenticated user.

    +

    --s3-upload-concurrency

    +

    Concurrency for multipart uploads.

    +

    This is the number of chunks of the same file that are uploaded concurrently.

    +

    If you are uploading small numbers of large files over high-speed links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers.

    Properties:

    -

    --drive-use-trash

    -

    Send files to the trash instead of deleting permanently.

    -

    Defaults to true, namely sending files to the trash. Use --drive-use-trash=false to delete files permanently instead.

    +

    --s3-force-path-style

    +

    If true use path style access if false use virtual hosted style.

    +

    If this is true (the default) then rclone will use path style access, if false then rclone will use virtual path style. See the AWS S3 docs for more info.

    +

    Some providers (e.g. AWS, Aliyun OSS, Netease COS, or Tencent COS) require this set to false - rclone will do this automatically based on the provider setting.

    Properties:

    -

    --drive-copy-shortcut-content

    -

    Server side copy contents of shortcuts instead of the shortcut.

    -

    When doing server side copies, normally rclone will copy shortcuts as shortcuts.

    -

    If this flag is used then rclone will copy the contents of shortcuts rather than shortcuts themselves when doing server side copies.

    -

    Properties:

    - -

    --drive-skip-gdocs

    -

    Skip google documents in all listings.

    -

    If given, gdocs practically become invisible to rclone.

    +

    --s3-v2-auth

    +

    If true use v2 authentication.

    +

    If this is false (the default) then rclone will use v4 authentication. If it is set then rclone will use v2 authentication.

    +

    Use this only if v4 signatures don't work, e.g. pre Jewel/v10 CEPH.

    Properties:

    -

    --drive-skip-checksum-gphotos

    -

    Skip MD5 checksum on Google photos and videos only.

    -

    Use this if you get checksum errors when transferring Google photos or videos.

    -

    Setting this flag will cause Google photos and videos to return a blank MD5 checksum.

    -

    Google photos are identified by being in the "photos" space.

    -

    Corrupted checksums are caused by Google modifying the image/video but not updating the checksum.

    +

    --s3-use-accelerate-endpoint

    +

    If true use the AWS S3 accelerated endpoint.

    +

    See: AWS S3 Transfer acceleration

    Properties:

    -

    --drive-shared-with-me

    -

    Only show files that are shared with me.

    -

    Instructs rclone to operate on your "Shared with me" folder (where Google Drive lets you access the files and folders others have shared with you).

    -

    This works both with the "list" (lsd, lsl, etc.) and the "copy" commands (copy, sync, etc.), and with all other commands too.

    +

    --s3-leave-parts-on-error

    +

    If true avoid calling abort upload on a failure, leaving all successfully uploaded parts on S3 for manual recovery.

    +

    It should be set to true for resuming uploads across different sessions.

    +

    WARNING: Storing parts of an incomplete multipart upload counts towards space usage on S3 and will add additional costs if not cleaned up.

    Properties:

    -

    --drive-trashed-only

    -

    Only show files that are in the trash.

    -

    This will show trashed files in their original directory structure.

    +

    --s3-list-chunk

    +

    Size of listing chunk (response list for each ListObject S3 request).

    +

    This option is also known as "MaxKeys", "max-items", or "page-size" from the AWS S3 specification. Most services truncate the response list to 1000 objects even if requested more than that. In AWS S3 this is a global maximum and cannot be changed, see AWS S3. In Ceph, this can be increased with the "rgw list buckets max chunk" option.

    Properties:

    -

    --drive-starred-only

    -

    Only show files that are starred.

    +

    --s3-list-version

    +

    Version of ListObjects to use: 1,2 or 0 for auto.

    +

    When S3 originally launched it only provided the ListObjects call to enumerate objects in a bucket.

    +

    However in May 2016 the ListObjectsV2 call was introduced. This is much higher performance and should be used if at all possible.

    +

    If set to the default, 0, rclone will guess according to the provider set which list objects method to call. If it guesses wrong, then it may be set manually here.

    Properties:

    -

    --drive-formats

    -

    Deprecated: See export_formats.

    +

    --s3-list-url-encode

    +

    Whether to url encode listings: true/false/unset

    +

    Some providers support URL encoding listings and where this is available this is more reliable when using control characters in file names. If this is set to unset (the default) then rclone will choose according to the provider setting what to apply, but you can override rclone's choice here.

    Properties:

    -

    --drive-export-formats

    -

    Comma separated list of preferred formats for downloading Google docs.

    +

    --s3-no-check-bucket

    +

    If set, don't attempt to check the bucket exists or create it.

    +

    This can be useful when trying to minimise the number of transactions rclone does if you know the bucket exists already.

    +

    It can also be needed if the user you are using does not have bucket creation permissions. Before v1.52.0 this would have passed silently due to a bug.

    Properties:

    -

    --drive-import-formats

    -

    Comma separated list of preferred formats for uploading Google docs.

    -

    Properties:

    +

    --s3-no-head

    +

    If set, don't HEAD uploaded objects to check integrity.

    +

    This can be useful when trying to minimise the number of transactions rclone does.

    +

    Setting it means that if rclone receives a 200 OK message after uploading an object with PUT then it will assume that it got uploaded properly.

    +

    In particular it will assume:

    -

    --drive-allow-import-name-change

    -

    Allow the filetype to change when uploading Google docs.

    -

    E.g. file.doc to file.docx. This will confuse sync and reupload every time.

    -

    Properties:

    +

    It reads the following items from the response for a single part PUT:

    -

    --drive-use-created-date

    -

    Use file created date instead of modified date.

    -

    Useful when downloading data and you want the creation date used in place of the last modified date.

    -

    WARNING: This flag may have some unexpected consequences.

    -

    When uploading to your drive all files will be overwritten unless they haven't been modified since their creation. And the inverse will occur while downloading. This side effect can be avoided by using the "--checksum" flag.

    -

    This feature was implemented to retain photos capture date as recorded by google photos. You will first need to check the "Create a Google Photos folder" option in your google drive settings. You can then copy or move the photos locally and use the date the image was taken (created) set as the modification date.

    +

    For multipart uploads these items aren't read.

    +

    If an source object of unknown length is uploaded then rclone will do a HEAD request.

    +

    Setting this flag increases the chance for undetected upload failures, in particular an incorrect size, so it isn't recommended for normal operation. In practice the chance of an undetected upload failure is very small even with this flag.

    Properties:

    -

    --drive-use-shared-date

    -

    Use date file was shared instead of modified date.

    -

    Note that, as with "--drive-use-created-date", this flag may have unexpected consequences when uploading/downloading files.

    -

    If both this flag and "--drive-use-created-date" are set, the created date is used.

    +

    --s3-no-head-object

    +

    If set, do not do HEAD before GET when getting objects.

    Properties:

    -

    --drive-list-chunk

    -

    Size of listing chunk 100-1000, 0 to disable.

    -

    Properties:

    - -

    --drive-impersonate

    -

    Impersonate this user when using a service account.

    -

    Properties:

    - -

    --drive-upload-cutoff

    -

    Cutoff for switching to chunked upload.

    +

    --s3-encoding

    +

    The encoding for the backend.

    +

    See the encoding section in the overview for more info.

    Properties:

    -

    --drive-chunk-size

    -

    Upload chunk size.

    -

    Must a power of 2 >= 256k.

    -

    Making this larger will improve performance, but note that each chunk is buffered in memory one per transfer.

    -

    Reducing this will reduce memory usage but decrease performance.

    +

    --s3-memory-pool-flush-time

    +

    How often internal memory buffer pools will be flushed. (no longer used)

    Properties:

    -

    --drive-acknowledge-abuse

    -

    Set to allow files which return cannotDownloadAbusiveFile to be downloaded.

    -

    If downloading a file returns the error "This file has been identified as malware or spam and cannot be downloaded" with the error code "cannotDownloadAbusiveFile" then supply this flag to rclone to indicate you acknowledge the risks of downloading the file and rclone will download it anyway.

    +

    --s3-memory-pool-use-mmap

    +

    Whether to use mmap buffers in internal memory pool. (no longer used)

    Properties:

    -

    --drive-keep-revision-forever

    -

    Keep new head revision of each file forever.

    +

    --s3-disable-http2

    +

    Disable usage of http2 for S3 backends.

    +

    There is currently an unsolved issue with the s3 (specifically minio) backend and HTTP/2. HTTP/2 is enabled by default for the s3 backend but can be disabled here. When the issue is solved this flag will be removed.

    +

    See: https://github.com/rclone/rclone/issues/4673, https://github.com/rclone/rclone/issues/3631

    Properties:

    -

    --drive-size-as-quota

    -

    Show sizes as storage quota usage, not actual size.

    -

    Show the size of a file as the storage quota used. This is the current version plus any older versions that have been set to keep forever.

    -

    WARNING: This flag may have some unexpected consequences.

    -

    It is not recommended to set this flag in your config - the recommended usage is using the flag form --drive-size-as-quota when doing rclone ls/lsl/lsf/lsjson/etc only.

    -

    If you do use this flag for syncing (not recommended) then you will need to use --ignore size also.

    +

    --s3-download-url

    +

    Custom endpoint for downloads. This is usually set to a CloudFront CDN URL as AWS S3 offers cheaper egress for data downloaded through the CloudFront network.

    Properties:

    -

    --drive-v2-download-min-size

    -

    If Object's are greater, use drive v2 API to download.

    +

    --s3-directory-markers

    +

    Upload an empty object with a trailing slash when a new directory is created

    +

    Empty folders are unsupported for bucket based remotes, this option creates an empty object ending with "/", to persist the folder.

    Properties:

    -

    --drive-pacer-min-sleep

    -

    Minimum time to sleep between API calls.

    +

    --s3-use-multipart-etag

    +

    Whether to use ETag in multipart uploads for verification

    +

    This should be true, false or left unset to use the default for the provider.

    Properties:

    -

    --drive-pacer-burst

    -

    Number of API calls to allow without sleeping.

    +

    --s3-use-presigned-request

    +

    Whether to use a presigned request or PutObject for single part uploads

    +

    If this is false rclone will use PutObject from the AWS SDK to upload an object.

    +

    Versions of rclone < 1.59 use presigned requests to upload a single part object and setting this flag to true will re-enable that functionality. This shouldn't be necessary except in exceptional circumstances or for testing.

    Properties:

    -

    --drive-server-side-across-configs

    -

    Allow server-side operations (e.g. copy) to work across different drive configs.

    -

    This can be useful if you wish to do a server-side copy between two different Google drives. Note that this isn't enabled by default because it isn't easy to tell if it will work between any two configurations.

    +

    --s3-versions

    +

    Include old versions in directory listings.

    Properties:

    -

    --drive-disable-http2

    -

    Disable drive using http2.

    -

    There is currently an unsolved issue with the google drive backend and HTTP/2. HTTP/2 is therefore disabled by default for the drive backend but can be re-enabled here. When the issue is solved this flag will be removed.

    -

    See: https://github.com/rclone/rclone/issues/3631

    +

    --s3-version-at

    +

    Show file versions as they were at the specified time.

    +

    The parameter should be a date, "2006-01-02", datetime "2006-01-02 15:04:05" or a duration for that long ago, eg "100d" or "1h".

    +

    Note that when using this no file write operations are permitted, so you can't upload files or delete them.

    +

    See the time option docs for valid formats.

    Properties:

    -

    --drive-stop-on-upload-limit

    -

    Make upload limit errors be fatal.

    -

    At the time of writing it is only possible to upload 750 GiB of data to Google Drive a day (this is an undocumented limit). When this limit is reached Google Drive produces a slightly different error message. When this flag is set it causes these errors to be fatal. These will stop the in-progress sync.

    -

    Note that this detection is relying on error message strings which Google don't document so it may break in the future.

    -

    See: https://github.com/rclone/rclone/issues/3857

    +

    --s3-decompress

    +

    If set this will decompress gzip encoded objects.

    +

    It is possible to upload objects to S3 with "Content-Encoding: gzip" set. Normally rclone will download these files as compressed objects.

    +

    If this flag is set then rclone will decompress these files with "Content-Encoding: gzip" as they are received. This means that rclone can't check the size and hash but the file contents will be decompressed.

    Properties:

    -

    --drive-stop-on-download-limit

    -

    Make download limit errors be fatal.

    -

    At the time of writing it is only possible to download 10 TiB of data from Google Drive a day (this is an undocumented limit). When this limit is reached Google Drive produces a slightly different error message. When this flag is set it causes these errors to be fatal. These will stop the in-progress sync.

    -

    Note that this detection is relying on error message strings which Google don't document so it may break in the future.

    +

    --s3-might-gzip

    +

    Set this if the backend might gzip objects.

    +

    Normally providers will not alter objects when they are downloaded. If an object was not uploaded with Content-Encoding: gzip then it won't be set on download.

    +

    However some providers may gzip objects even if they weren't uploaded with Content-Encoding: gzip (eg Cloudflare).

    +

    A symptom of this would be receiving errors like

    +
    ERROR corrupted on transfer: sizes differ NNN vs MMM
    +

    If you set this flag and rclone downloads an object with Content-Encoding: gzip set and chunked transfer encoding, then rclone will decompress the object on the fly.

    +

    If this is set to unset (the default) then rclone will choose according to the provider setting what to apply, but you can override rclone's choice here.

    Properties:

    -

    --drive-skip-shortcuts

    -

    If set skip shortcut files.

    -

    Normally rclone dereferences shortcut files making them appear as if they are the original file (see the shortcuts section). If this flag is set then rclone will ignore shortcut files completely.

    +

    --s3-use-accept-encoding-gzip

    +

    Whether to send Accept-Encoding: gzip header.

    +

    By default, rclone will append Accept-Encoding: gzip to the request to download compressed objects whenever possible.

    +

    However some providers such as Google Cloud Storage may alter the HTTP headers, breaking the signature of the request.

    +

    A symptom of this would be receiving errors like

    +
    SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided.
    +

    In this case, you might want to try disabling this option.

    Properties:

    -

    --drive-skip-dangling-shortcuts

    -

    If set skip dangling shortcut files.

    -

    If this is set then rclone will not show any dangling shortcuts in listings.

    +

    --s3-no-system-metadata

    +

    Suppress setting and reading of system metadata

    Properties:

    -

    --drive-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    +

    --s3-sts-endpoint

    +

    Endpoint for STS.

    +

    Leave blank if using AWS to use the default endpoint for the region.

    Properties:

    -

    Backend commands

    -

    Here are the commands specific to the drive backend.

    +

    Metadata

    +

    User metadata is stored as x-amz-meta- keys. S3 metadata keys are case insensitive and are always returned in lower case.

    +

    Here are the possible system metadata items for the s3 backend.

    + +++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameHelpTypeExampleRead Only
    btimeTime of file birth (creation) read from Last-Modified headerRFC 33392006-01-02T15:04:05.999999999Z07:00Y
    cache-controlCache-Control headerstringno-cacheN
    content-dispositionContent-Disposition headerstringinlineN
    content-encodingContent-Encoding headerstringgzipN
    content-languageContent-Language headerstringen-USN
    content-typeContent-Type headerstringtext/plainN
    mtimeTime of last modification, read from rclone metadataRFC 33392006-01-02T15:04:05.999999999Z07:00N
    tierTier of the objectstringGLACIERY
    +

    See the metadata docs for more info.

    +

    Backend commands

    +

    Here are the commands specific to the s3 backend.

    Run them with

    rclone backend COMMAND remote:

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    +

    See the backend command for more info on how to pass options and arguments.

    These can be run on a running backend using the rc command backend/command.

    -

    get

    -

    Get command for fetching the drive config parameters

    -
    rclone backend get remote: [options] [<arguments>+]
    -

    This is a get command which will be used to fetch the various drive config parameters

    +

    restore

    +

    Restore objects from GLACIER to normal storage

    +
    rclone backend restore remote: [options] [<arguments>+]
    +

    This command can be used to restore one or more objects from GLACIER to normal storage.

    Usage Examples:

    -
    rclone backend get drive: [-o service_account_file] [-o chunk_size]
    -rclone rc backend/command command=get fs=drive: [-o service_account_file] [-o chunk_size]
    +
    rclone backend restore s3:bucket/path/to/object -o priority=PRIORITY -o lifetime=DAYS
    +rclone backend restore s3:bucket/path/to/directory -o priority=PRIORITY -o lifetime=DAYS
    +rclone backend restore s3:bucket -o priority=PRIORITY -o lifetime=DAYS
    +

    This flag also obeys the filters. Test first with --interactive/-i or --dry-run flags

    +
    rclone --interactive backend restore --include "*.txt" s3:bucket/path -o priority=Standard -o lifetime=1
    +

    All the objects shown will be marked for restore, then

    +
    rclone backend restore --include "*.txt" s3:bucket/path -o priority=Standard -o lifetime=1
    +

    It returns a list of status dictionaries with Remote and Status keys. The Status will be OK if it was successful or an error message if not.

    +
    [
    +    {
    +        "Status": "OK",
    +        "Remote": "test.txt"
    +    },
    +    {
    +        "Status": "OK",
    +        "Remote": "test/file4.txt"
    +    }
    +]

    Options:

    -

    set

    -

    Set command for updating the drive config parameters

    -
    rclone backend set remote: [options] [<arguments>+]
    -

    This is a set command which will be used to update the various drive config parameters

    +

    restore-status

    +

    Show the restore status for objects being restored from GLACIER to normal storage

    +
    rclone backend restore-status remote: [options] [<arguments>+]
    +

    This command can be used to show the status for objects being restored from GLACIER to normal storage.

    Usage Examples:

    -
    rclone backend set drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
    -rclone rc backend/command command=set fs=drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
    -

    Options:

    - -

    shortcut

    -

    Create shortcuts from files or directories

    -
    rclone backend shortcut remote: [options] [<arguments>+]
    -

    This command creates shortcuts from files or directories.

    -

    Usage:

    -
    rclone backend shortcut drive: source_item destination_shortcut
    -rclone backend shortcut drive: source_item -o target=drive2: destination_shortcut
    -

    In the first example this creates a shortcut from the "source_item" which can be a file or a directory to the "destination_shortcut". The "source_item" and the "destination_shortcut" should be relative paths from "drive:"

    -

    In the second example this creates a shortcut from the "source_item" relative to "drive:" to the "destination_shortcut" relative to "drive2:". This may fail with a permission error if the user authenticated with "drive2:" can't read files from "drive:".

    -

    Options:

    - -

    drives

    -

    List the Shared Drives available to this account

    -
    rclone backend drives remote: [options] [<arguments>+]
    -

    This command lists the Shared Drives (Team Drives) available to this account.

    -

    Usage:

    -
    rclone backend [-o config] drives drive:
    -

    This will return a JSON list of objects like this

    +
    rclone backend restore-status s3:bucket/path/to/object
    +rclone backend restore-status s3:bucket/path/to/directory
    +rclone backend restore-status -o all s3:bucket/path/to/directory
    +

    This command does not obey the filters.

    +

    It returns a list of status dictionaries.

    [
         {
    -        "id": "0ABCDEF-01234567890",
    -        "kind": "drive#teamDrive",
    -        "name": "My Drive"
    +        "Remote": "file.txt",
    +        "VersionID": null,
    +        "RestoreStatus": {
    +            "IsRestoreInProgress": true,
    +            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
    +        },
    +        "StorageClass": "GLACIER"
         },
         {
    -        "id": "0ABCDEFabcdefghijkl",
    -        "kind": "drive#teamDrive",
    -        "name": "Test Drive"
    +        "Remote": "test.pdf",
    +        "VersionID": null,
    +        "RestoreStatus": {
    +            "IsRestoreInProgress": false,
    +            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
    +        },
    +        "StorageClass": "DEEP_ARCHIVE"
         }
     ]
    -

    With the -o config parameter it will output the list in a format suitable for adding to a config file to make aliases for all the drives found.

    -
    [My Drive]
    -type = alias
    -remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
    -
    -[Test Drive]
    -type = alias
    -remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
    -

    Adding this to the rclone config file will cause those team drives to be accessible with the aliases shown. This may require manual editing of the names.

    -

    untrash

    -

    Untrash files and directories

    -
    rclone backend untrash remote: [options] [<arguments>+]
    -

    This command untrashes all the files and directories in the directory passed in recursively.

    -

    Usage:

    -

    This takes an optional directory to trash which make this easier to use via the API.

    -
    rclone backend untrash drive:directory
    -rclone backend -i untrash drive:directory subdir
    -

    Use the -i flag to see what would be restored before restoring it.

    -

    Result:

    +

    Options:

    + +

    list-multipart-uploads

    +

    List the unfinished multipart uploads

    +
    rclone backend list-multipart-uploads remote: [options] [<arguments>+]
    +

    This command lists the unfinished multipart uploads in JSON format.

    +
    rclone backend list-multipart s3:bucket/path/to/object
    +

    It returns a dictionary of buckets with values as lists of unfinished multipart uploads.

    +

    You can call it with no bucket in which case it lists all bucket, with a bucket or with a bucket and path.

    {
    -    "Untrashed": 17,
    -    "Errors": 0
    +  "rclone": [
    +    {
    +      "Initiated": "2020-06-26T14:20:36Z",
    +      "Initiator": {
    +        "DisplayName": "XXX",
    +        "ID": "arn:aws:iam::XXX:user/XXX"
    +      },
    +      "Key": "KEY",
    +      "Owner": {
    +        "DisplayName": null,
    +        "ID": "XXX"
    +      },
    +      "StorageClass": "STANDARD",
    +      "UploadId": "XXX"
    +    }
    +  ],
    +  "rclone-1000files": [],
    +  "rclone-dst": []
     }
    -

    copyid

    -

    Copy files by ID

    -
    rclone backend copyid remote: [options] [<arguments>+]
    -

    This command copies files by ID

    -

    Usage:

    -
    rclone backend copyid drive: ID path
    -rclone backend copyid drive: ID1 path1 ID2 path2
    -

    It copies the drive file with ID given to the path (an rclone path which will be passed internally to rclone copyto). The ID and path pairs can be repeated.

    -

    The path should end with a / to indicate copy the file as named to this directory. If it doesn't end with a / then the last path component will be used as the file name.

    -

    If the destination is a drive backend then server-side copying will be attempted if possible.

    -

    Use the -i flag to see what would be copied before copying.

    -

    Limitations

    -

    Drive has quite a lot of rate limiting. This causes rclone to be limited to transferring about 2 files per second only. Individual files may be transferred much faster at 100s of MiB/s but lots of small files can take a long time.

    -

    Server side copies are also subject to a separate rate limit. If you see User rate limit exceeded errors, wait at least 24 hours and retry. You can disable server-side copies with --disable copy to download and upload the files if you prefer.

    -

    Limitations of Google Docs

    -

    Google docs will appear as size -1 in rclone ls and as size 0 in anything which uses the VFS layer, e.g. rclone mount, rclone serve.

    -

    This is because rclone can't find out the size of the Google docs without downloading them.

    -

    Google docs will transfer correctly with rclone sync, rclone copy etc as rclone knows to ignore the size when doing the transfer.

    -

    However an unfortunate consequence of this is that you may not be able to download Google docs using rclone mount. If it doesn't work you will get a 0 sized file. If you try again the doc may gain its correct size and be downloadable. Whether it will work on not depends on the application accessing the mount and the OS you are running - experiment to find out if it does work for you!

    -

    Duplicated files

    -

    Sometimes, for no reason I've been able to track down, drive will duplicate a file that rclone uploads. Drive unlike all the other remotes can have duplicated files.

    -

    Duplicated files cause problems with the syncing and you will see messages in the log about duplicates.

    -

    Use rclone dedupe to fix duplicated files.

    -

    Note that this isn't just a problem with rclone, even Google Photos on Android duplicates files on drive sometimes.

    -

    Rclone appears to be re-copying files it shouldn't

    -

    The most likely cause of this is the duplicated file issue above - run rclone dedupe and check your logs for duplicate object or directory messages.

    -

    This can also be caused by a delay/caching on google drive's end when comparing directory listings. Specifically with team drives used in combination with --fast-list. Files that were uploaded recently may not appear on the directory list sent to rclone when using --fast-list.

    -

    Waiting a moderate period of time between attempts (estimated to be approximately 1 hour) and/or not using --fast-list both seem to be effective in preventing the problem.

    -

    Making your own client_id

    -

    When you use rclone with Google drive in its default configuration you are using rclone's client_id. This is shared between all the rclone users. There is a global rate limit on the number of queries per second that each client_id can do set by Google. rclone already has a high quota and I will continue to make sure it is high enough by contacting Google.

    -

    It is strongly recommended to use your own client ID as the default rclone ID is heavily used. If you have multiple services running, it is recommended to use an API key for each service. The default Google quota is 10 transactions per second so it is recommended to stay under that number as if you use more than that, it will cause rclone to rate limit and make things slower.

    -

    Here is how to create your own Google Drive client ID for rclone:

    +

    cleanup

    +

    Remove unfinished multipart uploads.

    +
    rclone backend cleanup remote: [options] [<arguments>+]
    +

    This command removes unfinished multipart uploads of age greater than max-age which defaults to 24 hours.

    +

    Note that you can use --interactive/-i or --dry-run with this command to see what it would do.

    +
    rclone backend cleanup s3:bucket/path/to/object
    +rclone backend cleanup -o max-age=7w s3:bucket/path/to/object
    +

    Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.

    +

    Options:

    + +

    cleanup-hidden

    +

    Remove old versions of files.

    +
    rclone backend cleanup-hidden remote: [options] [<arguments>+]
    +

    This command removes any old hidden versions of files on a versions enabled bucket.

    +

    Note that you can use --interactive/-i or --dry-run with this command to see what it would do.

    +
    rclone backend cleanup-hidden s3:bucket/path/to/dir
    +

    versioning

    +

    Set/get versioning support for a bucket.

    +
    rclone backend versioning remote: [options] [<arguments>+]
    +

    This command sets versioning support if a parameter is passed and then returns the current versioning status for the bucket supplied.

    +
    rclone backend versioning s3:bucket # read status only
    +rclone backend versioning s3:bucket Enabled
    +rclone backend versioning s3:bucket Suspended
    +

    It may return "Enabled", "Suspended" or "Unversioned". Note that once versioning has been enabled the status can't be set back to "Unversioned".

    +

    set

    +

    Set command for updating the config parameters.

    +
    rclone backend set remote: [options] [<arguments>+]
    +

    This set command can be used to update the config parameters for a running s3 backend.

    +

    Usage Examples:

    +
    rclone backend set s3: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
    +rclone rc backend/command command=set fs=s3: [-o opt_name=opt_value] [-o opt_name2=opt_value2]
    +rclone rc backend/command command=set fs=s3: -o session_token=X -o access_key_id=X -o secret_access_key=X
    +

    The option keys are named as they are in the config file.

    +

    This rebuilds the connection to the s3 backend when it is called with the new parameters. Only new parameters need be passed as the values will default to those currently in use.

    +

    It doesn't return anything.

    +

    Anonymous access to public buckets

    +

    If you want to use rclone to access a public bucket, configure with a blank access_key_id and secret_access_key. Your config should end up looking like this:

    +
    [anons3]
    +type = s3
    +provider = AWS
    +env_auth = false
    +access_key_id =
    +secret_access_key =
    +region = us-east-1
    +endpoint =
    +location_constraint =
    +acl = private
    +server_side_encryption =
    +storage_class =
    +

    Then use it as normal with the name of the public bucket, e.g.

    +
    rclone lsd anons3:1000genomes
    +

    You will be able to list and copy data but not upload it.

    +

    Providers

    +

    AWS S3

    +

    This is the provider used as main example and described in the configuration section above.

    +

    AWS Snowball Edge

    +

    AWS Snowball is a hardware appliance used for transferring bulk data back to AWS. Its main software interface is S3 object storage.

    +

    To use rclone with AWS Snowball Edge devices, configure as standard for an 'S3 Compatible Service'.

    +

    If using rclone pre v1.59 be sure to set upload_cutoff = 0 otherwise you will run into authentication header issues as the snowball device does not support query parameter based authentication.

    +

    With rclone v1.59 or later setting upload_cutoff should not be necessary.

    +

    eg.

    +
    [snowball]
    +type = s3
    +provider = Other
    +access_key_id = YOUR_ACCESS_KEY
    +secret_access_key = YOUR_SECRET_KEY
    +endpoint = http://[IP of Snowball]:8080
    +upload_cutoff = 0
    +

    Ceph

    +

    Ceph is an open-source, unified, distributed storage system designed for excellent performance, reliability and scalability. It has an S3 compatible object storage interface.

    +

    To use rclone with Ceph, configure as above but leave the region blank and set the endpoint. You should end up with something like this in your config:

    +
    [ceph]
    +type = s3
    +provider = Ceph
    +env_auth = false
    +access_key_id = XXX
    +secret_access_key = YYY
    +region =
    +endpoint = https://ceph.endpoint.example.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
    +

    If you are using an older version of CEPH (e.g. 10.2.x Jewel) and a version of rclone before v1.59 then you may need to supply the parameter --s3-upload-cutoff 0 or put this in the config file as upload_cutoff 0 to work around a bug which causes uploading of small files to fail.

    +

    Note also that Ceph sometimes puts / in the passwords it gives users. If you read the secret access key using the command line tools you will get a JSON blob with the / escaped as \/. Make sure you only write / in the secret access key.

    +

    Eg the dump from Ceph looks something like this (irrelevant keys removed).

    +
    {
    +    "user_id": "xxx",
    +    "display_name": "xxxx",
    +    "keys": [
    +        {
    +            "user": "xxx",
    +            "access_key": "xxxxxx",
    +            "secret_key": "xxxxxx\/xxxx"
    +        }
    +    ],
    +}
    +

    Because this is a json dump, it is encoding the / as \/, so if you use the secret key as xxxxxx/xxxx it will work fine.

    +

    Cloudflare R2

    +

    Cloudflare R2 Storage allows developers to store large amounts of unstructured data without the costly egress bandwidth fees associated with typical cloud storage services.

    +

    Here is an example of making a Cloudflare R2 configuration. First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    +

    Note that all buckets are private, and all are stored in the same "auto" region. It is necessary to use Cloudflare workers to share the content of a bucket publicly.

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +n/s/q> n
    +name> r2
    +Option Storage.
    +Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +...
    +XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS and Wasabi
    +   \ (s3)
    +...
    +Storage> s3
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +...
    +XX / Cloudflare R2 Storage
    +   \ (Cloudflare)
    +...
    +provider> Cloudflare
    +Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth> 1
    +Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> ACCESS_KEY
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> SECRET_ACCESS_KEY
    +Option region.
    +Region to connect to.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / R2 buckets are automatically distributed across Cloudflare's data centers for low latency.
    +   \ (auto)
    +region> 1
    +Option endpoint.
    +Endpoint for S3 API.
    +Required when using an S3 clone.
    +Enter a value. Press Enter to leave empty.
    +endpoint> https://ACCOUNT_ID.r2.cloudflarestorage.com
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +--------------------
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    This will leave your config looking something like:

    +
    [r2]
    +type = s3
    +provider = Cloudflare
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_ACCESS_KEY
    +region = auto
    +endpoint = https://ACCOUNT_ID.r2.cloudflarestorage.com
    +acl = private
    +

    Now run rclone lsf r2: to see your buckets and rclone lsf r2:bucket to look within a bucket.

    +

    Dreamhost

    +

    Dreamhost DreamObjects is an object storage system based on CEPH.

    +

    To use rclone with Dreamhost, configure as above but leave the region blank and set the endpoint. You should end up with something like this in your config:

    +
    [dreamobjects]
    +type = s3
    +provider = DreamHost
    +env_auth = false
    +access_key_id = your_access_key
    +secret_access_key = your_secret_key
    +region =
    +endpoint = objects-us-west-1.dream.io
    +location_constraint =
    +acl = private
    +server_side_encryption =
    +storage_class =
    +

    Google Cloud Storage

    +

    GoogleCloudStorage is an S3-interoperable object storage service from Google Cloud Platform.

    +

    To connect to Google Cloud Storage you will need an access key and secret key. These can be retrieved by creating an HMAC key.

    +
    [gs]
    +type = s3
    +provider = GCS
    +access_key_id = your_access_key
    +secret_access_key = your_secret_key
    +endpoint = https://storage.googleapis.com
    +

    DigitalOcean Spaces

    +

    Spaces is an S3-interoperable object storage service from cloud provider DigitalOcean.

    +

    To connect to DigitalOcean Spaces you will need an access key and secret key. These can be retrieved on the "Applications & API" page of the DigitalOcean control panel. They will be needed when prompted by rclone config for your access_key_id and secret_access_key.

    +

    When prompted for a region or location_constraint, press enter to use the default value. The region must be included in the endpoint setting (e.g. nyc3.digitaloceanspaces.com). The default values can be used for other settings.

    +

    Going through the whole process of creating a new remote by running rclone config, each prompt should be answered as shown below:

    +
    Storage> s3
    +env_auth> 1
    +access_key_id> YOUR_ACCESS_KEY
    +secret_access_key> YOUR_SECRET_KEY
    +region>
    +endpoint> nyc3.digitaloceanspaces.com
    +location_constraint>
    +acl>
    +storage_class>
    +

    The resulting configuration file should look like:

    +
    [spaces]
    +type = s3
    +provider = DigitalOcean
    +env_auth = false
    +access_key_id = YOUR_ACCESS_KEY
    +secret_access_key = YOUR_SECRET_KEY
    +region =
    +endpoint = nyc3.digitaloceanspaces.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
    +

    Once configured, you can create a new Space and begin copying files. For example:

    +
    rclone mkdir spaces:my-new-space
    +rclone copy /path/to/files spaces:my-new-space
    +

    Huawei OBS

    +

    Object Storage Service (OBS) provides stable, secure, efficient, and easy-to-use cloud storage that lets you store virtually any volume of unstructured data in any format and access it from anywhere.

    +

    OBS provides an S3 interface, you can copy and modify the following configuration and add it to your rclone configuration file.

    +
    [obs]
    +type = s3
    +provider = HuaweiOBS
    +access_key_id = your-access-key-id
    +secret_access_key = your-secret-access-key
    +region = af-south-1
    +endpoint = obs.af-south-1.myhuaweicloud.com
    +acl = private
    +

    Or you can also configure via the interactive command line:

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +n/s/q> n
    +name> obs
    +Option Storage.
    +Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +[snip]
    + 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS and Wasabi
    +   \ (s3)
    +[snip]
    +Storage> 5
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    + 9 / Huawei Object Storage Service
    +   \ (HuaweiOBS)
    +[snip]
    +provider> 9
    +Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth> 1
    +Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> your-access-key-id
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> your-secret-access-key
    +Option region.
    +Region to connect to.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / AF-Johannesburg
    +   \ (af-south-1)
    + 2 / AP-Bangkok
    +   \ (ap-southeast-2)
    +[snip]
    +region> 1
    +Option endpoint.
    +Endpoint for OBS API.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / AF-Johannesburg
    +   \ (obs.af-south-1.myhuaweicloud.com)
    + 2 / AP-Bangkok
    +   \ (obs.ap-southeast-2.myhuaweicloud.com)
    +[snip]
    +endpoint> 1
    +Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +[snip]
    +acl> 1
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n>
    +--------------------
    +[obs]
    +type = s3
    +provider = HuaweiOBS
    +access_key_id = your-access-key-id
    +secret_access_key = your-secret-access-key
    +region = af-south-1
    +endpoint = obs.af-south-1.myhuaweicloud.com
    +acl = private
    +--------------------
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +Current remotes:
    +
    +Name                 Type
    +====                 ====
    +obs                  s3
    +
    +e) Edit existing remote
    +n) New remote
    +d) Delete remote
    +r) Rename remote
    +c) Copy remote
    +s) Set configuration password
    +q) Quit config
    +e/n/d/r/c/s/q> q
    +

    IBM COS (S3)

    +

    Information stored with IBM Cloud Object Storage is encrypted and dispersed across multiple geographic locations, and accessed through an implementation of the S3 API. This service makes use of the distributed storage technologies provided by IBM’s Cloud Object Storage System (formerly Cleversafe). For more information visit: (http://www.ibm.com/cloud/object-storage)

    +

    To configure access to IBM COS S3, follow the steps below:

      -
    1. Log into the Google API Console with your Google account. It doesn't matter what Google account you use. (It need not be the same account as the Google Drive you want to access)

    2. -
    3. Select a project or create a new project.

    4. -
    5. Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the "Google Drive API".

    6. -
    7. Click "Credentials" in the left-side panel (not "Create credentials", which opens the wizard), then "Create credentials"

    8. -
    9. If you already configured an "Oauth Consent Screen", then skip to the next step; if not, click on "CONFIGURE CONSENT SCREEN" button (near the top right corner of the right panel), then select "External" and click on "CREATE"; on the next screen, enter an "Application name" ("rclone" is OK); enter "User Support Email" (your own email is OK); enter "Developer Contact Email" (your own email is OK); then click on "Save" (all other data is optional). Click again on "Credentials" on the left panel to go back to the "Credentials" screen.

    10. +
    11. Run rclone config and select n for a new remote.
    12. +
    +
        2018/02/14 14:13:11 NOTICE: Config file "C:\\Users\\a\\.config\\rclone\\rclone.conf" not found - using defaults
    +    No remotes found, make a new one?
    +    n) New remote
    +    s) Set configuration password
    +    q) Quit config
    +    n/s/q> n
    +
      +
    1. Enter the name for the configuration
    -

    (PS: if you are a GSuite user, you could also select "Internal" instead of "External" above, but this has not been tested/documented so far).

    +
        name> <YOUR NAME>
    +
      +
    1. Select "s3" storage.
    2. +
    +
    Choose a number from below, or type in your own value
    +    1 / Alias for an existing remote
    +    \ "alias"
    +    2 / Amazon Drive
    +    \ "amazon cloud drive"
    +    3 / Amazon S3 Complaint Storage Providers (Dreamhost, Ceph, ChinaMobile, Liara, ArvanCloud, Minio, IBM COS)
    +    \ "s3"
    +    4 / Backblaze B2
    +    \ "b2"
    +[snip]
    +    23 / HTTP
    +    \ "http"
    +Storage> 3
    +
      +
    1. Select IBM COS as the S3 Storage Provider.
    2. +
    +
    Choose the S3 provider.
    +Choose a number from below, or type in your own value
    +     1 / Choose this option to configure Storage to AWS S3
    +       \ "AWS"
    +     2 / Choose this option to configure Storage to Ceph Systems
    +     \ "Ceph"
    +     3 /  Choose this option to configure Storage to Dreamhost
    +     \ "Dreamhost"
    +   4 / Choose this option to the configure Storage to IBM COS S3
    +     \ "IBMCOS"
    +     5 / Choose this option to the configure Storage to Minio
    +     \ "Minio"
    +     Provider>4
    +
      +
    1. Enter the Access Key and Secret.
    2. +
    +
        AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    +    access_key_id> <>
    +    AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    +    secret_access_key> <>
      -
    1. Click on the "+ CREATE CREDENTIALS" button at the top of the screen, then select "OAuth client ID".

    2. -
    3. Choose an application type of "Desktop app" and click "Create". (the default name is fine)

    4. -
    5. It will show you a client ID and client secret. Make a note of these.

    6. -
    7. Go to "Oauth consent screen" and press "Publish App"

    8. -
    9. Provide the noted client ID and client secret to rclone.

    10. -
    11. Click "OAuth consent screen", then click "PUBLISH APP" button and confirm, or add your account under "Test users".

    12. +
    13. Specify the endpoint for IBM COS. For Public IBM COS, choose from the option below. For On Premise IBM COS, enter an endpoint address.
    -

    Be aware that, due to the "enhanced security" recently introduced by Google, you are theoretically expected to "submit your app for verification" and then wait a few weeks(!) for their response; in practice, you can go right ahead and use the client ID and client secret with rclone, the only issue will be a very scary confirmation screen shown when you connect via your browser for rclone to be able to get its token-id (but as this only happens during the remote configuration, it's not such a big deal).

    -

    (Thanks to @balazer on github for these instructions.)

    -

    Sometimes, creation of an OAuth consent in Google API Console fails due to an error message “The request failed because changes to one of the field of the resource is not supported”. As a convenient workaround, the necessary Google Drive API key can be created on the Python Quickstart page. Just push the Enable the Drive API button to receive the Client ID and Secret. Note that it will automatically create a new project in the API Console.

    -

    Google Photos

    -

    The rclone backend for Google Photos is a specialized backend for transferring photos and videos to and from Google Photos.

    -

    NB The Google Photos API which rclone uses has quite a few limitations, so please read the limitations section carefully to make sure it is suitable for your use.

    -

    Configuration

    -

    The initial setup for google cloud storage involves getting a token from Google Photos which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    +
        Endpoint for IBM COS S3 API.
    +    Specify if using an IBM COS On Premise.
    +    Choose a number from below, or type in your own value
    +     1 / US Cross Region Endpoint
    +       \ "s3-api.us-geo.objectstorage.softlayer.net"
    +     2 / US Cross Region Dallas Endpoint
    +       \ "s3-api.dal.us-geo.objectstorage.softlayer.net"
    +     3 / US Cross Region Washington DC Endpoint
    +       \ "s3-api.wdc-us-geo.objectstorage.softlayer.net"
    +     4 / US Cross Region San Jose Endpoint
    +       \ "s3-api.sjc-us-geo.objectstorage.softlayer.net"
    +     5 / US Cross Region Private Endpoint
    +       \ "s3-api.us-geo.objectstorage.service.networklayer.com"
    +     6 / US Cross Region Dallas Private Endpoint
    +       \ "s3-api.dal-us-geo.objectstorage.service.networklayer.com"
    +     7 / US Cross Region Washington DC Private Endpoint
    +       \ "s3-api.wdc-us-geo.objectstorage.service.networklayer.com"
    +     8 / US Cross Region San Jose Private Endpoint
    +       \ "s3-api.sjc-us-geo.objectstorage.service.networklayer.com"
    +     9 / US Region East Endpoint
    +       \ "s3.us-east.objectstorage.softlayer.net"
    +    10 / US Region East Private Endpoint
    +       \ "s3.us-east.objectstorage.service.networklayer.com"
    +    11 / US Region South Endpoint
    +[snip]
    +    34 / Toronto Single Site Private Endpoint
    +       \ "s3.tor01.objectstorage.service.networklayer.com"
    +    endpoint>1
    +
      +
    1. Specify a IBM COS Location Constraint. The location constraint must match endpoint when using IBM Cloud Public. For on-prem COS, do not make a selection from this list, hit enter
    2. +
    +
         1 / US Cross Region Standard
    +       \ "us-standard"
    +     2 / US Cross Region Vault
    +       \ "us-vault"
    +     3 / US Cross Region Cold
    +       \ "us-cold"
    +     4 / US Cross Region Flex
    +       \ "us-flex"
    +     5 / US East Region Standard
    +       \ "us-east-standard"
    +     6 / US East Region Vault
    +       \ "us-east-vault"
    +     7 / US East Region Cold
    +       \ "us-east-cold"
    +     8 / US East Region Flex
    +       \ "us-east-flex"
    +     9 / US South Region Standard
    +       \ "us-south-standard"
    +    10 / US South Region Vault
    +       \ "us-south-vault"
    +[snip]
    +    32 / Toronto Flex
    +       \ "tor01-flex"
    +location_constraint>1
    +
      +
    1. Specify a canned ACL. IBM Cloud (Storage) supports "public-read" and "private". IBM Cloud(Infra) supports all the canned ACLs. On-Premise COS supports all the canned ACLs.
    2. +
    +
    Canned ACL used when creating buckets and/or storing objects in S3.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Choose a number from below, or type in your own value
    +      1 / Owner gets FULL_CONTROL. No one else has access rights (default). This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise COS
    +      \ "private"
    +      2  / Owner gets FULL_CONTROL. The AllUsers group gets READ access. This acl is available on IBM Cloud (Infra), IBM Cloud (Storage), On-Premise IBM COS
    +      \ "public-read"
    +      3 / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access. This acl is available on IBM Cloud (Infra), On-Premise IBM COS
    +      \ "public-read-write"
    +      4  / Owner gets FULL_CONTROL. The AuthenticatedUsers group gets READ access. Not supported on Buckets. This acl is available on IBM Cloud (Infra) and On-Premise IBM COS
    +      \ "authenticated-read"
    +acl> 1
    +
      +
    1. Review the displayed configuration and accept to save the "remote" then quit. The config file should look like this
    2. +
    +
        [xxx]
    +    type = s3
    +    Provider = IBMCOS
    +    access_key_id = xxx
    +    secret_access_key = yyy
    +    endpoint = s3-api.us-geo.objectstorage.softlayer.net
    +    location_constraint = us-standard
    +    acl = private
    +
      +
    1. Execute rclone commands
    2. +
    +
        1)  Create a bucket.
    +        rclone mkdir IBM-COS-XREGION:newbucket
    +    2)  List available buckets.
    +        rclone lsd IBM-COS-XREGION:
    +        -1 2017-11-08 21:16:22        -1 test
    +        -1 2018-02-14 20:16:39        -1 newbucket
    +    3)  List contents of a bucket.
    +        rclone ls IBM-COS-XREGION:newbucket
    +        18685952 test.exe
    +    4)  Copy a file from local to remote.
    +        rclone copy /Users/file.txt IBM-COS-XREGION:newbucket
    +    5)  Copy a file from remote to local.
    +        rclone copy IBM-COS-XREGION:newbucket/file.txt .
    +    6)  Delete a file on remote.
    +        rclone delete IBM-COS-XREGION:newbucket/file.txt
    +

    IDrive e2

    +

    Here is an example of making an IDrive e2 configuration. First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    No remotes found, make a new one?
     n) New remote
     s) Set configuration password
     q) Quit config
     n/s/q> n
    -name> remote
    +
    +Enter name for new remote.
    +name> e2
    +
    +Option Storage.
     Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    +Choose a number from below, or type in your own value.
     [snip]
    -XX / Google Photos
    -   \ "google photos"
    +XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS and Wasabi
    +   \ (s3)
     [snip]
    -Storage> google photos
    -** See help for google photos backend at: https://rclone.org/googlephotos/ **
    +Storage> s3
     
    -Google Application Client Id
    -Leave blank normally.
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    +XX / IDrive e2
    +   \ (IDrive)
    +[snip]
    +provider> IDrive
    +
    +Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth> 
    +
    +Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> YOUR_ACCESS_KEY
    +
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> YOUR_SECRET_KEY
    +
    +Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +   / Owner gets FULL_CONTROL.
    + 2 | The AllUsers group gets READ access.
    +   \ (public-read)
    +   / Owner gets FULL_CONTROL.
    + 3 | The AllUsers group gets READ and WRITE access.
    +   | Granting this on a bucket is generally not recommended.
    +   \ (public-read-write)
    +   / Owner gets FULL_CONTROL.
    + 4 | The AuthenticatedUsers group gets READ access.
    +   \ (authenticated-read)
    +   / Object owner gets FULL_CONTROL.
    + 5 | Bucket owner gets READ access.
    +   | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
    +   \ (bucket-owner-read)
    +   / Both the object owner and the bucket owner get FULL_CONTROL over the object.
    + 6 | If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
    +   \ (bucket-owner-full-control)
    +acl> 
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> 
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: IDrive
    +- access_key_id: YOUR_ACCESS_KEY
    +- secret_access_key: YOUR_SECRET_KEY
    +- endpoint: q9d9.la12.idrivee2-5.com
    +Keep this "e2" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    IONOS Cloud

    +

    IONOS S3 Object Storage is a service offered by IONOS for storing and accessing unstructured data. To connect to the service, you will need an access key and a secret key. These can be found in the Data Center Designer, by selecting Manager resources > Object Storage Key Manager.

    +

    Here is an example of a configuration. First, run rclone config. This will walk you through an interactive setup process. Type n to add the new remote, and then enter a name:

    +
    Enter name for new remote.
    +name> ionos-fra
    +

    Type s3 to choose the connection type:

    +
    Option Storage.
    +Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +[snip]
    +XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS and Wasabi
    +   \ (s3)
    +[snip]
    +Storage> s3
    +

    Type IONOS:

    +
    Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    +XX / IONOS Cloud
    +   \ (IONOS)
    +[snip]
    +provider> IONOS
    +

    Press Enter to choose the default option Enter AWS credentials in the next step:

    +
    Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth>
    +

    Enter your Access Key and Secret key. These can be retrieved in the Data Center Designer, click on the menu “Manager resources” / "Object Storage Key Manager".

    +
    Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> YOUR_ACCESS_KEY
    +
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> YOUR_SECRET_KEY
    +

    Choose the region where your bucket is located:

    +
    Option region.
    +Region where your bucket will be created and your data stored.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / Frankfurt, Germany
    +   \ (de)
    + 2 / Berlin, Germany
    +   \ (eu-central-2)
    + 3 / Logrono, Spain
    +   \ (eu-south-2)
    +region> 2
    +

    Choose the endpoint from the same region:

    +
    Option endpoint.
    +Endpoint for IONOS S3 Object Storage.
    +Specify the endpoint from the same region.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / Frankfurt, Germany
    +   \ (s3-eu-central-1.ionoscloud.com)
    + 2 / Berlin, Germany
    +   \ (s3-eu-central-2.ionoscloud.com)
    + 3 / Logrono, Spain
    +   \ (s3-eu-south-2.ionoscloud.com)
    +endpoint> 1
    +

    Press Enter to choose the default option or choose the desired ACL setting:

    +
    Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +   / Owner gets FULL_CONTROL.
    +[snip]
    +acl>
    +

    Press Enter to skip the advanced config:

    +
    Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n>
    +

    Press Enter to save the configuration, and then q to quit the configuration process:

    +
    Configuration complete.
    +Options:
    +- type: s3
    +- provider: IONOS
    +- access_key_id: YOUR_ACCESS_KEY
    +- secret_access_key: YOUR_SECRET_KEY
    +- endpoint: s3-eu-central-1.ionoscloud.com
    +Keep this "ionos-fra" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    Done! Now you can try some commands (for macOS, use ./rclone instead of rclone).

    +
      +
    1. Create a bucket (the name must be unique within the whole IONOS S3)
    2. +
    +
    rclone mkdir ionos-fra:my-bucket
    +
      +
    1. List available buckets
    2. +
    +
    rclone lsd ionos-fra:
    +
      +
    1. Copy a file from local to remote
    2. +
    +
    rclone copy /Users/file.txt ionos-fra:my-bucket
    +
      +
    1. List contents of a bucket
    2. +
    +
    rclone ls ionos-fra:my-bucket
    +
      +
    1. Copy a file from remote to local
    2. +
    +
    rclone copy ionos-fra:my-bucket/file.txt
    +

    Minio

    +

    Minio is an object storage server built for cloud application developers and devops.

    +

    It is very easy to install and provides an S3 compatible server which can be used by rclone.

    +

    To use it, install Minio following the instructions here.

    +

    When it configures itself Minio will print something like this

    +
    Endpoint:  http://192.168.1.106:9000  http://172.23.0.1:9000
    +AccessKey: USWUXHGYZQYFYFFIT3RE
    +SecretKey: MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    +Region:    us-east-1
    +SQS ARNs:  arn:minio:sqs:us-east-1:1:redis arn:minio:sqs:us-east-1:2:redis
    +
    +Browser Access:
    +   http://192.168.1.106:9000  http://172.23.0.1:9000
    +
    +Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide
    +   $ mc config host add myminio http://192.168.1.106:9000 USWUXHGYZQYFYFFIT3RE MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    +
    +Object API (Amazon S3 compatible):
    +   Go:         https://docs.minio.io/docs/golang-client-quickstart-guide
    +   Java:       https://docs.minio.io/docs/java-client-quickstart-guide
    +   Python:     https://docs.minio.io/docs/python-client-quickstart-guide
    +   JavaScript: https://docs.minio.io/docs/javascript-client-quickstart-guide
    +   .NET:       https://docs.minio.io/docs/dotnet-client-quickstart-guide
    +
    +Drive Capacity: 26 GiB Free, 165 GiB Total
    +

    These details need to go into rclone config like this. Note that it is important to put the region in as stated above.

    +
    env_auth> 1
    +access_key_id> USWUXHGYZQYFYFFIT3RE
    +secret_access_key> MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    +region> us-east-1
    +endpoint> http://192.168.1.106:9000
    +location_constraint>
    +server_side_encryption>
    +

    Which makes the config file look like this

    +
    [minio]
    +type = s3
    +provider = Minio
    +env_auth = false
    +access_key_id = USWUXHGYZQYFYFFIT3RE
    +secret_access_key = MOJRH0mkL1IPauahWITSVvyDrQbEEIwljvmxdq03
    +region = us-east-1
    +endpoint = http://192.168.1.106:9000
    +location_constraint =
    +server_side_encryption =
    +

    So once set up, for example, to copy files into a bucket

    +
    rclone copy /path/to/files minio:bucket
    +

    Qiniu Cloud Object Storage (Kodo)

    +

    Qiniu Cloud Object Storage (Kodo), a completely independent-researched core technology which is proven by repeated customer experience has occupied absolute leading market leader position. Kodo can be widely applied to mass data management.

    +

    To configure access to Qiniu Kodo, follow the steps below:

    +
      +
    1. Run rclone config and select n for a new remote.
    2. +
    +
    rclone config
    +No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +n/s/q> n
    +
      +
    1. Give the name of the configuration. For example, name it 'qiniu'.
    2. +
    +
    name> qiniu
    +
      +
    1. Select s3 storage.
    2. +
    +
    Choose a number from below, or type in your own value
    + 1 / 1Fichier
    +   \ (fichier)
    + 2 / Akamai NetStorage
    +   \ (netstorage)
    + 3 / Alias for an existing remote
    +   \ (alias)
    + 4 / Amazon Drive
    +   \ (amazon cloud drive)
    + 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi
    +   \ (s3)
    +[snip]
    +Storage> s3
    +
      +
    1. Select Qiniu provider.
    2. +
    +
    Choose a number from below, or type in your own value
    +1 / Amazon Web Services (AWS) S3
    +   \ "AWS"
    +[snip]
    +22 / Qiniu Object Storage (Kodo)
    +   \ (Qiniu)
    +[snip]
    +provider> Qiniu
    +
      +
    1. Enter your SecretId and SecretKey of Qiniu Kodo.
    2. +
    +
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Enter a boolean value (true or false). Press Enter for the default ("false").
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
     Enter a string value. Press Enter for the default ("").
    -client_id> 
    -Google Application Client Secret
    -Leave blank normally.
    +access_key_id> AKIDxxxxxxxxxx
    +AWS Secret Access Key (password)
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +secret_access_key> xxxxxxxxxxx
    +
      +
    1. Select endpoint for Qiniu Kodo. This is the standard endpoint for different region.
    2. +
    +
       / The default endpoint - a good choice if you are unsure.
    + 1 | East China Region 1.
    +   | Needs location constraint cn-east-1.
    +   \ (cn-east-1)
    +   / East China Region 2.
    + 2 | Needs location constraint cn-east-2.
    +   \ (cn-east-2)
    +   / North China Region 1.
    + 3 | Needs location constraint cn-north-1.
    +   \ (cn-north-1)
    +   / South China Region 1.
    + 4 | Needs location constraint cn-south-1.
    +   \ (cn-south-1)
    +   / North America Region.
    + 5 | Needs location constraint us-north-1.
    +   \ (us-north-1)
    +   / Southeast Asia Region 1.
    + 6 | Needs location constraint ap-southeast-1.
    +   \ (ap-southeast-1)
    +   / Northeast Asia Region 1.
    + 7 | Needs location constraint ap-northeast-1.
    +   \ (ap-northeast-1)
    +[snip]
    +endpoint> 1
    +
    +Option endpoint.
    +Endpoint for Qiniu Object Storage.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / East China Endpoint 1
    +   \ (s3-cn-east-1.qiniucs.com)
    + 2 / East China Endpoint 2
    +   \ (s3-cn-east-2.qiniucs.com)
    + 3 / North China Endpoint 1
    +   \ (s3-cn-north-1.qiniucs.com)
    + 4 / South China Endpoint 1
    +   \ (s3-cn-south-1.qiniucs.com)
    + 5 / North America Endpoint 1
    +   \ (s3-us-north-1.qiniucs.com)
    + 6 / Southeast Asia Endpoint 1
    +   \ (s3-ap-southeast-1.qiniucs.com)
    + 7 / Northeast Asia Endpoint 1
    +   \ (s3-ap-northeast-1.qiniucs.com)
    +endpoint> 1
    +
    +Option location_constraint.
    +Location constraint - must be set to match the Region.
    +Used when creating buckets only.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / East China Region 1
    +   \ (cn-east-1)
    + 2 / East China Region 2
    +   \ (cn-east-2)
    + 3 / North China Region 1
    +   \ (cn-north-1)
    + 4 / South China Region 1
    +   \ (cn-south-1)
    + 5 / North America Region 1
    +   \ (us-north-1)
    + 6 / Southeast Asia Region 1
    +   \ (ap-southeast-1)
    + 7 / Northeast Asia Region 1
    +   \ (ap-northeast-1)
    +location_constraint> 1
    +
      +
    1. Choose acl and storage class.
    2. +
    +
    Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +   / Owner gets FULL_CONTROL.
    + 2 | The AllUsers group gets READ access.
    +   \ (public-read)
    +[snip]
    +acl> 2
    +The storage class to use when storing new objects in Tencent COS.
     Enter a string value. Press Enter for the default ("").
    -client_secret> 
    -Set to make the Google Photos backend read only.
    -
    -If you choose read only then rclone will only request read only access
    -to your photos, otherwise rclone will request full access.
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -read_only> 
    +Choose a number from below, or type in your own value
    + 1 / Standard storage class
    +   \ (STANDARD)
    + 2 / Infrequent access storage mode
    +   \ (LINE)
    + 3 / Archive storage mode
    +   \ (GLACIER)
    + 4 / Deep archive storage mode
    +   \ (DEEP_ARCHIVE)
    +[snip]
    +storage_class> 1
     Edit advanced config? (y/n)
     y) Yes
    -n) No
    +n) No (default)
     y/n> n
     Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    -
    -*** IMPORTANT: All media items uploaded to Google Photos with rclone
    -*** are stored in full resolution at original quality.  These uploads
    -*** will count towards storage in your Google Account.
    -
     --------------------
    -[remote]
    -type = google photos
    -token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2019-06-28T17:38:04.644930156+01:00"}
    +[qiniu]
    +- type: s3
    +- provider: Qiniu
    +- access_key_id: xxx
    +- secret_access_key: xxx
    +- region: cn-east-1
    +- endpoint: s3-cn-east-1.qiniucs.com
    +- location_constraint: cn-east-1
    +- acl: public-read
    +- storage_class: STANDARD
     --------------------
    -y) Yes this is OK
    +y) Yes this is OK (default)
     e) Edit this remote
     d) Delete this remote
    -y/e/d> y
    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this may require you to unblock it temporarily if you are running a host firewall, or use manual mode.

    -

    This remote is called remote and can now be used like this

    -

    See all the albums in your photos

    -
    rclone lsd remote:album
    -

    Make a new album

    -
    rclone mkdir remote:album/newAlbum
    -

    List the contents of an album

    -
    rclone ls remote:album/newAlbum
    -

    Sync /home/local/images to the Google Photos, removing any excess files in the album.

    -
    rclone sync -i /home/local/image remote:album/newAlbum
    -

    Layout

    -

    As Google Photos is not a general purpose cloud storage system the backend is laid out to help you navigate it.

    -

    The directories under media show different ways of categorizing the media. Each file will appear multiple times. So if you want to make a backup of your google photos you might choose to backup remote:media/by-month. (NB remote:media/by-day is rather slow at the moment so avoid for syncing.)

    -

    Note that all your photos and videos will appear somewhere under media, but they may not appear under album unless you've put them into albums.

    -
    /
    -- upload
    -    - file1.jpg
    -    - file2.jpg
    -    - ...
    -- media
    -    - all
    -        - file1.jpg
    -        - file2.jpg
    -        - ...
    -    - by-year
    -        - 2000
    -            - file1.jpg
    -            - ...
    -        - 2001
    -            - file2.jpg
    -            - ...
    -        - ...
    -    - by-month
    -        - 2000
    -            - 2000-01
    -                - file1.jpg
    -                - ...
    -            - 2000-02
    -                - file2.jpg
    -                - ...
    -        - ...
    -    - by-day
    -        - 2000
    -            - 2000-01-01
    -                - file1.jpg
    -                - ...
    -            - 2000-01-02
    -                - file2.jpg
    -                - ...
    -        - ...
    -- album
    -    - album name
    -    - album name/sub
    -- shared-album
    -    - album name
    -    - album name/sub
    -- feature
    -    - favorites
    -        - file1.jpg
    -        - file2.jpg
    -

    There are two writable parts of the tree, the upload directory and sub directories of the album directory.

    -

    The upload directory is for uploading files you don't want to put into albums. This will be empty to start with and will contain the files you've uploaded for one rclone session only, becoming empty again when you restart rclone. The use case for this would be if you have a load of files you just want to once off dump into Google Photos. For repeated syncing, uploading to album will work better.

    -

    Directories within the album directory are also writeable and you may create new directories (albums) under album. If you copy files with a directory hierarchy in there then rclone will create albums with the / character in them. For example if you do

    -
    rclone copy /path/to/images remote:album/images
    -

    and the images directory contains

    -
    images
    -    - file1.jpg
    -    dir
    -        file2.jpg
    -    dir2
    -        dir3
    -            file3.jpg
    -

    Then rclone will create the following albums with the following files in

    - -

    This means that you can use the album path pretty much like a normal filesystem and it is a good target for repeated syncing.

    -

    The shared-album directory shows albums shared with you or by you. This is similar to the Sharing tab in the Google Photos web interface.

    -

    Standard options

    -

    Here are the standard options specific to google photos (Google Photos).

    -

    --gphotos-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --gphotos-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --gphotos-read-only

    -

    Set to make the Google Photos backend read only.

    -

    If you choose read only then rclone will only request read only access to your photos, otherwise rclone will request full access.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to google photos (Google Photos).

    -

    --gphotos-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --gphotos-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --gphotos-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --gphotos-read-size

    -

    Set to read the size of media items.

    -

    Normally rclone does not read the size of media items since this takes another transaction. This isn't necessary for syncing. However rclone mount needs to know the size of files in advance of reading them, so setting this flag when using rclone mount is recommended if you want to read the media.

    -

    Properties:

    - -

    --gphotos-start-year

    -

    Year limits the photos to be downloaded to those which are uploaded after the given year.

    -

    Properties:

    - -

    --gphotos-include-archived

    -

    Also view and download archived media.

    -

    By default, rclone does not request archived media. Thus, when syncing, archived media is not visible in directory listings or transferred.

    -

    Note that media in albums is always visible and synced, no matter their archive status.

    -

    With this flag, archived media are always visible in directory listings and transferred.

    -

    Without this flag, archived media will not be visible in directory listings and won't be transferred.

    -

    Properties:

    - -

    --gphotos-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Only images and videos can be uploaded. If you attempt to upload non videos or images or formats that Google Photos doesn't understand, rclone will upload the file, then Google Photos will give an error when it is put turned into a media item.

    -

    Note that all media items uploaded to Google Photos through the API are stored in full resolution at "original quality" and will count towards your storage quota in your Google Account. The API does not offer a way to upload in "high quality" mode..

    -

    rclone about is not supported by the Google Photos backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Downloading Images

    -

    When Images are downloaded this strips EXIF location (according to the docs and my tests). This is a limitation of the Google Photos API and is covered by bug #112096115.

    -

    The current google API does not allow photos to be downloaded at original resolution. This is very important if you are, for example, relying on "Google Photos" as a backup of your photos. You will not be able to use rclone to redownload original images. You could use 'google takeout' to recover the original photos as a last resort

    -

    Downloading Videos

    -

    When videos are downloaded they are downloaded in a really compressed version of the video compared to downloading it via the Google Photos web interface. This is covered by bug #113672044.

    -

    Duplicates

    -

    If a file name is duplicated in a directory then rclone will add the file ID into its name. So two files called file.jpg would then appear as file {123456}.jpg and file {ABCDEF}.jpg (the actual IDs are a lot longer alas!).

    -

    If you upload the same image (with the same binary data) twice then Google Photos will deduplicate it. However it will retain the filename from the first upload which may confuse rclone. For example if you uploaded an image to upload then uploaded the same image to album/my_album the filename of the image in album/my_album will be what it was uploaded with initially, not what you uploaded it with to album. In practise this shouldn't cause too many problems.

    -

    Modified time

    -

    The date shown of media in Google Photos is the creation date as determined by the EXIF information, or the upload date if that is not known.

    -

    This is not changeable by rclone and is not the modification date of the media on local disk. This means that rclone cannot use the dates from Google Photos for syncing purposes.

    -

    Size

    -

    The Google Photos API does not return the size of media. This means that when syncing to Google Photos, rclone can only do a file existence check.

    -

    It is possible to read the size of the media, but this needs an extra HTTP HEAD request per media item so is very slow and uses up a lot of transactions. This can be enabled with the --gphotos-read-size option or the read_size = true config parameter.

    -

    If you want to use the backend with rclone mount you may need to enable this flag (depending on your OS and application using the photos) otherwise you may not be able to read media off the mount. You'll need to experiment to see if it works for you without the flag.

    -

    Albums

    -

    Rclone can only upload files to albums it created. This is a limitation of the Google Photos API.

    -

    Rclone can remove files it uploaded from albums it created only.

    -

    Deleting files

    -

    Rclone can remove files from albums it created, but note that the Google Photos API does not allow media to be deleted permanently so this media will still remain. See bug #109759781.

    -

    Rclone cannot delete files anywhere except under album.

    -

    Deleting albums

    -

    The Google Photos API does not support deleting albums - see bug #135714733.

    -

    Hasher (EXPERIMENTAL)

    -

    Hasher is a special overlay backend to create remotes which handle checksums for other remotes. It's main functions include: - Emulate hash types unimplemented by backends - Cache checksums to help with slow hashing of large local or (S)FTP files - Warm up checksum cache from external SUM files

    -

    Getting started

    -

    To use Hasher, first set up the underlying remote following the configuration instructions for that remote. You can also use a local pathname instead of a remote. Check that your base remote is working.

    -

    Let's call the base remote myRemote:path here. Note that anything inside myRemote:path will be handled by hasher and anything outside won't. This means that if you are using a bucket based remote (S3, B2, Swift) then you should put the bucket in the remote s3:bucket.

    -

    Now proceed to interactive or manual configuration.

    -

    Interactive configuration

    -

    Run rclone config:

    -
    No remotes found, make a new one?
    +y/e/d> y
    +Current remotes:
    +
    +Name                 Type
    +====                 ====
    +qiniu                s3
    +

    RackCorp

    +

    RackCorp Object Storage is an S3 compatible object storage platform from your friendly cloud provider RackCorp. The service is fast, reliable, well priced and located in many strategic locations unserviced by others, to ensure you can maintain data sovereignty.

    +

    Before you can use RackCorp Object Storage, you'll need to "sign up" for an account on our "portal". Next you can create an access key, a secret key and buckets, in your location of choice with ease. These details are required for the next steps of configuration, when rclone config asks for your access_key_id and secret_access_key.

    +

    Your config should end up looking a bit like this:

    +
    [RCS3-demo-config]
    +type = s3
    +provider = RackCorp
    +env_auth = true
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region = au-nsw
    +endpoint = s3.rackcorp.com
    +location_constraint = au-nsw
    +

    Scaleway

    +

    Scaleway The Object Storage platform allows you to store anything from backups, logs and web assets to documents and photos. Files can be dropped from the Scaleway console or transferred through our API and CLI or using any S3-compatible tool.

    +

    Scaleway provides an S3 interface which can be configured for use with rclone like this:

    +
    [scaleway]
    +type = s3
    +provider = Scaleway
    +env_auth = false
    +endpoint = s3.nl-ams.scw.cloud
    +access_key_id = SCWXXXXXXXXXXXXXX
    +secret_access_key = 1111111-2222-3333-44444-55555555555555
    +region = nl-ams
    +location_constraint =
    +acl = private
    +server_side_encryption =
    +storage_class =
    +

    C14 Cold Storage is the low-cost S3 Glacier alternative from Scaleway and it works the same way as on S3 by accepting the "GLACIER" storage_class. So you can configure your remote with the storage_class = GLACIER option to upload directly to C14. Don't forget that in this state you can't read files back after, you will need to restore them to "STANDARD" storage_class first before being able to read them (see "restore" section above)

    +

    Seagate Lyve Cloud

    +

    Seagate Lyve Cloud is an S3 compatible object storage platform from Seagate intended for enterprise use.

    +

    Here is a config run through for a remote called remote - you may choose a different name of course. Note that to create an access key and secret key you will need to create a service account first.

    +
    $ rclone config
    +No remotes found, make a new one?
     n) New remote
     s) Set configuration password
     q) Quit config
     n/s/q> n
    -name> Hasher1
    +name> remote
    +

    Choose s3 backend

    +
    Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +[snip]
    +XX / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Liara, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
    +   \ (s3)
    +[snip]
    +Storage> s3
    +

    Choose LyveCloud as S3 provider

    +
    Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    +XX / Seagate Lyve Cloud
    +   \ (LyveCloud)
    +[snip]
    +provider> LyveCloud
    +

    Take the default (just press enter) to enter access key and secret in the config file.

    +
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth>
    +
    AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> XXX
    +
    AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> YYY
    +

    Leave region blank

    +
    Region to connect to.
    +Leave blank if you are using an S3 clone and you don't have a region.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Use this if unsure.
    + 1 | Will use v4 signatures and an empty region.
    +   \ ()
    +   / Use this only if v4 signatures don't work.
    + 2 | E.g. pre Jewel/v10 CEPH.
    +   \ (other-v2-signature)
    +region>
    +

    Choose an endpoint from the list

    +
    Endpoint for S3 API.
    +Required when using an S3 clone.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / Seagate Lyve Cloud US East 1 (Virginia)
    +   \ (s3.us-east-1.lyvecloud.seagate.com)
    + 2 / Seagate Lyve Cloud US West 1 (California)
    +   \ (s3.us-west-1.lyvecloud.seagate.com)
    + 3 / Seagate Lyve Cloud AP Southeast 1 (Singapore)
    +   \ (s3.ap-southeast-1.lyvecloud.seagate.com)
    +endpoint> 1
    +

    Leave location constraint blank

    +
    Location constraint - must be set to match the Region.
    +Leave blank if not sure. Used when creating buckets only.
    +Enter a value. Press Enter to leave empty.
    +location_constraint>
    +

    Choose default ACL (private).

    +
    Canned ACL used when creating buckets and storing or copying objects.
    +This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +[snip]
    +acl>
    +

    And the config file should end up looking like this:

    +
    [remote]
    +type = s3
    +provider = LyveCloud
    +access_key_id = XXX
    +secret_access_key = YYY
    +endpoint = s3.us-east-1.lyvecloud.seagate.com
    +

    SeaweedFS

    +

    SeaweedFS is a distributed storage system for blobs, objects, files, and data lake, with O(1) disk seek and a scalable file metadata store. It has an S3 compatible object storage interface. SeaweedFS can also act as a gateway to remote S3 compatible object store to cache data and metadata with asynchronous write back, for fast local speed and minimize access cost.

    +

    Assuming the SeaweedFS are configured with weed shell as such:

    +
    > s3.bucket.create -name foo
    +> s3.configure -access_key=any -secret_key=any -buckets=foo -user=me -actions=Read,Write,List,Tagging,Admin -apply
    +{
    +  "identities": [
    +    {
    +      "name": "me",
    +      "credentials": [
    +        {
    +          "accessKey": "any",
    +          "secretKey": "any"
    +        }
    +      ],
    +      "actions": [
    +        "Read:foo",
    +        "Write:foo",
    +        "List:foo",
    +        "Tagging:foo",
    +        "Admin:foo"
    +      ]
    +    }
    +  ]
    +}
    +

    To use rclone with SeaweedFS, above configuration should end up with something like this in your config:

    +
    [seaweedfs_s3]
    +type = s3
    +provider = SeaweedFS
    +access_key_id = any
    +secret_access_key = any
    +endpoint = localhost:8333
    +

    So once set up, for example to copy files into a bucket

    +
    rclone copy /path/to/files seaweedfs_s3:foo
    +

    Wasabi

    +

    Wasabi is a cloud-based object storage service for a broad range of applications and use cases. Wasabi is designed for individuals and organizations that require a high-performance, reliable, and secure data storage infrastructure at minimal cost.

    +

    Wasabi provides an S3 interface which can be configured for use with rclone like this.

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +n/s> n
    +name> wasabi
     Type of storage to configure.
     Choose a number from below, or type in your own value
     [snip]
    -XX / Handle checksums for other remotes
    -   \ "hasher"
    +XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Minio, Liara)
    +   \ "s3"
    +[snip]
    +Storage> s3
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    +access_key_id> YOURACCESSKEY
    +AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    +secret_access_key> YOURSECRETACCESSKEY
    +Region to connect to.
    +Choose a number from below, or type in your own value
    +   / The default endpoint - a good choice if you are unsure.
    + 1 | US Region, Northern Virginia, or Pacific Northwest.
    +   | Leave location constraint empty.
    +   \ "us-east-1"
    +[snip]
    +region> us-east-1
    +Endpoint for S3 API.
    +Leave blank if using AWS to use the default endpoint for the region.
    +Specify if using an S3 clone such as Ceph.
    +endpoint> s3.wasabisys.com
    +Location constraint - must be set to match the Region. Used when creating buckets only.
    +Choose a number from below, or type in your own value
    + 1 / Empty for US Region, Northern Virginia, or Pacific Northwest.
    +   \ ""
     [snip]
    -Storage> hasher
    -Remote to cache checksums for, like myremote:mypath.
    -Enter a string value. Press Enter for the default ("").
    -remote> myRemote:path
    -Comma separated list of supported checksum types.
    -Enter a string value. Press Enter for the default ("md5,sha1").
    -hashsums> md5
    -Maximum time to keep checksums in cache. 0 = no cache, off = cache forever.
    -max_age> off
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    +location_constraint>
    +Canned ACL used when creating buckets and/or storing objects in S3.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Choose a number from below, or type in your own value
    + 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    +   \ "private"
    +[snip]
    +acl>
    +The server-side encryption algorithm used when storing this object in S3.
    +Choose a number from below, or type in your own value
    + 1 / None
    +   \ ""
    + 2 / AES256
    +   \ "AES256"
    +server_side_encryption>
    +The storage class to use when storing objects in S3.
    +Choose a number from below, or type in your own value
    + 1 / Default
    +   \ ""
    + 2 / Standard storage class
    +   \ "STANDARD"
    + 3 / Reduced redundancy storage class
    +   \ "REDUCED_REDUNDANCY"
    + 4 / Standard Infrequent Access storage class
    +   \ "STANDARD_IA"
    +storage_class>
     Remote config
     --------------------
    -[Hasher1]
    -type = hasher
    -remote = myRemote:path
    -hashsums = md5
    -max_age = off
    +[wasabi]
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region = us-east-1
    +endpoint = s3.wasabisys.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
     --------------------
     y) Yes this is OK
     e) Edit this remote
     d) Delete this remote
     y/e/d> y
    -

    Manual configuration

    -

    Run rclone config path to see the path of current active config file, usually YOURHOME/.config/rclone/rclone.conf. Open it in your favorite text editor, find section for the base remote and create new section for hasher like in the following examples:

    -
    [Hasher1]
    -type = hasher
    -remote = myRemote:path
    -hashes = md5
    -max_age = off
    -
    -[Hasher2]
    -type = hasher
    -remote = /local/path
    -hashes = dropbox,sha1
    -max_age = 24h
    -

    Hasher takes basically the following parameters: - remote is required, - hashes is a comma separated list of supported checksums (by default md5,sha1), - max_age - maximum time to keep a checksum value in the cache, 0 will disable caching completely, off will cache "forever" (that is until the files get changed).

    -

    Make sure the remote has : (colon) in. If you specify the remote without a colon then rclone will use a local directory of that name. So if you use a remote of /local/path then rclone will handle hashes for that directory. If you use remote = name literally then rclone will put files in a directory called name located under current directory.

    -

    Usage

    -

    Basic operations

    -

    Now you can use it as Hasher2:subdir/file instead of base remote. Hasher will transparently update cache with new checksums when a file is fully read or overwritten, like:

    -
    rclone copy External:path/file Hasher:dest/path
    -
    -rclone cat Hasher:path/to/file > /dev/null
    -

    The way to refresh all cached checksums (even unsupported by the base backend) for a subtree is to re-download all files in the subtree. For example, use hashsum --download using any supported hashsum on the command line (we just care to re-read):

    -
    rclone hashsum MD5 --download Hasher:path/to/subtree > /dev/null
    -
    -rclone backend dump Hasher:path/to/subtree
    -

    You can print or drop hashsum cache using custom backend commands:

    -
    rclone backend dump Hasher:dir/subdir
    -
    -rclone backend drop Hasher:
    -

    Pre-Seed from a SUM File

    -

    Hasher supports two backend commands: generic SUM file import and faster but less consistent stickyimport.

    -
    rclone backend import Hasher:dir/subdir SHA1 /path/to/SHA1SUM [--checkers 4]
    -

    Instead of SHA1 it can be any hash supported by the remote. The last argument can point to either a local or an other-remote:path text file in SUM format. The command will parse the SUM file, then walk down the path given by the first argument, snapshot current fingerprints and fill in the cache entries correspondingly. - Paths in the SUM file are treated as relative to hasher:dir/subdir. - The command will not check that supplied values are correct. You must know what you are doing. - This is a one-time action. The SUM file will not get "attached" to the remote. Cache entries can still be overwritten later, should the object's fingerprint change. - The tree walk can take long depending on the tree size. You can increase --checkers to make it faster. Or use stickyimport if you don't care about fingerprints and consistency.

    -
    rclone backend stickyimport hasher:path/to/data sha1 remote:/path/to/sum.sha1
    -

    stickyimport is similar to import but works much faster because it does not need to stat existing files and skips initial tree walk. Instead of binding cache entries to file fingerprints it creates sticky entries bound to the file name alone ignoring size, modification time etc. Such hash entries can be replaced only by purge, delete, backend drop or by full re-read/re-write of the files.

    -

    Configuration reference

    -

    Standard options

    -

    Here are the standard options specific to hasher (Better checksums for other remotes).

    -

    --hasher-remote

    -

    Remote to cache checksums for (e.g. myRemote:path).

    -

    Properties:

    - -

    --hasher-hashes

    -

    Comma separated list of supported checksum types.

    -

    Properties:

    - -

    --hasher-max-age

    -

    Maximum time to keep checksums in cache (0 = no cache, off = cache forever).

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to hasher (Better checksums for other remotes).

    -

    --hasher-auto-size

    -

    Auto-update checksum for files smaller than this size (disabled by default).

    -

    Properties:

    - -

    Backend commands

    -

    Here are the commands specific to the hasher backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    drop

    -

    Drop cache

    -
    rclone backend drop remote: [options] [<arguments>+]
    -

    Completely drop checksum cache. Usage Example: rclone backend drop hasher:

    -

    dump

    -

    Dump the database

    -
    rclone backend dump remote: [options] [<arguments>+]
    -

    Dump cache records covered by the current remote

    -

    fulldump

    -

    Full dump of the database

    -
    rclone backend fulldump remote: [options] [<arguments>+]
    -

    Dump all cache records in the database

    -

    import

    -

    Import a SUM file

    -
    rclone backend import remote: [options] [<arguments>+]
    -

    Amend hash cache from a SUM file and bind checksums to files by size/time. Usage Example: rclone backend import hasher:subdir md5 /path/to/sum.md5

    -

    stickyimport

    -

    Perform fast import of a SUM file

    -
    rclone backend stickyimport remote: [options] [<arguments>+]
    -

    Fill hash cache from a SUM file without verifying file fingerprints. Usage Example: rclone backend stickyimport hasher:subdir md5 remote:path/to/sum.md5

    -

    Implementation details (advanced)

    -

    This section explains how various rclone operations work on a hasher remote.

    -

    Disclaimer. This section describes current implementation which can change in future rclone versions!.

    -

    Hashsum command

    -

    The rclone hashsum (or md5sum or sha1sum) command will:

    -
      -
    1. if requested hash is supported by lower level, just pass it.
    2. -
    3. if object size is below auto_size then download object and calculate requested hashes on the fly.
    4. -
    5. if unsupported and the size is big enough, build object fingerprint (including size, modtime if supported, first-found other hash if any).
    6. -
    7. if the strict match is found in cache for the requested remote, return the stored hash.
    8. -
    9. if remote found but fingerprint mismatched, then purge the entry and proceed to step 6.
    10. -
    11. if remote not found or had no requested hash type or after step 5: download object, calculate all supported hashes on the fly and store in cache; return requested hash.
    12. -
    -

    Other operations

    - -

    Note that setting max_age = 0 will disable checksum caching completely.

    -

    If you set max_age = off, checksums in cache will never age, unless you fully rewrite or delete the file.

    -

    Cache storage

    -

    Cached checksums are stored as bolt database files under rclone cache directory, usually ~/.cache/rclone/kv/. Databases are maintained one per base backend, named like BaseRemote~hasher.bolt. Checksums for multiple alias-es into a single base backend will be stored in the single database. All local paths are treated as aliases into the local backend (unless crypted or chunked) and stored in ~/.cache/rclone/kv/local~hasher.bolt. Databases can be shared between multiple rclone processes.

    -

    HDFS

    -

    HDFS is a distributed file-system, part of the Apache Hadoop framework.

    -

    Paths are specified as remote: or remote:path/to/dir.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    +

    This will leave the config file looking like this.

    +
    [wasabi]
    +type = s3
    +provider = Wasabi
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region =
    +endpoint = s3.wasabisys.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
    +

    Alibaba OSS

    +

    Here is an example of making an Alibaba Cloud (Aliyun) OSS configuration. First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    No remotes found, make a new one?
     n) New remote
     s) Set configuration password
     q) Quit config
     n/s/q> n
    -name> remote
    +name> oss
     Type of storage to configure.
     Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
    -[skip]
    -XX / Hadoop distributed file system
    -   \ "hdfs"
    -[skip]
    -Storage> hdfs
    -** See help for hdfs backend at: https://rclone.org/hdfs/ **
    -
    -hadoop name node and port
    +[snip]
    + 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Liara, Minio, and Tencent COS
    +   \ "s3"
    +[snip]
    +Storage> s3
    +Choose your S3 provider.
     Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
    - 1 / Connect to host namenode at port 8020
    -   \ "namenode:8020"
    -namenode> namenode.hadoop:8020
    -hadoop user name
    + 1 / Amazon Web Services (AWS) S3
    +   \ "AWS"
    + 2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun
    +   \ "Alibaba"
    + 3 / Ceph Object Storage
    +   \ "Ceph"
    +[snip]
    +provider> Alibaba
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Enter a boolean value (true or false). Press Enter for the default ("false").
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +access_key_id> accesskeyid
    +AWS Secret Access Key (password)
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +secret_access_key> secretaccesskey
    +Endpoint for OSS API.
     Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
    - 1 / Connect to hdfs as root
    -   \ "root"
    -username> root
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    ---------------------
    -[remote]
    -type = hdfs
    -namenode = namenode.hadoop:8020
    -username = root
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -Current remotes:
    -
    -Name                 Type
    -====                 ====
    -hadoop               hdfs
    + 1 / East China 1 (Hangzhou)
    +   \ "oss-cn-hangzhou.aliyuncs.com"
    + 2 / East China 2 (Shanghai)
    +   \ "oss-cn-shanghai.aliyuncs.com"
    + 3 / North China 1 (Qingdao)
    +   \ "oss-cn-qingdao.aliyuncs.com"
    +[snip]
    +endpoint> 1
    +Canned ACL used when creating buckets and storing or copying objects.
     
    -e) Edit existing remote
    -n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -e/n/d/r/c/s/q> q
    -

    This remote is called remote and can now be used like this

    -

    See all the top level directories

    -
    rclone lsd remote:
    -

    List the contents of a directory

    -
    rclone ls remote:directory
    -

    Sync the remote directory to /home/local/directory, deleting any excess files.

    -
    rclone sync -i remote:directory /home/local/directory
    -

    Setting up your own HDFS instance for testing

    -

    You may start with a manual setup or use the docker image from the tests:

    -

    If you want to build the docker image

    -
    git clone https://github.com/rclone/rclone.git
    -cd rclone/fstest/testserver/images/test-hdfs
    -docker build --rm -t rclone/test-hdfs .
    -

    Or you can just use the latest one pushed

    -
    docker run --rm --name "rclone-hdfs" -p 127.0.0.1:9866:9866 -p 127.0.0.1:8020:8020 --hostname "rclone-hdfs" rclone/test-hdfs
    -

    NB it need few seconds to startup.

    -

    For this docker image the remote needs to be configured like this:

    -
    [remote]
    -type = hdfs
    -namenode = 127.0.0.1:8020
    -username = root
    -

    You can stop this image with docker kill rclone-hdfs (NB it does not use volumes, so all data uploaded will be lost.)

    -

    Modified time

    -

    Time accurate to 1 second is stored.

    -

    Checksum

    -

    No checksums are implemented.

    -

    Usage information

    -

    You can use the rclone about remote: command which will display filesystem size and current usage.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    :0x3A
    -

    Invalid UTF-8 bytes will also be replaced.

    -

    Standard options

    -

    Here are the standard options specific to hdfs (Hadoop distributed file system).

    -

    --hdfs-namenode

    -

    Hadoop name node and port.

    -

    E.g. "namenode:8020" to connect to host namenode at port 8020.

    -

    Properties:

    - -

    --hdfs-username

    -

    Hadoop user name.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to hdfs (Hadoop distributed file system).

    -

    --hdfs-service-principal-name

    -

    Kerberos service principal name for the namenode.

    -

    Enables KERBEROS authentication. Specifies the Service Principal Name (SERVICE/FQDN) for the namenode. E.g. "hdfs/namenode.hadoop.docker" for namenode running as service 'hdfs' with FQDN 'namenode.hadoop.docker'.

    -

    Properties:

    - -

    --hdfs-data-transfer-protection

    -

    Kerberos data transfer protection: authentication|integrity|privacy.

    -

    Specifies whether or not authentication, data signature integrity checks, and wire encryption is required when communicating the the datanodes. Possible values are 'authentication', 'integrity' and 'privacy'. Used only with KERBEROS enabled.

    -

    Properties:

    - -

    --hdfs-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    - -

    HTTP

    -

    The HTTP remote is a read only remote for reading files of a webserver. The webserver should provide file listings which rclone will read and turn into a remote. This has been tested with common webservers such as Apache/Nginx/Caddy and will likely work with file listings from most web servers. (If it doesn't then please file an issue, or send a pull request!)

    -

    Paths are specified as remote: or remote:path.

    -

    The remote: represents the configured url, and any path following it will be resolved relative to this url, according to the URL standard. This means with remote url https://beta.rclone.org/branch and path fix, the resolved URL will be https://beta.rclone.org/branch/fix, while with path /fix the resolved URL will be https://beta.rclone.org/fix as the absolute path is resolved from the root of the domain.

    -

    If the path following the remote: ends with / it will be assumed to point to a directory. If the path does not end with /, then a HEAD request is sent and the response used to decide if it it is treated as a file or a directory (run with -vv to see details). When --http-no-head is specified, a path without ending / is always assumed to be a file. If rclone incorrectly assumes the path is a file, the solution is to specify the path with ending /. When you know the path is a directory, ending it with / is always better as it avoids the initial HEAD request.

    -

    To just download a single file it is easier to use copyurl.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
    + 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    +   \ "private"
    + 2 / Owner gets FULL_CONTROL. The AllUsers group gets READ access.
    +   \ "public-read"
    +   / Owner gets FULL_CONTROL. The AllUsers group gets READ and WRITE access.
     [snip]
    -XX / http Connection
    -   \ "http"
    -[snip]
    -Storage> http
    -URL of http host to connect to
    +acl> 1
    +The storage class to use when storing new objects in OSS.
    +Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
    - 1 / Connect to example.com
    -   \ "https://example.com"
    -url> https://beta.rclone.org
    + 1 / Default
    +   \ ""
    + 2 / Standard storage class
    +   \ "STANDARD"
    + 3 / Archive storage mode.
    +   \ "GLACIER"
    + 4 / Infrequent access storage mode.
    +   \ "STANDARD_IA"
    +storage_class> 1
    +Edit advanced config? (y/n)
    +y) Yes
    +n) No
    +y/n> n
     Remote config
     --------------------
    -[remote]
    -url = https://beta.rclone.org
    +[oss]
    +type = s3
    +provider = Alibaba
    +env_auth = false
    +access_key_id = accesskeyid
    +secret_access_key = secretaccesskey
    +endpoint = oss-cn-hangzhou.aliyuncs.com
    +acl = private
    +storage_class = Standard
     --------------------
     y) Yes this is OK
     e) Edit this remote
     d) Delete this remote
    -y/e/d> y
    -Current remotes:
    -
    -Name                 Type
    -====                 ====
    -remote               http
    -
    -e) Edit existing remote
    +y/e/d> y
    +

    China Mobile Ecloud Elastic Object Storage (EOS)

    +

    Here is an example of making an China Mobile Ecloud Elastic Object Storage (EOS) configuration. First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    +
    No remotes found, make a new one?
     n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
     s) Set configuration password
     q) Quit config
    -e/n/d/r/c/s/q> q
    -

    This remote is called remote and can now be used like this

    -

    See all the top level directories

    -
    rclone lsd remote:
    -

    List the contents of a directory

    -
    rclone ls remote:directory
    -

    Sync the remote directory to /home/local/directory, deleting any excess files.

    -
    rclone sync -i remote:directory /home/local/directory
    -

    Read only

    -

    This remote is read only - you can't upload files to an HTTP server.

    -

    Modified time

    -

    Most HTTP servers store time accurate to 1 second.

    -

    Checksum

    -

    No checksums are stored.

    -

    Usage without a config file

    -

    Since the http remote only has one config parameter it is easy to use without a config file:

    -
    rclone lsd --http-url https://beta.rclone.org :http:
    -

    or:

    -
    rclone lsd :http,url='https://beta.rclone.org':
    -

    Standard options

    -

    Here are the standard options specific to http (http Connection).

    -

    --http-url

    -

    URL of http host to connect to.

    -

    E.g. "https://example.com", or "https://user:pass@example.com" to use a username and password.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to http (http Connection).

    -

    --http-headers

    -

    Set HTTP headers for all transactions.

    -

    Use this to set additional HTTP headers for all transactions.

    -

    The input format is comma separated list of key,value pairs. Standard CSV encoding may be used.

    -

    For example, to set a Cookie use 'Cookie,name=value', or '"Cookie","name=value"'.

    -

    You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'.

    -

    Properties:

    - -

    --http-no-slash

    -

    Set this if the site doesn't end directories with /.

    -

    Use this if your target website does not use / on the end of directories.

    -

    A / on the end of a path is how rclone normally tells the difference between files and directories. If this flag is set, then rclone will treat all files with Content-Type: text/html as directories and read URLs from them rather than downloading them.

    -

    Note that this may cause rclone to confuse genuine HTML files with directories.

    -

    Properties:

    - -

    --http-no-head

    -

    Don't use HEAD requests.

    -

    HEAD requests are mainly used to find file sizes in dir listing. If your site is being very slow to load then you can try this option. Normally rclone does a HEAD request for each potential file in a directory listing to:

    - -

    If you set this option, rclone will not do the HEAD request. This will mean that directory listings are much quicker, but rclone won't have the times or sizes of any files, and some files that don't exist may be in the listing.

    -

    Properties:

    - -

    Limitations

    -

    rclone about is not supported by the HTTP backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Hubic

    -

    Paths are specified as remote:path

    -

    Paths are specified as remote:container (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:container/path/to/dir.

    -

    Configuration

    -

    The initial setup for Hubic involves getting a token from Hubic which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    n) New remote
    -s) Set configuration password
    -n/s> n
    -name> remote
    +n/s/q> n
    +name> ChinaMobile
    +Option Storage.
     Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Hubic
    -   \ "hubic"
    -[snip]
    -Storage> hubic
    -Hubic Client Id - leave blank normally.
    -client_id>
    -Hubic Client Secret - leave blank normally.
    -client_secret>
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    +Choose a number from below, or type in your own value.
    + ...
    + 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Lyve Cloud, Minio, RackCorp, SeaweedFS, and Tencent COS
    +   \ (s3)
    + ...
    +Storage> s3
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + ...
    + 4 / China Mobile Ecloud Elastic Object Storage (EOS)
    +   \ (ChinaMobile)
    + ...
    +provider> ChinaMobile
    +Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth>
    +Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> accesskeyid
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> secretaccesskey
    +Option endpoint.
    +Endpoint for China Mobile Ecloud Elastic Object Storage (EOS) API.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / The default endpoint - a good choice if you are unsure.
    + 1 | East China (Suzhou)
    +   \ (eos-wuxi-1.cmecloud.cn)
    + 2 / East China (Jinan)
    +   \ (eos-jinan-1.cmecloud.cn)
    + 3 / East China (Hangzhou)
    +   \ (eos-ningbo-1.cmecloud.cn)
    + 4 / East China (Shanghai-1)
    +   \ (eos-shanghai-1.cmecloud.cn)
    + 5 / Central China (Zhengzhou)
    +   \ (eos-zhengzhou-1.cmecloud.cn)
    + 6 / Central China (Changsha-1)
    +   \ (eos-hunan-1.cmecloud.cn)
    + 7 / Central China (Changsha-2)
    +   \ (eos-zhuzhou-1.cmecloud.cn)
    + 8 / South China (Guangzhou-2)
    +   \ (eos-guangzhou-1.cmecloud.cn)
    + 9 / South China (Guangzhou-3)
    +   \ (eos-dongguan-1.cmecloud.cn)
    +10 / North China (Beijing-1)
    +   \ (eos-beijing-1.cmecloud.cn)
    +11 / North China (Beijing-2)
    +   \ (eos-beijing-2.cmecloud.cn)
    +12 / North China (Beijing-3)
    +   \ (eos-beijing-4.cmecloud.cn)
    +13 / North China (Huhehaote)
    +   \ (eos-huhehaote-1.cmecloud.cn)
    +14 / Southwest China (Chengdu)
    +   \ (eos-chengdu-1.cmecloud.cn)
    +15 / Southwest China (Chongqing)
    +   \ (eos-chongqing-1.cmecloud.cn)
    +16 / Southwest China (Guiyang)
    +   \ (eos-guiyang-1.cmecloud.cn)
    +17 / Nouthwest China (Xian)
    +   \ (eos-xian-1.cmecloud.cn)
    +18 / Yunnan China (Kunming)
    +   \ (eos-yunnan.cmecloud.cn)
    +19 / Yunnan China (Kunming-2)
    +   \ (eos-yunnan-2.cmecloud.cn)
    +20 / Tianjin China (Tianjin)
    +   \ (eos-tianjin-1.cmecloud.cn)
    +21 / Jilin China (Changchun)
    +   \ (eos-jilin-1.cmecloud.cn)
    +22 / Hubei China (Xiangyan)
    +   \ (eos-hubei-1.cmecloud.cn)
    +23 / Jiangxi China (Nanchang)
    +   \ (eos-jiangxi-1.cmecloud.cn)
    +24 / Gansu China (Lanzhou)
    +   \ (eos-gansu-1.cmecloud.cn)
    +25 / Shanxi China (Taiyuan)
    +   \ (eos-shanxi-1.cmecloud.cn)
    +26 / Liaoning China (Shenyang)
    +   \ (eos-liaoning-1.cmecloud.cn)
    +27 / Hebei China (Shijiazhuang)
    +   \ (eos-hebei-1.cmecloud.cn)
    +28 / Fujian China (Xiamen)
    +   \ (eos-fujian-1.cmecloud.cn)
    +29 / Guangxi China (Nanning)
    +   \ (eos-guangxi-1.cmecloud.cn)
    +30 / Anhui China (Huainan)
    +   \ (eos-anhui-1.cmecloud.cn)
    +endpoint> 1
    +Option location_constraint.
    +Location constraint - must match endpoint.
    +Used when creating buckets only.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / East China (Suzhou)
    +   \ (wuxi1)
    + 2 / East China (Jinan)
    +   \ (jinan1)
    + 3 / East China (Hangzhou)
    +   \ (ningbo1)
    + 4 / East China (Shanghai-1)
    +   \ (shanghai1)
    + 5 / Central China (Zhengzhou)
    +   \ (zhengzhou1)
    + 6 / Central China (Changsha-1)
    +   \ (hunan1)
    + 7 / Central China (Changsha-2)
    +   \ (zhuzhou1)
    + 8 / South China (Guangzhou-2)
    +   \ (guangzhou1)
    + 9 / South China (Guangzhou-3)
    +   \ (dongguan1)
    +10 / North China (Beijing-1)
    +   \ (beijing1)
    +11 / North China (Beijing-2)
    +   \ (beijing2)
    +12 / North China (Beijing-3)
    +   \ (beijing4)
    +13 / North China (Huhehaote)
    +   \ (huhehaote1)
    +14 / Southwest China (Chengdu)
    +   \ (chengdu1)
    +15 / Southwest China (Chongqing)
    +   \ (chongqing1)
    +16 / Southwest China (Guiyang)
    +   \ (guiyang1)
    +17 / Nouthwest China (Xian)
    +   \ (xian1)
    +18 / Yunnan China (Kunming)
    +   \ (yunnan)
    +19 / Yunnan China (Kunming-2)
    +   \ (yunnan2)
    +20 / Tianjin China (Tianjin)
    +   \ (tianjin1)
    +21 / Jilin China (Changchun)
    +   \ (jilin1)
    +22 / Hubei China (Xiangyan)
    +   \ (hubei1)
    +23 / Jiangxi China (Nanchang)
    +   \ (jiangxi1)
    +24 / Gansu China (Lanzhou)
    +   \ (gansu1)
    +25 / Shanxi China (Taiyuan)
    +   \ (shanxi1)
    +26 / Liaoning China (Shenyang)
    +   \ (liaoning1)
    +27 / Hebei China (Shijiazhuang)
    +   \ (hebei1)
    +28 / Fujian China (Xiamen)
    +   \ (fujian1)
    +29 / Guangxi China (Nanning)
    +   \ (guangxi1)
    +30 / Anhui China (Huainan)
    +   \ (anhui1)
    +location_constraint> 1
    +Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +   / Owner gets FULL_CONTROL.
    + 2 | The AllUsers group gets READ access.
    +   \ (public-read)
    +   / Owner gets FULL_CONTROL.
    + 3 | The AllUsers group gets READ and WRITE access.
    +   | Granting this on a bucket is generally not recommended.
    +   \ (public-read-write)
    +   / Owner gets FULL_CONTROL.
    + 4 | The AuthenticatedUsers group gets READ access.
    +   \ (authenticated-read)
    +   / Object owner gets FULL_CONTROL.
    +acl> private
    +Option server_side_encryption.
    +The server-side encryption algorithm used when storing this object in S3.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / None
    +   \ ()
    + 2 / AES256
    +   \ (AES256)
    +server_side_encryption>
    +Option storage_class.
    +The storage class to use when storing new objects in ChinaMobile.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / Default
    +   \ ()
    + 2 / Standard storage class
    +   \ (STANDARD)
    + 3 / Archive storage mode
    +   \ (GLACIER)
    + 4 / Infrequent access storage mode
    +   \ (STANDARD_IA)
    +storage_class>
    +Edit advanced config?
     y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    +n) No (default)
    +y/n> n
     --------------------
    -[remote]
    -client_id =
    -client_secret =
    -token = {"access_token":"XXXXXX"}
    +[ChinaMobile]
    +type = s3
    +provider = ChinaMobile
    +access_key_id = accesskeyid
    +secret_access_key = secretaccesskey
    +endpoint = eos-wuxi-1.cmecloud.cn
    +location_constraint = wuxi1
    +acl = private
     --------------------
    -y) Yes this is OK
    +y) Yes this is OK (default)
     e) Edit this remote
     d) Delete this remote
     y/e/d> y
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Hubic. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List containers in the top level of your Hubic

    -
    rclone lsd remote:
    -

    List all the files in your Hubic

    -
    rclone ls remote:
    -

    To copy a local directory to an Hubic directory called backup

    -
    rclone copy /home/source remote:backup
    -

    If you want the directory to be visible in the official Hubic browser, you need to copy your files to the default directory

    -
    rclone copy /home/source remote:default/backup
    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Modified time

    -

    The modified time is stored as metadata on the object as X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.

    -

    This is a de facto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.

    -

    Note that Hubic wraps the Swift backend, so most of the properties of are the same.

    -

    Standard options

    -

    Here are the standard options specific to hubic (Hubic).

    -

    --hubic-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --hubic-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to hubic (Hubic).

    -

    --hubic-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --hubic-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --hubic-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --hubic-chunk-size

    -

    Above this size files will be chunked into a _segments container.

    -

    Above this size files will be chunked into a _segments container. The default for this is 5 GiB which is its maximum value.

    -

    Properties:

    - -

    --hubic-no-chunk

    -

    Don't chunk files during streaming upload.

    -

    When doing streaming uploads (e.g. using rcat or mount) setting this flag will cause the swift backend to not upload chunked files.

    -

    This will limit the maximum upload size to 5 GiB. However non chunked files are easier to deal with and have an MD5SUM.

    -

    Rclone will still chunk files bigger than chunk_size when doing normal copy operations.

    -

    Properties:

    - -

    --hubic-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    This uses the normal OpenStack Swift mechanism to refresh the Swift API credentials and ignores the expires field returned by the Hubic API.

    -

    The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.

    -

    Jottacloud

    -

    Jottacloud is a cloud storage service provider from a Norwegian company, using its own datacenters in Norway. In addition to the official service at jottacloud.com, it also provides white-label solutions to different companies, such as: * Telia * Telia Cloud (cloud.telia.se) * Telia Sky (sky.telia.no) * Tele2 * Tele2 Cloud (mittcloud.tele2.se) * Elkjøp (with subsidiaries): * Elkjøp Cloud (cloud.elkjop.no) * Elgiganten Sweden (cloud.elgiganten.se) * Elgiganten Denmark (cloud.elgiganten.dk) * Giganti Cloud (cloud.gigantti.fi) * ELKO Clouud (cloud.elko.is)

    -

    Most of the white-label versions are supported by this backend, although may require different authentication setup - described below.

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Authentication types

    -

    Some of the whitelabel versions uses a different authentication method than the official service, and you have to choose the correct one when setting up the remote.

    -

    Standard authentication

    -

    To configure Jottacloud you will need to generate a personal security token in the Jottacloud web interface. You will the option to do in your account security settings (for whitelabel version you need to find this page in its web interface). Note that the web interface may refer to this token as a JottaCli token.

    -

    Legacy authentication

    -

    If you are using one of the whitelabel versions (e.g. from Elkjøp) you may not have the option to generate a CLI token. In this case you'll have to use the legacy authentication. To do this select yes when the setup asks for legacy authentication and enter your username and password. The rest of the setup is identical to the default setup.

    -

    Telia Cloud authentication

    -

    Similar to other whitelabel versions Telia Cloud doesn't offer the option of creating a CLI token, and additionally uses a separate authentication flow where the username is generated internally. To setup rclone to use Telia Cloud, choose Telia Cloud authentication in the setup. The rest of the setup is identical to the default setup.

    -

    Tele2 Cloud authentication

    -

    As Tele2-Com Hem merger was completed this authentication can be used for former Com Hem Cloud and Tele2 Cloud customers as no support for creating a CLI token exists, and additionally uses a separate authentication flow where the username is generated internally. To setup rclone to use Tele2 Cloud, choose Tele2 Cloud authentication in the setup. The rest of the setup is identical to the default setup.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote with the default setup. First run:

    +

    Leviia Cloud Object Storage

    +

    Leviia Object Storage, backup and secure your data in a 100% French cloud, independent of GAFAM..

    +

    To configure access to Leviia, follow the steps below:

    +
      +
    1. Run rclone config and select n for a new remote.
    2. +
    +
    rclone config
    +No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +n/s/q> n
    +
      +
    1. Give the name of the configuration. For example, name it 'leviia'.
    2. +
    +
    name> leviia
    +
      +
    1. Select s3 storage.
    2. +
    +
    Choose a number from below, or type in your own value
    + 1 / 1Fichier
    +   \ (fichier)
    + 2 / Akamai NetStorage
    +   \ (netstorage)
    + 3 / Alias for an existing remote
    +   \ (alias)
    + 4 / Amazon Drive
    +   \ (amazon cloud drive)
    + 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, Liara, Lyve Cloud, Minio, Netease, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi
    +   \ (s3)
    +[snip]
    +Storage> s3
    +
      +
    1. Select Leviia provider.
    2. +
    +
    Choose a number from below, or type in your own value
    +1 / Amazon Web Services (AWS) S3
    +   \ "AWS"
    +[snip]
    +15 / Leviia Object Storage
    +   \ (Leviia)
    +[snip]
    +provider> Leviia
    +
      +
    1. Enter your SecretId and SecretKey of Leviia.
    2. +
    +
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Enter a boolean value (true or false). Press Enter for the default ("false").
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +access_key_id> ZnIx.xxxxxxxxxxxxxxx
    +AWS Secret Access Key (password)
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +secret_access_key> xxxxxxxxxxx
    +
      +
    1. Select endpoint for Leviia.
    2. +
    +
       / The default endpoint
    + 1 | Leviia.
    +   \ (s3.leviia.com)
    +[snip]
    +endpoint> 1
    +
      +
    1. Choose acl.
    2. +
    +
    Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    +   / Owner gets FULL_CONTROL.
    + 1 | No one else has access rights (default).
    +   \ (private)
    +   / Owner gets FULL_CONTROL.
    + 2 | The AllUsers group gets READ access.
    +   \ (public-read)
    +[snip]
    +acl> 1
    +Edit advanced config? (y/n)
    +y) Yes
    +n) No (default)
    +y/n> n
    +Remote config
    +--------------------
    +[leviia]
    +- type: s3
    +- provider: Leviia
    +- access_key_id: ZnIx.xxxxxxx
    +- secret_access_key: xxxxxxxx
    +- endpoint: s3.leviia.com
    +- acl: private
    +--------------------
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +Current remotes:
    +
    +Name                 Type
    +====                 ====
    +leviia                s3
    +

    Liara

    +

    Here is an example of making a Liara Object Storage configuration. First run:

    rclone config
    -

    This will guide you through an interactive setup process:

    +

    This will guide you through an interactive setup process.

    No remotes found, make a new one?
     n) New remote
     s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    +n/s> n
    +name> Liara
     Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
     Choose a number from below, or type in your own value
     [snip]
    -XX / Jottacloud
    -   \ "jottacloud"
    +XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Liara, Minio)
    +   \ "s3"
     [snip]
    -Storage> jottacloud
    -** See help for jottacloud backend at: https://rclone.org/jottacloud/ **
    -
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    +Storage> s3
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    +access_key_id> YOURACCESSKEY
    +AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    +secret_access_key> YOURSECRETACCESSKEY
    +Region to connect to.
    +Choose a number from below, or type in your own value
    +   / The default endpoint
    + 1 | US Region, Northern Virginia, or Pacific Northwest.
    +   | Leave location constraint empty.
    +   \ "us-east-1"
    +[snip]
    +region>
    +Endpoint for S3 API.
    +Leave blank if using Liara to use the default endpoint for the region.
    +Specify if using an S3 clone such as Ceph.
    +endpoint> storage.iran.liara.space
    +Canned ACL used when creating buckets and/or storing objects in S3.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Choose a number from below, or type in your own value
    + 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    +   \ "private"
    +[snip]
    +acl>
    +The server-side encryption algorithm used when storing this object in S3.
    +Choose a number from below, or type in your own value
    + 1 / None
    +   \ ""
    + 2 / AES256
    +   \ "AES256"
    +server_side_encryption>
    +The storage class to use when storing objects in S3.
    +Choose a number from below, or type in your own value
    + 1 / Default
    +   \ ""
    + 2 / Standard storage class
    +   \ "STANDARD"
    +storage_class>
     Remote config
    -Use legacy authentication?.
    -This is only required for certain whitelabel versions of Jottacloud and not recommended for normal users.
    -y) Yes
    -n) No (default)
    -y/n> n
    -
    -Generate a personal login token here: https://www.jottacloud.com/web/secure
    -Login Token> <your token here>
    -
    -Do you want to use a non standard device/mountpoint e.g. for accessing files uploaded using the official Jottacloud client?
    -
    -y) Yes
    -n) No
    -y/n> y
    -Please select the device to use. Normally this will be Jotta
    -Choose a number from below, or type in an existing value
    - 1 > DESKTOP-3H31129
    - 2 > Jotta
    -Devices> 2
    -Please select the mountpoint to user. Normally this will be Archive
    -Choose a number from below, or type in an existing value
    - 1 > Archive
    - 2 > Links
    - 3 > Sync
    -
    -Mountpoints> 1
     --------------------
    -[jotta]
    -type = jottacloud
    -token = {........}
    -device = Jotta
    -mountpoint = Archive
    -configVersion = 1
    +[Liara]
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +endpoint = storage.iran.liara.space
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
     --------------------
     y) Yes this is OK
     e) Edit this remote
     d) Delete this remote
     y/e/d> y
    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your Jottacloud

    -
    rclone lsd remote:
    -

    List all the files in your Jottacloud

    -
    rclone ls remote:
    -

    To copy a local directory to an Jottacloud directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Devices and Mountpoints

    -

    The official Jottacloud client registers a device for each computer you install it on, and then creates a mountpoint for each folder you select for Backup. The web interface uses a special device called Jotta for the Archive and Sync mountpoints.

    -

    With rclone you'll want to use the Jotta/Archive device/mountpoint in most cases, however if you want to access files uploaded by any of the official clients rclone provides the option to select other devices and mountpoints during config. Note that uploading files is currently not supported to other devices than Jotta.

    -

    The built-in Jotta device may also contain several other mountpoints, such as: Latest, Links, Shared and Trash. These are special mountpoints with a different internal representation than the "regular" mountpoints. Rclone will only to a very limited degree support them. Generally you should avoid these, unless you know what you are doing.

    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Note that the implementation in Jottacloud always uses only a single API request to get the entire list, so for large folders this could lead to long wait time before the first results are shown.

    -

    Note also that with rclone version 1.58 and newer information about MIME types are not available when using --fast-list.

    -

    Modified time and hashes

    -

    Jottacloud allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    Jottacloud supports MD5 type hashes, so you can use the --checksum flag.

    -

    Note that Jottacloud requires the MD5 hash before upload so if the source does not have an MD5 checksum then the file will be cached temporarily on disk (in location given by --temp-dir) before it is uploaded. Small files will be cached in memory - see the --jottacloud-md5-memory-limit flag. When uploading from local disk the source checksum is always available, so this does not apply. Starting with rclone version 1.52 the same is true for crypted remotes (in older versions the crypt backend would not calculate hashes for uploads from local disk, so the Jottacloud backend had to do it as described above).

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    "0x22
    *0x2A
    :0x3A
    <0x3C
    >0x3E
    ?0x3F
    |0x7C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in XML strings.

    -

    Deleting files

    -

    By default, rclone will send all files to the trash when deleting files. They will be permanently deleted automatically after 30 days. You may bypass the trash and permanently delete files immediately by using the --jottacloud-hard-delete flag, or set the equivalent environment variable. Emptying the trash is supported by the cleanup command.

    -

    Versions

    -

    Jottacloud supports file versioning. When rclone uploads a new version of a file it creates a new version of it. Currently rclone only supports retrieving the current version but older versions can be accessed via the Jottacloud Website.

    -

    Versioning can be disabled by --jottacloud-no-versions option. This is achieved by deleting the remote file prior to uploading a new version. If the upload the fails no version of the file will be available in the remote.

    -

    Quota information

    -

    To view your current quota you can use the rclone about remote: command which will display your usage limit (unless it is unlimited) and the current usage.

    -

    Advanced options

    -

    Here are the advanced options specific to jottacloud (Jottacloud).

    -

    --jottacloud-md5-memory-limit

    -

    Files bigger than this will be cached on disk to calculate the MD5 if required.

    -

    Properties:

    - -

    --jottacloud-trashed-only

    -

    Only show files that are in the trash.

    -

    This will show trashed files in their original directory structure.

    -

    Properties:

    - -

    --jottacloud-hard-delete

    -

    Delete files permanently rather than putting them into the trash.

    -

    Properties:

    - -

    --jottacloud-upload-resume-limit

    -

    Files bigger than this can be resumed if the upload fail's.

    -

    Properties:

    - -

    --jottacloud-no-versions

    -

    Avoid server side versioning by deleting files and recreating files instead of overwriting them.

    -

    Properties:

    - -

    --jottacloud-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Note that Jottacloud is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    There are quite a few characters that can't be in Jottacloud file names. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a ? in it will be mapped to ? instead.

    -

    Jottacloud only supports filenames up to 255 characters in length.

    -

    Troubleshooting

    -

    Jottacloud exhibits some inconsistent behaviours regarding deleted files and folders which may cause Copy, Move and DirMove operations to previously deleted paths to fail. Emptying the trash should help in such cases.

    -

    Koofr

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for Koofr involves creating an application password for rclone. You can do that by opening the Koofr web application, giving the password a nice name like rclone and clicking on generate.

    -

    Here is an example of how to make a remote called koofr. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    +

    This will leave the config file looking like this.

    +
    [Liara]
    +type = s3
    +provider = Liara
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region =
    +endpoint = storage.iran.liara.space
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
    +

    ArvanCloud

    +

    ArvanCloud ArvanCloud Object Storage goes beyond the limited traditional file storage. It gives you access to backup and archived files and allows sharing. Files like profile image in the app, images sent by users or scanned documents can be stored securely and easily in our Object Storage service.

    +

    ArvanCloud provides an S3 interface which can be configured for use with rclone like this.

    No remotes found, make a new one?
     n) New remote
     s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> koofr
    -Option Storage.
    +n/s> n
    +name> ArvanCloud
     Type of storage to configure.
    -Choose a number from below, or type in your own value.
    +Choose a number from below, or type in your own value
    +[snip]
    +XX / Amazon S3 (also Dreamhost, Ceph, ChinaMobile, ArvanCloud, Liara, Minio)
    +   \ "s3"
    +[snip]
    +Storage> s3
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID - leave blank for anonymous access or runtime credentials.
    +access_key_id> YOURACCESSKEY
    +AWS Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    +secret_access_key> YOURSECRETACCESSKEY
    +Region to connect to.
    +Choose a number from below, or type in your own value
    +   / The default endpoint - a good choice if you are unsure.
    + 1 | US Region, Northern Virginia, or Pacific Northwest.
    +   | Leave location constraint empty.
    +   \ "us-east-1"
    +[snip]
    +region> 
    +Endpoint for S3 API.
    +Leave blank if using ArvanCloud to use the default endpoint for the region.
    +Specify if using an S3 clone such as Ceph.
    +endpoint> s3.arvanstorage.com
    +Location constraint - must be set to match the Region. Used when creating buckets only.
    +Choose a number from below, or type in your own value
    + 1 / Empty for Iran-Tehran Region.
    +   \ ""
     [snip]
    -22 / Koofr, Digi Storage and other Koofr-compatible storage providers
    -   \ (koofr)
    +location_constraint>
    +Canned ACL used when creating buckets and/or storing objects in S3.
    +For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
    +Choose a number from below, or type in your own value
    + 1 / Owner gets FULL_CONTROL. No one else has access rights (default).
    +   \ "private"
     [snip]
    -Storage> koofr
    -Option provider.
    -Choose your storage provider.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    - 1 / Koofr, https://app.koofr.net/
    -   \ (koofr)
    - 2 / Digi Storage, https://storage.rcs-rds.ro/
    -   \ (digistorage)
    - 3 / Any other Koofr API compatible storage service
    -   \ (other)
    -provider> 1    
    -Option user.
    -Your user name.
    -Enter a value.
    -user> USERNAME
    -Option password.
    -Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password).
    -Choose an alternative below.
    -y) Yes, type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Edit advanced config?
    -y) Yes
    -n) No (default)
    -y/n> n
    +acl>
    +The server-side encryption algorithm used when storing this object in S3.
    +Choose a number from below, or type in your own value
    + 1 / None
    +   \ ""
    + 2 / AES256
    +   \ "AES256"
    +server_side_encryption>
    +The storage class to use when storing objects in S3.
    +Choose a number from below, or type in your own value
    + 1 / Default
    +   \ ""
    + 2 / Standard storage class
    +   \ "STANDARD"
    +storage_class>
     Remote config
     --------------------
    -[koofr]
    -type = koofr
    -provider = koofr
    -user = USERNAME
    -password = *** ENCRYPTED ***
    +[ArvanCloud]
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region = ir-thr-at1
    +endpoint = s3.arvanstorage.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
     --------------------
    -y) Yes this is OK (default)
    +y) Yes this is OK
     e) Edit this remote
     d) Delete this remote
     y/e/d> y
    -

    You can choose to edit advanced config in order to enter your own service URL if you use an on-premise or white label Koofr instance, or choose an alternative mount instead of your primary storage.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your Koofr

    -
    rclone lsd koofr:
    -

    List all the files in your Koofr

    -
    rclone ls koofr:
    -

    To copy a local directory to an Koofr directory called backup

    -
    rclone copy /home/source koofr:backup
    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in XML strings.

    -

    Standard options

    -

    Here are the standard options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).

    -

    --koofr-provider

    -

    Choose your storage provider.

    -

    Properties:

    - -

    --koofr-endpoint

    -

    The Koofr API endpoint to use.

    -

    Properties:

    - -

    --koofr-user

    -

    Your user name.

    -

    Properties:

    - -

    --koofr-password

    -

    Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password).

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --koofr-password

    -

    Your password for rclone (generate one at https://storage.rcs-rds.ro/app/admin/preferences/password).

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --koofr-password

    -

    Your password for rclone (generate one at your service's settings page).

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).

    -

    --koofr-mountid

    -

    Mount ID of the mount to use.

    -

    If omitted, the primary mount is used.

    -

    Properties:

    - -

    --koofr-setmtime

    -

    Does the backend support setting modification time.

    -

    Set this to false if you use a mount ID that points to a Dropbox or Amazon Drive backend.

    -

    Properties:

    - -

    --koofr-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Note that Koofr is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    Providers

    -

    Koofr

    -

    This is the original Koofr storage provider used as main example and described in the configuration section above.

    -

    Digi Storage

    -

    Digi Storage is a cloud storage service run by Digi.ro that provides a Koofr API.

    -

    Here is an example of how to make a remote called ds. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    +

    This will leave the config file looking like this.

    +
    [ArvanCloud]
    +type = s3
    +provider = ArvanCloud
    +env_auth = false
    +access_key_id = YOURACCESSKEY
    +secret_access_key = YOURSECRETACCESSKEY
    +region =
    +endpoint = s3.arvanstorage.com
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =
    +

    Tencent COS

    +

    Tencent Cloud Object Storage (COS) is a distributed storage service offered by Tencent Cloud for unstructured data. It is secure, stable, massive, convenient, low-delay and low-cost.

    +

    To configure access to Tencent COS, follow the steps below:

    +
      +
    1. Run rclone config and select n for a new remote.
    2. +
    +
    rclone config
    +No remotes found, make a new one?
     n) New remote
     s) Set configuration password
     q) Quit config
    -n/s/q> n
    -name> ds
    -Option Storage.
    -Type of storage to configure.
    -Choose a number from below, or type in your own value.
    +n/s/q> n
    +
      +
    1. Give the name of the configuration. For example, name it 'cos'.
    2. +
    +
    name> cos
    +
      +
    1. Select s3 storage.
    2. +
    +
    Choose a number from below, or type in your own value
    +1 / 1Fichier
    +   \ "fichier"
    + 2 / Alias for an existing remote
    +   \ "alias"
    + 3 / Amazon Drive
    +   \ "amazon cloud drive"
    + 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, ChinaMobile, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, Liara, Minio, and Tencent COS
    +   \ "s3"
     [snip]
    -22 / Koofr, Digi Storage and other Koofr-compatible storage providers
    -   \ (koofr)
    +Storage> s3
    +
      +
    1. Select TencentCOS provider.
    2. +
    +
    Choose a number from below, or type in your own value
    +1 / Amazon Web Services (AWS) S3
    +   \ "AWS"
     [snip]
    -Storage> koofr
    -Option provider.
    -Choose your storage provider.
    -Choose a number from below, or type in your own value.
    -Press Enter to leave empty.
    - 1 / Koofr, https://app.koofr.net/
    -   \ (koofr)
    - 2 / Digi Storage, https://storage.rcs-rds.ro/
    -   \ (digistorage)
    - 3 / Any other Koofr API compatible storage service
    -   \ (other)
    -provider> 2
    -Option user.
    -Your user name.
    -Enter a value.
    -user> USERNAME
    -Option password.
    -Your password for rclone (generate one at https://storage.rcs-rds.ro/app/admin/preferences/password).
    -Choose an alternative below.
    -y) Yes, type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Edit advanced config?
    +11 / Tencent Cloud Object Storage (COS)
    +   \ "TencentCOS"
    +[snip]
    +provider> TencentCOS
    +
      +
    1. Enter your SecretId and SecretKey of Tencent Cloud.
    2. +
    +
    Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Enter a boolean value (true or false). Press Enter for the default ("false").
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +env_auth> 1
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +access_key_id> AKIDxxxxxxxxxx
    +AWS Secret Access Key (password)
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +secret_access_key> xxxxxxxxxxx
    +
      +
    1. Select endpoint for Tencent COS. This is the standard endpoint for different region.
    2. +
    +
     1 / Beijing Region.
    +   \ "cos.ap-beijing.myqcloud.com"
    + 2 / Nanjing Region.
    +   \ "cos.ap-nanjing.myqcloud.com"
    + 3 / Shanghai Region.
    +   \ "cos.ap-shanghai.myqcloud.com"
    + 4 / Guangzhou Region.
    +   \ "cos.ap-guangzhou.myqcloud.com"
    +[snip]
    +endpoint> 4
    +
      +
    1. Choose acl and storage class.
    2. +
    +
    Note that this ACL is applied when server-side copying objects as S3
    +doesn't copy the ACL from the source but rather writes a fresh one.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    + 1 / Owner gets Full_CONTROL. No one else has access rights (default).
    +   \ "default"
    +[snip]
    +acl> 1
    +The storage class to use when storing new objects in Tencent COS.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    + 1 / Default
    +   \ ""
    +[snip]
    +storage_class> 1
    +Edit advanced config? (y/n)
     y) Yes
     n) No (default)
     y/n> n
    +Remote config
     --------------------
    -[ds]
    -type = koofr
    -provider = digistorage
    -user = USERNAME
    -password = *** ENCRYPTED ***
    +[cos]
    +type = s3
    +provider = TencentCOS
    +env_auth = false
    +access_key_id = xxx
    +secret_access_key = xxx
    +endpoint = cos.ap-guangzhou.myqcloud.com
    +acl = default
     --------------------
     y) Yes this is OK (default)
     e) Edit this remote
     d) Delete this remote
    -y/e/d> y
    -

    Other

    -

    You may also want to use another, public or private storage provider that runs a Koofr API compatible service, by simply providing the base URL to connect to.

    -

    Here is an example of how to make a remote called other. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    +y/e/d> y +Current remotes: + +Name Type +==== ==== +cos s3
    +

    Netease NOS

    +

    For Netease NOS configure as per the configurator rclone config setting the provider Netease. This will automatically set force_path_style = false which is necessary for it to run properly.

    +

    Petabox

    +

    Here is an example of making a Petabox configuration. First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    No remotes found, make a new one?
     n) New remote
     s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> other
    +n/s> n
    +
    +Enter name for new remote.
    +name> My Petabox Storage
    +
     Option Storage.
     Type of storage to configure.
     Choose a number from below, or type in your own value.
     [snip]
    -22 / Koofr, Digi Storage and other Koofr-compatible storage providers
    -   \ (koofr)
    +XX / Amazon S3 Compliant Storage Providers including AWS, ...
    +   \ "s3"
     [snip]
    -Storage> koofr
    +Storage> s3
    +
     Option provider.
    -Choose your storage provider.
    +Choose your S3 provider.
     Choose a number from below, or type in your own value.
     Press Enter to leave empty.
    - 1 / Koofr, https://app.koofr.net/
    -   \ (koofr)
    - 2 / Digi Storage, https://storage.rcs-rds.ro/
    -   \ (digistorage)
    - 3 / Any other Koofr API compatible storage service
    -   \ (other)
    -provider> 3
    -Option endpoint.
    -The Koofr API endpoint to use.
    -Enter a value.
    -endpoint> https://koofr.other.org
    -Option user.
    -Your user name.
    -Enter a value.
    -user> USERNAME
    -Option password.
    -Your password for rclone (generate one at your service's settings page).
    -Choose an alternative below.
    -y) Yes, type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Edit advanced config?
    -y) Yes
    -n) No (default)
    -y/n> n
    ---------------------
    -[other]
    -type = koofr
    -provider = other
    -endpoint = https://koofr.other.org
    -user = USERNAME
    -password = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Mail.ru Cloud

    -

    Mail.ru Cloud is a cloud storage provided by a Russian internet company Mail.Ru Group. The official desktop client is Disk-O:, available on Windows and Mac OS.

    -

    Currently it is recommended to disable 2FA on Mail.ru accounts intended for rclone until it gets eventually implemented.

    -

    Features highlights

    - -

    Configuration

    -

    Here is an example of making a mailru configuration. First create a Mail.ru Cloud account and choose a tariff, then run

    -
    rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Mail.ru Cloud
    -   \ "mailru"
     [snip]
    -Storage> mailru
    -User name (usually email)
    -Enter a string value. Press Enter for the default ("").
    -user> username@mail.ru
    -Password
    -y) Yes type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Skip full upload if there is another file with same data hash.
    -This feature is called "speedup" or "put by hash". It is especially efficient
    -in case of generally available files like popular books, video or audio clips
    +XX / Petabox Object Storage
    +   \ (Petabox)
     [snip]
    -Enter a boolean value (true or false). Press Enter for the default ("true").
    -Choose a number from below, or type in your own value
    - 1 / Enable
    -   \ "true"
    - 2 / Disable
    -   \ "false"
    -speedup_enable> 1
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    ---------------------
    -[remote]
    -type = mailru
    -user = username@mail.ru
    -pass = *** ENCRYPTED ***
    -speedup_enable = true
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Configuration of this backend does not require a local web browser. You can use the configured backend as shown below:

    -

    See top level directories

    -
    rclone lsd remote:
    -

    Make a new directory

    -
    rclone mkdir remote:directory
    -

    List the contents of a directory

    -
    rclone ls remote:directory
    -

    Sync /home/local/directory to the remote path, deleting any excess files in the path.

    -
    rclone sync -i /home/local/directory remote:directory
    -

    Modified time

    -

    Files support a modification time attribute with up to 1 second precision. Directories do not have a modification time, which is shown as "Jan 1 1970".

    -

    Hash checksums

    -

    Hash sums use a custom Mail.ru algorithm based on SHA1. If file size is less than or equal to the SHA1 block size (20 bytes), its hash is simply its data right-padded with zero bytes. Hash sum of a larger file is computed as a SHA1 sum of the file data bytes concatenated with a decimal representation of the data length.

    -

    Emptying Trash

    -

    Removing a file or directory actually moves it to the trash, which is not visible to rclone but can be seen in a web browser. The trashed file still occupies part of total quota. If you wish to empty your trash and free some quota, you can use the rclone cleanup remote: command, which will permanently delete all your trashed files. This command does not take any path arguments.

    -

    Quota information

    -

    To view your current quota you can use the rclone about remote: command which will display your usage limit (quota) and the current usage.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    "0x22
    *0x2A
    :0x3A
    <0x3C
    >0x3E
    ?0x3F
    \0x5C
    |0x7C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to mailru (Mail.ru Cloud).

    -

    --mailru-user

    -

    User name (usually email).

    -

    Properties:

    - -

    --mailru-pass

    -

    Password.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --mailru-speedup-enable

    -

    Skip full upload if there is another file with same data hash.

    -

    This feature is called "speedup" or "put by hash". It is especially efficient in case of generally available files like popular books, video or audio clips, because files are searched by hash in all accounts of all mailru users. It is meaningless and ineffective if source file is unique or encrypted. Please note that rclone may need local memory and disk space to calculate content hash in advance and decide whether full upload is required. Also, if rclone does not know file size in advance (e.g. in case of streaming or partial uploads), it will not even try this optimization.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to mailru (Mail.ru Cloud).

    -

    --mailru-speedup-file-patterns

    -

    Comma separated list of file name patterns eligible for speedup (put by hash).

    -

    Patterns are case insensitive and can contain '*' or '?' meta characters.

    -

    Properties:

    - -

    --mailru-speedup-max-disk

    -

    This option allows you to disable speedup (put by hash) for large files.

    -

    Reason is that preliminary hashing can exhaust your RAM or disk space.

    -

    Properties:

    - -

    --mailru-speedup-max-memory

    -

    Files larger than the size given below will always be hashed on disk.

    -

    Properties:

    -
    +

    This will leave the config file looking like this.

    +
    [My Petabox Storage]
    +type = s3
    +provider = Petabox
    +access_key_id = YOUR_ACCESS_KEY_ID
    +secret_access_key = YOUR_SECRET_ACCESS_KEY
    +region = us-east-1
    +endpoint = s3.petabox.io
    +

    Storj

    +

    Storj is a decentralized cloud storage which can be used through its native protocol or an S3 compatible gateway.

    +

    The S3 compatible gateway is configured using rclone config with a type of s3 and with a provider name of Storj. Here is an example run of the configurator.

    +
    Type of storage to configure.
    +Storage> s3
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Choose a number from below, or type in your own boolean value (true or false).
    +Press Enter for the default (false).
    + 1 / Enter AWS credentials in the next step.
    +   \ (false)
    + 2 / Get AWS credentials from the environment (env vars or IAM).
    +   \ (true)
    +env_auth> 1
    +Option access_key_id.
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +access_key_id> XXXX (as shown when creating the access grant)
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +Leave blank for anonymous access or runtime credentials.
    +Enter a value. Press Enter to leave empty.
    +secret_access_key> XXXX (as shown when creating the access grant)
    +Option endpoint.
    +Endpoint of the Shared Gateway.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / EU1 Shared Gateway
    +   \ (gateway.eu1.storjshare.io)
    + 2 / US1 Shared Gateway
    +   \ (gateway.us1.storjshare.io)
    + 3 / Asia-Pacific Shared Gateway
    +   \ (gateway.ap1.storjshare.io)
    +endpoint> 1 (as shown when creating the access grant)
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +

    Note that s3 credentials are generated when you create an access grant.

    +

    Backend quirks

    - +
  • --chunk-size is forced to be 64 MiB or greater. This will use more memory than the default of 5 MiB.
  • +
  • Server side copy is disabled as it isn't currently supported in the gateway.
  • +
  • GetTier and SetTier are not supported.
  • -

    --mailru-check-hash

    -

    What should copy do if file checksum is mismatched or invalid.

    -

    Properties:

    - -

    --mailru-user-agent

    -

    HTTP user agent used internally by client.

    -

    Defaults to "rclone/VERSION" or "--user-agent" provided on command line.

    -

    Properties:

    +

    One general purpose workaround is to set --s3-upload-cutoff 5G. This means that rclone will upload files smaller than 5GiB as single parts. Note that this can be set in the config file with upload_cutoff = 5G or configured in the advanced settings. If you regularly transfer files larger than 5G then using --checksum or --size-only in rclone sync is the recommended workaround.

    +

    Comparison with the native protocol

    +

    Use the the native protocol to take advantage of client-side encryption as well as to achieve the best possible download performance. Uploads will be erasure-coded locally, thus a 1gb upload will result in 2.68gb of data being uploaded to storage nodes across the network.

    +

    Use this backend and the S3 compatible Hosted Gateway to increase upload performance and reduce the load on your systems and network. Uploads will be encrypted and erasure-coded server-side, thus a 1GB upload will result in only in 1GB of data being uploaded to storage nodes across the network.

    +

    For more detailed comparison please check the documentation of the storj backend.

    +

    Limitations

    +

    rclone about is not supported by the S3 backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    +

    See List of backends that do not support rclone about and rclone about

    +

    Synology C2 Object Storage

    +

    Synology C2 Object Storage provides a secure, S3-compatible, and cost-effective cloud storage solution without API request, download fees, and deletion penalty.

    +

    The S3 compatible gateway is configured using rclone config with a type of s3 and with a provider name of Synology. Here is an example run of the configurator.

    +

    First run:

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +
    +n/s/q> n
    +
    +Enter name for new remote.1
    +name> syno
    +
    +Type of storage to configure.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    +
    + 5 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, Ceph, China Mobile, Cloudflare, GCS, ArvanCloud, DigitalOcean, Dreamhost, Huawei OBS, IBM COS, IDrive e2, IONOS Cloud, Liara, Lyve Cloud, Minio, Netease, Petabox, RackCorp, Scaleway, SeaweedFS, StackPath, Storj, Synology, Tencent COS, Qiniu and Wasabi
    +   \ "s3"
    +
    +Storage> s3
    +
    +Choose your S3 provider.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    + 24 / Synology C2 Object Storage
    +   \ (Synology)
    +
    +provider> Synology
    +
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    +Only applies if access_key_id and secret_access_key is blank.
    +Enter a boolean value (true or false). Press Enter for the default ("false").
    +Choose a number from below, or type in your own value
    + 1 / Enter AWS credentials in the next step
    +   \ "false"
    + 2 / Get AWS credentials from the environment (env vars or IAM)
    +   \ "true"
    +
    +env_auth> 1
    +
    +AWS Access Key ID.
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +
    +access_key_id> accesskeyid
    +
    +AWS Secret Access Key (password)
    +Leave blank for anonymous access or runtime credentials.
    +Enter a string value. Press Enter for the default ("").
    +
    +secret_access_key> secretaccesskey
    +
    +Region where your data stored.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / Europe Region 1
    +   \ (eu-001)
    + 2 / Europe Region 2
    +   \ (eu-002)
    + 3 / US Region 1
    +   \ (us-001)
    + 4 / US Region 2
    +   \ (us-002)
    + 5 / Asia (Taiwan)
    +   \ (tw-001)
    +
    +region > 1
    +
    +Option endpoint.
    +Endpoint for Synology C2 Object Storage API.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    + 1 / EU Endpoint 1
    +   \ (eu-001.s3.synologyc2.net)
    + 2 / US Endpoint 1
    +   \ (us-001.s3.synologyc2.net)
    + 3 / TW Endpoint 1
    +   \ (tw-001.s3.synologyc2.net)
    +
    +endpoint> 1
    +
    +Option location_constraint.
    +Location constraint - must be set to match the Region.
    +Leave blank if not sure. Used when creating buckets only.
    +Enter a value. Press Enter to leave empty.
    +location_constraint>
    +
    +Edit advanced config? (y/n)
    +y) Yes
    +n) No
    +y/n> y
    +
    +Option no_check_bucket.
    +If set, don't attempt to check the bucket exists or create it.
    +This can be useful when trying to minimise the number of transactions
    +rclone does if you know the bucket exists already.
    +It can also be needed if the user you are using does not have bucket
    +creation permissions. Before v1.52.0 this would have passed silently
    +due to a bug.
    +Enter a boolean value (true or false). Press Enter for the default (true).
    +
    +no_check_bucket> true
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: Synology
    +- region: eu-001
    +- endpoint: eu-001.s3.synologyc2.net
    +- no_check_bucket: true
    +Keep this "syno" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +
    +y/e/d> y
    +
    +#  Backblaze B2
    +
    +B2 is [Backblaze's cloud storage system](https://www.backblaze.com/b2/).
    +
    +Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g. `remote:bucket/path/to/dir`.
    +
    +## Configuration
    +
    +Here is an example of making a b2 configuration.  First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process.  To authenticate
    +you will either need your Account ID (a short hex number) and Master
    +Application Key (a long hex number) OR an Application Key, which is the
    +recommended method. See below for further details on generating and using
    +an Application Key.
    +
    +

    No remotes found, make a new one? n) New remote q) Quit config n/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Backblaze B2  "b2" [snip] Storage> b2 Account ID or Application Key ID account> 123456789abc Application Key key> 0123456789abcdef0123456789abcdef0123456789 Endpoint for the service - leave blank normally. endpoint> Remote config -------------------- [remote] account = 123456789abc key = 0123456789abcdef0123456789abcdef0123456789 endpoint = -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `remote` and can now be used like this
    +
    +See all buckets
    +
    +    rclone lsd remote:
    +
    +Create a new bucket
    +
    +    rclone mkdir remote:bucket
    +
    +List the contents of a bucket
    +
    +    rclone ls remote:bucket
    +
    +Sync `/home/local/directory` to the remote bucket, deleting any
    +excess files in the bucket.
    +
    +    rclone sync --interactive /home/local/directory remote:bucket
    +
    +### Application Keys
    +
    +B2 supports multiple [Application Keys for different access permission
    +to B2 Buckets](https://www.backblaze.com/b2/docs/application_keys.html).
    +
    +You can use these with rclone too; you will need to use rclone version 1.43
    +or later.
    +
    +Follow Backblaze's docs to create an Application Key with the required
    +permission and add the `applicationKeyId` as the `account` and the
    +`Application Key` itself as the `key`.
    +
    +Note that you must put the _applicationKeyId_ as the `account` – you
    +can't use the master Account ID.  If you try then B2 will return 401
    +errors.
    +
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +### Modified time
    +
    +The modified time is stored as metadata on the object as
    +`X-Bz-Info-src_last_modified_millis` as milliseconds since 1970-01-01
    +in the Backblaze standard.  Other tools should be able to use this as
    +a modified time.
    +
    +Modified times are used in syncing and are fully supported. Note that
    +if a modification time needs to be updated on an object then it will
    +create a new version of the object.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +Note that in 2020-05 Backblaze started allowing \ characters in file
    +names. Rclone hasn't changed its encoding as this could cause syncs to
    +re-transfer files. If you want rclone not to replace \ then see the
    +`--b2-encoding` flag below and remove the `BackSlash` from the
    +string. This can be set in the config.
    +
    +### SHA1 checksums
    +
    +The SHA1 checksums of the files are checked on upload and download and
    +will be used in the syncing process.
    +
    +Large files (bigger than the limit in `--b2-upload-cutoff`) which are
    +uploaded in chunks will store their SHA1 on the object as
    +`X-Bz-Info-large_file_sha1` as recommended by Backblaze.
    +
    +For a large file to be uploaded with an SHA1 checksum, the source
    +needs to support SHA1 checksums. The local disk supports SHA1
    +checksums so large file transfers from local disk will have an SHA1.
    +See [the overview](https://rclone.org/overview/#features) for exactly which remotes
    +support SHA1.
    +
    +Sources which don't support SHA1, in particular `crypt` will upload
    +large files without SHA1 checksums.  This may be fixed in the future
    +(see [#1767](https://github.com/rclone/rclone/issues/1767)).
    +
    +Files sizes below `--b2-upload-cutoff` will always have an SHA1
    +regardless of the source.
    +
    +### Transfers
    +
    +Backblaze recommends that you do lots of transfers simultaneously for
    +maximum speed.  In tests from my SSD equipped laptop the optimum
    +setting is about `--transfers 32` though higher numbers may be used
    +for a slight speed improvement. The optimum number for you may vary
    +depending on your hardware, how big the files are, how much you want
    +to load your computer, etc.  The default of `--transfers 4` is
    +definitely too low for Backblaze B2 though.
    +
    +Note that uploading big files (bigger than 200 MiB by default) will use
    +a 96 MiB RAM buffer by default.  There can be at most `--transfers` of
    +these in use at any moment, so this sets the upper limit on the memory
    +used.
    +
    +### Versions
    +
    +When rclone uploads a new version of a file it creates a [new version
    +of it](https://www.backblaze.com/b2/docs/file_versions.html).
    +Likewise when you delete a file, the old version will be marked hidden
    +and still be available.  Conversely, you may opt in to a "hard delete"
    +of files with the `--b2-hard-delete` flag which would permanently remove
    +the file instead of hiding it.
    +
    +Old versions of files, where available, are visible using the 
    +`--b2-versions` flag.
    +
    +It is also possible to view a bucket as it was at a certain point in time,
    +using the `--b2-version-at` flag. This will show the file versions as they
    +were at that time, showing files that have been deleted afterwards, and
    +hiding files that were created since.
    +
    +If you wish to remove all the old versions then you can use the
    +`rclone cleanup remote:bucket` command which will delete all the old
    +versions of files, leaving the current ones intact.  You can also
    +supply a path and only old versions under that path will be deleted,
    +e.g. `rclone cleanup remote:bucket/path/to/stuff`.
    +
    +Note that `cleanup` will remove partially uploaded files from the bucket
    +if they are more than a day old.
    +
    +When you `purge` a bucket, the current and the old versions will be
    +deleted then the bucket will be deleted.
    +
    +However `delete` will cause the current versions of the files to
    +become hidden old versions.
    +
    +Here is a session showing the listing and retrieval of an old
    +version followed by a `cleanup` of the old versions.
    +
    +Show current version and all the versions with `--b2-versions` flag.
    +
    +

    $ rclone -q ls b2:cleanup-test 9 one.txt

    +

    $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt 8 one-v2016-07-04-141032-000.txt 16 one-v2016-07-04-141003-000.txt 15 one-v2016-07-02-155621-000.txt

    +
    
    +Retrieve an old version
    +
    +

    $ rclone -q --b2-versions copy b2:cleanup-test/one-v2016-07-04-141003-000.txt /tmp

    +

    $ ls -l /tmp/one-v2016-07-04-141003-000.txt -rw-rw-r-- 1 ncw ncw 16 Jul 2 17:46 /tmp/one-v2016-07-04-141003-000.txt

    +
    
    +Clean up all the old versions and show that they've gone.
    +
    +

    $ rclone -q cleanup b2:cleanup-test

    +

    $ rclone -q ls b2:cleanup-test 9 one.txt

    +

    $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt

    +
    
    +#### Versions naming caveat
    +
    +When using `--b2-versions` flag rclone is relying on the file name
    +to work out whether the objects are versions or not. Versions' names
    +are created by inserting timestamp between file name and its extension.
    +
        9 file.txt
    +    8 file-v2023-07-17-161032-000.txt
    +   16 file-v2023-06-15-141003-000.txt
    +
    If there are real files present with the same names as versions, then
    +behaviour of `--b2-versions` can be unpredictable.
    +
    +### Data usage
    +
    +It is useful to know how many requests are sent to the server in different scenarios.
    +
    +All copy commands send the following 4 requests:
    +
    +

    /b2api/v1/b2_authorize_account /b2api/v1/b2_create_bucket /b2api/v1/b2_list_buckets /b2api/v1/b2_list_file_names

    +
    
    +The `b2_list_file_names` request will be sent once for every 1k files
    +in the remote path, providing the checksum and modification time of
    +the listed files. As of version 1.33 issue
    +[#818](https://github.com/rclone/rclone/issues/818) causes extra requests
    +to be sent when using B2 with Crypt. When a copy operation does not
    +require any files to be uploaded, no more requests will be sent.
    +
    +Uploading files that do not require chunking, will send 2 requests per
    +file upload:
    +
    +

    /b2api/v1/b2_get_upload_url /b2api/v1/b2_upload_file/

    +
    
    +Uploading files requiring chunking, will send 2 requests (one each to
    +start and finish the upload) and another 2 requests for each chunk:
    +
    +

    /b2api/v1/b2_start_large_file /b2api/v1/b2_get_upload_part_url /b2api/v1/b2_upload_part/ /b2api/v1/b2_finish_large_file

    +
    
    +#### Versions
    +
    +Versions can be viewed with the `--b2-versions` flag. When it is set
    +rclone will show and act on older versions of files.  For example
    +
    +Listing without `--b2-versions`
    +
    +

    $ rclone -q ls b2:cleanup-test 9 one.txt

    +
    
    +And with
    +
    +

    $ rclone -q --b2-versions ls b2:cleanup-test 9 one.txt 8 one-v2016-07-04-141032-000.txt 16 one-v2016-07-04-141003-000.txt 15 one-v2016-07-02-155621-000.txt

    +
    
    +Showing that the current version is unchanged but older versions can
    +be seen.  These have the UTC date that they were uploaded to the
    +server to the nearest millisecond appended to them.
    +
    +Note that when using `--b2-versions` no file write operations are
    +permitted, so you can't upload files or delete them.
    +
    +### B2 and rclone link
    +
    +Rclone supports generating file share links for private B2 buckets.
    +They can either be for a file for example:
    +
    +

    ./rclone link B2:bucket/path/to/file.txt https://f002.backblazeb2.com/file/bucket/path/to/file.txt?Authorization=xxxxxxxx

    +
    
    +or if run on a directory you will get:
    +
    +

    ./rclone link B2:bucket/path https://f002.backblazeb2.com/file/bucket/path?Authorization=xxxxxxxx

    +
    
    +you can then use the authorization token (the part of the url from the
    + `?Authorization=` on) on any file path under that directory. For example:
    +
    +

    https://f002.backblazeb2.com/file/bucket/path/to/file1?Authorization=xxxxxxxx https://f002.backblazeb2.com/file/bucket/path/file2?Authorization=xxxxxxxx https://f002.backblazeb2.com/file/bucket/path/folder/file3?Authorization=xxxxxxxx

    +
    
    +
    +### Standard options
    +
    +Here are the Standard options specific to b2 (Backblaze B2).
    +
    +#### --b2-account
    +
    +Account ID or Application Key ID.
    +
    +Properties:
    +
    +- Config:      account
    +- Env Var:     RCLONE_B2_ACCOUNT
    +- Type:        string
    +- Required:    true
    +
    +#### --b2-key
    +
    +Application Key.
    +
    +Properties:
    +
    +- Config:      key
    +- Env Var:     RCLONE_B2_KEY
    +- Type:        string
    +- Required:    true
    +
    +#### --b2-hard-delete
    +
    +Permanently delete files on remote removal, otherwise hide files.
    +
    +Properties:
    +
    +- Config:      hard_delete
    +- Env Var:     RCLONE_B2_HARD_DELETE
    +- Type:        bool
    +- Default:     false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to b2 (Backblaze B2).
    +
    +#### --b2-endpoint
    +
    +Endpoint for the service.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_B2_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --b2-test-mode
    +
    +A flag string for X-Bz-Test-Mode header for debugging.
    +
    +This is for debugging purposes only. Setting it to one of the strings
    +below will cause b2 to return specific errors:
    +
    +  * "fail_some_uploads"
    +  * "expire_some_account_authorization_tokens"
    +  * "force_cap_exceeded"
    +
    +These will be set in the "X-Bz-Test-Mode" header which is documented
    +in the [b2 integrations checklist](https://www.backblaze.com/b2/docs/integration_checklist.html).
    +
    +Properties:
    +
    +- Config:      test_mode
    +- Env Var:     RCLONE_B2_TEST_MODE
    +- Type:        string
    +- Required:    false
    +
    +#### --b2-versions
    +
    +Include old versions in directory listings.
    +
    +Note that when using this no file write operations are permitted,
    +so you can't upload files or delete them.
    +
    +Properties:
    +
    +- Config:      versions
    +- Env Var:     RCLONE_B2_VERSIONS
    +- Type:        bool
    +- Default:     false
    +
    +#### --b2-version-at
    +
    +Show file versions as they were at the specified time.
    +
    +Note that when using this no file write operations are permitted,
    +so you can't upload files or delete them.
    +
    +Properties:
    +
    +- Config:      version_at
    +- Env Var:     RCLONE_B2_VERSION_AT
    +- Type:        Time
    +- Default:     off
    +
    +#### --b2-upload-cutoff
    +
    +Cutoff for switching to chunked upload.
    +
    +Files above this size will be uploaded in chunks of "--b2-chunk-size".
    +
    +This value should be set no larger than 4.657 GiB (== 5 GB).
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_B2_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     200Mi
    +
    +#### --b2-copy-cutoff
    +
    +Cutoff for switching to multipart copy.
    +
    +Any files larger than this that need to be server-side copied will be
    +copied in chunks of this size.
    +
    +The minimum is 0 and the maximum is 4.6 GiB.
    +
    +Properties:
    +
    +- Config:      copy_cutoff
    +- Env Var:     RCLONE_B2_COPY_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     4Gi
    +
    +#### --b2-chunk-size
    +
    +Upload chunk size.
    +
    +When uploading large files, chunk the file into this size.
    +
    +Must fit in memory. These chunks are buffered in memory and there
    +might a maximum of "--transfers" chunks in progress at once.
    +
    +5,000,000 Bytes is the minimum size.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_B2_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     96Mi
    +
    +#### --b2-upload-concurrency
    +
    +Concurrency for multipart uploads.
    +
    +This is the number of chunks of the same file that are uploaded
    +concurrently.
    +
    +Note that chunks are stored in memory and there may be up to
    +"--transfers" * "--b2-upload-concurrency" chunks stored at once
    +in memory.
    +
    +Properties:
    +
    +- Config:      upload_concurrency
    +- Env Var:     RCLONE_B2_UPLOAD_CONCURRENCY
    +- Type:        int
    +- Default:     16
    +
    +#### --b2-disable-checksum
    +
    +Disable checksums for large (> upload cutoff) files.
    +
    +Normally rclone will calculate the SHA1 checksum of the input before
    +uploading it so it can add it to metadata on the object. This is great
    +for data integrity checking but can cause long delays for large files
    +to start uploading.
    +
    +Properties:
    +
    +- Config:      disable_checksum
    +- Env Var:     RCLONE_B2_DISABLE_CHECKSUM
    +- Type:        bool
    +- Default:     false
    +
    +#### --b2-download-url
    +
    +Custom endpoint for downloads.
    +
    +This is usually set to a Cloudflare CDN URL as Backblaze offers
    +free egress for data downloaded through the Cloudflare network.
    +Rclone works with private buckets by sending an "Authorization" header.
    +If the custom endpoint rewrites the requests for authentication,
    +e.g., in Cloudflare Workers, this header needs to be handled properly.
    +Leave blank if you want to use the endpoint provided by Backblaze.
    +
    +The URL provided here SHOULD have the protocol and SHOULD NOT have
    +a trailing slash or specify the /file/bucket subpath as rclone will
    +request files with "{download_url}/file/{bucket_name}/{path}".
    +
    +Example:
    +> https://mysubdomain.mydomain.tld
    +(No trailing "/", "file" or "bucket")
    +
    +Properties:
    +
    +- Config:      download_url
    +- Env Var:     RCLONE_B2_DOWNLOAD_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --b2-download-auth-duration
    +
    +Time before the authorization token will expire in s or suffix ms|s|m|h|d.
    +
    +The duration before the download authorization token will expire.
    +The minimum value is 1 second. The maximum value is one week.
    +
    +Properties:
    +
    +- Config:      download_auth_duration
    +- Env Var:     RCLONE_B2_DOWNLOAD_AUTH_DURATION
    +- Type:        Duration
    +- Default:     1w
    +
    +#### --b2-memory-pool-flush-time
    +
    +How often internal memory buffer pools will be flushed. (no longer used)
    +
    +Properties:
    +
    +- Config:      memory_pool_flush_time
    +- Env Var:     RCLONE_B2_MEMORY_POOL_FLUSH_TIME
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --b2-memory-pool-use-mmap
    +
    +Whether to use mmap buffers in internal memory pool. (no longer used)
    +
    +Properties:
    +
    +- Config:      memory_pool_use_mmap
    +- Env Var:     RCLONE_B2_MEMORY_POOL_USE_MMAP
    +- Type:        bool
    +- Default:     false
    +
    +#### --b2-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_B2_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +`rclone about` is not supported by the B2 backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Box
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +The initial setup for Box involves getting a token from Box which you
    +can do either in your browser, or with a config.json downloaded from Box
    +to use JWT authentication.  `rclone config` walks you through it.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Box  "box" [snip] Storage> box Box App Client Id - leave blank normally. client_id> Box App Client Secret - leave blank normally. client_secret> Box App config.json location Leave blank normally. Enter a string value. Press Enter for the default (""). box_config_file> Box App Primary Access Token Leave blank normally. Enter a string value. Press Enter for the default (""). access_token>

    +

    Enter a string value. Press Enter for the default ("user"). Choose a number from below, or type in your own value 1 / Rclone should act on behalf of a user  "user" 2 / Rclone should act on behalf of a service account  "enterprise" box_sub_type> Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] client_id = client_secret = token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"XXX"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Box. This only runs from the moment it opens
    +your browser to the moment you get back the verification code.  This
    +is on `http://127.0.0.1:53682/` and this it may require you to unblock
    +it temporarily if you are running a host firewall.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Box
    +
    +    rclone lsd remote:
    +
    +List all the files in your Box
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Box directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Using rclone with an Enterprise account with SSO
    +
    +If you have an "Enterprise" account type with Box with single sign on
    +(SSO), you need to create a password to use Box with rclone. This can
    +be done at your Enterprise Box account by going to Settings, "Account"
    +Tab, and then set the password in the "Authentication" field.
    +
    +Once you have done this, you can setup your Enterprise Box account
    +using the same procedure detailed above in the, using the password you
    +have just set.
    +
    +### Invalid refresh token
    +
    +According to the [box docs](https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens):
    +
    +> Each refresh_token is valid for one use in 60 days.
    +
    +This means that if you
    +
    +  * Don't use the box remote for 60 days
    +  * Copy the config file with a box refresh token in and use it in two places
    +  * Get an error on a token refresh
    +
    +then rclone will return an error which includes the text `Invalid
    +refresh token`.
    +
    +To fix this you will need to use oauth2 again to update the refresh
    +token.  You can use the methods in [the remote setup
    +docs](https://rclone.org/remote_setup/), bearing in mind that if you use the copy the
    +config file method, you should not use that remote on the computer you
    +did the authentication on.
    +
    +Here is how to do it.
    +
    +

    $ rclone config Current remotes:

    +

    Name Type ==== ==== remote box

    +
      +
    1. Edit existing remote
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> e Choose a number from below, or type in an existing value 1 > remote remote> remote -------------------- [remote] type = box token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2017-07-08T23:40:08.059167677+01:00"} -------------------- Edit remote Value "client_id" = "" Edit? (y/n)>
    14. +
    15. Yes
    16. +
    17. No y/n> n Value "client_secret" = "" Edit? (y/n)>
    18. +
    19. Yes
    20. +
    21. No y/n> n Remote config Already have a token - refresh?
    22. +
    23. Yes
    24. +
    25. No y/n> y Use web browser to automatically authenticate rclone with remote?
    26. +
    -

    --mailru-quirks

    -

    Comma separated list of internal maintenance flags.

    -

    This option must not be used by an ordinary user. It is intended only to facilitate remote troubleshooting of backend issues. Strict meaning of flags is not documented and not guaranteed to persist between releases. Quirks will be removed when the backend grows stable. Supported quirks: atomicmkdir binlist unknowndirs

    -

    Properties:

    +
      +
    1. Yes
    2. +
    3. No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] type = box token = {"access_token":"YYY","token_type":"bearer","refresh_token":"YYY","expiry":"2017-07-23T12:22:29.259137901+01:00"} --------------------
    4. +
    5. Yes this is OK
    6. +
    7. Edit this remote
    8. +
    9. Delete this remote y/e/d> y
    10. +
    +
    
    +### Modified time and hashes
    +
    +Box allows modification times to be set on objects accurate to 1
    +second.  These will be used to detect whether objects need syncing or
    +not.
    +
    +Box supports SHA1 type hashes, so you can use the `--checksum`
    +flag.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \           |
    +
    +File names can also not end with the following characters.
    +These only get replaced if they are the last character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Transfers
    +
    +For files above 50 MiB rclone will use a chunked transfer.  Rclone will
    +upload up to `--transfers` chunks at the same time (shared among all
    +the multipart uploads).  Chunks are buffered in memory and are
    +normally 8 MiB so increasing `--transfers` will increase memory use.
    +
    +### Deleting files
    +
    +Depending on the enterprise settings for your user, the item will
    +either be actually deleted from Box or moved to the trash.
    +
    +Emptying the trash is supported via the rclone however cleanup command
    +however this deletes every trashed file and folder individually so it
    +may take a very long time. 
    +Emptying the trash via the  WebUI does not have this limitation 
    +so it is advised to empty the trash via the WebUI.
    +
    +### Root folder ID
    +
    +You can set the `root_folder_id` for rclone.  This is the directory
    +(identified by its `Folder ID`) that rclone considers to be the root
    +of your Box drive.
    +
    +Normally you will leave this blank and rclone will determine the
    +correct root to use itself.
    +
    +However you can set this to restrict rclone to a specific folder
    +hierarchy.
    +
    +In order to do this you will have to find the `Folder ID` of the
    +directory you wish rclone to display.  This will be the last segment
    +of the URL when you open the relevant folder in the Box web
    +interface.
    +
    +So if the folder you want rclone to use has a URL which looks like
    +`https://app.box.com/folder/11xxxxxxxxx8`
    +in the browser, then you use `11xxxxxxxxx8` as
    +the `root_folder_id` in the config.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to box (Box).
    +
    +#### --box-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_BOX_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --box-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_BOX_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --box-box-config-file
    +
    +Box App config.json location
    +
    +Leave blank normally.
    +
    +Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
    +
    +Properties:
    +
    +- Config:      box_config_file
    +- Env Var:     RCLONE_BOX_BOX_CONFIG_FILE
    +- Type:        string
    +- Required:    false
    +
    +#### --box-access-token
    +
    +Box App Primary Access Token
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      access_token
    +- Env Var:     RCLONE_BOX_ACCESS_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --box-box-sub-type
    +
    +
    +
    +Properties:
    +
    +- Config:      box_sub_type
    +- Env Var:     RCLONE_BOX_BOX_SUB_TYPE
    +- Type:        string
    +- Default:     "user"
    +- Examples:
    +    - "user"
    +        - Rclone should act on behalf of a user.
    +    - "enterprise"
    +        - Rclone should act on behalf of a service account.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to box (Box).
    +
    +#### --box-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_BOX_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --box-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_BOX_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --box-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_BOX_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --box-root-folder-id
    +
    +Fill in for rclone to use a non root folder as its starting point.
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_BOX_ROOT_FOLDER_ID
    +- Type:        string
    +- Default:     "0"
    +
    +#### --box-upload-cutoff
    +
    +Cutoff for switching to multipart upload (>= 50 MiB).
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_BOX_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     50Mi
    +
    +#### --box-commit-retries
    +
    +Max number of times to try committing a multipart file.
    +
    +Properties:
    +
    +- Config:      commit_retries
    +- Env Var:     RCLONE_BOX_COMMIT_RETRIES
    +- Type:        int
    +- Default:     100
    +
    +#### --box-list-chunk
    +
    +Size of listing chunk 1-1000.
    +
    +Properties:
    +
    +- Config:      list_chunk
    +- Env Var:     RCLONE_BOX_LIST_CHUNK
    +- Type:        int
    +- Default:     1000
    +
    +#### --box-owned-by
    +
    +Only show items owned by the login (email address) passed in.
    +
    +Properties:
    +
    +- Config:      owned_by
    +- Env Var:     RCLONE_BOX_OWNED_BY
    +- Type:        string
    +- Required:    false
    +
    +#### --box-impersonate
    +
    +Impersonate this user ID when using a service account.
    +
    +Settng this flag allows rclone, when using a JWT service account, to
    +act on behalf of another user by setting the as-user header.
    +
    +The user ID is the Box identifier for a user. User IDs can found for
    +any user via the GET /users endpoint, which is only available to
    +admins, or by calling the GET /users/me endpoint with an authenticated
    +user session.
    +
    +See: https://developer.box.com/guides/authentication/jwt/as-user/
    +
    +
    +Properties:
    +
    +- Config:      impersonate
    +- Env Var:     RCLONE_BOX_IMPERSONATE
    +- Type:        string
    +- Required:    false
    +
    +#### --box-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_BOX_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,RightSpace,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +Note that Box is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +Box file names can't have the `\` character in.  rclone maps this to
    +and from an identical looking unicode equivalent `\` (U+FF3C Fullwidth
    +Reverse Solidus).
    +
    +Box only supports filenames up to 255 characters in length.
    +
    +Box has [API rate limits](https://developer.box.com/guides/api-calls/permissions-and-errors/rate-limits/) that sometimes reduce the speed of rclone.
    +
    +`rclone about` is not supported by the Box backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +## Get your own Box App ID
    +
    +Here is how to create your own Box App ID for rclone:
    +
    +1. Go to the [Box Developer Console](https://app.box.com/developers/console)
    +and login, then click `My Apps` on the sidebar. Click `Create New App`
    +and select `Custom App`.
    +
    +2. In the first screen on the box that pops up, you can pretty much enter
    +whatever you want. The `App Name` can be whatever. For `Purpose` choose
    +automation to avoid having to fill out anything else. Click `Next`.
    +
    +3. In the second screen of the creation screen, select
    +`User Authentication (OAuth 2.0)`. Then click `Create App`.
    +
    +4. You should now be on the `Configuration` tab of your new app. If not,
    +click on it at the top of the webpage. Copy down `Client ID`
    +and `Client Secret`, you'll need those for rclone.
    +
    +5. Under "OAuth 2.0 Redirect URI", add `http://127.0.0.1:53682/`
    +
    +6. For `Application Scopes`, select `Read all files and folders stored in Box`
    +and `Write all files and folders stored in box` (assuming you want to do both).
    +Leave others unchecked. Click `Save Changes` at the top right.
    +
    +#  Cache
    +
    +The `cache` remote wraps another existing remote and stores file structure
    +and its data for long running tasks like `rclone mount`.
    +
    +## Status
    +
    +The cache backend code is working but it currently doesn't
    +have a maintainer so there are [outstanding bugs](https://github.com/rclone/rclone/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3A%22Remote%3A+Cache%22) which aren't getting fixed.
    +
    +The cache backend is due to be phased out in favour of the VFS caching
    +layer eventually which is more tightly integrated into rclone.
    +
    +Until this happens we recommend only using the cache backend if you
    +find you can't work without it. There are many docs online describing
    +the use of the cache backend to minimize API hits and by-and-large
    +these are out of date and the cache backend isn't needed in those
    +scenarios any more.
    +
    +## Configuration
    +
    +To get started you just need to have an existing remote which can be configured
    +with `cache`.
    +
    +Here is an example of how to make a remote called `test-cache`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config n/r/c/s/q> n name> test-cache Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Cache a remote  "cache" [snip] Storage> cache Remote to cache. Normally should contain a ':' and a path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended). remote> local:/test Optional: The URL of the Plex server plex_url> http://127.0.0.1:32400 Optional: The username of the Plex user plex_username> dummyusername Optional: The password of the Plex user y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y Enter the password: password: Confirm the password: password: The size of a chunk. Lower value good for slow connections but can affect seamless reading. Default: 5M Choose a number from below, or type in your own value 1 / 1 MiB  "1M" 2 / 5 MiB  "5M" 3 / 10 MiB  "10M" chunk_size> 2 How much time should object info (file size, file hashes, etc.) be stored in cache. Use a very high value if you don't plan on changing the source FS from outside the cache. Accepted units are: "s", "m", "h". Default: 5m Choose a number from below, or type in your own value 1 / 1 hour  "1h" 2 / 24 hours  "24h" 3 / 24 hours  "48h" info_age> 2 The maximum size of stored chunks. When the storage grows beyond this size, the oldest chunks will be deleted. Default: 10G Choose a number from below, or type in your own value 1 / 500 MiB  "500M" 2 / 1 GiB  "1G" 3 / 10 GiB  "10G" chunk_total_size> 3 Remote config -------------------- [test-cache] remote = local:/test plex_url = http://127.0.0.1:32400 plex_username = dummyusername plex_password = *** ENCRYPTED *** chunk_size = 5M info_age = 48h chunk_total_size = 10G

    +
    
    +You can then use it like this,
    +
    +List directories in top level of your drive
    +
    +    rclone lsd test-cache:
    +
    +List all the files in your drive
    +
    +    rclone ls test-cache:
    +
    +To start a cached mount
    +
    +    rclone mount --allow-other test-cache: /var/tmp/test-cache
    +
    +### Write Features ###
    +
    +### Offline uploading ###
    +
    +In an effort to make writing through cache more reliable, the backend 
    +now supports this feature which can be activated by specifying a
    +`cache-tmp-upload-path`.
    +
    +A files goes through these states when using this feature:
    +
    +1. An upload is started (usually by copying a file on the cache remote)
    +2. When the copy to the temporary location is complete the file is part 
    +of the cached remote and looks and behaves like any other file (reading included)
    +3. After `cache-tmp-wait-time` passes and the file is next in line, `rclone move` 
    +is used to move the file to the cloud provider
    +4. Reading the file still works during the upload but most modifications on it will be prohibited
    +5. Once the move is complete the file is unlocked for modifications as it
    +becomes as any other regular file
    +6. If the file is being read through `cache` when it's actually
    +deleted from the temporary path then `cache` will simply swap the source
    +to the cloud provider without interrupting the reading (small blip can happen though)
    +
    +Files are uploaded in sequence and only one file is uploaded at a time.
    +Uploads will be stored in a queue and be processed based on the order they were added.
    +The queue and the temporary storage is persistent across restarts but
    +can be cleared on startup with the `--cache-db-purge` flag.
    +
    +### Write Support ###
    +
    +Writes are supported through `cache`.
    +One caveat is that a mounted cache remote does not add any retry or fallback
    +mechanism to the upload operation. This will depend on the implementation
    +of the wrapped remote. Consider using `Offline uploading` for reliable writes.
    +
    +One special case is covered with `cache-writes` which will cache the file
    +data at the same time as the upload when it is enabled making it available
    +from the cache store immediately once the upload is finished.
    +
    +### Read Features ###
    +
    +#### Multiple connections ####
    +
    +To counter the high latency between a local PC where rclone is running
    +and cloud providers, the cache remote can split multiple requests to the
    +cloud provider for smaller file chunks and combines them together locally
    +where they can be available almost immediately before the reader usually
    +needs them.
    +
    +This is similar to buffering when media files are played online. Rclone
    +will stay around the current marker but always try its best to stay ahead
    +and prepare the data before.
    +
    +#### Plex Integration ####
    +
    +There is a direct integration with Plex which allows cache to detect during reading
    +if the file is in playback or not. This helps cache to adapt how it queries
    +the cloud provider depending on what is needed for.
    +
    +Scans will have a minimum amount of workers (1) while in a confirmed playback cache
    +will deploy the configured number of workers.
    +
    +This integration opens the doorway to additional performance improvements
    +which will be explored in the near future.
    +
    +**Note:** If Plex options are not configured, `cache` will function with its
    +configured options without adapting any of its settings.
    +
    +How to enable? Run `rclone config` and add all the Plex options (endpoint, username
    +and password) in your remote and it will be automatically enabled.
    +
    +Affected settings:
    +- `cache-workers`: _Configured value_ during confirmed playback or _1_ all the other times
    +
    +##### Certificate Validation #####
    +
    +When the Plex server is configured to only accept secure connections, it is
    +possible to use `.plex.direct` URLs to ensure certificate validation succeeds.
    +These URLs are used by Plex internally to connect to the Plex server securely.
    +
    +The format for these URLs is the following:
    +
    +`https://ip-with-dots-replaced.server-hash.plex.direct:32400/`
    +
    +The `ip-with-dots-replaced` part can be any IPv4 address, where the dots
    +have been replaced with dashes, e.g. `127.0.0.1` becomes `127-0-0-1`.
    +
    +To get the `server-hash` part, the easiest way is to visit
    +
    +https://plex.tv/api/resources?includeHttps=1&X-Plex-Token=your-plex-token
    +
    +This page will list all the available Plex servers for your account
    +with at least one `.plex.direct` link for each. Copy one URL and replace
    +the IP address with the desired address. This can be used as the
    +`plex_url` value.
    +
    +### Known issues ###
    +
    +#### Mount and --dir-cache-time ####
    +
    +--dir-cache-time controls the first layer of directory caching which works at the mount layer.
    +Being an independent caching mechanism from the `cache` backend, it will manage its own entries
    +based on the configured time.
    +
    +To avoid getting in a scenario where dir cache has obsolete data and cache would have the correct
    +one, try to set `--dir-cache-time` to a lower time than `--cache-info-age`. Default values are
    +already configured in this way. 
    +
    +#### Windows support - Experimental ####
    +
    +There are a couple of issues with Windows `mount` functionality that still require some investigations.
    +It should be considered as experimental thus far as fixes come in for this OS.
    +
    +Most of the issues seem to be related to the difference between filesystems
    +on Linux flavors and Windows as cache is heavily dependent on them.
    +
    +Any reports or feedback on how cache behaves on this OS is greatly appreciated.
    + 
    +- https://github.com/rclone/rclone/issues/1935
    +- https://github.com/rclone/rclone/issues/1907
    +- https://github.com/rclone/rclone/issues/1834 
    +
    +#### Risk of throttling ####
    +
    +Future iterations of the cache backend will make use of the pooling functionality
    +of the cloud provider to synchronize and at the same time make writing through it
    +more tolerant to failures. 
    +
    +There are a couple of enhancements in track to add these but in the meantime
    +there is a valid concern that the expiring cache listings can lead to cloud provider
    +throttles or bans due to repeated queries on it for very large mounts.
    +
    +Some recommendations:
    +- don't use a very small interval for entry information (`--cache-info-age`)
    +- while writes aren't yet optimised, you can still write through `cache` which gives you the advantage
    +of adding the file in the cache at the same time if configured to do so.
    +
    +Future enhancements:
    +
    +- https://github.com/rclone/rclone/issues/1937
    +- https://github.com/rclone/rclone/issues/1936 
    +
    +#### cache and crypt ####
    +
    +One common scenario is to keep your data encrypted in the cloud provider
    +using the `crypt` remote. `crypt` uses a similar technique to wrap around
    +an existing remote and handles this translation in a seamless way.
    +
    +There is an issue with wrapping the remotes in this order:
    +**cloud remote** -> **crypt** -> **cache**
    +
    +During testing, I experienced a lot of bans with the remotes in this order.
    +I suspect it might be related to how crypt opens files on the cloud provider
    +which makes it think we're downloading the full file instead of small chunks.
    +Organizing the remotes in this order yields better results:
    +**cloud remote** -> **cache** -> **crypt**
    +
    +#### absolute remote paths ####
    +
    +`cache` can not differentiate between relative and absolute paths for the wrapped remote.
    +Any path given in the `remote` config setting and on the command line will be passed to
    +the wrapped remote as is, but for storing the chunks on disk the path will be made
    +relative by removing any leading `/` character.
    +
    +This behavior is irrelevant for most backend types, but there are backends where a leading `/`
    +changes the effective directory, e.g. in the `sftp` backend paths starting with a `/` are
    +relative to the root of the SSH server and paths without are relative to the user home directory.
    +As a result `sftp:bin` and `sftp:/bin` will share the same cache folder, even if they represent
    +a different directory on the SSH server.
    +
    +### Cache and Remote Control (--rc) ###
    +Cache supports the new `--rc` mode in rclone and can be remote controlled through the following end points:
    +By default, the listener is disabled if you do not add the flag.
    +
    +### rc cache/expire
    +Purge a remote from the cache backend. Supports either a directory or a file.
    +It supports both encrypted and unencrypted file names if cache is wrapped by crypt.
    +
    +Params:
    +  - **remote** = path to remote **(required)**
    +  - **withData** = true/false to delete cached data (chunks) as well _(optional, false by default)_
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to cache (Cache a remote).
    +
    +#### --cache-remote
    +
    +Remote to cache.
    +
    +Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
    +"myremote:bucket" or maybe "myremote:" (not recommended).
    +
    +Properties:
    +
    +- Config:      remote
    +- Env Var:     RCLONE_CACHE_REMOTE
    +- Type:        string
    +- Required:    true
    +
    +#### --cache-plex-url
    +
    +The URL of the Plex server.
    +
    +Properties:
    +
    +- Config:      plex_url
    +- Env Var:     RCLONE_CACHE_PLEX_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-plex-username
    +
    +The username of the Plex user.
    +
    +Properties:
    +
    +- Config:      plex_username
    +- Env Var:     RCLONE_CACHE_PLEX_USERNAME
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-plex-password
    +
    +The password of the Plex user.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      plex_password
    +- Env Var:     RCLONE_CACHE_PLEX_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-chunk-size
    +
    +The size of a chunk (partial file data).
    +
    +Use lower numbers for slower connections. If the chunk size is
    +changed, any downloaded chunks will be invalid and cache-chunk-path
    +will need to be cleared or unexpected EOF errors will occur.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_CACHE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     5Mi
    +- Examples:
    +    - "1M"
    +        - 1 MiB
    +    - "5M"
    +        - 5 MiB
    +    - "10M"
    +        - 10 MiB
    +
    +#### --cache-info-age
    +
    +How long to cache file structure information (directory listings, file size, times, etc.). 
    +If all write operations are done through the cache then you can safely make
    +this value very large as the cache store will also be updated in real time.
    +
    +Properties:
    +
    +- Config:      info_age
    +- Env Var:     RCLONE_CACHE_INFO_AGE
    +- Type:        Duration
    +- Default:     6h0m0s
    +- Examples:
    +    - "1h"
    +        - 1 hour
    +    - "24h"
    +        - 24 hours
    +    - "48h"
    +        - 48 hours
    +
    +#### --cache-chunk-total-size
    +
    +The total size that the chunks can take up on the local disk.
    +
    +If the cache exceeds this value then it will start to delete the
    +oldest chunks until it goes under this value.
    +
    +Properties:
    +
    +- Config:      chunk_total_size
    +- Env Var:     RCLONE_CACHE_CHUNK_TOTAL_SIZE
    +- Type:        SizeSuffix
    +- Default:     10Gi
    +- Examples:
    +    - "500M"
    +        - 500 MiB
    +    - "1G"
    +        - 1 GiB
    +    - "10G"
    +        - 10 GiB
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to cache (Cache a remote).
    +
    +#### --cache-plex-token
    +
    +The plex token for authentication - auto set normally.
    +
    +Properties:
    +
    +- Config:      plex_token
    +- Env Var:     RCLONE_CACHE_PLEX_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-plex-insecure
    +
    +Skip all certificate verification when connecting to the Plex server.
    +
    +Properties:
    +
    +- Config:      plex_insecure
    +- Env Var:     RCLONE_CACHE_PLEX_INSECURE
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-db-path
    +
    +Directory to store file structure metadata DB.
    +
    +The remote name is used as the DB file name.
    +
    +Properties:
    +
    +- Config:      db_path
    +- Env Var:     RCLONE_CACHE_DB_PATH
    +- Type:        string
    +- Default:     "$HOME/.cache/rclone/cache-backend"
    +
    +#### --cache-chunk-path
    +
    +Directory to cache chunk files.
    +
    +Path to where partial file data (chunks) are stored locally. The remote
    +name is appended to the final path.
    +
    +This config follows the "--cache-db-path". If you specify a custom
    +location for "--cache-db-path" and don't specify one for "--cache-chunk-path"
    +then "--cache-chunk-path" will use the same path as "--cache-db-path".
    +
    +Properties:
    +
    +- Config:      chunk_path
    +- Env Var:     RCLONE_CACHE_CHUNK_PATH
    +- Type:        string
    +- Default:     "$HOME/.cache/rclone/cache-backend"
    +
    +#### --cache-db-purge
    +
    +Clear all the cached data for this remote on start.
    +
    +Properties:
    +
    +- Config:      db_purge
    +- Env Var:     RCLONE_CACHE_DB_PURGE
    +- Type:        bool
    +- Default:     false
    +
    +#### --cache-chunk-clean-interval
    +
    +How often should the cache perform cleanups of the chunk storage.
    +
    +The default value should be ok for most people. If you find that the
    +cache goes over "cache-chunk-total-size" too often then try to lower
    +this value to force it to perform cleanups more often.
    +
    +Properties:
    +
    +- Config:      chunk_clean_interval
    +- Env Var:     RCLONE_CACHE_CHUNK_CLEAN_INTERVAL
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --cache-read-retries
    +
    +How many times to retry a read from a cache storage.
    +
    +Since reading from a cache stream is independent from downloading file
    +data, readers can get to a point where there's no more data in the
    +cache.  Most of the times this can indicate a connectivity issue if
    +cache isn't able to provide file data anymore.
    +
    +For really slow connections, increase this to a point where the stream is
    +able to provide data but your experience will be very stuttering.
    +
    +Properties:
    +
    +- Config:      read_retries
    +- Env Var:     RCLONE_CACHE_READ_RETRIES
    +- Type:        int
    +- Default:     10
    +
    +#### --cache-workers
    +
    +How many workers should run in parallel to download chunks.
    +
    +Higher values will mean more parallel processing (better CPU needed)
    +and more concurrent requests on the cloud provider.  This impacts
    +several aspects like the cloud provider API limits, more stress on the
    +hardware that rclone runs on but it also means that streams will be
    +more fluid and data will be available much more faster to readers.
    +
    +**Note**: If the optional Plex integration is enabled then this
    +setting will adapt to the type of reading performed and the value
    +specified here will be used as a maximum number of workers to use.
    +
    +Properties:
    +
    +- Config:      workers
    +- Env Var:     RCLONE_CACHE_WORKERS
    +- Type:        int
    +- Default:     4
    +
    +#### --cache-chunk-no-memory
    +
    +Disable the in-memory cache for storing chunks during streaming.
    +
    +By default, cache will keep file data during streaming in RAM as well
    +to provide it to readers as fast as possible.
    +
    +This transient data is evicted as soon as it is read and the number of
    +chunks stored doesn't exceed the number of workers. However, depending
    +on other settings like "cache-chunk-size" and "cache-workers" this footprint
    +can increase if there are parallel streams too (multiple files being read
    +at the same time).
    +
    +If the hardware permits it, use this feature to provide an overall better
    +performance during streaming but it can also be disabled if RAM is not
    +available on the local machine.
    +
    +Properties:
    +
    +- Config:      chunk_no_memory
    +- Env Var:     RCLONE_CACHE_CHUNK_NO_MEMORY
    +- Type:        bool
    +- Default:     false
    +
    +#### --cache-rps
    +
    +Limits the number of requests per second to the source FS (-1 to disable).
    +
    +This setting places a hard limit on the number of requests per second
    +that cache will be doing to the cloud provider remote and try to
    +respect that value by setting waits between reads.
    +
    +If you find that you're getting banned or limited on the cloud
    +provider through cache and know that a smaller number of requests per
    +second will allow you to work with it then you can use this setting
    +for that.
    +
    +A good balance of all the other settings should make this setting
    +useless but it is available to set for more special cases.
    +
    +**NOTE**: This will limit the number of requests during streams but
    +other API calls to the cloud provider like directory listings will
    +still pass.
    +
    +Properties:
    +
    +- Config:      rps
    +- Env Var:     RCLONE_CACHE_RPS
    +- Type:        int
    +- Default:     -1
    +
    +#### --cache-writes
    +
    +Cache file data on writes through the FS.
    +
    +If you need to read files immediately after you upload them through
    +cache you can enable this flag to have their data stored in the
    +cache store at the same time during upload.
    +
    +Properties:
    +
    +- Config:      writes
    +- Env Var:     RCLONE_CACHE_WRITES
    +- Type:        bool
    +- Default:     false
    +
    +#### --cache-tmp-upload-path
    +
    +Directory to keep temporary files until they are uploaded.
    +
    +This is the path where cache will use as a temporary storage for new
    +files that need to be uploaded to the cloud provider.
    +
    +Specifying a value will enable this feature. Without it, it is
    +completely disabled and files will be uploaded directly to the cloud
    +provider
    +
    +Properties:
    +
    +- Config:      tmp_upload_path
    +- Env Var:     RCLONE_CACHE_TMP_UPLOAD_PATH
    +- Type:        string
    +- Required:    false
    +
    +#### --cache-tmp-wait-time
    +
    +How long should files be stored in local cache before being uploaded.
    +
    +This is the duration that a file must wait in the temporary location
    +_cache-tmp-upload-path_ before it is selected for upload.
    +
    +Note that only one file is uploaded at a time and it can take longer
    +to start the upload if a queue formed for this purpose.
    +
    +Properties:
    +
    +- Config:      tmp_wait_time
    +- Env Var:     RCLONE_CACHE_TMP_WAIT_TIME
    +- Type:        Duration
    +- Default:     15s
    +
    +#### --cache-db-wait-time
    +
    +How long to wait for the DB to be available - 0 is unlimited.
    +
    +Only one process can have the DB open at any one time, so rclone waits
    +for this duration for the DB to become available before it gives an
    +error.
    +
    +If you set it to 0 then it will wait forever.
    +
    +Properties:
    +
    +- Config:      db_wait_time
    +- Env Var:     RCLONE_CACHE_DB_WAIT_TIME
    +- Type:        Duration
    +- Default:     1s
    +
    +## Backend commands
    +
    +Here are the commands specific to the cache backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### stats
    +
    +Print stats on the cache backend in JSON format.
    +
    +    rclone backend stats remote: [options] [<arguments>+]
    +
    +
    +
    +#  Chunker
    +
    +The `chunker` overlay transparently splits large files into smaller chunks
    +during upload to wrapped remote and transparently assembles them back
    +when the file is downloaded. This allows to effectively overcome size limits
    +imposed by storage providers.
    +
    +## Configuration
    +
    +To use it, first set up the underlying remote following the configuration
    +instructions for that remote. You can also use a local pathname instead of
    +a remote.
    +
    +First check your chosen remote is working - we'll call it `remote:path` here.
    +Note that anything inside `remote:path` will be chunked and anything outside
    +won't. This means that if you are using a bucket-based remote (e.g. S3, B2, swift)
    +then you should probably put the bucket in the remote `s3:bucket`.
    +
    +Now configure `chunker` using `rclone config`. We will call this one `overlay`
    +to separate it from the `remote` itself.
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> overlay Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Transparently chunk/split large files  "chunker" [snip] Storage> chunker Remote to chunk/unchunk. Normally should contain a ':' and a path, e.g. "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended). Enter a string value. Press Enter for the default (""). remote> remote:path Files larger than chunk size will be split in chunks. Enter a size with suffix K,M,G,T. Press Enter for the default ("2G"). chunk_size> 100M Choose how chunker handles hash sums. All modes but "none" require metadata. Enter a string value. Press Enter for the default ("md5"). Choose a number from below, or type in your own value 1 / Pass any hash supported by wrapped remote for non-chunked files, return nothing otherwise  "none" 2 / MD5 for composite files  "md5" 3 / SHA1 for composite files  "sha1" 4 / MD5 for all files  "md5all" 5 / SHA1 for all files  "sha1all" 6 / Copying a file to chunker will request MD5 from the source falling back to SHA1 if unsupported  "md5quick" 7 / Similar to "md5quick" but prefers SHA1 over MD5  "sha1quick" hash_type> md5 Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config -------------------- [overlay] type = chunker remote = remote:bucket chunk_size = 100M hash_type = md5 -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### Specifying the remote
    +
    +In normal use, make sure the remote has a `:` in. If you specify the remote
    +without a `:` then rclone will use a local directory of that name.
    +So if you use a remote of `/path/to/secret/files` then rclone will
    +chunk stuff in that directory. If you use a remote of `name` then rclone
    +will put files in a directory called `name` in the current directory.
    +
    +
    +### Chunking
    +
    +When rclone starts a file upload, chunker checks the file size. If it
    +doesn't exceed the configured chunk size, chunker will just pass the file
    +to the wrapped remote (however, see caveat below). If a file is large, chunker will transparently cut
    +data in pieces with temporary names and stream them one by one, on the fly.
    +Each data chunk will contain the specified number of bytes, except for the
    +last one which may have less data. If file size is unknown in advance
    +(this is called a streaming upload), chunker will internally create
    +a temporary copy, record its size and repeat the above process.
    +
    +When upload completes, temporary chunk files are finally renamed.
    +This scheme guarantees that operations can be run in parallel and look
    +from outside as atomic.
    +A similar method with hidden temporary chunks is used for other operations
    +(copy/move/rename, etc.). If an operation fails, hidden chunks are normally
    +destroyed, and the target composite file stays intact.
    +
    +When a composite file download is requested, chunker transparently
    +assembles it by concatenating data chunks in order. As the split is trivial
    +one could even manually concatenate data chunks together to obtain the
    +original content.
    +
    +When the `list` rclone command scans a directory on wrapped remote,
    +the potential chunk files are accounted for, grouped and assembled into
    +composite directory entries. Any temporary chunks are hidden.
    +
    +List and other commands can sometimes come across composite files with
    +missing or invalid chunks, e.g. shadowed by like-named directory or
    +another file. This usually means that wrapped file system has been directly
    +tampered with or damaged. If chunker detects a missing chunk it will
    +by default print warning, skip the whole incomplete group of chunks but
    +proceed with current command.
    +You can set the `--chunker-fail-hard` flag to have commands abort with
    +error message in such cases.
    +
    +**Caveat**: As it is now, chunker will always create a temporary file in the 
    +backend and then rename it, even if the file is below the chunk threshold.
    +This will result in unnecessary API calls and can severely restrict throughput
    +when handling transfers primarily composed of small files on some backends (e.g. Box).
    +A workaround to this issue is to use chunker only for files above the chunk threshold
    +via `--min-size` and then perform a separate call without chunker on the remaining
    +files. 
    +
    +
    +#### Chunk names
    +
    +The default chunk name format is `*.rclone_chunk.###`, hence by default
    +chunk names are `BIG_FILE_NAME.rclone_chunk.001`,
    +`BIG_FILE_NAME.rclone_chunk.002` etc. You can configure another name format
    +using the `name_format` configuration file option. The format uses asterisk
    +`*` as a placeholder for the base file name and one or more consecutive
    +hash characters `#` as a placeholder for sequential chunk number.
    +There must be one and only one asterisk. The number of consecutive hash
    +characters defines the minimum length of a string representing a chunk number.
    +If decimal chunk number has less digits than the number of hashes, it is
    +left-padded by zeros. If the decimal string is longer, it is left intact.
    +By default numbering starts from 1 but there is another option that allows
    +user to start from 0, e.g. for compatibility with legacy software.
    +
    +For example, if name format is `big_*-##.part` and original file name is
    +`data.txt` and numbering starts from 0, then the first chunk will be named
    +`big_data.txt-00.part`, the 99th chunk will be `big_data.txt-98.part`
    +and the 302nd chunk will become `big_data.txt-301.part`.
    +
    +Note that `list` assembles composite directory entries only when chunk names
    +match the configured format and treats non-conforming file names as normal
    +non-chunked files.
    +
    +When using `norename` transactions, chunk names will additionally have a unique
    +file version suffix. For example, `BIG_FILE_NAME.rclone_chunk.001_bp562k`.
    +
    +
    +### Metadata
    +
    +Besides data chunks chunker will by default create metadata object for
    +a composite file. The object is named after the original file.
    +Chunker allows user to disable metadata completely (the `none` format).
    +Note that metadata is normally not created for files smaller than the
    +configured chunk size. This may change in future rclone releases.
    +
    +#### Simple JSON metadata format
    +
    +This is the default format. It supports hash sums and chunk validation
    +for composite files. Meta objects carry the following fields:
    +
    +- `ver`     - version of format, currently `1`
    +- `size`    - total size of composite file
    +- `nchunks` - number of data chunks in file
    +- `md5`     - MD5 hashsum of composite file (if present)
    +- `sha1`    - SHA1 hashsum (if present)
    +- `txn`     - identifies current version of the file
    +
    +There is no field for composite file name as it's simply equal to the name
    +of meta object on the wrapped remote. Please refer to respective sections
    +for details on hashsums and modified time handling.
    +
    +#### No metadata
    +
    +You can disable meta objects by setting the meta format option to `none`.
    +In this mode chunker will scan directory for all files that follow
    +configured chunk name format, group them by detecting chunks with the same
    +base name and show group names as virtual composite files.
    +This method is more prone to missing chunk errors (especially missing
    +last chunk) than format with metadata enabled.
    +
    +
    +### Hashsums
    +
    +Chunker supports hashsums only when a compatible metadata is present.
    +Hence, if you choose metadata format of `none`, chunker will report hashsum
    +as `UNSUPPORTED`.
    +
    +Please note that by default metadata is stored only for composite files.
    +If a file is smaller than configured chunk size, chunker will transparently
    +redirect hash requests to wrapped remote, so support depends on that.
    +You will see the empty string as a hashsum of requested type for small
    +files if the wrapped remote doesn't support it.
    +
    +Many storage backends support MD5 and SHA1 hash types, so does chunker.
    +With chunker you can choose one or another but not both.
    +MD5 is set by default as the most supported type.
    +Since chunker keeps hashes for composite files and falls back to the
    +wrapped remote hash for non-chunked ones, we advise you to choose the same
    +hash type as supported by wrapped remote so that your file listings
    +look coherent.
    +
    +If your storage backend does not support MD5 or SHA1 but you need consistent
    +file hashing, configure chunker with `md5all` or `sha1all`. These two modes
    +guarantee given hash for all files. If wrapped remote doesn't support it,
    +chunker will then add metadata to all files, even small. However, this can
    +double the amount of small files in storage and incur additional service charges.
    +You can even use chunker to force md5/sha1 support in any other remote
    +at expense of sidecar meta objects by setting e.g. `hash_type=sha1all`
    +to force hashsums and `chunk_size=1P` to effectively disable chunking.
    +
    +Normally, when a file is copied to chunker controlled remote, chunker
    +will ask the file source for compatible file hash and revert to on-the-fly
    +calculation if none is found. This involves some CPU overhead but provides
    +a guarantee that given hashsum is available. Also, chunker will reject
    +a server-side copy or move operation if source and destination hashsum
    +types are different resulting in the extra network bandwidth, too.
    +In some rare cases this may be undesired, so chunker provides two optional
    +choices: `sha1quick` and `md5quick`. If the source does not support primary
    +hash type and the quick mode is enabled, chunker will try to fall back to
    +the secondary type. This will save CPU and bandwidth but can result in empty
    +hashsums at destination. Beware of consequences: the `sync` command will
    +revert (sometimes silently) to time/size comparison if compatible hashsums
    +between source and target are not found.
    +
    +
    +### Modified time
    +
    +Chunker stores modification times using the wrapped remote so support
    +depends on that. For a small non-chunked file the chunker overlay simply
    +manipulates modification time of the wrapped remote file.
    +For a composite file with metadata chunker will get and set
    +modification time of the metadata object on the wrapped remote.
    +If file is chunked but metadata format is `none` then chunker will
    +use modification time of the first data chunk.
    +
    +
    +### Migrations
    +
    +The idiomatic way to migrate to a different chunk size, hash type, transaction
    +style or chunk naming scheme is to:
    +
    +- Collect all your chunked files under a directory and have your
    +  chunker remote point to it.
    +- Create another directory (most probably on the same cloud storage)
    +  and configure a new remote with desired metadata format,
    +  hash type, chunk naming etc.
    +- Now run `rclone sync --interactive oldchunks: newchunks:` and all your data
    +  will be transparently converted in transfer.
    +  This may take some time, yet chunker will try server-side
    +  copy if possible.
    +- After checking data integrity you may remove configuration section
    +  of the old remote.
    +
    +If rclone gets killed during a long operation on a big composite file,
    +hidden temporary chunks may stay in the directory. They will not be
    +shown by the `list` command but will eat up your account quota.
    +Please note that the `deletefile` command deletes only active
    +chunks of a file. As a workaround, you can use remote of the wrapped
    +file system to see them.
    +An easy way to get rid of hidden garbage is to copy littered directory
    +somewhere using the chunker remote and purge the original directory.
    +The `copy` command will copy only active chunks while the `purge` will
    +remove everything including garbage.
    +
    +
    +### Caveats and Limitations
    +
    +Chunker requires wrapped remote to support server-side `move` (or `copy` +
    +`delete`) operations, otherwise it will explicitly refuse to start.
    +This is because it internally renames temporary chunk files to their final
    +names when an operation completes successfully.
    +
    +Chunker encodes chunk number in file name, so with default `name_format`
    +setting it adds 17 characters. Also chunker adds 7 characters of temporary
    +suffix during operations. Many file systems limit base file name without path
    +by 255 characters. Using rclone's crypt remote as a base file system limits
    +file name by 143 characters. Thus, maximum name length is 231 for most files
    +and 119 for chunker-over-crypt. A user in need can change name format to
    +e.g. `*.rcc##` and save 10 characters (provided at most 99 chunks per file).
    +
    +Note that a move implemented using the copy-and-delete method may incur
    +double charging with some cloud storage providers.
    +
    +Chunker will not automatically rename existing chunks when you run
    +`rclone config` on a live remote and change the chunk name format.
    +Beware that in result of this some files which have been treated as chunks
    +before the change can pop up in directory listings as normal files
    +and vice versa. The same warning holds for the chunk size.
    +If you desperately need to change critical chunking settings, you should
    +run data migration as described above.
    +
    +If wrapped remote is case insensitive, the chunker overlay will inherit
    +that property (so you can't have a file called "Hello.doc" and "hello.doc"
    +in the same directory).
    +
    +Chunker included in rclone releases up to `v1.54` can sometimes fail to
    +detect metadata produced by recent versions of rclone. We recommend users
    +to keep rclone up-to-date to avoid data corruption.
    +
    +Changing `transactions` is dangerous and requires explicit migration.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to chunker (Transparently chunk/split large files).
    +
    +#### --chunker-remote
    +
    +Remote to chunk/unchunk.
    +
    +Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
    +"myremote:bucket" or maybe "myremote:" (not recommended).
    +
    +Properties:
    +
    +- Config:      remote
    +- Env Var:     RCLONE_CHUNKER_REMOTE
    +- Type:        string
    +- Required:    true
    +
    +#### --chunker-chunk-size
    +
    +Files larger than chunk size will be split in chunks.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_CHUNKER_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     2Gi
    +
    +#### --chunker-hash-type
    +
    +Choose how chunker handles hash sums.
    +
    +All modes but "none" require metadata.
    +
    +Properties:
    +
    +- Config:      hash_type
    +- Env Var:     RCLONE_CHUNKER_HASH_TYPE
    +- Type:        string
    +- Default:     "md5"
    +- Examples:
    +    - "none"
    +        - Pass any hash supported by wrapped remote for non-chunked files.
    +        - Return nothing otherwise.
    +    - "md5"
    +        - MD5 for composite files.
    +    - "sha1"
    +        - SHA1 for composite files.
    +    - "md5all"
    +        - MD5 for all files.
    +    - "sha1all"
    +        - SHA1 for all files.
    +    - "md5quick"
    +        - Copying a file to chunker will request MD5 from the source.
    +        - Falling back to SHA1 if unsupported.
    +    - "sha1quick"
    +        - Similar to "md5quick" but prefers SHA1 over MD5.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to chunker (Transparently chunk/split large files).
    +
    +#### --chunker-name-format
    +
    +String format of chunk file names.
    +
    +The two placeholders are: base file name (*) and chunk number (#...).
    +There must be one and only one asterisk and one or more consecutive hash characters.
    +If chunk number has less digits than the number of hashes, it is left-padded by zeros.
    +If there are more digits in the number, they are left as is.
    +Possible chunk files are ignored if their name does not match given format.
    +
    +Properties:
    +
    +- Config:      name_format
    +- Env Var:     RCLONE_CHUNKER_NAME_FORMAT
    +- Type:        string
    +- Default:     "*.rclone_chunk.###"
    +
    +#### --chunker-start-from
    +
    +Minimum valid chunk number. Usually 0 or 1.
    +
    +By default chunk numbers start from 1.
    +
    +Properties:
    +
    +- Config:      start_from
    +- Env Var:     RCLONE_CHUNKER_START_FROM
    +- Type:        int
    +- Default:     1
    +
    +#### --chunker-meta-format
    +
    +Format of the metadata object or "none".
    +
    +By default "simplejson".
    +Metadata is a small JSON file named after the composite file.
    +
    +Properties:
    +
    +- Config:      meta_format
    +- Env Var:     RCLONE_CHUNKER_META_FORMAT
    +- Type:        string
    +- Default:     "simplejson"
    +- Examples:
    +    - "none"
    +        - Do not use metadata files at all.
    +        - Requires hash type "none".
    +    - "simplejson"
    +        - Simple JSON supports hash sums and chunk validation.
    +        - 
    +        - It has the following fields: ver, size, nchunks, md5, sha1.
    +
    +#### --chunker-fail-hard
    +
    +Choose how chunker should handle files with missing or invalid chunks.
    +
    +Properties:
    +
    +- Config:      fail_hard
    +- Env Var:     RCLONE_CHUNKER_FAIL_HARD
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "true"
    +        - Report errors and abort current command.
    +    - "false"
    +        - Warn user, skip incomplete file and proceed.
    +
    +#### --chunker-transactions
    +
    +Choose how chunker should handle temporary files during transactions.
    +
    +Properties:
    +
    +- Config:      transactions
    +- Env Var:     RCLONE_CHUNKER_TRANSACTIONS
    +- Type:        string
    +- Default:     "rename"
    +- Examples:
    +    - "rename"
    +        - Rename temporary files after a successful transaction.
    +    - "norename"
    +        - Leave temporary file names and write transaction ID to metadata file.
    +        - Metadata is required for no rename transactions (meta format cannot be "none").
    +        - If you are using norename transactions you should be careful not to downgrade Rclone
    +        - as older versions of Rclone don't support this transaction style and will misinterpret
    +        - files manipulated by norename transactions.
    +        - This method is EXPERIMENTAL, don't use on production systems.
    +    - "auto"
    +        - Rename or norename will be used depending on capabilities of the backend.
    +        - If meta format is set to "none", rename transactions will always be used.
    +        - This method is EXPERIMENTAL, don't use on production systems.
    +
    +
    +
    +#  Citrix ShareFile
    +
    +[Citrix ShareFile](https://sharefile.com) is a secure file sharing and transfer service aimed as business.
    +
    +## Configuration
    +
    +The initial setup for Citrix ShareFile involves getting a token from
    +Citrix ShareFile which you can in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value XX / Citrix Sharefile  "sharefile" Storage> sharefile ** See help for sharefile backend at: https://rclone.org/sharefile/ **

    +

    ID of the root folder

    +

    Leave blank to access "Personal Folders". You can use one of the standard values here or any folder ID (long hex number ID). Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Access the Personal Folders. (Default)  "" 2 / Access the Favorites folder.  "favorites" 3 / Access all the shared folders.  "allshared" 4 / Access all the individual connectors.  "connectors" 5 / Access the home, favorites, and shared folders as well as the connectors.  "top" root_folder_id> Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXX Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] type = sharefile endpoint = https://XXX.sharefile.com token = {"access_token":"XXX","token_type":"bearer","refresh_token":"XXX","expiry":"2019-09-30T19:41:45.878561877+01:00"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Citrix ShareFile. This only runs from the moment it opens
    +your browser to the moment you get back the verification code.  This
    +is on `http://127.0.0.1:53682/` and this it may require you to unblock
    +it temporarily if you are running a host firewall.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your ShareFile
    +
    +    rclone lsd remote:
    +
    +List all the files in your ShareFile
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an ShareFile directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +### Modified time and hashes
    +
    +ShareFile allows modification times to be set on objects accurate to 1
    +second.  These will be used to detect whether objects need syncing or
    +not.
    +
    +ShareFile supports MD5 type hashes, so you can use the `--checksum`
    +flag.
    +
    +### Transfers
    +
    +For files above 128 MiB rclone will use a chunked transfer.  Rclone will
    +upload up to `--transfers` chunks at the same time (shared among all
    +the multipart uploads).  Chunks are buffered in memory and are
    +normally 64 MiB so increasing `--transfers` will increase memory use.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \\        | 0x5C  | \           |
    +| *         | 0x2A  | *           |
    +| <         | 0x3C  | <           |
    +| >         | 0x3E  | >           |
    +| ?         | 0x3F  | ?           |
    +| :         | 0x3A  | :           |
    +| \|        | 0x7C  | |           |
    +| "         | 0x22  | "           |
    +
    +File names can also not start or end with the following characters.
    +These only get replaced if they are the first or last character in the
    +name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +| .         | 0x2E  | .           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to sharefile (Citrix Sharefile).
    +
    +#### --sharefile-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_SHAREFILE_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_SHAREFILE_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-root-folder-id
    +
    +ID of the root folder.
    +
    +Leave blank to access "Personal Folders".  You can use one of the
    +standard values here or any folder ID (long hex number ID).
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_SHAREFILE_ROOT_FOLDER_ID
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - Access the Personal Folders (default).
    +    - "favorites"
    +        - Access the Favorites folder.
    +    - "allshared"
    +        - Access all the shared folders.
    +    - "connectors"
    +        - Access all the individual connectors.
    +    - "top"
    +        - Access the home, favorites, and shared folders as well as the connectors.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to sharefile (Citrix Sharefile).
    +
    +#### --sharefile-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_SHAREFILE_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_SHAREFILE_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_SHAREFILE_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-upload-cutoff
    +
    +Cutoff for switching to multipart upload.
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_SHAREFILE_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     128Mi
    +
    +#### --sharefile-chunk-size
    +
    +Upload chunk size.
    +
    +Must a power of 2 >= 256k.
    +
    +Making this larger will improve performance, but note that each chunk
    +is buffered in memory one per transfer.
    +
    +Reducing this will reduce memory usage but decrease performance.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_SHAREFILE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     64Mi
    +
    +#### --sharefile-endpoint
    +
    +Endpoint for API calls.
    +
    +This is usually auto discovered as part of the oauth process, but can
    +be set manually to something like: https://XXX.sharefile.com
    +
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_SHAREFILE_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --sharefile-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_SHAREFILE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,LeftPeriod,RightSpace,RightPeriod,InvalidUtf8,Dot
    +
    +
    +## Limitations
    +
    +Note that ShareFile is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +ShareFile only supports filenames up to 256 characters in length.
    +
    +`rclone about` is not supported by the Citrix ShareFile backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Crypt
    +
    +Rclone `crypt` remotes encrypt and decrypt other remotes.
    +
    +A remote of type `crypt` does not access a [storage system](https://rclone.org/overview/)
    +directly, but instead wraps another remote, which in turn accesses
    +the storage system. This is similar to how [alias](https://rclone.org/alias/),
    +[union](https://rclone.org/union/), [chunker](https://rclone.org/chunker/)
    +and a few others work. It makes the usage very flexible, as you can
    +add a layer, in this case an encryption layer, on top of any other
    +backend, even in multiple layers. Rclone's functionality
    +can be used as with any other remote, for example you can
    +[mount](https://rclone.org/commands/rclone_mount/) a crypt remote.
    +
    +Accessing a storage system through a crypt remote realizes client-side
    +encryption, which makes it safe to keep your data in a location you do
    +not trust will not get compromised.
    +When working against the `crypt` remote, rclone will automatically
    +encrypt (before uploading) and decrypt (after downloading) on your local
    +system as needed on the fly, leaving the data encrypted at rest in the
    +wrapped remote. If you access the storage system using an application
    +other than rclone, or access the wrapped remote directly using rclone,
    +there will not be any encryption/decryption: Downloading existing content
    +will just give you the encrypted (scrambled) format, and anything you
    +upload will *not* become encrypted.
    +
    +The encryption is a secret-key encryption (also called symmetric key encryption)
    +algorithm, where a password (or pass phrase) is used to generate real encryption key.
    +The password can be supplied by user, or you may chose to let rclone
    +generate one. It will be stored in the configuration file, in a lightly obscured form.
    +If you are in an environment where you are not able to keep your configuration
    +secured, you should add
    +[configuration encryption](https://rclone.org/docs/#configuration-encryption)
    +as protection. As long as you have this configuration file, you will be able to
    +decrypt your data. Without the configuration file, as long as you remember
    +the password (or keep it in a safe place), you can re-create the configuration
    +and gain access to the existing data. You may also configure a corresponding
    +remote in a different installation to access the same data.
    +See below for guidance to [changing password](#changing-password).
    +
    +Encryption uses [cryptographic salt](https://en.wikipedia.org/wiki/Salt_(cryptography)),
    +to permute the encryption key so that the same string may be encrypted in
    +different ways. When configuring the crypt remote it is optional to enter a salt,
    +or to let rclone generate a unique salt. If omitted, rclone uses a built-in unique string.
    +Normally in cryptography, the salt is stored together with the encrypted content,
    +and do not have to be memorized by the user. This is not the case in rclone,
    +because rclone does not store any additional information on the remotes. Use of
    +custom salt is effectively a second password that must be memorized.
    +
    +[File content](#file-encryption) encryption is performed using
    +[NaCl SecretBox](https://godoc.org/golang.org/x/crypto/nacl/secretbox),
    +based on XSalsa20 cipher and Poly1305 for integrity.
    +[Names](#name-encryption) (file- and directory names) are also encrypted
    +by default, but this has some implications and is therefore
    +possible to be turned off.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `secret`.
    +
    +To use `crypt`, first set up the underlying remote. Follow the
    +`rclone config` instructions for the specific backend.
    +
    +Before configuring the crypt remote, check the underlying remote is
    +working. In this example the underlying remote is called `remote`.
    +We will configure a path `path` within this remote to contain the
    +encrypted content. Anything inside `remote:path` will be encrypted
    +and anything outside will not.
    +
    +Configure `crypt` using `rclone config`. In this example the `crypt`
    +remote is called `secret`, to differentiate it from the underlying
    +`remote`.
    +
    +When you are done you can use the crypt remote named `secret` just
    +as you would with any other remote, e.g. `rclone copy D:\docs secret:\docs`,
    +and rclone will encrypt and decrypt as needed on the fly.
    +If you access the wrapped remote `remote:path` directly you will bypass
    +the encryption, and anything you read will be in encrypted form, and
    +anything you write will be unencrypted. To avoid issues it is best to
    +configure a dedicated path for encrypted content, and access it
    +exclusively through a crypt remote.
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> secret Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Encrypt/Decrypt a remote  "crypt" [snip] Storage> crypt ** See help for crypt backend at: https://rclone.org/crypt/ **

    +

    Remote to encrypt/decrypt. Normally should contain a ':' and a path, eg "myremote:path/to/dir", "myremote:bucket" or maybe "myremote:" (not recommended). Enter a string value. Press Enter for the default (""). remote> remote:path How to encrypt the filenames. Enter a string value. Press Enter for the default ("standard"). Choose a number from below, or type in your own value. / Encrypt the filenames. 1 | See the docs for the details.  "standard" 2 / Very simple filename obfuscation.  "obfuscate" / Don't encrypt the file names. 3 | Adds a ".bin" extension only.  "off" filename_encryption> Option to either encrypt directory names or leave them intact.

    +

    NB If filename_encryption is "off" then this option will do nothing. Enter a boolean value (true or false). Press Enter for the default ("true"). Choose a number from below, or type in your own value 1 / Encrypt directory names.  "true" 2 / Don't encrypt directory names, leave them intact.  "false" directory_name_encryption> Password or pass phrase for encryption. y) Yes type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Password or pass phrase for salt. Optional but recommended. Should be different to the previous password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g/n> g Password strength in bits. 64 is just about memorable 128 is secure 1024 is the maximum Bits> 128 Your password is: JAsJvRcgR-_veXNfy_sGmQ Use this password? Please note that an obscured version of this password (and not the password itself) will be stored under your configuration file, so keep this generated password in a safe place. y) Yes (default) n) No y/n> Edit advanced config? (y/n) y) Yes n) No (default) y/n> Remote config -------------------- [secret] type = crypt remote = remote:path password = *** ENCRYPTED password2 = ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d>

    +
    
    +**Important** The crypt password stored in `rclone.conf` is lightly
    +obscured. That only protects it from cursory inspection. It is not
    +secure unless [configuration encryption](https://rclone.org/docs/#configuration-encryption) of `rclone.conf` is specified.
    +
    +A long passphrase is recommended, or `rclone config` can generate a
    +random one.
    +
    +The obscured password is created using AES-CTR with a static key. The
    +salt is stored verbatim at the beginning of the obscured password. This
    +static key is shared between all versions of rclone.
    +
    +If you reconfigure rclone with the same passwords/passphrases
    +elsewhere it will be compatible, but the obscured version will be different
    +due to the different salt.
    +
    +Rclone does not encrypt
    +
    +  * file length - this can be calculated within 16 bytes
    +  * modification time - used for syncing
    +
    +### Specifying the remote
    +
    +When configuring the remote to encrypt/decrypt, you may specify any
    +string that rclone accepts as a source/destination of other commands.
    +
    +The primary use case is to specify the path into an already configured
    +remote (e.g. `remote:path/to/dir` or `remote:bucket`), such that
    +data in a remote untrusted location can be stored encrypted.
    +
    +You may also specify a local filesystem path, such as
    +`/path/to/dir` on Linux, `C:\path\to\dir` on Windows. By creating
    +a crypt remote pointing to such a local filesystem path, you can
    +use rclone as a utility for pure local file encryption, for example
    +to keep encrypted files on a removable USB drive.
    +
    +**Note**: A string which do not contain a `:` will by rclone be treated
    +as a relative path in the local filesystem. For example, if you enter
    +the name `remote` without the trailing `:`, it will be treated as
    +a subdirectory of the current directory with name "remote".
    +
    +If a path `remote:path/to/dir` is specified, rclone stores encrypted
    +files in `path/to/dir` on the remote. With file name encryption, files
    +saved to `secret:subdir/subfile` are stored in the unencrypted path
    +`path/to/dir` but the `subdir/subpath` element is encrypted.
    +
    +The path you specify does not have to exist, rclone will create
    +it when needed.
    +
    +If you intend to use the wrapped remote both directly for keeping
    +unencrypted content, as well as through a crypt remote for encrypted
    +content, it is recommended to point the crypt remote to a separate
    +directory within the wrapped remote. If you use a bucket-based storage
    +system (e.g. Swift, S3, Google Compute Storage, B2) it is generally
    +advisable to wrap the crypt remote around a specific bucket (`s3:bucket`).
    +If wrapping around the entire root of the storage (`s3:`), and use the
    +optional file name encryption, rclone will encrypt the bucket name.
    +
    +### Changing password
    +
    +Should the password, or the configuration file containing a lightly obscured
    +form of the password, be compromised, you need to re-encrypt your data with
    +a new password. Since rclone uses secret-key encryption, where the encryption
    +key is generated directly from the password kept on the client, it is not
    +possible to change the password/key of already encrypted content. Just changing
    +the password configured for an existing crypt remote means you will no longer
    +able to decrypt any of the previously encrypted content. The only possibility
    +is to re-upload everything via a crypt remote configured with your new password.
    +
    +Depending on the size of your data, your bandwidth, storage quota etc, there are
    +different approaches you can take:
    +- If you have everything in a different location, for example on your local system,
    +you could remove all of the prior encrypted files, change the password for your
    +configured crypt remote (or delete and re-create the crypt configuration),
    +and then re-upload everything from the alternative location.
    +- If you have enough space on the storage system you can create a new crypt
    +remote pointing to a separate directory on the same backend, and then use
    +rclone to copy everything from the original crypt remote to the new,
    +effectively decrypting everything on the fly using the old password and
    +re-encrypting using the new password. When done, delete the original crypt
    +remote directory and finally the rclone crypt configuration with the old password.
    +All data will be streamed from the storage system and back, so you will
    +get half the bandwidth and be charged twice if you have upload and download quota
    +on the storage system.
    +
    +**Note**: A security problem related to the random password generator
    +was fixed in rclone version 1.53.3 (released 2020-11-19). Passwords generated
    +by rclone config in version 1.49.0 (released 2019-08-26) to 1.53.2
    +(released 2020-10-26) are not considered secure and should be changed.
    +If you made up your own password, or used rclone version older than 1.49.0 or
    +newer than 1.53.2 to generate it, you are *not* affected by this issue.
    +See [issue #4783](https://github.com/rclone/rclone/issues/4783) for more
    +details, and a tool you can use to check if you are affected.
    +
    +### Example
    +
    +Create the following file structure using "standard" file name
    +encryption.
    +
    +

    plaintext/ ├── file0.txt ├── file1.txt └── subdir ├── file2.txt ├── file3.txt └── subsubdir └── file4.txt

    +
    
    +Copy these to the remote, and list them
    +
    +

    $ rclone -q copy plaintext secret: $ rclone -q ls secret: 7 file1.txt 6 file0.txt 8 subdir/file2.txt 10 subdir/subsubdir/file4.txt 9 subdir/file3.txt

    +
    
    +The crypt remote looks like
    +
    +

    $ rclone -q ls remote:path 55 hagjclgavj2mbiqm6u6cnjjqcg 54 v05749mltvv1tf4onltun46gls 57 86vhrsv86mpbtd3a0akjuqslj8/dlj7fkq4kdq72emafg7a7s41uo 58 86vhrsv86mpbtd3a0akjuqslj8/7uu829995du6o42n32otfhjqp4/b9pausrfansjth5ob3jkdqd4lc 56 86vhrsv86mpbtd3a0akjuqslj8/8njh1sk437gttmep3p70g81aps

    +
    
    +The directory structure is preserved
    +
    +

    $ rclone -q ls secret:subdir 8 file2.txt 9 file3.txt 10 subsubdir/file4.txt

    +
    
    +Without file name encryption `.bin` extensions are added to underlying
    +names. This prevents the cloud provider attempting to interpret file
    +content.
    +
    +

    $ rclone -q ls remote:path 54 file0.txt.bin 57 subdir/file3.txt.bin 56 subdir/file2.txt.bin 58 subdir/subsubdir/file4.txt.bin 55 file1.txt.bin

    +
    
    +### File name encryption modes
    +
    +Off
    +
    +  * doesn't hide file names or directory structure
    +  * allows for longer file names (~246 characters)
    +  * can use sub paths and copy single files
    +
    +Standard
    +
    +  * file names encrypted
    +  * file names can't be as long (~143 characters)
    +  * can use sub paths and copy single files
    +  * directory structure visible
    +  * identical files names will have identical uploaded names
    +  * can use shortcuts to shorten the directory recursion
    +
    +Obfuscation
    +
    +This is a simple "rotate" of the filename, with each file having a rot
    +distance based on the filename. Rclone stores the distance at the
    +beginning of the filename. A file called "hello" may become "53.jgnnq".
    +
    +Obfuscation is not a strong encryption of filenames, but hinders
    +automated scanning tools picking up on filename patterns. It is an
    +intermediate between "off" and "standard" which allows for longer path
    +segment names.
    +
    +There is a possibility with some unicode based filenames that the
    +obfuscation is weak and may map lower case characters to upper case
    +equivalents.
    +
    +Obfuscation cannot be relied upon for strong protection.
    +
    +  * file names very lightly obfuscated
    +  * file names can be longer than standard encryption
    +  * can use sub paths and copy single files
    +  * directory structure visible
    +  * identical files names will have identical uploaded names
    +
    +Cloud storage systems have limits on file name length and
    +total path length which rclone is more likely to breach using
    +"Standard" file name encryption.  Where file names are less than 156
    +characters in length issues should not be encountered, irrespective of
    +cloud storage provider.
    +
    +An experimental advanced option `filename_encoding` is now provided to
    +address this problem to a certain degree.
    +For cloud storage systems with case sensitive file names (e.g. Google Drive),
    +`base64` can be used to reduce file name length. 
    +For cloud storage systems using UTF-16 to store file names internally
    +(e.g. OneDrive, Dropbox, Box), `base32768` can be used to drastically reduce
    +file name length. 
    +
    +An alternative, future rclone file name encryption mode may tolerate
    +backend provider path length limits.
    +
    +### Directory name encryption
    +
    +Crypt offers the option of encrypting dir names or leaving them intact.
    +There are two options:
    +
    +True
    +
    +Encrypts the whole file path including directory names
    +Example:
    +`1/12/123.txt` is encrypted to
    +`p0e52nreeaj0a5ea7s64m4j72s/l42g6771hnv3an9cgc8cr2n1ng/qgm4avr35m5loi1th53ato71v0`
    +
    +False
    +
    +Only encrypts file names, skips directory names
    +Example:
    +`1/12/123.txt` is encrypted to
    +`1/12/qgm4avr35m5loi1th53ato71v0`
    +
    +
    +### Modified time and hashes
    +
    +Crypt stores modification times using the underlying remote so support
    +depends on that.
    +
    +Hashes are not stored for crypt. However the data integrity is
    +protected by an extremely strong crypto authenticator.
    +
    +Use the `rclone cryptcheck` command to check the
    +integrity of an encrypted remote instead of `rclone check` which can't
    +check the checksums properly.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to crypt (Encrypt/Decrypt a remote).
    +
    +#### --crypt-remote
    +
    +Remote to encrypt/decrypt.
    +
    +Normally should contain a ':' and a path, e.g. "myremote:path/to/dir",
    +"myremote:bucket" or maybe "myremote:" (not recommended).
    +
    +Properties:
    +
    +- Config:      remote
    +- Env Var:     RCLONE_CRYPT_REMOTE
    +- Type:        string
    +- Required:    true
    +
    +#### --crypt-filename-encryption
    +
    +How to encrypt the filenames.
    +
    +Properties:
    +
    +- Config:      filename_encryption
    +- Env Var:     RCLONE_CRYPT_FILENAME_ENCRYPTION
    +- Type:        string
    +- Default:     "standard"
    +- Examples:
    +    - "standard"
    +        - Encrypt the filenames.
    +        - See the docs for the details.
    +    - "obfuscate"
    +        - Very simple filename obfuscation.
    +    - "off"
    +        - Don't encrypt the file names.
    +        - Adds a ".bin", or "suffix" extension only.
    +
    +#### --crypt-directory-name-encryption
    +
    +Option to either encrypt directory names or leave them intact.
    +
    +NB If filename_encryption is "off" then this option will do nothing.
    +
    +Properties:
    +
    +- Config:      directory_name_encryption
    +- Env Var:     RCLONE_CRYPT_DIRECTORY_NAME_ENCRYPTION
    +- Type:        bool
    +- Default:     true
    +- Examples:
    +    - "true"
    +        - Encrypt directory names.
    +    - "false"
    +        - Don't encrypt directory names, leave them intact.
    +
    +#### --crypt-password
    +
    +Password or pass phrase for encryption.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_CRYPT_PASSWORD
    +- Type:        string
    +- Required:    true
    +
    +#### --crypt-password2
    +
    +Password or pass phrase for salt.
    +
    +Optional but recommended.
    +Should be different to the previous password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password2
    +- Env Var:     RCLONE_CRYPT_PASSWORD2
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to crypt (Encrypt/Decrypt a remote).
    +
    +#### --crypt-server-side-across-configs
    +
    +Deprecated: use --server-side-across-configs instead.
    +
    +Allow server-side operations (e.g. copy) to work across different crypt configs.
    +
    +Normally this option is not what you want, but if you have two crypts
    +pointing to the same backend you can use it.
    +
    +This can be used, for example, to change file name encryption type
    +without re-uploading all the data. Just make two crypt backends
    +pointing to two different directories with the single changed
    +parameter and use rclone move to move the files between the crypt
    +remotes.
    +
    +Properties:
    +
    +- Config:      server_side_across_configs
    +- Env Var:     RCLONE_CRYPT_SERVER_SIDE_ACROSS_CONFIGS
    +- Type:        bool
    +- Default:     false
    +
    +#### --crypt-show-mapping
    +
    +For all files listed show how the names encrypt.
    +
    +If this flag is set then for each file that the remote is asked to
    +list, it will log (at level INFO) a line stating the decrypted file
    +name and the encrypted file name.
    +
    +This is so you can work out which encrypted names are which decrypted
    +names just in case you need to do something with the encrypted file
    +names, or for debugging purposes.
    +
    +Properties:
    +
    +- Config:      show_mapping
    +- Env Var:     RCLONE_CRYPT_SHOW_MAPPING
    +- Type:        bool
    +- Default:     false
    +
    +#### --crypt-no-data-encryption
    +
    +Option to either encrypt file data or leave it unencrypted.
    +
    +Properties:
    +
    +- Config:      no_data_encryption
    +- Env Var:     RCLONE_CRYPT_NO_DATA_ENCRYPTION
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "true"
    +        - Don't encrypt file data, leave it unencrypted.
    +    - "false"
    +        - Encrypt file data.
    +
    +#### --crypt-pass-bad-blocks
    +
    +If set this will pass bad blocks through as all 0.
    +
    +This should not be set in normal operation, it should only be set if
    +trying to recover an encrypted file with errors and it is desired to
    +recover as much of the file as possible.
    +
    +Properties:
    +
    +- Config:      pass_bad_blocks
    +- Env Var:     RCLONE_CRYPT_PASS_BAD_BLOCKS
    +- Type:        bool
    +- Default:     false
    +
    +#### --crypt-filename-encoding
    +
    +How to encode the encrypted filename to text string.
    +
    +This option could help with shortening the encrypted filename. The 
    +suitable option would depend on the way your remote count the filename
    +length and if it's case sensitive.
    +
    +Properties:
    +
    +- Config:      filename_encoding
    +- Env Var:     RCLONE_CRYPT_FILENAME_ENCODING
    +- Type:        string
    +- Default:     "base32"
    +- Examples:
    +    - "base32"
    +        - Encode using base32. Suitable for all remote.
    +    - "base64"
    +        - Encode using base64. Suitable for case sensitive remote.
    +    - "base32768"
    +        - Encode using base32768. Suitable if your remote counts UTF-16 or
    +        - Unicode codepoint instead of UTF-8 byte length. (Eg. Onedrive, Dropbox)
    +
    +#### --crypt-suffix
    +
    +If this is set it will override the default suffix of ".bin".
    +
    +Setting suffix to "none" will result in an empty suffix. This may be useful 
    +when the path length is critical.
    +
    +Properties:
    +
    +- Config:      suffix
    +- Env Var:     RCLONE_CRYPT_SUFFIX
    +- Type:        string
    +- Default:     ".bin"
    +
    +### Metadata
    +
    +Any metadata supported by the underlying remote is read and written.
    +
    +See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
    +
    +## Backend commands
    +
    +Here are the commands specific to the crypt backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### encode
    +
    +Encode the given filename(s)
    +
    +    rclone backend encode remote: [options] [<arguments>+]
    +
    +This encodes the filenames given as arguments returning a list of
    +strings of the encoded results.
    +
    +Usage Example:
    +
    +    rclone backend encode crypt: file1 [file2...]
    +    rclone rc backend/command command=encode fs=crypt: file1 [file2...]
    +
    +
    +### decode
    +
    +Decode the given filename(s)
    +
    +    rclone backend decode remote: [options] [<arguments>+]
    +
    +This decodes the filenames given as arguments returning a list of
    +strings of the decoded results. It will return an error if any of the
    +inputs are invalid.
    +
    +Usage Example:
    +
    +    rclone backend decode crypt: encryptedfile1 [encryptedfile2...]
    +    rclone rc backend/command command=decode fs=crypt: encryptedfile1 [encryptedfile2...]
    +
    +
    +
    +
    +## Backing up an encrypted remote
    +
    +If you wish to backup an encrypted remote, it is recommended that you use
    +`rclone sync` on the encrypted files, and make sure the passwords are
    +the same in the new encrypted remote.
    +
    +This will have the following advantages
    +
    +  * `rclone sync` will check the checksums while copying
    +  * you can use `rclone check` between the encrypted remotes
    +  * you don't decrypt and encrypt unnecessarily
    +
    +For example, let's say you have your original remote at `remote:` with
    +the encrypted version at `eremote:` with path `remote:crypt`.  You
    +would then set up the new remote `remote2:` and then the encrypted
    +version `eremote2:` with path `remote2:crypt` using the same passwords
    +as `eremote:`.
    +
    +To sync the two remotes you would do
    +
    +    rclone sync --interactive remote:crypt remote2:crypt
    +
    +And to check the integrity you would do
    +
    +    rclone check remote:crypt remote2:crypt
    +
    +## File formats
    +
    +### File encryption
    +
    +Files are encrypted 1:1 source file to destination object.  The file
    +has a header and is divided into chunks.
    +
    +#### Header
    +
    +  * 8 bytes magic string `RCLONE\x00\x00`
    +  * 24 bytes Nonce (IV)
    +
    +The initial nonce is generated from the operating systems crypto
    +strong random number generator.  The nonce is incremented for each
    +chunk read making sure each nonce is unique for each block written.
    +The chance of a nonce being re-used is minuscule.  If you wrote an
    +exabyte of data (10¹⁸ bytes) you would have a probability of
    +approximately 2×10⁻³² of re-using a nonce.
    +
    +#### Chunk
    +
    +Each chunk will contain 64 KiB of data, except for the last one which
    +may have less data. The data chunk is in standard NaCl SecretBox
    +format. SecretBox uses XSalsa20 and Poly1305 to encrypt and
    +authenticate messages.
    +
    +Each chunk contains:
    +
    +  * 16 Bytes of Poly1305 authenticator
    +  * 1 - 65536 bytes XSalsa20 encrypted data
    +
    +64k chunk size was chosen as the best performing chunk size (the
    +authenticator takes too much time below this and the performance drops
    +off due to cache effects above this).  Note that these chunks are
    +buffered in memory so they can't be too big.
    +
    +This uses a 32 byte (256 bit key) key derived from the user password.
    +
    +#### Examples
    +
    +1 byte file will encrypt to
    +
    +  * 32 bytes header
    +  * 17 bytes data chunk
    +
    +49 bytes total
    +
    +1 MiB (1048576 bytes) file will encrypt to
    +
    +  * 32 bytes header
    +  * 16 chunks of 65568 bytes
    +
    +1049120 bytes total (a 0.05% overhead). This is the overhead for big
    +files.
    +
    +### Name encryption
    +
    +File names are encrypted segment by segment - the path is broken up
    +into `/` separated strings and these are encrypted individually.
    +
    +File segments are padded using PKCS#7 to a multiple of 16 bytes
    +before encryption.
    +
    +They are then encrypted with EME using AES with 256 bit key. EME
    +(ECB-Mix-ECB) is a wide-block encryption mode presented in the 2003
    +paper "A Parallelizable Enciphering Mode" by Halevi and Rogaway.
    +
    +This makes for deterministic encryption which is what we want - the
    +same filename must encrypt to the same thing otherwise we can't find
    +it on the cloud storage system.
    +
    +This means that
    +
    +  * filenames with the same name will encrypt the same
    +  * filenames which start the same won't have a common prefix
    +
    +This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of
    +which are derived from the user password.
    +
    +After encryption they are written out using a modified version of
    +standard `base32` encoding as described in RFC4648.  The standard
    +encoding is modified in two ways:
    +
    +  * it becomes lower case (no-one likes upper case filenames!)
    +  * we strip the padding character `=`
    +
    +`base32` is used rather than the more efficient `base64` so rclone can be
    +used on case insensitive remotes (e.g. Windows, Amazon Drive).
    +
    +### Key derivation
    +
    +Rclone uses `scrypt` with parameters `N=16384, r=8, p=1` with an
    +optional user supplied salt (password2) to derive the 32+32+16 = 80
    +bytes of key material required.  If the user doesn't supply a salt
    +then rclone uses an internal one.
    +
    +`scrypt` makes it impractical to mount a dictionary attack on rclone
    +encrypted data.  For full protection against this you should always use
    +a salt.
    +
    +## SEE ALSO
    +
    +* [rclone cryptdecode](https://rclone.org/commands/rclone_cryptdecode/)    - Show forward/reverse mapping of encrypted filenames
    +
    +#  Compress
    +
    +## Warning
    +
    +This remote is currently **experimental**. Things may break and data may be lost. Anything you do with this remote is
    +at your own risk. Please understand the risks associated with using experimental code and don't use this remote in
    +critical applications.
    +
    +The `Compress` remote adds compression to another remote. It is best used with remotes containing
    +many large compressible files.
    +
    +## Configuration
    +
    +To use this remote, all you need to do is specify another remote and a compression mode to use:
    +
    +

    Current remotes:

    +

    Name Type ==== ==== remote_to_press sometype

    +
      +
    1. Edit existing remote $ rclone config
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> n name> compress ... 8 / Compress a remote  "compress" ... Storage> compress ** See help for compress backend at: https://rclone.org/compress/ **
    14. +
    +

    Remote to compress. Enter a string value. Press Enter for the default (""). remote> remote_to_press:subdir Compression mode. Enter a string value. Press Enter for the default ("gzip"). Choose a number from below, or type in your own value 1 / Gzip compression balanced for speed and compression strength.  "gzip" compression_mode> gzip Edit advanced config? (y/n) y) Yes n) No (default) y/n> n Remote config -------------------- [compress] type = compress remote = remote_to_press:subdir compression_mode = gzip -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### Compression Modes
    +
    +Currently only gzip compression is supported. It provides a decent balance between speed and size and is well
    +supported by other applications. Compression strength can further be configured via an advanced setting where 0 is no
    +compression and 9 is strongest compression.
    +
    +### File types
    +
    +If you open a remote wrapped by compress, you will see that there are many files with an extension corresponding to
    +the compression algorithm you chose. These files are standard files that can be opened by various archive programs, 
    +but they have some hidden metadata that allows them to be used by rclone.
    +While you may download and decompress these files at will, do **not** manually delete or rename files. Files without
    +correct metadata files will not be recognized by rclone.
    +
    +### File names
    +
    +The compressed files will be named `*.###########.gz` where `*` is the base file and the `#` part is base64 encoded 
    +size of the uncompressed file. The file names should not be changed by anything other than the rclone compression backend.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to compress (Compress a remote).
    +
    +#### --compress-remote
    +
    +Remote to compress.
    +
    +Properties:
    +
    +- Config:      remote
    +- Env Var:     RCLONE_COMPRESS_REMOTE
    +- Type:        string
    +- Required:    true
    +
    +#### --compress-mode
    +
    +Compression mode.
    +
    +Properties:
    +
    +- Config:      mode
    +- Env Var:     RCLONE_COMPRESS_MODE
    +- Type:        string
    +- Default:     "gzip"
    +- Examples:
    +    - "gzip"
    +        - Standard gzip compression with fastest parameters.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to compress (Compress a remote).
    +
    +#### --compress-level
    +
    +GZIP compression level (-2 to 9).
    +
    +Generally -1 (default, equivalent to 5) is recommended.
    +Levels 1 to 9 increase compression at the cost of speed. Going past 6 
    +generally offers very little return.
    +
    +Level -2 uses Huffman encoding only. Only use if you know what you
    +are doing.
    +Level 0 turns off compression.
    +
    +Properties:
    +
    +- Config:      level
    +- Env Var:     RCLONE_COMPRESS_LEVEL
    +- Type:        int
    +- Default:     -1
    +
    +#### --compress-ram-cache-limit
    +
    +Some remotes don't allow the upload of files with unknown size.
    +In this case the compressed file will need to be cached to determine
    +it's size.
    +
    +Files smaller than this limit will be cached in RAM, files larger than 
    +this limit will be cached on disk.
    +
    +Properties:
    +
    +- Config:      ram_cache_limit
    +- Env Var:     RCLONE_COMPRESS_RAM_CACHE_LIMIT
    +- Type:        SizeSuffix
    +- Default:     20Mi
    +
    +### Metadata
    +
    +Any metadata supported by the underlying remote is read and written.
    +
    +See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
    +
    +
    +
    +#  Combine
    +
    +The `combine` backend joins remotes together into a single directory
    +tree.
    +
    +For example you might have a remote for images on one provider:
    +
    +

    $ rclone tree s3:imagesbucket / ├── image1.jpg └── image2.jpg

    +
    
    +And a remote for files on another:
    +
    +

    $ rclone tree drive:important/files / ├── file1.txt └── file2.txt

    +
    
    +The `combine` backend can join these together into a synthetic
    +directory structure like this:
    +
    +

    $ rclone tree combined: / ├── files │ ├── file1.txt │ └── file2.txt └── images ├── image1.jpg └── image2.jpg

    +
    
    +You'd do this by specifying an `upstreams` parameter in the config
    +like this
    +
    +    upstreams = images=s3:imagesbucket files=drive:important/files
    +
    +During the initial setup with `rclone config` you will specify the
    +upstreams remotes as a space separated list. The upstream remotes can
    +either be a local paths or other remotes.
    +
    +## Configuration
    +
    +Here is an example of how to make a combine called `remote` for the
    +example above. First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. ... XX / Combine several remotes into one  (combine) ... Storage> combine Option upstreams. Upstreams for combining These should be in the form dir=remote:path dir2=remote2:path Where before the = is specified the root directory and after is the remote to put there. Embedded spaces can be added using quotes "dir=remote:path with space" "dir2=remote2:path with space" Enter a fs.SpaceSepList value. upstreams> images=s3:imagesbucket files=drive:important/files -------------------- [remote] type = combine upstreams = images=s3:imagesbucket files=drive:important/files -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### Configuring for Google Drive Shared Drives
    +
    +Rclone has a convenience feature for making a combine backend for all
    +the shared drives you have access to.
    +
    +Assuming your main (non shared drive) Google drive remote is called
    +`drive:` you would run
    +
    +    rclone backend -o config drives drive:
    +
    +This would produce something like this:
    +
    +    [My Drive]
    +    type = alias
    +    remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
    +
    +    [Test Drive]
    +    type = alias
    +    remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
    +
    +    [AllDrives]
    +    type = combine
    +    upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
    +
    +If you then add that config to your config file (find it with `rclone
    +config file`) then you can access all the shared drives in one place
    +with the `AllDrives:` remote.
    +
    +See [the Google Drive docs](https://rclone.org/drive/#drives) for full info.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to combine (Combine several remotes into one).
    +
    +#### --combine-upstreams
    +
    +Upstreams for combining
    +
    +These should be in the form
    +
    +    dir=remote:path dir2=remote2:path
    +
    +Where before the = is specified the root directory and after is the remote to
    +put there.
    +
    +Embedded spaces can be added using quotes
    +
    +    "dir=remote:path with space" "dir2=remote2:path with space"
    +
    +
    +
    +Properties:
    +
    +- Config:      upstreams
    +- Env Var:     RCLONE_COMBINE_UPSTREAMS
    +- Type:        SpaceSepList
    +- Default:     
    +
    +### Metadata
    +
    +Any metadata supported by the underlying remote is read and written.
    +
    +See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
    +
    +
    +
    +#  Dropbox
    +
    +Paths are specified as `remote:path`
    +
    +Dropbox paths may be as deep as required, e.g.
    +`remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for dropbox involves getting a token from Dropbox
    +which you need to do in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +
      +
    1. New remote
    2. +
    3. Delete remote
    4. +
    5. Quit config e/n/d/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Dropbox  "dropbox" [snip] Storage> dropbox Dropbox App Key - leave blank normally. app_key> Dropbox App Secret - leave blank normally. app_secret> Remote config Please visit: https://www.dropbox.com/1/oauth2/authorize?client_id=XXXXXXXXXXXXXXX&response_type=code Enter the code: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXXXXXXXX -------------------- [remote] app_key = app_secret = token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX_XXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX --------------------
    6. +
    7. Yes this is OK
    8. +
    9. Edit this remote
    10. +
    11. Delete this remote y/e/d> y
    12. +
    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Dropbox. This only
    +runs from the moment it opens your browser to the moment you get back
    +the verification code.  This is on `http://127.0.0.1:53682/` and it
    +may require you to unblock it temporarily if you are running a host
    +firewall, or use manual mode.
    +
    +You can then use it like this,
    +
    +List directories in top level of your dropbox
    +
    +    rclone lsd remote:
    +
    +List all the files in your dropbox
    +
    +    rclone ls remote:
    +
    +To copy a local directory to a dropbox directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Dropbox for business
    +
    +Rclone supports Dropbox for business and Team Folders.
    +
    +When using Dropbox for business `remote:` and `remote:path/to/file`
    +will refer to your personal folder.
    +
    +If you wish to see Team Folders you must use a leading `/` in the
    +path, so `rclone lsd remote:/` will refer to the root and show you all
    +Team Folders and your User Folder.
    +
    +You can then use team folders like this `remote:/TeamFolder` and
    +`remote:/TeamFolder/path/to/file`.
    +
    +A leading `/` for a Dropbox personal account will do nothing, but it
    +will take an extra HTTP transaction so it should be avoided.
    +
    +### Modified time and Hashes
    +
    +Dropbox supports modified times, but the only way to set a
    +modification time is to re-upload the file.
    +
    +This means that if you uploaded your data with an older version of
    +rclone which didn't support the v2 API and modified times, rclone will
    +decide to upload all your old data to fix the modification times.  If
    +you don't want this to happen use `--size-only` or `--checksum` flag
    +to stop it.
    +
    +Dropbox supports [its own hash
    +type](https://www.dropbox.com/developers/reference/content-hash) which
    +is checked for all transfers.
    +
    +### Restricted filename characters
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| NUL       | 0x00  | ␀           |
    +| /         | 0x2F  | /           |
    +| DEL       | 0x7F  | ␡           |
    +| \         | 0x5C  | \           |
    +
    +File names can also not end with the following characters.
    +These only get replaced if they are the last character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Batch mode uploads {#batch-mode}
    +
    +Using batch mode uploads is very important for performance when using
    +the Dropbox API. See [the dropbox performance guide](https://developers.dropbox.com/dbx-performance-guide)
    +for more info.
    +
    +There are 3 modes rclone can use for uploads.
    +
    +#### --dropbox-batch-mode off
    +
    +In this mode rclone will not use upload batching. This was the default
    +before rclone v1.55. It has the disadvantage that it is very likely to
    +encounter `too_many_requests` errors like this
    +
    +    NOTICE: too_many_requests/.: Too many requests or write operations. Trying again in 15 seconds.
    +
    +When rclone receives these it has to wait for 15s or sometimes 300s
    +before continuing which really slows down transfers.
    +
    +This will happen especially if `--transfers` is large, so this mode
    +isn't recommended except for compatibility or investigating problems.
    +
    +#### --dropbox-batch-mode sync
    +
    +In this mode rclone will batch up uploads to the size specified by
    +`--dropbox-batch-size` and commit them together.
    +
    +Using this mode means you can use a much higher `--transfers`
    +parameter (32 or 64 works fine) without receiving `too_many_requests`
    +errors.
    +
    +This mode ensures full data integrity.
    +
    +Note that there may be a pause when quitting rclone while rclone
    +finishes up the last batch using this mode.
    +
    +#### --dropbox-batch-mode async
    +
    +In this mode rclone will batch up uploads to the size specified by
    +`--dropbox-batch-size` and commit them together.
    +
    +However it will not wait for the status of the batch to be returned to
    +the caller. This means rclone can use a much bigger batch size (much
    +bigger than `--transfers`), at the cost of not being able to check the
    +status of the upload.
    +
    +This provides the maximum possible upload speed especially with lots
    +of small files, however rclone can't check the file got uploaded
    +properly using this mode.
    +
    +If you are using this mode then using "rclone check" after the
    +transfer completes is recommended. Or you could do an initial transfer
    +with `--dropbox-batch-mode async` then do a final transfer with
    +`--dropbox-batch-mode sync` (the default).
    +
    +Note that there may be a pause when quitting rclone while rclone
    +finishes up the last batch using this mode.
    +
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to dropbox (Dropbox).
    +
    +#### --dropbox-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_DROPBOX_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --dropbox-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_DROPBOX_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to dropbox (Dropbox).
    +
    +#### --dropbox-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_DROPBOX_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --dropbox-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_DROPBOX_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --dropbox-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_DROPBOX_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --dropbox-chunk-size
    +
    +Upload chunk size (< 150Mi).
    +
    +Any files larger than this will be uploaded in chunks of this size.
    +
    +Note that chunks are buffered in memory (one at a time) so rclone can
    +deal with retries.  Setting this larger will increase the speed
    +slightly (at most 10% for 128 MiB in tests) at the cost of using more
    +memory.  It can be set smaller if you are tight on memory.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_DROPBOX_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     48Mi
    +
    +#### --dropbox-impersonate
    +
    +Impersonate this user when using a business account.
    +
    +Note that if you want to use impersonate, you should make sure this
    +flag is set when running "rclone config" as this will cause rclone to
    +request the "members.read" scope which it won't normally. This is
    +needed to lookup a members email address into the internal ID that
    +dropbox uses in the API.
    +
    +Using the "members.read" scope will require a Dropbox Team Admin
    +to approve during the OAuth flow.
    +
    +You will have to use your own App (setting your own client_id and
    +client_secret) to use this option as currently rclone's default set of
    +permissions doesn't include "members.read". This can be added once
    +v1.55 or later is in use everywhere.
    +
    +
    +Properties:
    +
    +- Config:      impersonate
    +- Env Var:     RCLONE_DROPBOX_IMPERSONATE
    +- Type:        string
    +- Required:    false
    +
    +#### --dropbox-shared-files
    +
    +Instructs rclone to work on individual shared files.
    +
    +In this mode rclone's features are extremely limited - only list (ls, lsl, etc.) 
    +operations and read operations (e.g. downloading) are supported in this mode.
    +All other operations will be disabled.
    +
    +Properties:
    +
    +- Config:      shared_files
    +- Env Var:     RCLONE_DROPBOX_SHARED_FILES
    +- Type:        bool
    +- Default:     false
    +
    +#### --dropbox-shared-folders
    +
    +Instructs rclone to work on shared folders.
    +            
    +When this flag is used with no path only the List operation is supported and 
    +all available shared folders will be listed. If you specify a path the first part 
    +will be interpreted as the name of shared folder. Rclone will then try to mount this 
    +shared to the root namespace. On success shared folder rclone proceeds normally. 
    +The shared folder is now pretty much a normal folder and all normal operations 
    +are supported. 
    +
    +Note that we don't unmount the shared folder afterwards so the 
    +--dropbox-shared-folders can be omitted after the first use of a particular 
    +shared folder.
    +
    +Properties:
    +
    +- Config:      shared_folders
    +- Env Var:     RCLONE_DROPBOX_SHARED_FOLDERS
    +- Type:        bool
    +- Default:     false
    +
    +#### --dropbox-batch-mode
    +
    +Upload file batching sync|async|off.
    +
    +This sets the batch mode used by rclone.
    +
    +For full info see [the main docs](https://rclone.org/dropbox/#batch-mode)
    +
    +This has 3 possible values
    +
    +- off - no batching
    +- sync - batch uploads and check completion (default)
    +- async - batch upload and don't check completion
    +
    +Rclone will close any outstanding batches when it exits which may make
    +a delay on quit.
    +
    +
    +Properties:
    +
    +- Config:      batch_mode
    +- Env Var:     RCLONE_DROPBOX_BATCH_MODE
    +- Type:        string
    +- Default:     "sync"
    +
    +#### --dropbox-batch-size
    +
    +Max number of files in upload batch.
    +
    +This sets the batch size of files to upload. It has to be less than 1000.
    +
    +By default this is 0 which means rclone which calculate the batch size
    +depending on the setting of batch_mode.
    +
    +- batch_mode: async - default batch_size is 100
    +- batch_mode: sync - default batch_size is the same as --transfers
    +- batch_mode: off - not in use
    +
    +Rclone will close any outstanding batches when it exits which may make
    +a delay on quit.
    +
    +Setting this is a great idea if you are uploading lots of small files
    +as it will make them a lot quicker. You can use --transfers 32 to
    +maximise throughput.
    +
    +
    +Properties:
    +
    +- Config:      batch_size
    +- Env Var:     RCLONE_DROPBOX_BATCH_SIZE
    +- Type:        int
    +- Default:     0
    +
    +#### --dropbox-batch-timeout
    +
    +Max time to allow an idle upload batch before uploading.
    +
    +If an upload batch is idle for more than this long then it will be
    +uploaded.
    +
    +The default for this is 0 which means rclone will choose a sensible
    +default based on the batch_mode in use.
    +
    +- batch_mode: async - default batch_timeout is 10s
    +- batch_mode: sync - default batch_timeout is 500ms
    +- batch_mode: off - not in use
    +
    +
    +Properties:
    +
    +- Config:      batch_timeout
    +- Env Var:     RCLONE_DROPBOX_BATCH_TIMEOUT
    +- Type:        Duration
    +- Default:     0s
    +
    +#### --dropbox-batch-commit-timeout
    +
    +Max time to wait for a batch to finish committing
    +
    +Properties:
    +
    +- Config:      batch_commit_timeout
    +- Env Var:     RCLONE_DROPBOX_BATCH_COMMIT_TIMEOUT
    +- Type:        Duration
    +- Default:     10m0s
    +
    +#### --dropbox-pacer-min-sleep
    +
    +Minimum time to sleep between API calls.
    +
    +Properties:
    +
    +- Config:      pacer_min_sleep
    +- Env Var:     RCLONE_DROPBOX_PACER_MIN_SLEEP
    +- Type:        Duration
    +- Default:     10ms
    +
    +#### --dropbox-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_DROPBOX_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,RightSpace,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +Note that Dropbox is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +There are some file names such as `thumbs.db` which Dropbox can't
    +store.  There is a full list of them in the ["Ignored Files" section
    +of this document](https://www.dropbox.com/en/help/145).  Rclone will
    +issue an error message `File name disallowed - not uploading` if it
    +attempts to upload one of those file names, but the sync won't fail.
    +
    +Some errors may occur if you try to sync copyright-protected files
    +because Dropbox has its own [copyright detector](https://techcrunch.com/2014/03/30/how-dropbox-knows-when-youre-sharing-copyrighted-stuff-without-actually-looking-at-your-stuff/) that
    +prevents this sort of file being downloaded. This will return the error `ERROR :
    +/path/to/your/file: Failed to copy: failed to open source object:
    +path/restricted_content/.`
    +
    +If you have more than 10,000 files in a directory then `rclone purge
    +dropbox:dir` will return the error `Failed to purge: There are too
    +many files involved in this operation`.  As a work-around do an
    +`rclone delete dropbox:dir` followed by an `rclone rmdir dropbox:dir`.
    +
    +When using `rclone link` you'll need to set `--expire` if using a
    +non-personal account otherwise the visibility may not be correct.
    +(Note that `--expire` isn't supported on personal accounts). See the
    +[forum discussion](https://forum.rclone.org/t/rclone-link-dropbox-permissions/23211) and the 
    +[dropbox SDK issue](https://github.com/dropbox/dropbox-sdk-go-unofficial/issues/75).
    +
    +## Get your own Dropbox App ID
    +
    +When you use rclone with Dropbox in its default configuration you are using rclone's App ID. This is shared between all the rclone users.
    +
    +Here is how to create your own Dropbox App ID for rclone:
    +
    +1. Log into the [Dropbox App console](https://www.dropbox.com/developers/apps/create) with your Dropbox Account (It need not
    +to be the same account as the Dropbox you want to access)
    +
    +2. Choose an API => Usually this should be `Dropbox API`
    +
    +3. Choose the type of access you want to use => `Full Dropbox` or `App Folder`. If you want to use Team Folders, `Full Dropbox` is required ([see here](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-create-team-folder-inside-my-app-s-folder/m-p/601005/highlight/true#M27911)).
    +
    +4. Name your App. The app name is global, so you can't use `rclone` for example
    +
    +5. Click the button `Create App`
    +
    +6. Switch to the `Permissions` tab. Enable at least the following permissions: `account_info.read`, `files.metadata.write`, `files.content.write`, `files.content.read`, `sharing.write`. The `files.metadata.read` and `sharing.read` checkboxes will be marked too. Click `Submit`
    +
    +7. Switch to the `Settings` tab. Fill `OAuth2 - Redirect URIs` as `http://localhost:53682/` and click on `Add`
    +
    +8. Find the `App key` and `App secret` values on the `Settings` tab. Use these values in rclone config to add a new remote or edit an existing remote. The `App key` setting corresponds to `client_id` in rclone config, the `App secret` corresponds to `client_secret`
    +
    +#  Enterprise File Fabric
    +
    +This backend supports [Storage Made Easy's Enterprise File
    +Fabric™](https://storagemadeeasy.com/about/) which provides a software
    +solution to integrate and unify File and Object Storage accessible
    +through a global file system.
    +
    +## Configuration
    +
    +The initial setup for the Enterprise File Fabric backend involves
    +getting a token from the Enterprise File Fabric which you need to
    +do in your browser.  `rclone config` walks you through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Enterprise File Fabric  "filefabric" [snip] Storage> filefabric ** See help for filefabric backend at: https://rclone.org/filefabric/ **

    +

    URL of the Enterprise File Fabric to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Storage Made Easy US  "https://storagemadeeasy.com" 2 / Storage Made Easy EU  "https://eu.storagemadeeasy.com" 3 / Connect to your Enterprise File Fabric  "https://yourfabric.smestorage.com" url> https://yourfabric.smestorage.com/ ID of the root folder Leave blank normally.

    +

    Fill in to make rclone start with directory of a given ID.

    +

    Enter a string value. Press Enter for the default (""). root_folder_id> Permanent Authentication Token

    +

    A Permanent Authentication Token can be created in the Enterprise File Fabric, on the users Dashboard under Security, there is an entry you'll see called "My Authentication Tokens". Click the Manage button to create one.

    +

    These tokens are normally valid for several years.

    +

    For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens

    +

    Enter a string value. Press Enter for the default (""). permanent_token> xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx Edit advanced config? (y/n) y) Yes n) No (default) y/n> n Remote config -------------------- [remote] type = filefabric url = https://yourfabric.smestorage.com/ permanent_token = xxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Enterprise File Fabric
    +
    +    rclone lsd remote:
    +
    +List all the files in your Enterprise File Fabric
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Enterprise File Fabric directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time and hashes
    +
    +The Enterprise File Fabric allows modification times to be set on
    +files accurate to 1 second.  These will be used to detect whether
    +objects need syncing or not.
    +
    +The Enterprise File Fabric does not support any data hashes at this time.
    +
    +### Restricted filename characters
    +
    +The [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +will be replaced.
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Empty files
    +
    +Empty files aren't supported by the Enterprise File Fabric. Rclone will therefore
    +upload an empty file as a single space with a mime type of
    +`application/vnd.rclone.empty.file` and files with that mime type are
    +treated as empty.
    +
    +### Root folder ID ###
    +
    +You can set the `root_folder_id` for rclone.  This is the directory
    +(identified by its `Folder ID`) that rclone considers to be the root
    +of your Enterprise File Fabric.
    +
    +Normally you will leave this blank and rclone will determine the
    +correct root to use itself.
    +
    +However you can set this to restrict rclone to a specific folder
    +hierarchy.
    +
    +In order to do this you will have to find the `Folder ID` of the
    +directory you wish rclone to display.  These aren't displayed in the
    +web interface, but you can use `rclone lsf` to find them, for example
    +
    +

    $ rclone lsf --dirs-only -Fip --csv filefabric: 120673758,Burnt PDFs/ 120673759,My Quick Uploads/ 120673755,My Syncs/ 120673756,My backups/ 120673757,My contacts/ 120673761,S3 Storage/

    +
    
    +The ID for "S3 Storage" would be `120673761`.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to filefabric (Enterprise File Fabric).
    +
    +#### --filefabric-url
    +
    +URL of the Enterprise File Fabric to connect to.
    +
    +Properties:
    +
    +- Config:      url
    +- Env Var:     RCLONE_FILEFABRIC_URL
    +- Type:        string
    +- Required:    true
    +- Examples:
    +    - "https://storagemadeeasy.com"
    +        - Storage Made Easy US
    +    - "https://eu.storagemadeeasy.com"
    +        - Storage Made Easy EU
    +    - "https://yourfabric.smestorage.com"
    +        - Connect to your Enterprise File Fabric
    +
    +#### --filefabric-root-folder-id
    +
    +ID of the root folder.
    +
    +Leave blank normally.
    +
    +Fill in to make rclone start with directory of a given ID.
    +
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_FILEFABRIC_ROOT_FOLDER_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --filefabric-permanent-token
    +
    +Permanent Authentication Token.
    +
    +A Permanent Authentication Token can be created in the Enterprise File
    +Fabric, on the users Dashboard under Security, there is an entry
    +you'll see called "My Authentication Tokens". Click the Manage button
    +to create one.
    +
    +These tokens are normally valid for several years.
    +
    +For more info see: https://docs.storagemadeeasy.com/organisationcloud/api-tokens
    +
    +
    +Properties:
    +
    +- Config:      permanent_token
    +- Env Var:     RCLONE_FILEFABRIC_PERMANENT_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to filefabric (Enterprise File Fabric).
    +
    +#### --filefabric-token
    +
    +Session Token.
    +
    +This is a session token which rclone caches in the config file. It is
    +usually valid for 1 hour.
    +
    +Don't set this value - rclone will set it automatically.
    +
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_FILEFABRIC_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --filefabric-token-expiry
    +
    +Token expiry time.
    +
    +Don't set this value - rclone will set it automatically.
    +
    +
    +Properties:
    +
    +- Config:      token_expiry
    +- Env Var:     RCLONE_FILEFABRIC_TOKEN_EXPIRY
    +- Type:        string
    +- Required:    false
    +
    +#### --filefabric-version
    +
    +Version read from the file fabric.
    +
    +Don't set this value - rclone will set it automatically.
    +
    +
    +Properties:
    +
    +- Config:      version
    +- Env Var:     RCLONE_FILEFABRIC_VERSION
    +- Type:        string
    +- Required:    false
    +
    +#### --filefabric-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_FILEFABRIC_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +#  FTP
    +
    +FTP is the File Transfer Protocol. Rclone FTP support is provided using the
    +[github.com/jlaffaye/ftp](https://godoc.org/github.com/jlaffaye/ftp)
    +package.
    +
    +[Limitations of Rclone's FTP backend](#limitations)
    +
    +Paths are specified as `remote:path`. If the path does not begin with
    +a `/` it is relative to the home directory of the user.  An empty path
    +`remote:` refers to the user's home directory.
    +
    +## Configuration
    +
    +To create an FTP configuration named `remote`, run
    +
    +    rclone config
    +
    +Rclone config guides you through an interactive setup process. A minimal
    +rclone FTP remote definition only requires host, username and password.
    +For an anonymous FTP server, see [below](#anonymous-ftp).
    +
    +

    No remotes found, make a new one? n) New remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config n/r/c/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / FTP  "ftp" [snip] Storage> ftp ** See help for ftp backend at: https://rclone.org/ftp/ **

    +

    FTP host to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to ftp.example.com  "ftp.example.com" host> ftp.example.com FTP username Enter a string value. Press Enter for the default ("$USER"). user> FTP port number Enter a signed integer. Press Enter for the default (21). port> FTP password y) Yes type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Use FTP over TLS (Implicit) Enter a boolean value (true or false). Press Enter for the default ("false"). tls> Use FTP over TLS (Explicit) Enter a boolean value (true or false). Press Enter for the default ("false"). explicit_tls> Remote config -------------------- [remote] type = ftp host = ftp.example.com pass = *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +To see all directories in the home directory of `remote`
    +
    +    rclone lsd remote:
    +
    +Make a new directory
    +
    +    rclone mkdir remote:path/to/directory
    +
    +List the contents of a directory
    +
    +    rclone ls remote:path/to/directory
    +
    +Sync `/home/local/directory` to the remote directory, deleting any
    +excess files in the directory.
    +
    +    rclone sync --interactive /home/local/directory remote:directory
    +
    +### Anonymous FTP
    +
    +When connecting to a FTP server that allows anonymous login, you can use the
    +special "anonymous" username. Traditionally, this user account accepts any
    +string as a password, although it is common to use either the password
    +"anonymous" or "guest". Some servers require the use of a valid e-mail
    +address as password.
    +
    +Using [on-the-fly](#backend-path-to-dir) or
    +[connection string](https://rclone.org/docs/#connection-strings) remotes makes it easy to access
    +such servers, without requiring any configuration in advance. The following
    +are examples of that:
    +
    +    rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-pass=$(rclone obscure dummy)
    +    rclone lsf :ftp,host=speedtest.tele2.net,user=anonymous,pass=$(rclone obscure dummy):
    +
    +The above examples work in Linux shells and in PowerShell, but not Windows
    +Command Prompt. They execute the [rclone obscure](https://rclone.org/commands/rclone_obscure/)
    +command to create a password string in the format required by the
    +[pass](#ftp-pass) option. The following examples are exactly the same, except use
    +an already obscured string representation of the same password "dummy", and
    +therefore works even in Windows Command Prompt:
    +
    +    rclone lsf :ftp: --ftp-host=speedtest.tele2.net --ftp-user=anonymous --ftp-pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM
    +    rclone lsf :ftp,host=speedtest.tele2.net,user=anonymous,pass=IXs2wc8OJOz7SYLBk47Ji1rHTmxM:
    +
    +### Implicit TLS
    +
    +Rlone FTP supports implicit FTP over TLS servers (FTPS). This has to
    +be enabled in the FTP backend config for the remote, or with
    +[`--ftp-tls`](#ftp-tls). The default FTPS port is `990`, not `21` and
    +can be set with [`--ftp-port`](#ftp-port).
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +File names cannot end with the following characters. Replacement is
    +limited to the last character in a file name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +
    +Not all FTP servers can have all characters in file names, for example:
    +
    +| FTP Server| Forbidden characters |
    +| --------- |:--------------------:|
    +| proftpd   | `*`                  |
    +| pureftpd  | `\ [ ]`              |
    +
    +This backend's interactive configuration wizard provides a selection of
    +sensible encoding settings for major FTP servers: ProFTPd, PureFTPd, VsFTPd.
    +Just hit a selection number when prompted.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to ftp (FTP).
    +
    +#### --ftp-host
    +
    +FTP host to connect to.
    +
    +E.g. "ftp.example.com".
    +
    +Properties:
    +
    +- Config:      host
    +- Env Var:     RCLONE_FTP_HOST
    +- Type:        string
    +- Required:    true
    +
    +#### --ftp-user
    +
    +FTP username.
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_FTP_USER
    +- Type:        string
    +- Default:     "$USER"
    +
    +#### --ftp-port
    +
    +FTP port number.
    +
    +Properties:
    +
    +- Config:      port
    +- Env Var:     RCLONE_FTP_PORT
    +- Type:        int
    +- Default:     21
    +
    +#### --ftp-pass
    +
    +FTP password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      pass
    +- Env Var:     RCLONE_FTP_PASS
    +- Type:        string
    +- Required:    false
    +
    +#### --ftp-tls
    +
    +Use Implicit FTPS (FTP over TLS).
    +
    +When using implicit FTP over TLS the client connects using TLS
    +right from the start which breaks compatibility with
    +non-TLS-aware servers. This is usually served over port 990 rather
    +than port 21. Cannot be used in combination with explicit FTPS.
    +
    +Properties:
    +
    +- Config:      tls
    +- Env Var:     RCLONE_FTP_TLS
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-explicit-tls
    +
    +Use Explicit FTPS (FTP over TLS).
    +
    +When using explicit FTP over TLS the client explicitly requests
    +security from the server in order to upgrade a plain text connection
    +to an encrypted one. Cannot be used in combination with implicit FTPS.
    +
    +Properties:
    +
    +- Config:      explicit_tls
    +- Env Var:     RCLONE_FTP_EXPLICIT_TLS
    +- Type:        bool
    +- Default:     false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to ftp (FTP).
    +
    +#### --ftp-concurrency
    +
    +Maximum number of FTP simultaneous connections, 0 for unlimited.
    +
    +Note that setting this is very likely to cause deadlocks so it should
    +be used with care.
    +
    +If you are doing a sync or copy then make sure concurrency is one more
    +than the sum of `--transfers` and `--checkers`.
    +
    +If you use `--check-first` then it just needs to be one more than the
    +maximum of `--checkers` and `--transfers`.
    +
    +So for `concurrency 3` you'd use `--checkers 2 --transfers 2
    +--check-first` or `--checkers 1 --transfers 1`.
    +
    +
    +
    +Properties:
    +
    +- Config:      concurrency
    +- Env Var:     RCLONE_FTP_CONCURRENCY
    +- Type:        int
    +- Default:     0
    +
    +#### --ftp-no-check-certificate
    +
    +Do not verify the TLS certificate of the server.
    +
    +Properties:
    +
    +- Config:      no_check_certificate
    +- Env Var:     RCLONE_FTP_NO_CHECK_CERTIFICATE
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-disable-epsv
    +
    +Disable using EPSV even if server advertises support.
    +
    +Properties:
    +
    +- Config:      disable_epsv
    +- Env Var:     RCLONE_FTP_DISABLE_EPSV
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-disable-mlsd
    +
    +Disable using MLSD even if server advertises support.
    +
    +Properties:
    +
    +- Config:      disable_mlsd
    +- Env Var:     RCLONE_FTP_DISABLE_MLSD
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-disable-utf8
    +
    +Disable using UTF-8 even if server advertises support.
    +
    +Properties:
    +
    +- Config:      disable_utf8
    +- Env Var:     RCLONE_FTP_DISABLE_UTF8
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-writing-mdtm
    +
    +Use MDTM to set modification time (VsFtpd quirk)
    +
    +Properties:
    +
    +- Config:      writing_mdtm
    +- Env Var:     RCLONE_FTP_WRITING_MDTM
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-force-list-hidden
    +
    +Use LIST -a to force listing of hidden files and folders. This will disable the use of MLSD.
    +
    +Properties:
    +
    +- Config:      force_list_hidden
    +- Env Var:     RCLONE_FTP_FORCE_LIST_HIDDEN
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-idle-timeout
    +
    +Max time before closing idle connections.
    +
    +If no connections have been returned to the connection pool in the time
    +given, rclone will empty the connection pool.
    +
    +Set to 0 to keep connections indefinitely.
    +
    +
    +Properties:
    +
    +- Config:      idle_timeout
    +- Env Var:     RCLONE_FTP_IDLE_TIMEOUT
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --ftp-close-timeout
    +
    +Maximum time to wait for a response to close.
    +
    +Properties:
    +
    +- Config:      close_timeout
    +- Env Var:     RCLONE_FTP_CLOSE_TIMEOUT
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --ftp-tls-cache-size
    +
    +Size of TLS session cache for all control and data connections.
    +
    +TLS cache allows to resume TLS sessions and reuse PSK between connections.
    +Increase if default size is not enough resulting in TLS resumption errors.
    +Enabled by default. Use 0 to disable.
    +
    +Properties:
    +
    +- Config:      tls_cache_size
    +- Env Var:     RCLONE_FTP_TLS_CACHE_SIZE
    +- Type:        int
    +- Default:     32
    +
    +#### --ftp-disable-tls13
    +
    +Disable TLS 1.3 (workaround for FTP servers with buggy TLS)
    +
    +Properties:
    +
    +- Config:      disable_tls13
    +- Env Var:     RCLONE_FTP_DISABLE_TLS13
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-shut-timeout
    +
    +Maximum time to wait for data connection closing status.
    +
    +Properties:
    +
    +- Config:      shut_timeout
    +- Env Var:     RCLONE_FTP_SHUT_TIMEOUT
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --ftp-ask-password
    +
    +Allow asking for FTP password when needed.
    +
    +If this is set and no password is supplied then rclone will ask for a password
    +
    +
    +Properties:
    +
    +- Config:      ask_password
    +- Env Var:     RCLONE_FTP_ASK_PASSWORD
    +- Type:        bool
    +- Default:     false
    +
    +#### --ftp-socks-proxy
    +
    +Socks 5 proxy host.
    +        
    +        Supports the format user:pass@host:port, user@host:port, host:port.
    +        
    +        Example:
    +        
    +            myUser:myPass@localhost:9005
    +        
    +
    +Properties:
    +
    +- Config:      socks_proxy
    +- Env Var:     RCLONE_FTP_SOCKS_PROXY
    +- Type:        string
    +- Required:    false
    +
    +#### --ftp-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_FTP_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Del,Ctl,RightSpace,Dot
    +- Examples:
    +    - "Asterisk,Ctl,Dot,Slash"
    +        - ProFTPd can't handle '*' in file names
    +    - "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket"
    +        - PureFTPd can't handle '[]' or '*' in file names
    +    - "Ctl,LeftPeriod,Slash"
    +        - VsFTPd can't handle file names starting with dot
    +
    +
    +
    +## Limitations
    +
    +FTP servers acting as rclone remotes must support `passive` mode.
    +The mode cannot be configured as `passive` is the only supported one.
    +Rclone's FTP implementation is not compatible with `active` mode
    +as [the library it uses doesn't support it](https://github.com/jlaffaye/ftp/issues/29).
    +This will likely never be supported due to security concerns.
    +
    +Rclone's FTP backend does not support any checksums but can compare
    +file sizes.
    +
    +`rclone about` is not supported by the FTP backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +The implementation of : `--dump headers`,
    +`--dump bodies`, `--dump auth` for debugging isn't the same as
    +for rclone HTTP based backends - it has less fine grained control.
    +
    +`--timeout` isn't supported (but `--contimeout` is).
    +
    +`--bind` isn't supported.
    +
    +Rclone's FTP backend could support server-side move but does not
    +at present.
    +
    +The `ftp_proxy` environment variable is not currently supported.
    +
    +#### Modified time
    +
    +File modification time (timestamps) is supported to 1 second resolution
    +for major FTP servers: ProFTPd, PureFTPd, VsFTPd, and FileZilla FTP server.
    +The `VsFTPd` server has non-standard implementation of time related protocol
    +commands and needs a special configuration setting: `writing_mdtm = true`.
    +
    +Support for precise file time with other FTP servers varies depending on what
    +protocol extensions they advertise. If all the `MLSD`, `MDTM` and `MFTM`
    +extensions are present, rclone will use them together to provide precise time.
    +Otherwise the times you see on the FTP server through rclone are those of the
    +last file upload.
    +
    +You can use the following command to check whether rclone can use precise time
    +with your FTP server: `rclone backend features your_ftp_remote:` (the trailing
    +colon is important). Look for the number in the line tagged by `Precision`
    +designating the remote time precision expressed as nanoseconds. A value of
    +`1000000000` means that file time precision of 1 second is available.
    +A value of `3153600000000000000` (or another large number) means "unsupported".
    +
    +#  Google Cloud Storage
    +
    +Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g. `remote:bucket/path/to/dir`.
    +
    +## Configuration
    +
    +The initial setup for google cloud storage involves getting a token from Google Cloud Storage
    +which you need to do in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +
      +
    1. New remote
    2. +
    3. Delete remote
    4. +
    5. Quit config e/n/d/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Google Cloud Storage (this is not Google Drive)  "google cloud storage" [snip] Storage> google cloud storage Google Application Client Id - leave blank normally. client_id> Google Application Client Secret - leave blank normally. client_secret> Project number optional - needed only for list/create/delete buckets - see your developer console. project_number> 12345678 Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login. service_account_file> Access Control List for new objects. Choose a number from below, or type in your own value 1 / Object owner gets OWNER access, and all Authenticated Users get READER access.  "authenticatedRead" 2 / Object owner gets OWNER access, and project team owners get OWNER access.  "bucketOwnerFullControl" 3 / Object owner gets OWNER access, and project team owners get READER access.  "bucketOwnerRead" 4 / Object owner gets OWNER access [default if left blank].  "private" 5 / Object owner gets OWNER access, and project team members get access according to their roles.  "projectPrivate" 6 / Object owner gets OWNER access, and all Users get READER access.  "publicRead" object_acl> 4 Access Control List for new buckets. Choose a number from below, or type in your own value 1 / Project team owners get OWNER access, and all Authenticated Users get READER access.  "authenticatedRead" 2 / Project team owners get OWNER access [default if left blank].  "private" 3 / Project team members get access according to their roles.  "projectPrivate" 4 / Project team owners get OWNER access, and all Users get READER access.  "publicRead" 5 / Project team owners get OWNER access, and all Users get WRITER access.  "publicReadWrite" bucket_acl> 2 Location for the newly created buckets. Choose a number from below, or type in your own value 1 / Empty for default location (US).  "" 2 / Multi-regional location for Asia.  "asia" 3 / Multi-regional location for Europe.  "eu" 4 / Multi-regional location for United States.  "us" 5 / Taiwan.  "asia-east1" 6 / Tokyo.  "asia-northeast1" 7 / Singapore.  "asia-southeast1" 8 / Sydney.  "australia-southeast1" 9 / Belgium.  "europe-west1" 10 / London.  "europe-west2" 11 / Iowa.  "us-central1" 12 / South Carolina.  "us-east1" 13 / Northern Virginia.  "us-east4" 14 / Oregon.  "us-west1" location> 12 The storage class to use when storing objects in Google Cloud Storage. Choose a number from below, or type in your own value 1 / Default  "" 2 / Multi-regional storage class  "MULTI_REGIONAL" 3 / Regional storage class  "REGIONAL" 4 / Nearline storage class  "NEARLINE" 5 / Coldline storage class  "COLDLINE" 6 / Durable reduced availability storage class  "DURABLE_REDUCED_AVAILABILITY" storage_class> 5 Remote config Use web browser to automatically authenticate rclone with remote?
    6. +
    -

    --mailru-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    File size limits depend on your account. A single file size is limited by 2G for a free account and unlimited for paid tariffs. Please refer to the Mail.ru site for the total uploaded size limits.

    -

    Note that Mailru is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    Mega

    -

    Mega is a cloud storage and file hosting service known for its security feature where all files are encrypted locally before they are uploaded. This prevents anyone (including employees of Mega) from accessing the files without knowledge of the key used for encryption.

    -

    This is an rclone backend for Mega which supports the file transfer features of Mega using the same client side encryption.

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Mega
    -   \ "mega"
    -[snip]
    -Storage> mega
    -User name
    -user> you@example.com
    -Password.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank
    -y/g/n> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Remote config
    ---------------------
    -[remote]
    -type = mega
    -user = you@example.com
    -pass = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    NOTE: The encryption keys need to have been already generated after a regular login via the browser, otherwise attempting to use the credentials in rclone will fail.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your Mega

    -
    rclone lsd remote:
    -

    List all the files in your Mega

    -
    rclone ls remote:
    -

    To copy a local directory to an Mega directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    Mega does not support modification times or hashes yet.

    -

    Restricted filename characters

    - +
      +
    1. Yes
    2. +
    3. No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] type = google cloud storage client_id = client_secret = token = {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null} project_number = 12345678 object_acl = private bucket_acl = private --------------------
    4. +
    5. Yes this is OK
    6. +
    7. Edit this remote
    8. +
    9. Delete this remote y/e/d> y
    10. +
    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Google if using web browser to automatically 
    +authenticate. This only
    +runs from the moment it opens your browser to the moment you get back
    +the verification code.  This is on `http://127.0.0.1:53682/` and this
    +it may require you to unblock it temporarily if you are running a host
    +firewall, or use manual mode.
    +
    +This remote is called `remote` and can now be used like this
    +
    +See all the buckets in your project
    +
    +    rclone lsd remote:
    +
    +Make a new bucket
    +
    +    rclone mkdir remote:bucket
    +
    +List the contents of a bucket
    +
    +    rclone ls remote:bucket
    +
    +Sync `/home/local/directory` to the remote bucket, deleting any excess
    +files in the bucket.
    +
    +    rclone sync --interactive /home/local/directory remote:bucket
    +
    +### Service Account support
    +
    +You can set up rclone with Google Cloud Storage in an unattended mode,
    +i.e. not tied to a specific end-user Google account. This is useful
    +when you want to synchronise files onto machines that don't have
    +actively logged-in users, for example build machines.
    +
    +To get credentials for Google Cloud Platform
    +[IAM Service Accounts](https://cloud.google.com/iam/docs/service-accounts),
    +please head to the
    +[Service Account](https://console.cloud.google.com/permissions/serviceaccounts)
    +section of the Google Developer Console. Service Accounts behave just
    +like normal `User` permissions in
    +[Google Cloud Storage ACLs](https://cloud.google.com/storage/docs/access-control),
    +so you can limit their access (e.g. make them read only). After
    +creating an account, a JSON file containing the Service Account's
    +credentials will be downloaded onto your machines. These credentials
    +are what rclone will use for authentication.
    +
    +To use a Service Account instead of OAuth2 token flow, enter the path
    +to your Service Account credentials at the `service_account_file`
    +prompt and rclone won't use the browser based authentication
    +flow. If you'd rather stuff the contents of the credentials file into
    +the rclone config file, you can set `service_account_credentials` with
    +the actual contents of the file instead, or set the equivalent
    +environment variable.
    +
    +### Anonymous Access
    +
    +For downloads of objects that permit public access you can configure rclone
    +to use anonymous access by setting `anonymous` to `true`.
    +With unauthorized access you can't write or create files but only read or list
    +those buckets and objects that have public read access.
    +
    +### Application Default Credentials
    +
    +If no other source of credentials is provided, rclone will fall back
    +to
    +[Application Default Credentials](https://cloud.google.com/video-intelligence/docs/common/auth#authenticating_with_application_default_credentials)
    +this is useful both when you already have configured authentication
    +for your developer account, or in production when running on a google
    +compute host. Note that if running in docker, you may need to run
    +additional commands on your google compute machine -
    +[see this page](https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud_as_a_docker_credential_helper).
    +
    +Note that in the case application default credentials are used, there
    +is no need to explicitly configure a project number.
    +
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +### Custom upload headers
    +
    +You can set custom upload headers with the `--header-upload`
    +flag. Google Cloud Storage supports the headers as described in the
    +[working with metadata documentation](https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata)
    +
    +- Cache-Control
    +- Content-Disposition
    +- Content-Encoding
    +- Content-Language
    +- Content-Type
    +- X-Goog-Storage-Class
    +- X-Goog-Meta-
    +
    +Eg `--header-upload "Content-Type text/potato"`
    +
    +Note that the last of these is for setting custom metadata in the form
    +`--header-upload "x-goog-meta-key: value"`
    +
    +### Modification time
    +
    +Google Cloud Storage stores md5sum natively.
    +Google's [gsutil](https://cloud.google.com/storage/docs/gsutil) tool stores modification time
    +with one-second precision as `goog-reserved-file-mtime` in file metadata.
    +
    +To ensure compatibility with gsutil, rclone stores modification time in 2 separate metadata entries.
    +`mtime` uses RFC3339 format with one-nanosecond precision.
    +`goog-reserved-file-mtime` uses Unix timestamp format with one-second precision.
    +To get modification time from object metadata, rclone reads the metadata in the following order: `mtime`, `goog-reserved-file-mtime`, object updated time.
    +
    +Note that rclone's default modify window is 1ns.
    +Files uploaded by gsutil only contain timestamps with one-second precision.
    +If you use rclone to sync files previously uploaded by gsutil,
    +rclone will attempt to update modification time for all these files.
    +To avoid these possibly unnecessary updates, use `--modify-window 1s`.
    +
    +### Restricted filename characters
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| NUL       | 0x00  | ␀           |
    +| LF        | 0x0A  | ␊           |
    +| CR        | 0x0D  | ␍           |
    +| /         | 0x2F  | /          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
    +
    +#### --gcs-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_GCS_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_GCS_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-project-number
    +
    +Project number.
    +
    +Optional - needed only for list/create/delete buckets - see your developer console.
    +
    +Properties:
    +
    +- Config:      project_number
    +- Env Var:     RCLONE_GCS_PROJECT_NUMBER
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-user-project
    +
    +User project.
    +
    +Optional - needed only for requester pays.
    +
    +Properties:
    +
    +- Config:      user_project
    +- Env Var:     RCLONE_GCS_USER_PROJECT
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-service-account-file
    +
    +Service Account Credentials JSON file path.
    +
    +Leave blank normally.
    +Needed only if you want use SA instead of interactive login.
    +
    +Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
    +
    +Properties:
    +
    +- Config:      service_account_file
    +- Env Var:     RCLONE_GCS_SERVICE_ACCOUNT_FILE
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-service-account-credentials
    +
    +Service Account Credentials JSON blob.
    +
    +Leave blank normally.
    +Needed only if you want use SA instead of interactive login.
    +
    +Properties:
    +
    +- Config:      service_account_credentials
    +- Env Var:     RCLONE_GCS_SERVICE_ACCOUNT_CREDENTIALS
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-anonymous
    +
    +Access public buckets and objects without credentials.
    +
    +Set to 'true' if you just want to download files and don't configure credentials.
    +
    +Properties:
    +
    +- Config:      anonymous
    +- Env Var:     RCLONE_GCS_ANONYMOUS
    +- Type:        bool
    +- Default:     false
    +
    +#### --gcs-object-acl
    +
    +Access Control List for new objects.
    +
    +Properties:
    +
    +- Config:      object_acl
    +- Env Var:     RCLONE_GCS_OBJECT_ACL
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "authenticatedRead"
    +        - Object owner gets OWNER access.
    +        - All Authenticated Users get READER access.
    +    - "bucketOwnerFullControl"
    +        - Object owner gets OWNER access.
    +        - Project team owners get OWNER access.
    +    - "bucketOwnerRead"
    +        - Object owner gets OWNER access.
    +        - Project team owners get READER access.
    +    - "private"
    +        - Object owner gets OWNER access.
    +        - Default if left blank.
    +    - "projectPrivate"
    +        - Object owner gets OWNER access.
    +        - Project team members get access according to their roles.
    +    - "publicRead"
    +        - Object owner gets OWNER access.
    +        - All Users get READER access.
    +
    +#### --gcs-bucket-acl
    +
    +Access Control List for new buckets.
    +
    +Properties:
    +
    +- Config:      bucket_acl
    +- Env Var:     RCLONE_GCS_BUCKET_ACL
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "authenticatedRead"
    +        - Project team owners get OWNER access.
    +        - All Authenticated Users get READER access.
    +    - "private"
    +        - Project team owners get OWNER access.
    +        - Default if left blank.
    +    - "projectPrivate"
    +        - Project team members get access according to their roles.
    +    - "publicRead"
    +        - Project team owners get OWNER access.
    +        - All Users get READER access.
    +    - "publicReadWrite"
    +        - Project team owners get OWNER access.
    +        - All Users get WRITER access.
    +
    +#### --gcs-bucket-policy-only
    +
    +Access checks should use bucket-level IAM policies.
    +
    +If you want to upload objects to a bucket with Bucket Policy Only set
    +then you will need to set this.
    +
    +When it is set, rclone:
    +
    +- ignores ACLs set on buckets
    +- ignores ACLs set on objects
    +- creates buckets with Bucket Policy Only set
    +
    +Docs: https://cloud.google.com/storage/docs/bucket-policy-only
    +
    +
    +Properties:
    +
    +- Config:      bucket_policy_only
    +- Env Var:     RCLONE_GCS_BUCKET_POLICY_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --gcs-location
    +
    +Location for the newly created buckets.
    +
    +Properties:
    +
    +- Config:      location
    +- Env Var:     RCLONE_GCS_LOCATION
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - Empty for default location (US)
    +    - "asia"
    +        - Multi-regional location for Asia
    +    - "eu"
    +        - Multi-regional location for Europe
    +    - "us"
    +        - Multi-regional location for United States
    +    - "asia-east1"
    +        - Taiwan
    +    - "asia-east2"
    +        - Hong Kong
    +    - "asia-northeast1"
    +        - Tokyo
    +    - "asia-northeast2"
    +        - Osaka
    +    - "asia-northeast3"
    +        - Seoul
    +    - "asia-south1"
    +        - Mumbai
    +    - "asia-south2"
    +        - Delhi
    +    - "asia-southeast1"
    +        - Singapore
    +    - "asia-southeast2"
    +        - Jakarta
    +    - "australia-southeast1"
    +        - Sydney
    +    - "australia-southeast2"
    +        - Melbourne
    +    - "europe-north1"
    +        - Finland
    +    - "europe-west1"
    +        - Belgium
    +    - "europe-west2"
    +        - London
    +    - "europe-west3"
    +        - Frankfurt
    +    - "europe-west4"
    +        - Netherlands
    +    - "europe-west6"
    +        - Zürich
    +    - "europe-central2"
    +        - Warsaw
    +    - "us-central1"
    +        - Iowa
    +    - "us-east1"
    +        - South Carolina
    +    - "us-east4"
    +        - Northern Virginia
    +    - "us-west1"
    +        - Oregon
    +    - "us-west2"
    +        - California
    +    - "us-west3"
    +        - Salt Lake City
    +    - "us-west4"
    +        - Las Vegas
    +    - "northamerica-northeast1"
    +        - Montréal
    +    - "northamerica-northeast2"
    +        - Toronto
    +    - "southamerica-east1"
    +        - São Paulo
    +    - "southamerica-west1"
    +        - Santiago
    +    - "asia1"
    +        - Dual region: asia-northeast1 and asia-northeast2.
    +    - "eur4"
    +        - Dual region: europe-north1 and europe-west4.
    +    - "nam4"
    +        - Dual region: us-central1 and us-east1.
    +
    +#### --gcs-storage-class
    +
    +The storage class to use when storing objects in Google Cloud Storage.
    +
    +Properties:
    +
    +- Config:      storage_class
    +- Env Var:     RCLONE_GCS_STORAGE_CLASS
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - Default
    +    - "MULTI_REGIONAL"
    +        - Multi-regional storage class
    +    - "REGIONAL"
    +        - Regional storage class
    +    - "NEARLINE"
    +        - Nearline storage class
    +    - "COLDLINE"
    +        - Coldline storage class
    +    - "ARCHIVE"
    +        - Archive storage class
    +    - "DURABLE_REDUCED_AVAILABILITY"
    +        - Durable reduced availability storage class
    +
    +#### --gcs-env-auth
    +
    +Get GCP IAM credentials from runtime (environment variables or instance meta data if no env vars).
    +
    +Only applies if service_account_file and service_account_credentials is blank.
    +
    +Properties:
    +
    +- Config:      env_auth
    +- Env Var:     RCLONE_GCS_ENV_AUTH
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "false"
    +        - Enter credentials in the next step.
    +    - "true"
    +        - Get GCP IAM credentials from the environment (env vars or IAM).
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
    +
    +#### --gcs-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_GCS_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_GCS_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_GCS_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-directory-markers
    +
    +Upload an empty object with a trailing slash when a new directory is created
    +
    +Empty folders are unsupported for bucket based remotes, this option creates an empty
    +object ending with "/", to persist the folder.
    +
    +
    +Properties:
    +
    +- Config:      directory_markers
    +- Env Var:     RCLONE_GCS_DIRECTORY_MARKERS
    +- Type:        bool
    +- Default:     false
    +
    +#### --gcs-no-check-bucket
    +
    +If set, don't attempt to check the bucket exists or create it.
    +
    +This can be useful when trying to minimise the number of transactions
    +rclone does if you know the bucket exists already.
    +
    +
    +Properties:
    +
    +- Config:      no_check_bucket
    +- Env Var:     RCLONE_GCS_NO_CHECK_BUCKET
    +- Type:        bool
    +- Default:     false
    +
    +#### --gcs-decompress
    +
    +If set this will decompress gzip encoded objects.
    +
    +It is possible to upload objects to GCS with "Content-Encoding: gzip"
    +set. Normally rclone will download these files as compressed objects.
    +
    +If this flag is set then rclone will decompress these files with
    +"Content-Encoding: gzip" as they are received. This means that rclone
    +can't check the size and hash but the file contents will be decompressed.
    +
    +
    +Properties:
    +
    +- Config:      decompress
    +- Env Var:     RCLONE_GCS_DECOMPRESS
    +- Type:        bool
    +- Default:     false
    +
    +#### --gcs-endpoint
    +
    +Endpoint for the service.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_GCS_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --gcs-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_GCS_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,CrLf,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +`rclone about` is not supported by the Google Cloud Storage backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Google Drive
    +
    +Paths are specified as `drive:path`
    +
    +Drive paths may be as deep as required, e.g. `drive:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for drive involves getting a token from Google drive
    +which you need to do in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config n/r/c/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Google Drive  "drive" [snip] Storage> drive Google Application Client Id - leave blank normally. client_id> Google Application Client Secret - leave blank normally. client_secret> Scope that rclone should use when requesting access from drive. Choose a number from below, or type in your own value 1 / Full access all files, excluding Application Data Folder.  "drive" 2 / Read-only access to file metadata and file contents.  "drive.readonly" / Access to files created by rclone only. 3 | These are visible in the drive website. | File authorization is revoked when the user deauthorizes the app.  "drive.file" / Allows read and write access to the Application Data folder. 4 | This is not visible in the drive website.  "drive.appfolder" / Allows read-only access to file metadata but 5 | does not allow any access to read or download file content.  "drive.metadata.readonly" scope> 1 Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login. service_account_file> Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code Configure this as a Shared Drive (Team Drive)? y) Yes n) No y/n> n -------------------- [remote] client_id = client_secret = scope = drive root_folder_id = service_account_file = token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2014-03-16T13:57:58.955387075Z"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Google if using web browser to automatically 
    +authenticate. This only
    +runs from the moment it opens your browser to the moment you get back
    +the verification code.  This is on `http://127.0.0.1:53682/` and it
    +may require you to unblock it temporarily if you are running a host
    +firewall, or use manual mode.
    +
    +You can then use it like this,
    +
    +List directories in top level of your drive
    +
    +    rclone lsd remote:
    +
    +List all the files in your drive
    +
    +    rclone ls remote:
    +
    +To copy a local directory to a drive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Scopes
    +
    +Rclone allows you to select which scope you would like for rclone to
    +use.  This changes what type of token is granted to rclone.  [The
    +scopes are defined
    +here](https://developers.google.com/drive/v3/web/about-auth).
    +
    +The scope are
    +
    +#### drive
    +
    +This is the default scope and allows full access to all files, except
    +for the Application Data Folder (see below).
    +
    +Choose this one if you aren't sure.
    +
    +#### drive.readonly
    +
    +This allows read only access to all files.  Files may be listed and
    +downloaded but not uploaded, renamed or deleted.
    +
    +#### drive.file
    +
    +With this scope rclone can read/view/modify only those files and
    +folders it creates.
    +
    +So if you uploaded files to drive via the web interface (or any other
    +means) they will not be visible to rclone.
    +
    +This can be useful if you are using rclone to backup data and you want
    +to be sure confidential data on your drive is not visible to rclone.
    +
    +Files created with this scope are visible in the web interface.
    +
    +#### drive.appfolder
    +
    +This gives rclone its own private area to store files.  Rclone will
    +not be able to see any other files on your drive and you won't be able
    +to see rclone's files from the web interface either.
    +
    +#### drive.metadata.readonly
    +
    +This allows read only access to file names only.  It does not allow
    +rclone to download or upload data, or rename or delete files or
    +directories.
    +
    +### Root folder ID
    +
    +This option has been moved to the advanced section. You can set the `root_folder_id` for rclone.  This is the directory
    +(identified by its `Folder ID`) that rclone considers to be the root
    +of your drive.
    +
    +Normally you will leave this blank and rclone will determine the
    +correct root to use itself.
    +
    +However you can set this to restrict rclone to a specific folder
    +hierarchy or to access data within the "Computers" tab on the drive
    +web interface (where files from Google's Backup and Sync desktop
    +program go).
    +
    +In order to do this you will have to find the `Folder ID` of the
    +directory you wish rclone to display.  This will be the last segment
    +of the URL when you open the relevant folder in the drive web
    +interface.
    +
    +So if the folder you want rclone to use has a URL which looks like
    +`https://drive.google.com/drive/folders/1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh`
    +in the browser, then you use `1XyfxxxxxxxxxxxxxxxxxxxxxxxxxKHCh` as
    +the `root_folder_id` in the config.
    +
    +**NB** folders under the "Computers" tab seem to be read only (drive
    +gives a 500 error) when using rclone.
    +
    +There doesn't appear to be an API to discover the folder IDs of the
    +"Computers" tab - please contact us if you know otherwise!
    +
    +Note also that rclone can't access any data under the "Backups" tab on
    +the google drive web interface yet.
    +
    +### Service Account support
    +
    +You can set up rclone with Google Drive in an unattended mode,
    +i.e. not tied to a specific end-user Google account. This is useful
    +when you want to synchronise files onto machines that don't have
    +actively logged-in users, for example build machines.
    +
    +To use a Service Account instead of OAuth2 token flow, enter the path
    +to your Service Account credentials at the `service_account_file`
    +prompt during `rclone config` and rclone won't use the browser based
    +authentication flow. If you'd rather stuff the contents of the
    +credentials file into the rclone config file, you can set
    +`service_account_credentials` with the actual contents of the file
    +instead, or set the equivalent environment variable.
    +
    +#### Use case - Google Apps/G-suite account and individual Drive
    +
    +Let's say that you are the administrator of a Google Apps (old) or
    +G-suite account.
    +The goal is to store data on an individual's Drive account, who IS
    +a member of the domain.
    +We'll call the domain **example.com**, and the user
    +**foo@example.com**.
    +
    +There's a few steps we need to go through to accomplish this:
    +
    +##### 1. Create a service account for example.com
    +  - To create a service account and obtain its credentials, go to the
    +[Google Developer Console](https://console.developers.google.com).
    +  - You must have a project - create one if you don't.
    +  - Then go to "IAM & admin" -> "Service Accounts".
    +  - Use the "Create Service Account" button. Fill in "Service account name"
    +and "Service account ID" with something that identifies your client.
    +  - Select "Create And Continue". Step 2 and 3 are optional.
    +  - These credentials are what rclone will use for authentication.
    +If you ever need to remove access, press the "Delete service
    +account key" button.
    +
    +##### 2. Allowing API access to example.com Google Drive
    +  - Go to example.com's admin console
    +  - Go into "Security" (or use the search bar)
    +  - Select "Show more" and then "Advanced settings"
    +  - Select "Manage API client access" in the "Authentication" section
    +  - In the "Client Name" field enter the service account's
    +"Client ID" - this can be found in the Developer Console under
    +"IAM & Admin" -> "Service Accounts", then "View Client ID" for
    +the newly created service account.
    +It is a ~21 character numerical string.
    +  - In the next field, "One or More API Scopes", enter
    +`https://www.googleapis.com/auth/drive`
    +to grant access to Google Drive specifically.
    +
    +##### 3. Configure rclone, assuming a new install
    +
    +

    rclone config

    +

    n/s/q> n # New name>gdrive # Gdrive is an example name Storage> # Select the number shown for Google Drive client_id> # Can be left blank client_secret> # Can be left blank scope> # Select your scope, 1 for example root_folder_id> # Can be left blank service_account_file> /home/foo/myJSONfile.json # This is where the JSON file goes! y/n> # Auto config, n

    +
    
    +##### 4. Verify that it's working
    +  - `rclone -v --drive-impersonate foo@example.com lsf gdrive:backup`
    +  - The arguments do:
    +    - `-v` - verbose logging
    +    - `--drive-impersonate foo@example.com` - this is what does
    +the magic, pretending to be user foo.
    +    - `lsf` - list files in a parsing friendly way
    +    - `gdrive:backup` - use the remote called gdrive, work in
    +the folder named backup.
    +
    +Note: in case you configured a specific root folder on gdrive and rclone is unable to access the contents of that folder when using `--drive-impersonate`, do this instead:
    +  - in the gdrive web interface, share your root folder with the user/email of the new Service Account you created/selected at step #1
    +  - use rclone without specifying the `--drive-impersonate` option, like this:
    +        `rclone -v lsf gdrive:backup`
    +
    +
    +### Shared drives (team drives)
    +
    +If you want to configure the remote to point to a Google Shared Drive
    +(previously known as Team Drives) then answer `y` to the question
    +`Configure this as a Shared Drive (Team Drive)?`.
    +
    +This will fetch the list of Shared Drives from google and allow you to
    +configure which one you want to use. You can also type in a Shared
    +Drive ID if you prefer.
    +
    +For example:
    +
    +

    Configure this as a Shared Drive (Team Drive)? y) Yes n) No y/n> y Fetching Shared Drive list... Choose a number from below, or type in your own value 1 / Rclone Test  "xxxxxxxxxxxxxxxxxxxx" 2 / Rclone Test 2  "yyyyyyyyyyyyyyyyyyyy" 3 / Rclone Test 3  "zzzzzzzzzzzzzzzzzzzz" Enter a Shared Drive ID> 1 -------------------- [remote] client_id = client_secret = token = {"AccessToken":"xxxx.x.xxxxx_xxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"1/xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx","Expiry":"2014-03-16T13:57:58.955387075Z","Extra":null} team_drive = xxxxxxxxxxxxxxxxxxxx -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +It does this by combining multiple `list` calls into a single API request.
    +
    +This works by combining many `'%s' in parents` filters into one expression.
    +To list the contents of directories a, b and c, the following requests will be send by the regular `List` function:
    +

    trashed=false and 'a' in parents trashed=false and 'b' in parents trashed=false and 'c' in parents

    +
    These can now be combined into a single request:
    +

    trashed=false and ('a' in parents or 'b' in parents or 'c' in parents)

    +
    
    +The implementation of `ListR` will put up to 50 `parents` filters into one request.
    +It will  use the `--checkers` value to specify the number of requests to run in parallel.
    +
    +In tests, these batch requests were up to 20x faster than the regular method.
    +Running the following command against different sized folders gives:
    +

    rclone lsjson -vv -R --checkers=6 gdrive:folder

    +
    
    +small folder (220 directories, 700 files):
    +
    +- without `--fast-list`: 38s
    +- with `--fast-list`: 10s
    +
    +large folder (10600 directories, 39000 files):
    +
    +- without `--fast-list`: 22:05 min
    +- with `--fast-list`: 58s
    +
    +### Modified time
    +
    +Google drive stores modification times accurate to 1 ms.
    +
    +### Restricted filename characters
    +
    +Only Invalid UTF-8 bytes will be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +In contrast to other backends, `/` can also be used in names and `.`
    +or `..` are valid names.
    +
    +### Revisions
    +
    +Google drive stores revisions of files.  When you upload a change to
    +an existing file to google drive using rclone it will create a new
    +revision of that file.
    +
    +Revisions follow the standard google policy which at time of writing
    +was
    +
    +  * They are deleted after 30 days or 100 revisions (whatever comes first).
    +  * They do not count towards a user storage quota.
    +
    +### Deleting files
    +
    +By default rclone will send all files to the trash when deleting
    +files.  If deleting them permanently is required then use the
    +`--drive-use-trash=false` flag, or set the equivalent environment
    +variable.
    +
    +### Shortcuts
    +
    +In March 2020 Google introduced a new feature in Google Drive called
    +[drive shortcuts](https://support.google.com/drive/answer/9700156)
    +([API](https://developers.google.com/drive/api/v3/shortcuts)). These
    +will (by September 2020) [replace the ability for files or folders to
    +be in multiple folders at once](https://cloud.google.com/blog/products/g-suite/simplifying-google-drives-folder-structure-and-sharing-models).
    +
    +Shortcuts are files that link to other files on Google Drive somewhat
    +like a symlink in unix, except they point to the underlying file data
    +(e.g. the inode in unix terms) so they don't break if the source is
    +renamed or moved about.
    +
    +By default rclone treats these as follows.
    +
    +For shortcuts pointing to files:
    +
    +- When listing a file shortcut appears as the destination file.
    +- When downloading the contents of the destination file is downloaded.
    +- When updating shortcut file with a non shortcut file, the shortcut is removed then a new file is uploaded in place of the shortcut.
    +- When server-side moving (renaming) the shortcut is renamed, not the destination file.
    +- When server-side copying the shortcut is copied, not the contents of the shortcut. (unless `--drive-copy-shortcut-content` is in use in which case the contents of the shortcut gets copied).
    +- When deleting the shortcut is deleted not the linked file.
    +- When setting the modification time, the modification time of the linked file will be set.
    +
    +For shortcuts pointing to folders:
    +
    +- When listing the shortcut appears as a folder and that folder will contain the contents of the linked folder appear (including any sub folders)
    +- When downloading the contents of the linked folder and sub contents are downloaded
    +- When uploading to a shortcut folder the file will be placed in the linked folder
    +- When server-side moving (renaming) the shortcut is renamed, not the destination folder
    +- When server-side copying the contents of the linked folder is copied, not the shortcut.
    +- When deleting with `rclone rmdir` or `rclone purge` the shortcut is deleted not the linked folder.
    +- **NB** When deleting with `rclone remove` or `rclone mount` the contents of the linked folder will be deleted.
    +
    +The [rclone backend](https://rclone.org/commands/rclone_backend/) command can be used to create shortcuts.  
    +
    +Shortcuts can be completely ignored with the `--drive-skip-shortcuts` flag
    +or the corresponding `skip_shortcuts` configuration setting.
    +
    +### Emptying trash
    +
    +If you wish to empty your trash you can use the `rclone cleanup remote:`
    +command which will permanently delete all your trashed files. This command
    +does not take any path arguments.
    +
    +Note that Google Drive takes some time (minutes to days) to empty the
    +trash even though the command returns within a few seconds.  No output
    +is echoed, so there will be no confirmation even using -v or -vv.
    +
    +### Quota information
    +
    +To view your current quota you can use the `rclone about remote:`
    +command which will display your usage limit (quota), the usage in Google
    +Drive, the size of all files in the Trash and the space used by other
    +Google services such as Gmail. This command does not take any path
    +arguments.
    +
    +#### Import/Export of google documents
    +
    +Google documents can be exported from and uploaded to Google Drive.
    +
    +When rclone downloads a Google doc it chooses a format to download
    +depending upon the `--drive-export-formats` setting.
    +By default the export formats are `docx,xlsx,pptx,svg` which are a
    +sensible default for an editable document.
    +
    +When choosing a format, rclone runs down the list provided in order
    +and chooses the first file format the doc can be exported as from the
    +list. If the file can't be exported to a format on the formats list,
    +then rclone will choose a format from the default list.
    +
    +If you prefer an archive copy then you might use `--drive-export-formats
    +pdf`, or if you prefer openoffice/libreoffice formats you might use
    +`--drive-export-formats ods,odt,odp`.
    +
    +Note that rclone adds the extension to the google doc, so if it is
    +called `My Spreadsheet` on google docs, it will be exported as `My
    +Spreadsheet.xlsx` or `My Spreadsheet.pdf` etc.
    +
    +When importing files into Google Drive, rclone will convert all
    +files with an extension in `--drive-import-formats` to their
    +associated document type.
    +rclone will not convert any files by default, since the conversion
    +is lossy process.
    +
    +The conversion must result in a file with the same extension when
    +the `--drive-export-formats` rules are applied to the uploaded document.
    +
    +Here are some examples for allowed and prohibited conversions.
    +
    +| export-formats | import-formats | Upload Ext | Document Ext | Allowed |
    +| -------------- | -------------- | ---------- | ------------ | ------- |
    +| odt | odt | odt | odt | Yes |
    +| odt | docx,odt | odt | odt | Yes |
    +|  | docx | docx | docx | Yes |
    +|  | odt | odt | docx | No |
    +| odt,docx | docx,odt | docx | odt | No |
    +| docx,odt | docx,odt | docx | docx | Yes |
    +| docx,odt | docx,odt | odt | docx | No |
    +
    +This limitation can be disabled by specifying `--drive-allow-import-name-change`.
    +When using this flag, rclone can convert multiple files types resulting
    +in the same document type at once, e.g. with `--drive-import-formats docx,odt,txt`,
    +all files having these extension would result in a document represented as a docx file.
    +This brings the additional risk of overwriting a document, if multiple files
    +have the same stem. Many rclone operations will not handle this name change
    +in any way. They assume an equal name when copying files and might copy the
    +file again or delete them when the name changes. 
    +
    +Here are the possible export extensions with their corresponding mime types.
    +Most of these can also be used for importing, but there more that are not
    +listed here. Some of these additional ones might only be available when
    +the operating system provides the correct MIME type entries.
    +
    +This list can be changed by Google Drive at any time and might not
    +represent the currently available conversions.
    +
    +| Extension | Mime Type | Description |
    +| --------- |-----------| ------------|
    +| bmp  | image/bmp | Windows Bitmap format |
    +| csv  | text/csv | Standard CSV format for Spreadsheets |
    +| doc  | application/msword | Classic Word file |
    +| docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Microsoft Office Document |
    +| epub | application/epub+zip | E-book format |
    +| html | text/html | An HTML Document |
    +| jpg  | image/jpeg | A JPEG Image File |
    +| json | application/vnd.google-apps.script+json | JSON Text Format for Google Apps scripts |
    +| odp  | application/vnd.oasis.opendocument.presentation | Openoffice Presentation |
    +| ods  | application/vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
    +| ods  | application/x-vnd.oasis.opendocument.spreadsheet | Openoffice Spreadsheet |
    +| odt  | application/vnd.oasis.opendocument.text | Openoffice Document |
    +| pdf  | application/pdf | Adobe PDF Format |
    +| pjpeg | image/pjpeg | Progressive JPEG Image |
    +| png  | image/png | PNG Image Format|
    +| pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | Microsoft Office Powerpoint |
    +| rtf  | application/rtf | Rich Text Format |
    +| svg  | image/svg+xml | Scalable Vector Graphics Format |
    +| tsv  | text/tab-separated-values | Standard TSV format for spreadsheets |
    +| txt  | text/plain | Plain Text |
    +| wmf  | application/x-msmetafile | Windows Meta File |
    +| xls  | application/vnd.ms-excel | Classic Excel file |
    +| xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Microsoft Office Spreadsheet |
    +| zip  | application/zip | A ZIP file of HTML, Images CSS |
    +
    +Google documents can also be exported as link files. These files will
    +open a browser window for the Google Docs website of that document
    +when opened. The link file extension has to be specified as a
    +`--drive-export-formats` parameter. They will match all available
    +Google Documents.
    +
    +| Extension | Description | OS Support |
    +| --------- | ----------- | ---------- |
    +| desktop | freedesktop.org specified desktop entry | Linux |
    +| link.html | An HTML Document with a redirect | All |
    +| url | INI style link file | macOS, Windows |
    +| webloc | macOS specific XML format | macOS |
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to drive (Google Drive).
    +
    +#### --drive-client-id
    +
    +Google Application Client Id
    +Setting your own is recommended.
    +See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
    +If you leave this blank, it will use an internal key which is low performance.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_DRIVE_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_DRIVE_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-scope
    +
    +Scope that rclone should use when requesting access from drive.
    +
    +Properties:
    +
    +- Config:      scope
    +- Env Var:     RCLONE_DRIVE_SCOPE
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "drive"
    +        - Full access all files, excluding Application Data Folder.
    +    - "drive.readonly"
    +        - Read-only access to file metadata and file contents.
    +    - "drive.file"
    +        - Access to files created by rclone only.
    +        - These are visible in the drive website.
    +        - File authorization is revoked when the user deauthorizes the app.
    +    - "drive.appfolder"
    +        - Allows read and write access to the Application Data folder.
    +        - This is not visible in the drive website.
    +    - "drive.metadata.readonly"
    +        - Allows read-only access to file metadata but
    +        - does not allow any access to read or download file content.
    +
    +#### --drive-service-account-file
    +
    +Service Account Credentials JSON file path.
    +
    +Leave blank normally.
    +Needed only if you want use SA instead of interactive login.
    +
    +Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
    +
    +Properties:
    +
    +- Config:      service_account_file
    +- Env Var:     RCLONE_DRIVE_SERVICE_ACCOUNT_FILE
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-alternate-export
    +
    +Deprecated: No longer needed.
    +
    +Properties:
    +
    +- Config:      alternate_export
    +- Env Var:     RCLONE_DRIVE_ALTERNATE_EXPORT
    +- Type:        bool
    +- Default:     false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to drive (Google Drive).
    +
    +#### --drive-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_DRIVE_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_DRIVE_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_DRIVE_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-root-folder-id
    +
    +ID of the root folder.
    +Leave blank normally.
    +
    +Fill in to access "Computers" folders (see docs), or for rclone to use
    +a non root folder as its starting point.
    +
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_DRIVE_ROOT_FOLDER_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-service-account-credentials
    +
    +Service Account Credentials JSON blob.
    +
    +Leave blank normally.
    +Needed only if you want use SA instead of interactive login.
    +
    +Properties:
    +
    +- Config:      service_account_credentials
    +- Env Var:     RCLONE_DRIVE_SERVICE_ACCOUNT_CREDENTIALS
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-team-drive
    +
    +ID of the Shared Drive (Team Drive).
    +
    +Properties:
    +
    +- Config:      team_drive
    +- Env Var:     RCLONE_DRIVE_TEAM_DRIVE
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-auth-owner-only
    +
    +Only consider files owned by the authenticated user.
    +
    +Properties:
    +
    +- Config:      auth_owner_only
    +- Env Var:     RCLONE_DRIVE_AUTH_OWNER_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-use-trash
    +
    +Send files to the trash instead of deleting permanently.
    +
    +Defaults to true, namely sending files to the trash.
    +Use `--drive-use-trash=false` to delete files permanently instead.
    +
    +Properties:
    +
    +- Config:      use_trash
    +- Env Var:     RCLONE_DRIVE_USE_TRASH
    +- Type:        bool
    +- Default:     true
    +
    +#### --drive-copy-shortcut-content
    +
    +Server side copy contents of shortcuts instead of the shortcut.
    +
    +When doing server side copies, normally rclone will copy shortcuts as
    +shortcuts.
    +
    +If this flag is used then rclone will copy the contents of shortcuts
    +rather than shortcuts themselves when doing server side copies.
    +
    +Properties:
    +
    +- Config:      copy_shortcut_content
    +- Env Var:     RCLONE_DRIVE_COPY_SHORTCUT_CONTENT
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-skip-gdocs
    +
    +Skip google documents in all listings.
    +
    +If given, gdocs practically become invisible to rclone.
    +
    +Properties:
    +
    +- Config:      skip_gdocs
    +- Env Var:     RCLONE_DRIVE_SKIP_GDOCS
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-skip-checksum-gphotos
    +
    +Skip MD5 checksum on Google photos and videos only.
    +
    +Use this if you get checksum errors when transferring Google photos or
    +videos.
    +
    +Setting this flag will cause Google photos and videos to return a
    +blank MD5 checksum.
    +
    +Google photos are identified by being in the "photos" space.
    +
    +Corrupted checksums are caused by Google modifying the image/video but
    +not updating the checksum.
    +
    +Properties:
    +
    +- Config:      skip_checksum_gphotos
    +- Env Var:     RCLONE_DRIVE_SKIP_CHECKSUM_GPHOTOS
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-shared-with-me
    +
    +Only show files that are shared with me.
    +
    +Instructs rclone to operate on your "Shared with me" folder (where
    +Google Drive lets you access the files and folders others have shared
    +with you).
    +
    +This works both with the "list" (lsd, lsl, etc.) and the "copy"
    +commands (copy, sync, etc.), and with all other commands too.
    +
    +Properties:
    +
    +- Config:      shared_with_me
    +- Env Var:     RCLONE_DRIVE_SHARED_WITH_ME
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-trashed-only
    +
    +Only show files that are in the trash.
    +
    +This will show trashed files in their original directory structure.
    +
    +Properties:
    +
    +- Config:      trashed_only
    +- Env Var:     RCLONE_DRIVE_TRASHED_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-starred-only
    +
    +Only show files that are starred.
    +
    +Properties:
    +
    +- Config:      starred_only
    +- Env Var:     RCLONE_DRIVE_STARRED_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-formats
    +
    +Deprecated: See export_formats.
    +
    +Properties:
    +
    +- Config:      formats
    +- Env Var:     RCLONE_DRIVE_FORMATS
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-export-formats
    +
    +Comma separated list of preferred formats for downloading Google docs.
    +
    +Properties:
    +
    +- Config:      export_formats
    +- Env Var:     RCLONE_DRIVE_EXPORT_FORMATS
    +- Type:        string
    +- Default:     "docx,xlsx,pptx,svg"
    +
    +#### --drive-import-formats
    +
    +Comma separated list of preferred formats for uploading Google docs.
    +
    +Properties:
    +
    +- Config:      import_formats
    +- Env Var:     RCLONE_DRIVE_IMPORT_FORMATS
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-allow-import-name-change
    +
    +Allow the filetype to change when uploading Google docs.
    +
    +E.g. file.doc to file.docx. This will confuse sync and reupload every time.
    +
    +Properties:
    +
    +- Config:      allow_import_name_change
    +- Env Var:     RCLONE_DRIVE_ALLOW_IMPORT_NAME_CHANGE
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-use-created-date
    +
    +Use file created date instead of modified date.
    +
    +Useful when downloading data and you want the creation date used in
    +place of the last modified date.
    +
    +**WARNING**: This flag may have some unexpected consequences.
    +
    +When uploading to your drive all files will be overwritten unless they
    +haven't been modified since their creation. And the inverse will occur
    +while downloading.  This side effect can be avoided by using the
    +"--checksum" flag.
    +
    +This feature was implemented to retain photos capture date as recorded
    +by google photos. You will first need to check the "Create a Google
    +Photos folder" option in your google drive settings. You can then copy
    +or move the photos locally and use the date the image was taken
    +(created) set as the modification date.
    +
    +Properties:
    +
    +- Config:      use_created_date
    +- Env Var:     RCLONE_DRIVE_USE_CREATED_DATE
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-use-shared-date
    +
    +Use date file was shared instead of modified date.
    +
    +Note that, as with "--drive-use-created-date", this flag may have
    +unexpected consequences when uploading/downloading files.
    +
    +If both this flag and "--drive-use-created-date" are set, the created
    +date is used.
    +
    +Properties:
    +
    +- Config:      use_shared_date
    +- Env Var:     RCLONE_DRIVE_USE_SHARED_DATE
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-list-chunk
    +
    +Size of listing chunk 100-1000, 0 to disable.
    +
    +Properties:
    +
    +- Config:      list_chunk
    +- Env Var:     RCLONE_DRIVE_LIST_CHUNK
    +- Type:        int
    +- Default:     1000
    +
    +#### --drive-impersonate
    +
    +Impersonate this user when using a service account.
    +
    +Properties:
    +
    +- Config:      impersonate
    +- Env Var:     RCLONE_DRIVE_IMPERSONATE
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-upload-cutoff
    +
    +Cutoff for switching to chunked upload.
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_DRIVE_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     8Mi
    +
    +#### --drive-chunk-size
    +
    +Upload chunk size.
    +
    +Must a power of 2 >= 256k.
    +
    +Making this larger will improve performance, but note that each chunk
    +is buffered in memory one per transfer.
    +
    +Reducing this will reduce memory usage but decrease performance.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_DRIVE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     8Mi
    +
    +#### --drive-acknowledge-abuse
    +
    +Set to allow files which return cannotDownloadAbusiveFile to be downloaded.
    +
    +If downloading a file returns the error "This file has been identified
    +as malware or spam and cannot be downloaded" with the error code
    +"cannotDownloadAbusiveFile" then supply this flag to rclone to
    +indicate you acknowledge the risks of downloading the file and rclone
    +will download it anyway.
    +
    +Note that if you are using service account it will need Manager
    +permission (not Content Manager) to for this flag to work. If the SA
    +does not have the right permission, Google will just ignore the flag.
    +
    +Properties:
    +
    +- Config:      acknowledge_abuse
    +- Env Var:     RCLONE_DRIVE_ACKNOWLEDGE_ABUSE
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-keep-revision-forever
    +
    +Keep new head revision of each file forever.
    +
    +Properties:
    +
    +- Config:      keep_revision_forever
    +- Env Var:     RCLONE_DRIVE_KEEP_REVISION_FOREVER
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-size-as-quota
    +
    +Show sizes as storage quota usage, not actual size.
    +
    +Show the size of a file as the storage quota used. This is the
    +current version plus any older versions that have been set to keep
    +forever.
    +
    +**WARNING**: This flag may have some unexpected consequences.
    +
    +It is not recommended to set this flag in your config - the
    +recommended usage is using the flag form --drive-size-as-quota when
    +doing rclone ls/lsl/lsf/lsjson/etc only.
    +
    +If you do use this flag for syncing (not recommended) then you will
    +need to use --ignore size also.
    +
    +Properties:
    +
    +- Config:      size_as_quota
    +- Env Var:     RCLONE_DRIVE_SIZE_AS_QUOTA
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-v2-download-min-size
    +
    +If Object's are greater, use drive v2 API to download.
    +
    +Properties:
    +
    +- Config:      v2_download_min_size
    +- Env Var:     RCLONE_DRIVE_V2_DOWNLOAD_MIN_SIZE
    +- Type:        SizeSuffix
    +- Default:     off
    +
    +#### --drive-pacer-min-sleep
    +
    +Minimum time to sleep between API calls.
    +
    +Properties:
    +
    +- Config:      pacer_min_sleep
    +- Env Var:     RCLONE_DRIVE_PACER_MIN_SLEEP
    +- Type:        Duration
    +- Default:     100ms
    +
    +#### --drive-pacer-burst
    +
    +Number of API calls to allow without sleeping.
    +
    +Properties:
    +
    +- Config:      pacer_burst
    +- Env Var:     RCLONE_DRIVE_PACER_BURST
    +- Type:        int
    +- Default:     100
    +
    +#### --drive-server-side-across-configs
    +
    +Deprecated: use --server-side-across-configs instead.
    +
    +Allow server-side operations (e.g. copy) to work across different drive configs.
    +
    +This can be useful if you wish to do a server-side copy between two
    +different Google drives.  Note that this isn't enabled by default
    +because it isn't easy to tell if it will work between any two
    +configurations.
    +
    +Properties:
    +
    +- Config:      server_side_across_configs
    +- Env Var:     RCLONE_DRIVE_SERVER_SIDE_ACROSS_CONFIGS
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-disable-http2
    +
    +Disable drive using http2.
    +
    +There is currently an unsolved issue with the google drive backend and
    +HTTP/2.  HTTP/2 is therefore disabled by default for the drive backend
    +but can be re-enabled here.  When the issue is solved this flag will
    +be removed.
    +
    +See: https://github.com/rclone/rclone/issues/3631
    +
    +
    +
    +Properties:
    +
    +- Config:      disable_http2
    +- Env Var:     RCLONE_DRIVE_DISABLE_HTTP2
    +- Type:        bool
    +- Default:     true
    +
    +#### --drive-stop-on-upload-limit
    +
    +Make upload limit errors be fatal.
    +
    +At the time of writing it is only possible to upload 750 GiB of data to
    +Google Drive a day (this is an undocumented limit). When this limit is
    +reached Google Drive produces a slightly different error message. When
    +this flag is set it causes these errors to be fatal.  These will stop
    +the in-progress sync.
    +
    +Note that this detection is relying on error message strings which
    +Google don't document so it may break in the future.
    +
    +See: https://github.com/rclone/rclone/issues/3857
    +
    +
    +Properties:
    +
    +- Config:      stop_on_upload_limit
    +- Env Var:     RCLONE_DRIVE_STOP_ON_UPLOAD_LIMIT
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-stop-on-download-limit
    +
    +Make download limit errors be fatal.
    +
    +At the time of writing it is only possible to download 10 TiB of data from
    +Google Drive a day (this is an undocumented limit). When this limit is
    +reached Google Drive produces a slightly different error message. When
    +this flag is set it causes these errors to be fatal.  These will stop
    +the in-progress sync.
    +
    +Note that this detection is relying on error message strings which
    +Google don't document so it may break in the future.
    +
    +
    +Properties:
    +
    +- Config:      stop_on_download_limit
    +- Env Var:     RCLONE_DRIVE_STOP_ON_DOWNLOAD_LIMIT
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-skip-shortcuts
    +
    +If set skip shortcut files.
    +
    +Normally rclone dereferences shortcut files making them appear as if
    +they are the original file (see [the shortcuts section](#shortcuts)).
    +If this flag is set then rclone will ignore shortcut files completely.
    +
    +
    +Properties:
    +
    +- Config:      skip_shortcuts
    +- Env Var:     RCLONE_DRIVE_SKIP_SHORTCUTS
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-skip-dangling-shortcuts
    +
    +If set skip dangling shortcut files.
    +
    +If this is set then rclone will not show any dangling shortcuts in listings.
    +
    +
    +Properties:
    +
    +- Config:      skip_dangling_shortcuts
    +- Env Var:     RCLONE_DRIVE_SKIP_DANGLING_SHORTCUTS
    +- Type:        bool
    +- Default:     false
    +
    +#### --drive-resource-key
    +
    +Resource key for accessing a link-shared file.
    +
    +If you need to access files shared with a link like this
    +
    +    https://drive.google.com/drive/folders/XXX?resourcekey=YYY&usp=sharing
    +
    +Then you will need to use the first part "XXX" as the "root_folder_id"
    +and the second part "YYY" as the "resource_key" otherwise you will get
    +404 not found errors when trying to access the directory.
    +
    +See: https://developers.google.com/drive/api/guides/resource-keys
    +
    +This resource key requirement only applies to a subset of old files.
    +
    +Note also that opening the folder once in the web interface (with the
    +user you've authenticated rclone with) seems to be enough so that the
    +resource key is not needed.
    +
    +
    +Properties:
    +
    +- Config:      resource_key
    +- Env Var:     RCLONE_DRIVE_RESOURCE_KEY
    +- Type:        string
    +- Required:    false
    +
    +#### --drive-fast-list-bug-fix
    +
    +Work around a bug in Google Drive listing.
    +
    +Normally rclone will work around a bug in Google Drive when using
    +--fast-list (ListR) where the search "(A in parents) or (B in
    +parents)" returns nothing sometimes. See #3114, #4289 and
    +https://issuetracker.google.com/issues/149522397
    +
    +Rclone detects this by finding no items in more than one directory
    +when listing and retries them as lists of individual directories.
    +
    +This means that if you have a lot of empty directories rclone will end
    +up listing them all individually and this can take many more API
    +calls.
    +
    +This flag allows the work-around to be disabled. This is **not**
    +recommended in normal use - only if you have a particular case you are
    +having trouble with like many empty directories.
    +
    +
    +Properties:
    +
    +- Config:      fast_list_bug_fix
    +- Env Var:     RCLONE_DRIVE_FAST_LIST_BUG_FIX
    +- Type:        bool
    +- Default:     true
    +
    +#### --drive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_DRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     InvalidUtf8
    +
    +#### --drive-env-auth
    +
    +Get IAM credentials from runtime (environment variables or instance meta data if no env vars).
    +
    +Only applies if service_account_file and service_account_credentials is blank.
    +
    +Properties:
    +
    +- Config:      env_auth
    +- Env Var:     RCLONE_DRIVE_ENV_AUTH
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "false"
    +        - Enter credentials in the next step.
    +    - "true"
    +        - Get GCP IAM credentials from the environment (env vars or IAM).
    +
    +## Backend commands
    +
    +Here are the commands specific to the drive backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### get
    +
    +Get command for fetching the drive config parameters
    +
    +    rclone backend get remote: [options] [<arguments>+]
    +
    +This is a get command which will be used to fetch the various drive config parameters
    +
    +Usage Examples:
    +
    +    rclone backend get drive: [-o service_account_file] [-o chunk_size]
    +    rclone rc backend/command command=get fs=drive: [-o service_account_file] [-o chunk_size]
    +
    +
    +Options:
    +
    +- "chunk_size": show the current upload chunk size
    +- "service_account_file": show the current service account file
    +
    +### set
    +
    +Set command for updating the drive config parameters
    +
    +    rclone backend set remote: [options] [<arguments>+]
    +
    +This is a set command which will be used to update the various drive config parameters
    +
    +Usage Examples:
    +
    +    rclone backend set drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
    +    rclone rc backend/command command=set fs=drive: [-o service_account_file=sa.json] [-o chunk_size=67108864]
    +
    +
    +Options:
    +
    +- "chunk_size": update the current upload chunk size
    +- "service_account_file": update the current service account file
    +
    +### shortcut
    +
    +Create shortcuts from files or directories
    +
    +    rclone backend shortcut remote: [options] [<arguments>+]
    +
    +This command creates shortcuts from files or directories.
    +
    +Usage:
    +
    +    rclone backend shortcut drive: source_item destination_shortcut
    +    rclone backend shortcut drive: source_item -o target=drive2: destination_shortcut
    +
    +In the first example this creates a shortcut from the "source_item"
    +which can be a file or a directory to the "destination_shortcut". The
    +"source_item" and the "destination_shortcut" should be relative paths
    +from "drive:"
    +
    +In the second example this creates a shortcut from the "source_item"
    +relative to "drive:" to the "destination_shortcut" relative to
    +"drive2:". This may fail with a permission error if the user
    +authenticated with "drive2:" can't read files from "drive:".
    +
    +
    +Options:
    +
    +- "target": optional target remote for the shortcut destination
    +
    +### drives
    +
    +List the Shared Drives available to this account
    +
    +    rclone backend drives remote: [options] [<arguments>+]
    +
    +This command lists the Shared Drives (Team Drives) available to this
    +account.
    +
    +Usage:
    +
    +    rclone backend [-o config] drives drive:
    +
    +This will return a JSON list of objects like this
    +
    +    [
    +        {
    +            "id": "0ABCDEF-01234567890",
    +            "kind": "drive#teamDrive",
    +            "name": "My Drive"
    +        },
    +        {
    +            "id": "0ABCDEFabcdefghijkl",
    +            "kind": "drive#teamDrive",
    +            "name": "Test Drive"
    +        }
    +    ]
    +
    +With the -o config parameter it will output the list in a format
    +suitable for adding to a config file to make aliases for all the
    +drives found and a combined drive.
    +
    +    [My Drive]
    +    type = alias
    +    remote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
    +
    +    [Test Drive]
    +    type = alias
    +    remote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
    +
    +    [AllDrives]
    +    type = combine
    +    upstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"
    +
    +Adding this to the rclone config file will cause those team drives to
    +be accessible with the aliases shown. Any illegal characters will be
    +substituted with "_" and duplicate names will have numbers suffixed.
    +It will also add a remote called AllDrives which shows all the shared
    +drives combined into one directory tree.
    +
    +
    +### untrash
    +
    +Untrash files and directories
    +
    +    rclone backend untrash remote: [options] [<arguments>+]
    +
    +This command untrashes all the files and directories in the directory
    +passed in recursively.
    +
    +Usage:
    +
    +This takes an optional directory to trash which make this easier to
    +use via the API.
    +
    +    rclone backend untrash drive:directory
    +    rclone backend --interactive untrash drive:directory subdir
    +
    +Use the --interactive/-i or --dry-run flag to see what would be restored before restoring it.
    +
    +Result:
    +
    +    {
    +        "Untrashed": 17,
    +        "Errors": 0
    +    }
    +
    +
    +### copyid
    +
    +Copy files by ID
    +
    +    rclone backend copyid remote: [options] [<arguments>+]
    +
    +This command copies files by ID
    +
    +Usage:
    +
    +    rclone backend copyid drive: ID path
    +    rclone backend copyid drive: ID1 path1 ID2 path2
    +
    +It copies the drive file with ID given to the path (an rclone path which
    +will be passed internally to rclone copyto). The ID and path pairs can be
    +repeated.
    +
    +The path should end with a / to indicate copy the file as named to
    +this directory. If it doesn't end with a / then the last path
    +component will be used as the file name.
    +
    +If the destination is a drive backend then server-side copying will be
    +attempted if possible.
    +
    +Use the --interactive/-i or --dry-run flag to see what would be copied before copying.
    +
    +
    +### exportformats
    +
    +Dump the export formats for debug purposes
    +
    +    rclone backend exportformats remote: [options] [<arguments>+]
    +
    +### importformats
    +
    +Dump the import formats for debug purposes
    +
    +    rclone backend importformats remote: [options] [<arguments>+]
    +
    +
    +
    +## Limitations
    +
    +Drive has quite a lot of rate limiting.  This causes rclone to be
    +limited to transferring about 2 files per second only.  Individual
    +files may be transferred much faster at 100s of MiB/s but lots of
    +small files can take a long time.
    +
    +Server side copies are also subject to a separate rate limit. If you
    +see User rate limit exceeded errors, wait at least 24 hours and retry.
    +You can disable server-side copies with `--disable copy` to download
    +and upload the files if you prefer.
    +
    +### Limitations of Google Docs
    +
    +Google docs will appear as size -1 in `rclone ls`, `rclone ncdu` etc,
    +and as size 0 in anything which uses the VFS layer, e.g. `rclone mount`
    +and `rclone serve`. When calculating directory totals, e.g. in
    +`rclone size` and `rclone ncdu`, they will be counted in as empty
    +files.
    +
    +This is because rclone can't find out the size of the Google docs
    +without downloading them.
    +
    +Google docs will transfer correctly with `rclone sync`, `rclone copy`
    +etc as rclone knows to ignore the size when doing the transfer.
    +
    +However an unfortunate consequence of this is that you may not be able
    +to download Google docs using `rclone mount`. If it doesn't work you
    +will get a 0 sized file.  If you try again the doc may gain its
    +correct size and be downloadable. Whether it will work on not depends
    +on the application accessing the mount and the OS you are running -
    +experiment to find out if it does work for you!
    +
    +### Duplicated files
    +
    +Sometimes, for no reason I've been able to track down, drive will
    +duplicate a file that rclone uploads.  Drive unlike all the other
    +remotes can have duplicated files.
    +
    +Duplicated files cause problems with the syncing and you will see
    +messages in the log about duplicates.
    +
    +Use `rclone dedupe` to fix duplicated files.
    +
    +Note that this isn't just a problem with rclone, even Google Photos on
    +Android duplicates files on drive sometimes.
    +
    +### Rclone appears to be re-copying files it shouldn't
    +
    +The most likely cause of this is the duplicated file issue above - run
    +`rclone dedupe` and check your logs for duplicate object or directory
    +messages.
    +
    +This can also be caused by a delay/caching on google drive's end when
    +comparing directory listings. Specifically with team drives used in
    +combination with --fast-list. Files that were uploaded recently may
    +not appear on the directory list sent to rclone when using --fast-list.
    +
    +Waiting a moderate period of time between attempts (estimated to be
    +approximately 1 hour) and/or not using --fast-list both seem to be
    +effective in preventing the problem.
    +
    +## Making your own client_id
    +
    +When you use rclone with Google drive in its default configuration you
    +are using rclone's client_id.  This is shared between all the rclone
    +users.  There is a global rate limit on the number of queries per
    +second that each client_id can do set by Google.  rclone already has a
    +high quota and I will continue to make sure it is high enough by
    +contacting Google.
    +
    +It is strongly recommended to use your own client ID as the default rclone ID is heavily used. If you have multiple services running, it is recommended to use an API key for each service. The default Google quota is 10 transactions per second so it is recommended to stay under that number as if you use more than that, it will cause rclone to rate limit and make things slower.
    +
    +Here is how to create your own Google Drive client ID for rclone:
    +
    +1. Log into the [Google API
    +Console](https://console.developers.google.com/) with your Google
    +account. It doesn't matter what Google account you use. (It need not
    +be the same account as the Google Drive you want to access)
    +
    +2. Select a project or create a new project.
    +
    +3. Under "ENABLE APIS AND SERVICES" search for "Drive", and enable the
    +"Google Drive API".
    +
    +4. Click "Credentials" in the left-side panel (not "Create
    +credentials", which opens the wizard).
    +
    +5. If you already configured an "Oauth Consent Screen", then skip
    +to the next step; if not, click on "CONFIGURE CONSENT SCREEN" button 
    +(near the top right corner of the right panel), then select "External"
    +and click on "CREATE"; on the next screen, enter an "Application name"
    +("rclone" is OK); enter "User Support Email" (your own email is OK); 
    +enter "Developer Contact Email" (your own email is OK); then click on
    +"Save" (all other data is optional). You will also have to add some scopes,
    +including `.../auth/docs` and `.../auth/drive` in order to be able to edit,
    +create and delete files with RClone. You may also want to include the
    +`../auth/drive.metadata.readonly` scope. After adding scopes, click
    +"Save and continue" to add test users. Be sure to add your own account to
    +the test users. Once you've added yourself as a test user and saved the
    +changes, click again on "Credentials" on the left panel to go back to
    +the "Credentials" screen.
    +
    +   (PS: if you are a GSuite user, you could also select "Internal" instead
    +of "External" above, but this will restrict API use to Google Workspace 
    +users in your organisation). 
    +
    +6.  Click on the "+ CREATE CREDENTIALS" button at the top of the screen,
    +then select "OAuth client ID".
    +
    +7. Choose an application type of "Desktop app" and click "Create". (the default name is fine)
    +
    +8. It will show you a client ID and client secret. Make a note of these.
    +   
    +   (If you selected "External" at Step 5 continue to Step 9. 
    +   If you chose "Internal" you don't need to publish and can skip straight to
    +   Step 10 but your destination drive must be part of the same Google Workspace.)
    +
    +9. Go to "Oauth consent screen" and then click "PUBLISH APP" button and confirm.
    +   You will also want to add yourself as a test user.
    +
    +10. Provide the noted client ID and client secret to rclone.
    +
    +Be aware that, due to the "enhanced security" recently introduced by
    +Google, you are theoretically expected to "submit your app for verification"
    +and then wait a few weeks(!) for their response; in practice, you can go right
    +ahead and use the client ID and client secret with rclone, the only issue will
    +be a very scary confirmation screen shown when you connect via your browser 
    +for rclone to be able to get its token-id (but as this only happens during 
    +the remote configuration, it's not such a big deal). Keeping the application in
    +"Testing" will work as well, but the limitation is that any grants will expire
    +after a week, which can be annoying to refresh constantly. If, for whatever
    +reason, a short grant time is not a problem, then keeping the application in
    +testing mode would also be sufficient.
    +
    +(Thanks to @balazer on github for these instructions.)
    +
    +Sometimes, creation of an OAuth consent in Google API Console fails due to an error message
    +“The request failed because changes to one of the field of the resource is not supported”.
    +As a convenient workaround, the necessary Google Drive API key can be created on the
    +[Python Quickstart](https://developers.google.com/drive/api/v3/quickstart/python) page.
    +Just push the Enable the Drive API button to receive the Client ID and Secret.
    +Note that it will automatically create a new project in the API Console.
    +
    +#  Google Photos
    +
    +The rclone backend for [Google Photos](https://www.google.com/photos/about/) is
    +a specialized backend for transferring photos and videos to and from
    +Google Photos.
    +
    +**NB** The Google Photos API which rclone uses has quite a few
    +limitations, so please read the [limitations section](#limitations)
    +carefully to make sure it is suitable for your use.
    +
    +## Configuration
    +
    +The initial setup for google cloud storage involves getting a token from Google Photos
    +which you need to do in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Google Photos  "google photos" [snip] Storage> google photos ** See help for google photos backend at: https://rclone.org/googlephotos/ **

    +

    Google Application Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> Google Application Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret> Set to make the Google Photos backend read only.

    +

    If you choose read only then rclone will only request read only access to your photos, otherwise rclone will request full access. Enter a boolean value (true or false). Press Enter for the default ("false"). read_only> Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code

    +

    *** IMPORTANT: All media items uploaded to Google Photos with rclone *** are stored in full resolution at original quality. These uploads *** will count towards storage in your Google Account.

    +
    +++ - - - + - - - + - - - + - -
    CharacterValueReplacement[remote] type = google photos token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2019-06-28T17:38:04.644930156+01:00"}
    NUL0x00y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y ```
    /0x2FSee the remote setup docs for how to set it up on a machine with no Internet browser available.
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Duplicated files

    -

    Mega can have two files with exactly the same name and path (unlike a normal file system).

    -

    Duplicated files cause problems with the syncing and you will see messages in the log about duplicates.

    -

    Use rclone dedupe to fix duplicated files.

    -

    Failure to log-in

    -

    Mega remotes seem to get blocked (reject logins) under "heavy use". We haven't worked out the exact blocking rules but it seems to be related to fast paced, successive rclone commands.

    -

    For example, executing this command 90 times in a row rclone link remote:file will cause the remote to become "blocked". This is not an abnormal situation, for example if you wish to get the public links of a directory with hundred of files... After more or less a week, the remote will remote accept rclone logins normally again.

    -

    You can mitigate this issue by mounting the remote it with rclone mount. This will log-in when mounting and a log-out when unmounting only. You can also run rclone rcd and then use rclone rc to run the commands over the API to avoid logging in each time.

    -

    Rclone does not currently close mega sessions (you can see them in the web interface), however closing the sessions does not solve the issue.

    -

    If you space rclone commands by 3 seconds it will avoid blocking the remote. We haven't identified the exact blocking rules, so perhaps one could execute the command 80 times without waiting and avoid blocking by waiting 3 seconds, then continuing...

    -

    Note that this has been observed by trial and error and might not be set in stone.

    -

    Other tools seem not to produce this blocking effect, as they use a different working approach (state-based, using sessionIDs instead of log-in) which isn't compatible with the current stateless rclone approach.

    -

    Note that once blocked, the use of other tools (such as megacmd) is not a sure workaround: following megacmd login times have been observed in succession for blocked remote: 7 minutes, 20 min, 30min, 30 min, 30min. Web access looks unaffected though.

    -

    Investigation is continuing in relation to workarounds based on timeouts, pacers, retrials and tpslimits - if you discover something relevant, please post on the forum.

    -

    So, if rclone was working nicely and suddenly you are unable to log-in and you are sure the user and the password are correct, likely you have got the remote blocked for a while.

    -

    Standard options

    -

    Here are the standard options specific to mega (Mega).

    -

    --mega-user

    -

    User name.

    -

    Properties:

    - -

    --mega-pass

    -

    Password.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to mega (Mega).

    -

    --mega-debug

    -

    Output more debug from Mega.

    -

    If this flag is set (along with -vv) it will print further debugging information from the mega backend.

    -

    Properties:

    - -

    --mega-hard-delete

    -

    Delete files permanently rather than putting them into the trash.

    -

    Normally the mega backend will put all deletions into the trash rather than permanently deleting them. If you specify this then rclone will permanently delete objects instead.

    -

    Properties:

    - -

    --mega-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    This backend uses the go-mega go library which is an opensource go library implementing the Mega API. There doesn't appear to be any documentation for the mega protocol beyond the mega C++ SDK source code so there are likely quite a few errors still remaining in this library.

    -

    Mega allows duplicate files which may confuse rclone.

    -

    Memory

    -

    The memory backend is an in RAM backend. It does not persist its data - use the local backend for that.

    -

    The memory backend behaves like a bucket-based remote (e.g. like s3). Because it has no parameters you can just use it with the :memory: remote name.

    -

    Configuration

    -

    You can configure it as a remote like this with rclone config too if you want to:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Memory
    -   \ "memory"
    -[snip]
    -Storage> memory
    -** See help for memory backend at: https://rclone.org/memory/ **
    -
    -Remote config
    -
    ---------------------
    -[remote]
    -type = memory
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Because the memory backend isn't persistent it is most useful for testing or with an rclone server or rclone mount, e.g.

    -
    rclone mount :memory: /mnt/tmp
    -rclone serve webdav :memory:
    -rclone serve sftp :memory:
    -

    Modified time and hashes

    -

    The memory backend supports MD5 hashes and modification times accurate to 1 nS.

    -

    Restricted filename characters

    -

    The memory backend replaces the default restricted characters set.

    -

    Akamai NetStorage

    -

    Paths are specified as remote: You may put subdirectories in too, e.g. remote:/path/to/dir. If you have a CP code you can use that as the folder after the domain such as <domain>/<cpcode>/<internal directories within cpcode>.

    -

    For example, this is commonly configured with or without a CP code: * With a CP code. [your-domain-prefix]-nsu.akamaihd.net/123456/subdirectory/ * Without a CP code. [your-domain-prefix]-nsu.akamaihd.net

    -

    See all buckets rclone lsd remote: The initial setup for Netstorage involves getting an account and secret. Use rclone config to walk you through the setup process.

    -

    Here's an example of how to make a remote called ns1.

    -
      -
    1. To begin the interactive configuration process, enter this command:
    2. -
    -
    rclone config
    -
      -
    1. Type n to create a new remote.
    2. -
    -
    n) New remote
    -d) Delete remote
    -q) Quit config
    -e/n/d/q> n
    -
      -
    1. For this example, enter ns1 when you reach the name> prompt.
    2. -
    -
    name> ns1
    -
      -
    1. Enter netstorage as the type of storage to configure.
    2. -
    -
    Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -XX / NetStorage
    -   \ "netstorage"
    -Storage> netstorage
    -
      -
    1. Select between the HTTP or HTTPS protocol. Most users should choose HTTPS, which is the default. HTTP is provided primarily for debugging purposes.
    2. -
    -
    Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / HTTP protocol
    -   \ "http"
    - 2 / HTTPS protocol
    -   \ "https"
    -protocol> 1
    -
      -
    1. Specify your NetStorage host, CP code, and any necessary content paths using this format: <domain>/<cpcode>/<content>/
    2. -
    -
    Enter a string value. Press Enter for the default ("").
    -host> baseball-nsu.akamaihd.net/123456/content/
    -
      -
    1. Set the netstorage account name
    2. -
    -
    Enter a string value. Press Enter for the default ("").
    -account> username
    -
      -
    1. Set the Netstorage account secret/G2O key which will be used for authentication purposes. Select the y option to set your own password then enter your secret. Note: The secret is stored in the rclone.conf file with hex-encoded encryption.
    2. -
    -
    y) Yes type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -
      -
    1. View the summary and confirm your remote configuration.
    2. -
    -
    [ns1]
    -type = netstorage
    -protocol = http
    -host = baseball-nsu.akamaihd.net/123456/content/
    -account = username
    -secret = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called ns1 and can now be used.

    -

    Example operations

    -

    Get started with rclone and NetStorage with these examples. For additional rclone commands, visit https://rclone.org/commands/.

    -
    See contents of a directory in your project
    -
    rclone lsd ns1:/974012/testing/
    -
    Sync the contents local with remote
    -
    rclone sync . ns1:/974012/testing/
    -
    Upload local content to remote
    -
    rclone copy notes.txt ns1:/974012/testing/
    -
    Delete content on remote
    -
    rclone delete ns1:/974012/testing/notes.txt
    -
    Move or copy content between CP codes.
    -

    Your credentials must have access to two CP codes on the same remote. You can't perform operations between different remotes.

    -
    rclone move ns1:/974012/testing/notes.txt ns1:/974450/testing2/
    - -

    The Netstorage backend changes the rclone --links, -l behavior. When uploading, instead of creating the .rclonelink file, use the "symlink" API in order to create the corresponding symlink on the remote. The .rclonelink file will not be created, the upload will be intercepted and only the symlink file that matches the source file name with no suffix will be created on the remote.

    -

    This will effectively allow commands like copy/copyto, move/moveto and sync to upload from local to remote and download from remote to local directories with symlinks. Due to internal rclone limitations, it is not possible to upload an individual symlink file to any remote backend. You can always use the "backend symlink" command to create a symlink on the NetStorage server, refer to "symlink" section below.

    -

    Individual symlink files on the remote can be used with the commands like "cat" to print the destination name, or "delete" to delete symlink, or copy, copy/to and move/moveto to download from the remote to local. Note: individual symlink files on the remote should be specified including the suffix .rclonelink.

    -

    Note: No file with the suffix .rclonelink should ever exist on the server since it is not possible to actually upload/create a file with .rclonelink suffix with rclone, it can only exist if it is manually created through a non-rclone method on the remote.

    -

    Implicit vs. Explicit Directories

    -

    With NetStorage, directories can exist in one of two forms:

    -
      -
    1. Explicit Directory. This is an actual, physical directory that you have created in a storage group.
    2. -
    3. Implicit Directory. This refers to a directory within a path that has not been physically created. For example, during upload of a file, non-existent subdirectories can be specified in the target path. NetStorage creates these as "implicit." While the directories aren't physically created, they exist implicitly and the noted path is connected with the uploaded file.
    4. -
    -

    Rclone will intercept all file uploads and mkdir commands for the NetStorage remote and will explicitly issue the mkdir command for each directory in the uploading path. This will help with the interoperability with the other Akamai services such as SFTP and the Content Management Shell (CMShell). Rclone will not guarantee correctness of operations with implicit directories which might have been created as a result of using an upload API directly.

    -

    ListR Feature

    -

    NetStorage remote supports the ListR feature by using the "list" NetStorage API action to return a lexicographical list of all objects within the specified CP code, recursing into subdirectories as they're encountered.

    - -

    There are pros and cons of using the ListR method, refer to rclone documentation. In general, the sync command over an existing deep tree on the remote will run faster with the "--fast-list" flag but with extra memory usage as a side effect. It might also result in higher CPU utilization but the whole task can be completed faster.

    -

    Note: There is a known limitation that "lsf -R" will display number of files in the directory and directory size as -1 when ListR method is used. The workaround is to pass "--disable listR" flag if these numbers are important in the output.

    -

    Purge Feature

    -

    NetStorage remote supports the purge feature by using the "quick-delete" NetStorage API action. The quick-delete action is disabled by default for security reasons and can be enabled for the account through the Akamai portal. Rclone will first try to use quick-delete action for the purge command and if this functionality is disabled then will fall back to a standard delete method.

    -

    Note: Read the NetStorage Usage API for considerations when using "quick-delete". In general, using quick-delete method will not delete the tree immediately and objects targeted for quick-delete may still be accessible.

    -

    Standard options

    -

    Here are the standard options specific to netstorage (Akamai NetStorage).

    -

    --netstorage-host

    -

    Domain+path of NetStorage host to connect to.

    -

    Format should be <domain>/<internal folders>

    -

    Properties:

    - -

    --netstorage-account

    -

    Set the NetStorage account name

    -

    Properties:

    - -

    --netstorage-secret

    -

    Set the NetStorage account secret/G2O key for authentication.

    -

    Please choose the 'y' option to set your own password then enter your secret.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to netstorage (Akamai NetStorage).

    -

    --netstorage-protocol

    -

    Select between HTTP or HTTPS protocol.

    -

    Most users should choose HTTPS, which is the default. HTTP is provided primarily for debugging purposes.

    -

    Properties:

    - -

    Backend commands

    -

    Here are the commands specific to the netstorage backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    du

    -

    Return disk usage information for a specified directory

    -
    rclone backend du remote: [options] [<arguments>+]
    -

    The usage information returned, includes the targeted directory as well as all files stored in any sub-directories that may exist.

    - -

    You can create a symbolic link in ObjectStore with the symlink action.

    -
    rclone backend symlink remote: [options] [<arguments>+]
    -

    The desired path location (including applicable sub-directories) ending in the object that will be the target of the symlink (for example, /links/mylink). Include the file extension for the object, if applicable. rclone backend symlink <src> <path>

    -

    Microsoft Azure Blob Storage

    -

    Paths are specified as remote:container (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:container/path/to/dir.

    -

    Configuration

    -

    Here is an example of making a Microsoft Azure Blob Storage configuration. For a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Microsoft Azure Blob Storage
    -   \ "azureblob"
    -[snip]
    -Storage> azureblob
    -Storage Account Name
    -account> account_name
    -Storage Account Key
    -key> base64encodedkey==
    -Endpoint for the service - leave blank normally.
    -endpoint> 
    -Remote config
    ---------------------
    -[remote]
    -account = account_name
    -key = base64encodedkey==
    -endpoint = 
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    See all containers

    -
    rclone lsd remote:
    -

    Make a new container

    -
    rclone mkdir remote:container
    -

    List the contents of a container

    -
    rclone ls remote:container
    -

    Sync /home/local/directory to the remote container, deleting any excess files in the container.

    -
    rclone sync -i /home/local/directory remote:container
    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Modified time

    -

    The modified time is stored as metadata on the object with the mtime key. It is stored using RFC3339 Format time with nanosecond precision. The metadata is supplied during directory listings so there is no overhead to using it.

    -

    Performance

    -

    When uploading large files, increasing the value of --azureblob-upload-concurrency will increase performance at the cost of using more memory. The default of 16 is set quite conservatively to use less memory. It maybe be necessary raise it to 64 or higher to fully utilize a 1 GBit/s link with a single file transfer.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + - - - + - -
    CharacterValueReplacement
    Note that rclone runs a webserver on your local machine to collect the token as returned from Google if using web browser to automatically authenticate. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this may require you to unblock it temporarily if you are running a host firewall, or use manual mode.
    This remote is called remote and can now be used like this
    See all the albums in your photos
    rclone lsd remote:album
    Make a new album
    rclone mkdir remote:album/newAlbum
    List the contents of an album
    rclone ls remote:album/newAlbum
    Sync /home/local/images to the Google Photos, removing any excess files in the album.
    rclone sync --interactive /home/local/image remote:album/newAlbum
    ### Layout
    As Google Photos is not a general purpose cloud storage system, the backend is laid out to help you navigate it.
    The directories under media show different ways of categorizing the media. Each file will appear multiple times. So if you want to make a backup of your google photos you might choose to backup remote:media/by-month. (NB remote:media/by-day is rather slow at the moment so avoid for syncing.)
    Note that all your photos and videos will appear somewhere under media, but they may not appear under album unless you've put them into albums.
    / - upload - file1.jpg - file2.jpg - ... - media - all - file1.jpg - file2.jpg - ... - by-year - 2000 - file1.jpg - ... - 2001 - file2.jpg - ... - ... - by-month - 2000 - 2000-01 - file1.jpg - ... - 2000-02 - file2.jpg - ... - ... - by-day - 2000 - 2000-01-01 - file1.jpg - ... - 2000-01-02 - file2.jpg - ... - ... - album - album name - album name/sub - shared-album - album name - album name/sub - feature - favorites - file1.jpg - file2.jpg
    There are two writable parts of the tree, the upload directory and sub directories of the album directory.
    The upload directory is for uploading files you don't want to put into albums. This will be empty to start with and will contain the files you've uploaded for one rclone session only, becoming empty again when you restart rclone. The use case for this would be if you have a load of files you just want to once off dump into Google Photos. For repeated syncing, uploading to album will work better.
    Directories within the album directory are also writeable and you may create new directories (albums) under album. If you copy files with a directory hierarchy in there then rclone will create albums with the / character in them. For example if you do
    rclone copy /path/to/images remote:album/images
    and the images directory contains
    images - file1.jpg dir file2.jpg dir2 dir3 file3.jpg
    Then rclone will create the following albums with the following files in
    - images - file1.jpg - images/dir - file2.jpg - images/dir2/dir3 - file3.jpg
    This means that you can use the album path pretty much like a normal filesystem and it is a good target for repeated syncing.
    The shared-album directory shows albums shared with you or by you. This is similar to the Sharing tab in the Google Photos web interface.
    ### Standard options
    Here are the Standard options specific to google photos (Google Photos).
    #### --gphotos-client-id
    OAuth Client Id.
    Leave blank normally.
    Properties:
    - Config: client_id - Env Var: RCLONE_GPHOTOS_CLIENT_ID - Type: string - Required: false
    #### --gphotos-client-secret
    OAuth Client Secret.
    Leave blank normally.
    Properties:
    - Config: client_secret - Env Var: RCLONE_GPHOTOS_CLIENT_SECRET - Type: string - Required: false
    #### --gphotos-read-only
    Set to make the Google Photos backend read only.
    If you choose read only then rclone will only request read only access to your photos, otherwise rclone will request full access.
    Properties:
    - Config: read_only - Env Var: RCLONE_GPHOTOS_READ_ONLY - Type: bool - Default: false
    ### Advanced options
    Here are the Advanced options specific to google photos (Google Photos).
    /0x2F#### --gphotos-token
    \0x5COAuth Access Token as a JSON blob.
    -

    File names can also not end with the following characters. These only get replaced if they are the last character in the name:

    - - - - - - + + + + + - - - - - + - -
    CharacterValueReplacement
    Properties:
    - Config: token - Env Var: RCLONE_GPHOTOS_TOKEN - Type: string - Required: false
    .0x2E#### --gphotos-auth-url
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Hashes

    -

    MD5 hashes are stored with blobs. However blobs that were uploaded in chunks only have an MD5 if the source remote was capable of MD5 hashes, e.g. the local disk.

    -

    Authenticating with Azure Blob Storage

    -

    Rclone has 3 ways of authenticating with Azure Blob Storage:

    -

    Account and Key

    -

    This is the most straight forward and least flexible way. Just fill in the account and key lines and leave the rest blank.

    -

    SAS URL

    -

    This can be an account level SAS URL or container level SAS URL.

    -

    To use it leave account, key blank and fill in sas_url.

    -

    An account level SAS URL or container level SAS URL can be obtained from the Azure portal or the Azure Storage Explorer. To get a container level SAS URL right click on a container in the Azure Blob explorer in the Azure portal.

    -

    If you use a container level SAS URL, rclone operations are permitted only on a particular container, e.g.

    -
    rclone ls azureblob:container
    -

    You can also list the single container from the root. This will only show the container specified by the SAS URL.

    -
    $ rclone lsd azureblob:
    -container/
    -

    Note that you can't see or access any other containers - this will fail

    -
    rclone ls azureblob:othercontainer
    -

    Container level SAS URLs are useful for temporarily allowing third parties access to a single container or putting credentials into an untrusted environment such as a CI build server.

    -

    Standard options

    -

    Here are the standard options specific to azureblob (Microsoft Azure Blob Storage).

    -

    --azureblob-account

    -

    Storage Account Name.

    -

    Leave blank to use SAS URL or Emulator.

    -

    Properties:

    - -

    --azureblob-service-principal-file

    -

    Path to file containing credentials for use with a service principal.

    -

    Leave blank normally. Needed only if you want to use a service principal instead of interactive login.

    -
    $ az ad sp create-for-rbac --name "<name>" \
    -  --role "Storage Blob Data Owner" \
    -  --scopes "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>/blobServices/default/containers/<container>" \
    -  > azure-principal.json
    -

    See "Create an Azure service principal" and "Assign an Azure role for access to blob data" pages for more details.

    -

    Properties:

    - -

    --azureblob-key

    -

    Storage Account Key.

    -

    Leave blank to use SAS URL or Emulator.

    -

    Properties:

    - -

    --azureblob-sas-url

    -

    SAS URL for container level access only.

    -

    Leave blank if using account/key or Emulator.

    -

    Properties:

    - -

    --azureblob-use-msi

    -

    Use a managed service identity to authenticate (only works in Azure).

    -

    When true, use a managed service identity to authenticate to Azure Storage instead of a SAS token or account key.

    -

    If the VM(SS) on which this program is running has a system-assigned identity, it will be used by default. If the resource has no system-assigned but exactly one user-assigned identity, the user-assigned identity will be used by default. If the resource has multiple user-assigned identities, the identity to use must be explicitly specified using exactly one of the msi_object_id, msi_client_id, or msi_mi_res_id parameters.

    -

    Properties:

    - -

    --azureblob-use-emulator

    -

    Uses local storage emulator if provided as 'true'.

    -

    Leave blank if using real azure storage endpoint.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to azureblob (Microsoft Azure Blob Storage).

    -

    --azureblob-msi-object-id

    -

    Object ID of the user-assigned MSI to use, if any.

    -

    Leave blank if msi_client_id or msi_mi_res_id specified.

    -

    Properties:

    - -

    --azureblob-msi-client-id

    -

    Object ID of the user-assigned MSI to use, if any.

    -

    Leave blank if msi_object_id or msi_mi_res_id specified.

    -

    Properties:

    - -

    --azureblob-msi-mi-res-id

    -

    Azure resource ID of the user-assigned MSI to use, if any.

    -

    Leave blank if msi_client_id or msi_object_id specified.

    -

    Properties:

    - -

    --azureblob-endpoint

    -

    Endpoint for the service.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --azureblob-upload-cutoff

    -

    Cutoff for switching to chunked upload (<= 256 MiB) (deprecated).

    -

    Properties:

    - -

    --azureblob-chunk-size

    -

    Upload chunk size.

    -

    Note that this is stored in memory and there may be up to "--transfers" * "--azureblob-upload-concurrency" chunks stored at once in memory.

    -

    Properties:

    - -

    --azureblob-upload-concurrency

    -

    Concurrency for multipart uploads.

    -

    This is the number of chunks of the same file that are uploaded concurrently.

    -

    If you are uploading small numbers of large files over high-speed links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers.

    -

    In tests, upload speed increases almost linearly with upload concurrency. For example to fill a gigabit pipe it may be necessary to raise this to 64. Note that this will use more memory.

    -

    Note that chunks are stored in memory and there may be up to "--transfers" * "--azureblob-upload-concurrency" chunks stored at once in memory.

    -

    Properties:

    - -

    --azureblob-list-chunk

    -

    Size of blob list.

    -

    This sets the number of blobs requested in each listing chunk. Default is the maximum, 5000. "List blobs" requests are permitted 2 minutes per megabyte to complete. If an operation is taking longer than 2 minutes per megabyte on average, it will time out ( source ). This can be used to limit the number of blobs items to return, to avoid the time out.

    -

    Properties:

    - -

    --azureblob-access-tier

    -

    Access tier of blob: hot, cool or archive.

    -

    Archived blobs can be restored by setting access tier to hot or cool. Leave blank if you intend to use default access tier, which is set at account level

    -

    If there is no "access tier" specified, rclone doesn't apply any tier. rclone performs "Set Tier" operation on blobs while uploading, if objects are not modified, specifying "access tier" to new one will have no effect. If blobs are in "archive tier" at remote, trying to perform data transfer operations from remote will not be allowed. User should first restore by tiering blob to "Hot" or "Cool".

    -

    Properties:

    - -

    --azureblob-archive-tier-delete

    -

    Delete archive tier blobs before overwriting.

    -

    Archive tier blobs cannot be updated. So without this flag, if you attempt to update an archive tier blob, then rclone will produce the error:

    -
    can't update archive tier blob without --azureblob-archive-tier-delete
    -

    With this flag set then before rclone attempts to overwrite an archive tier blob, it will delete the existing blob before uploading its replacement. This has the potential for data loss if the upload fails (unlike updating a normal blob) and also may cost more since deleting archive tier blobs early may be chargable.

    -

    Properties:

    - -

    --azureblob-disable-checksum

    -

    Don't store MD5 checksum with object metadata.

    -

    Normally rclone will calculate the MD5 checksum of the input before uploading it so it can add it to metadata on the object. This is great for data integrity checking but can cause long delays for large files to start uploading.

    -

    Properties:

    - -

    --azureblob-memory-pool-flush-time

    -

    How often internal memory buffer pools will be flushed.

    -

    Uploads which requires additional buffers (f.e multipart) will use memory pool for allocations. This option controls how often unused buffers will be removed from the pool.

    -

    Properties:

    - -

    --azureblob-memory-pool-use-mmap

    -

    Whether to use mmap buffers in internal memory pool.

    -

    Properties:

    - -

    --azureblob-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    --azureblob-public-access

    -

    Public access level of a container: blob or container.

    -

    Properties:

    - -

    --azureblob-no-head-object

    -

    If set, do not do HEAD before GET when getting objects.

    -

    Properties:

    - -

    Limitations

    -

    MD5 sums are only uploaded with chunked files if the source has an MD5 sum. This will always be the case for a local to azure copy.

    -

    rclone about is not supported by the Microsoft Azure Blob storage backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Azure Storage Emulator Support

    -

    You can test rclone with storage emulator locally, to do this make sure azure storage emulator installed locally and set up a new remote with rclone config follow instructions described in introduction, set use_emulator config as true, you do not need to provide default account name or key if using emulator.

    -

    Microsoft OneDrive

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for OneDrive involves getting a token from Microsoft which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    e) Edit existing remote
    -n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -e/n/d/r/c/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Microsoft OneDrive
    -   \ "onedrive"
    -[snip]
    -Storage> onedrive
    -Microsoft App Client Id
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -client_id>
    -Microsoft App Client Secret
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -client_secret>
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No
    -y/n> n
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    -Choose a number from below, or type in an existing value
    - 1 / OneDrive Personal or Business
    -   \ "onedrive"
    - 2 / Sharepoint site
    -   \ "sharepoint"
    - 3 / Type in driveID
    -   \ "driveid"
    - 4 / Type in SiteID
    -   \ "siteid"
    - 5 / Search a Sharepoint site
    -   \ "search"
    -Your choice> 1
    -Found 1 drives, please select the one you want to use:
    -0: OneDrive (business) id=b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk
    -Chose drive to use:> 0
    -Found drive 'root' of type 'business', URL: https://org-my.sharepoint.com/personal/you/Documents
    -Is that okay?
    -y) Yes
    -n) No
    -y/n> y
    ---------------------
    -[remote]
    -type = onedrive
    -token = {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018-08-26T22:39:52.486512262+08:00"}
    -drive_id = b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk
    -drive_type = business
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Microsoft. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your OneDrive

    -
    rclone lsd remote:
    -

    List all the files in your OneDrive

    -
    rclone ls remote:
    -

    To copy a local directory to an OneDrive directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Getting your own Client ID and Key

    -

    You can use your own Client ID if the default (client_id left blank) one doesn't work for you or you see lots of throttling. The default Client ID and Key is shared by all rclone users when performing requests.

    -

    If you are having problems with them (E.g., seeing a lot of throttling), you can get your own Client ID and Key by following the steps below:

    -
      -
    1. Open https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade and then click New registration.
    2. -
    3. Enter a name for your app, choose account type Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox), select Web in Redirect URI, then type (do not copy and paste) http://localhost:53682/ and click Register. Copy and keep the Application (client) ID under the app name for later use.
    4. -
    5. Under manage select Certificates & secrets, click New client secret. Enter a description (can be anything) and set Expires to 24 months. Copy and keep that secret Value for later use (you won't be able to see this value afterwards).
    6. -
    7. Under manage select API permissions, click Add a permission and select Microsoft Graph then select delegated permissions.
    8. -
    9. Search and select the following permissions: Files.Read, Files.ReadWrite, Files.Read.All, Files.ReadWrite.All, offline_access, User.Read, and optionally Sites.Read.All (see below). Once selected click Add permissions at the bottom.
    10. -
    -

    Now the application is complete. Run rclone config to create or edit a OneDrive remote. Supply the app ID and password as Client ID and Secret, respectively. rclone will walk you through the remaining steps.

    -

    The Sites.Read.All permission is required if you need to search SharePoint sites when configuring the remote. However, if that permission is not assigned, you need to set disable_site_permission option to true in the advanced options.

    -

    Modification time and hashes

    -

    OneDrive allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    OneDrive personal supports SHA1 type hashes. OneDrive for business and Sharepoint Server support QuickXorHash.

    -

    For all types of OneDrive you can use the --checksum flag.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - + + - - - - - + - - - + - - - + - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - + - - - + - - - + - - - - - -
    CharacterValueReplacement
    Auth server URL.
    "0x22Leave blank to use the provider defaults.
    *0x2AProperties:
    :0x3A- Config: auth_url - Env Var: RCLONE_GPHOTOS_AUTH_URL - Type: string - Required: false
    <0x3C#### --gphotos-token-url
    Token server url.
    Leave blank to use the provider defaults.
    Properties:
    - Config: token_url - Env Var: RCLONE_GPHOTOS_TOKEN_URL - Type: string - Required: false
    #### --gphotos-read-size
    Set to read the size of media items.
    Normally rclone does not read the size of media items since this takes another transaction. This isn't necessary for syncing. However rclone mount needs to know the size of files in advance of reading them, so setting this flag when using rclone mount is recommended if you want to read the media.
    Properties:
    >0x3E- Config: read_size - Env Var: RCLONE_GPHOTOS_READ_SIZE - Type: bool - Default: false
    ?0x3F#### --gphotos-start-year
    \0x5CYear limits the photos to be downloaded to those which are uploaded after the given year.
    |0x7C
    -

    File names can also not end with the following characters. These only get replaced if they are the last character in the name:

    - - - - - - + - - - - - + - - - - - -
    CharacterValueReplacementProperties:
    SP0x20- Config: start_year - Env Var: RCLONE_GPHOTOS_START_YEAR - Type: int - Default: 2000
    .0x2E
    -

    File names can also not begin with the following characters. These only get replaced if they are the first character in the name:

    - - - - - - + - - - - - + - - - + - -
    CharacterValueReplacement#### --gphotos-include-archived
    SP0x20Also view and download archived media.
    ~0x7EBy default, rclone does not request archived media. Thus, when syncing, archived media is not visible in directory listings or transferred.
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Deleting files

    -

    Any files you delete with rclone will end up in the trash. Microsoft doesn't provide an API to permanently delete files, nor to empty the trash, so you will have to do that with one of Microsoft's apps or via the OneDrive website.

    -

    Standard options

    -

    Here are the standard options specific to onedrive (Microsoft OneDrive).

    -

    --onedrive-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --onedrive-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --onedrive-region

    -

    Choose national cloud region for OneDrive.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to onedrive (Microsoft OneDrive).

    -

    --onedrive-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --onedrive-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --onedrive-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --onedrive-chunk-size

    -

    Chunk size to upload files with - must be multiple of 320k (327,680 bytes).

    -

    Above this size files will be chunked - must be multiple of 320k (327,680 bytes) and should not exceed 250M (262,144,000 bytes) else you may encounter "Microsoft.SharePoint.Client.InvalidClientQueryException: The request message is too big." Note that the chunks will be buffered into memory.

    -

    Properties:

    - -

    --onedrive-drive-id

    -

    The ID of the drive to use.

    -

    Properties:

    - -

    --onedrive-drive-type

    -

    The type of the drive (personal | business | documentLibrary).

    -

    Properties:

    - -

    --onedrive-root-folder-id

    -

    ID of the root folder.

    -

    This isn't normally needed, but in special circumstances you might know the folder ID that you wish to access but not be able to get there through a path traversal.

    -

    Properties:

    - -

    --onedrive-disable-site-permission

    -

    Disable the request for Sites.Read.All permission.

    -

    If set to true, you will no longer be able to search for a SharePoint site when configuring drive ID, because rclone will not request Sites.Read.All permission. Set it to true if your organization didn't assign Sites.Read.All permission to the application, and your organization disallows users to consent app permission request on their own.

    -

    Properties:

    - -

    --onedrive-expose-onenote-files

    -

    Set to make OneNote files show up in directory listings.

    -

    By default, rclone will hide OneNote files in directory listings because operations like "Open" and "Update" won't work on them. But this behaviour may also prevent you from deleting them. If you want to delete OneNote files or otherwise want them to show up in directory listing, set this option.

    -

    Properties:

    - -

    --onedrive-server-side-across-configs

    -

    Allow server-side operations (e.g. copy) to work across different onedrive configs.

    -

    This will only work if you are copying between two OneDrive Personal drives AND the files to copy are already shared between them. In other cases, rclone will fall back to normal copy (which will be slightly slower).

    -

    Properties:

    - -

    --onedrive-list-chunk

    -

    Size of listing chunk.

    -

    Properties:

    - -

    --onedrive-no-versions

    -

    Remove all versions on modifying operations.

    -

    Onedrive for business creates versions when rclone uploads new files overwriting an existing one and when it sets the modification time.

    -

    These versions take up space out of the quota.

    -

    This flag checks for versions after file upload and setting modification time and removes all but the last version.

    -

    NB Onedrive personal can't currently delete versions so don't use this flag there.

    -

    Properties:

    - - -

    Set the scope of the links created by the link command.

    -

    Properties:

    - - -

    Set the type of the links created by the link command.

    -

    Properties:

    - - -

    Set the password for links created by the link command.

    -

    At the time of writing this only works with OneDrive personal paid accounts.

    -

    Properties:

    - -

    --onedrive-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    If you don't use rclone for 90 days the refresh token will expire. This will result in authorization problems. This is easy to fix by running the rclone config reconnect remote: command to get a new token and refresh token.

    -

    Naming

    -

    Note that OneDrive is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    There are quite a few characters that can't be in OneDrive file names. These can't occur on Windows platforms, but on non-Windows platforms they are common. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a ? in it will be mapped to instead.

    -

    File sizes

    -

    The largest allowed file size is 250 GiB for both OneDrive Personal and OneDrive for Business (Updated 13 Jan 2021).

    -

    Path length

    -

    The entire path, including the file name, must contain fewer than 400 characters for OneDrive, OneDrive for Business and SharePoint Online. If you are encrypting file and folder names with rclone, you may want to pay attention to this limitation because the encrypted names are typically longer than the original ones.

    -

    Number of files

    -

    OneDrive seems to be OK with at least 50,000 files in a folder, but at 100,000 rclone will get errors listing the directory like couldn’t list files: UnknownError:. See #2707 for more info.

    -

    An official document about the limitations for different types of OneDrive can be found here.

    -

    Versions

    -

    Every change in a file OneDrive causes the service to create a new version of the the file. This counts against a users quota. For example changing the modification time of a file creates a second version, so the file apparently uses twice the space.

    -

    For example the copy command is affected by this as rclone copies the file and then afterwards sets the modification time to match the source file which uses another version.

    -

    You can use the rclone cleanup command (see below) to remove all old versions.

    -

    Or you can set the no_versions parameter to true and rclone will remove versions after operations which create new versions. This takes extra transactions so only enable it if you need it.

    -

    Note At the time of writing Onedrive Personal creates versions (but not for setting the modification time) but the API for removing them returns "API not found" so cleanup and no_versions should not be used on Onedrive Personal.

    -

    Disabling versioning

    -

    Starting October 2018, users will no longer be able to disable versioning by default. This is because Microsoft has brought an update to the mechanism. To change this new default setting, a PowerShell command is required to be run by a SharePoint admin. If you are an admin, you can run these commands in PowerShell to change that setting:

    -
      -
    1. Install-Module -Name Microsoft.Online.SharePoint.PowerShell (in case you haven't installed this already)
    2. -
    3. Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
    4. -
    5. Connect-SPOService -Url https://YOURSITE-admin.sharepoint.com -Credential YOU@YOURSITE.COM (replacing YOURSITE, YOU, YOURSITE.COM with the actual values; this will prompt for your credentials)
    6. -
    7. Set-SPOTenant -EnableMinimumVersionRequirement $False
    8. -
    9. Disconnect-SPOService (to disconnect from the server)
    10. -
    -

    Below are the steps for normal users to disable versioning. If you don't see the "No Versioning" option, make sure the above requirements are met.

    -

    User Weropol has found a method to disable versioning on OneDrive

    -
      -
    1. Open the settings menu by clicking on the gear symbol at the top of the OneDrive Business page.
    2. -
    3. Click Site settings.
    4. -
    5. Once on the Site settings page, navigate to Site Administration > Site libraries and lists.
    6. -
    7. Click Customize "Documents".
    8. -
    9. Click General Settings > Versioning Settings.
    10. -
    11. Under Document Version History select the option No versioning. Note: This will disable the creation of new file versions, but will not remove any previous versions. Your documents are safe.
    12. -
    13. Apply the changes by clicking OK.
    14. -
    15. Use rclone to upload or modify files. (I also use the --no-update-modtime flag)
    16. -
    17. Restore the versioning settings after using rclone. (Optional)
    18. -
    -

    Cleanup

    -

    OneDrive supports rclone cleanup which causes rclone to look through every file under the path supplied and delete all version but the current version. Because this involves traversing all the files, then querying each file for versions it can be quite slow. Rclone does --checkers tests in parallel. The command also supports -i which is a great way to see what it would do.

    -
    rclone cleanup -i remote:path/subdir # interactively remove all old version for path/subdir
    -rclone cleanup remote:path/subdir    # unconditionally remove all old version for path/subdir
    -

    NB Onedrive personal can't currently delete versions

    -

    Troubleshooting

    -

    Excessive throttling or blocked on SharePoint

    -

    If you experience excessive throttling or is being blocked on SharePoint then it may help to set the user agent explicitly with a flag like this: --user-agent "ISV|rclone.org|rclone/v1.55.1"

    -

    The specific details can be found in the Microsoft document: Avoid getting throttled or blocked in SharePoint Online

    -

    Unexpected file size/hash differences on Sharepoint

    -

    It is a known issue that Sharepoint (not OneDrive or OneDrive for Business) silently modifies uploaded files, mainly Office files (.docx, .xlsx, etc.), causing file size and hash checks to fail. There are also other situations that will cause OneDrive to report inconsistent file sizes. To use rclone with such affected files on Sharepoint, you may disable these checks with the following command line arguments:

    -
    --ignore-checksum --ignore-size
    -

    Alternatively, if you have write access to the OneDrive files, it may be possible to fix this problem for certain files, by attempting the steps below. Open the web interface for OneDrive and find the affected files (which will be in the error messages/log for rclone). Simply click on each of these files, causing OneDrive to open them on the web. This will cause each file to be converted in place to a format that is functionally equivalent but which will no longer trigger the size discrepancy. Once all problematic files are converted you will no longer need the ignore options above.

    -

    Replacing/deleting existing files on Sharepoint gets "item not found"

    -

    It is a known issue that Sharepoint (not OneDrive or OneDrive for Business) may return "item not found" errors when users try to replace or delete uploaded files; this seems to mainly affect Office files (.docx, .xlsx, etc.). As a workaround, you may use the --backup-dir <BACKUP_DIR> command line argument so rclone moves the files to be replaced/deleted into a given backup directory (instead of directly replacing/deleting them). For example, to instruct rclone to move the files into the directory rclone-backup-dir on backend mysharepoint, you may use:

    -
    --backup-dir mysharepoint:rclone-backup-dir
    -

    access_denied (AADSTS65005)

    -
    Error: access_denied
    -Code: AADSTS65005
    -Description: Using application 'rclone' is currently not supported for your organization [YOUR_ORGANIZATION] because it is in an unmanaged state. An administrator needs to claim ownership of the company by DNS validation of [YOUR_ORGANIZATION] before the application rclone can be provisioned.
    -

    This means that rclone can't use the OneDrive for Business API with your account. You can't do much about it, maybe write an email to your admins.

    -

    However, there are other ways to interact with your OneDrive account. Have a look at the webdav backend: https://rclone.org/webdav/#sharepoint

    -

    invalid_grant (AADSTS50076)

    -
    Error: invalid_grant
    -Code: AADSTS50076
    -Description: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '...'.
    -

    If you see the error above after enabling multi-factor authentication for your account, you can fix it by refreshing your OAuth refresh token. To do that, run rclone config, and choose to edit your OneDrive backend. Then, you don't need to actually make any changes until you reach this question: Already have a token - refresh?. For this question, answer y and go through the process to refresh your token, just like the first time the backend is configured. After this, rclone should work again for this backend.

    - -

    On Sharepoint and OneDrive for Business, rclone link may return an "Invalid request" error. A possible cause is that the organisation admin didn't allow public links to be made for the organisation/sharepoint library. To fix the permissions as an admin, take a look at the docs: 1, 2.

    -

    OpenDrive

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    n) New remote
    -d) Delete remote
    -q) Quit config
    -e/n/d/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / OpenDrive
    -   \ "opendrive"
    -[snip]
    -Storage> opendrive
    -Username
    -username>
    -Password
    -y) Yes type in my own password
    -g) Generate random password
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    ---------------------
    -[remote]
    -username =
    -password = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    List directories in top level of your OpenDrive

    -
    rclone lsd remote:
    -

    List all the files in your OpenDrive

    -
    rclone ls remote:
    -

    To copy a local directory to an OpenDrive directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Modified time and MD5SUMs

    -

    OpenDrive allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not.

    -

    Restricted filename characters

    - - - - - - + + + + + - - - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - - - + - -
    CharacterValueReplacement
    Note that media in albums is always visible and synced, no matter their archive status.
    With this flag, archived media are always visible in directory listings and transferred.
    NUL0x00Without this flag, archived media will not be visible in directory listings and won't be transferred.
    /0x2FProperties:
    "0x22- Config: include_archived - Env Var: RCLONE_GPHOTOS_INCLUDE_ARCHIVED - Type: bool - Default: false
    *0x2A#### --gphotos-encoding
    :0x3AThe encoding for the backend.
    <0x3CSee the encoding section in the overview for more info.
    >0x3EProperties:
    ?0x3F- Config: encoding - Env Var: RCLONE_GPHOTOS_ENCODING - Type: MultiEncoder - Default: Slash,CrLf,InvalidUtf8,Dot
    \0x5C## Limitations
    |0x7COnly images and videos can be uploaded. If you attempt to upload non videos or images or formats that Google Photos doesn't understand, rclone will upload the file, then Google Photos will give an error when it is put turned into a media item.
    -

    File names can also not begin or end with the following characters. These only get replaced if they are the first or last character in the name:

    - - - - - - + + + + + - - - - - + - - - + - - - + - - - + - - - + - -
    CharacterValueReplacement
    Note that all media items uploaded to Google Photos through the API are stored in full resolution at "original quality" and will count towards your storage quota in your Google Account. The API does not offer a way to upload in "high quality" mode..
    rclone about is not supported by the Google Photos backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.
    SP0x20See List of backends that do not support rclone about See rclone about
    HT0x09### Downloading Images
    LF0x0AWhen Images are downloaded this strips EXIF location (according to the docs and my tests). This is a limitation of the Google Photos API and is covered by bug #112096115.
    VT0x0BThe current google API does not allow photos to be downloaded at original resolution. This is very important if you are, for example, relying on "Google Photos" as a backup of your photos. You will not be able to use rclone to redownload original images. You could use 'google takeout' to recover the original photos as a last resort
    CR0x0D### Downloading Videos
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to opendrive (OpenDrive).

    -

    --opendrive-username

    -

    Username.

    -

    Properties:

    - -

    --opendrive-password

    -

    Password.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to opendrive (OpenDrive).

    -

    --opendrive-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    --opendrive-chunk-size

    -

    Files will be uploaded in chunks this size.

    -

    Note that these chunks are buffered in memory so increasing them will increase memory use.

    -

    Properties:

    - -

    Limitations

    -

    Note that OpenDrive is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    There are quite a few characters that can't be in OpenDrive file names. These can't occur on Windows platforms, but on non-Windows platforms they are common. Rclone will map these names to and from an identical looking unicode equivalent. For example if a file has a ? in it will be mapped to instead.

    -

    rclone about is not supported by the OpenDrive backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    QingStor

    -

    Paths are specified as remote:bucket (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:bucket/path/to/dir.

    -

    Configuration

    -

    Here is an example of making an QingStor configuration. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process.

    -
    No remotes found, make a new one?
    -n) New remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -n/r/c/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / QingStor Object Storage
    -   \ "qingstor"
    -[snip]
    -Storage> qingstor
    -Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank.
    -Choose a number from below, or type in your own value
    - 1 / Enter QingStor credentials in the next step
    -   \ "false"
    - 2 / Get QingStor credentials from the environment (env vars or IAM)
    -   \ "true"
    -env_auth> 1
    -QingStor Access Key ID - leave blank for anonymous access or runtime credentials.
    -access_key_id> access_key
    -QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials.
    -secret_access_key> secret_key
    -Enter an endpoint URL to connection QingStor API.
    -Leave blank will use the default value "https://qingstor.com:443"
    -endpoint>
    -Zone connect to. Default is "pek3a".
    -Choose a number from below, or type in your own value
    -   / The Beijing (China) Three Zone
    - 1 | Needs location constraint pek3a.
    -   \ "pek3a"
    -   / The Shanghai (China) First Zone
    - 2 | Needs location constraint sh1a.
    -   \ "sh1a"
    -zone> 1
    -Number of connection retry.
    -Leave blank will use the default value "3".
    -connection_retries>
    -Remote config
    ---------------------
    -[remote]
    -env_auth = false
    -access_key_id = access_key
    -secret_access_key = secret_key
    -endpoint =
    -zone = pek3a
    -connection_retries =
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called remote and can now be used like this

    -

    See all buckets

    -
    rclone lsd remote:
    -

    Make a new bucket

    -
    rclone mkdir remote:bucket
    -

    List the contents of a bucket

    -
    rclone ls remote:bucket
    -

    Sync /home/local/directory to the remote bucket, deleting any excess files in the bucket.

    -
    rclone sync -i /home/local/directory remote:bucket
    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Multipart uploads

    -

    rclone supports multipart uploads with QingStor which means that it can upload files bigger than 5 GiB. Note that files uploaded with multipart upload don't have an MD5SUM.

    -

    Note that incomplete multipart uploads older than 24 hours can be removed with rclone cleanup remote:bucket just for one bucket rclone cleanup remote: for all buckets. QingStor does not ever remove incomplete multipart uploads so it may be necessary to run this from time to time.

    -

    Buckets and Zone

    -

    With QingStor you can list buckets (rclone lsd) using any zone, but you can only access the content of a bucket from the zone it was created in. If you attempt to access a bucket from the wrong zone, you will get an error, incorrect zone, the bucket is not in 'XXX' zone.

    -

    Authentication

    -

    There are two ways to supply rclone with a set of QingStor credentials. In order of precedence:

    - -

    Restricted filename characters

    -

    The control characters 0x00-0x1F and / are replaced as in the default restricted characters set. Note that 0x7F is not replaced.

    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to qingstor (QingCloud Object Storage).

    -

    --qingstor-env-auth

    -

    Get QingStor credentials from runtime.

    -

    Only applies if access_key_id and secret_access_key is blank.

    -

    Properties:

    - -

    --qingstor-access-key-id

    -

    QingStor Access Key ID.

    -

    Leave blank for anonymous access or runtime credentials.

    -

    Properties:

    - -

    --qingstor-secret-access-key

    -

    QingStor Secret Access Key (password).

    -

    Leave blank for anonymous access or runtime credentials.

    -

    Properties:

    - -

    --qingstor-endpoint

    -

    Enter an endpoint URL to connection QingStor API.

    -

    Leave blank will use the default value "https://qingstor.com:443".

    -

    Properties:

    - -

    --qingstor-zone

    -

    Zone to connect to.

    -

    Default is "pek3a".

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to qingstor (QingCloud Object Storage).

    -

    --qingstor-connection-retries

    -

    Number of connection retries.

    -

    Properties:

    - -

    --qingstor-upload-cutoff

    -

    Cutoff for switching to chunked upload.

    -

    Any files larger than this will be uploaded in chunks of chunk_size. The minimum is 0 and the maximum is 5 GiB.

    -

    Properties:

    - -

    --qingstor-chunk-size

    -

    Chunk size to use for uploading.

    -

    When uploading files larger than upload_cutoff they will be uploaded as multipart uploads using this chunk size.

    -

    Note that "--qingstor-upload-concurrency" chunks of this size are buffered in memory per transfer.

    -

    If you are transferring large files over high-speed links and you have enough memory, then increasing this will speed up the transfers.

    -

    Properties:

    - -

    --qingstor-upload-concurrency

    -

    Concurrency for multipart uploads.

    -

    This is the number of chunks of the same file that are uploaded concurrently.

    -

    NB if you set this to > 1 then the checksums of multipart uploads become corrupted (the uploads themselves are not corrupted though).

    -

    If you are uploading small numbers of large files over high-speed links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers.

    -

    Properties:

    - -

    --qingstor-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    rclone about is not supported by the qingstor backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Sia

    -

    Sia (sia.tech) is a decentralized cloud storage platform based on the blockchain technology. With rclone you can use it like any other remote filesystem or mount Sia folders locally. The technology behind it involves a number of new concepts such as Siacoins and Wallet, Blockchain and Consensus, Renting and Hosting, and so on. If you are new to it, you'd better first familiarize yourself using their excellent support documentation.

    -

    Introduction

    -

    Before you can use rclone with Sia, you will need to have a running copy of Sia-UI or siad (the Sia daemon) locally on your computer or on local network (e.g. a NAS). Please follow the Get started guide and install one.

    -

    rclone interacts with Sia network by talking to the Sia daemon via HTTP API which is usually available on port 9980. By default you will run the daemon locally on the same computer so it's safe to leave the API password blank (the API URL will be http://127.0.0.1:9980 making external access impossible).

    -

    However, if you want to access Sia daemon running on another node, for example due to memory constraints or because you want to share single daemon between several rclone and Sia-UI instances, you'll need to make a few more provisions: - Ensure you have Sia daemon installed directly or in a docker container because Sia-UI does not support this mode natively. - Run it on externally accessible port, for example provide --api-addr :9980 and --disable-api-security arguments on the daemon command line. - Enforce API password for the siad daemon via environment variable SIA_API_PASSWORD or text file named apipassword in the daemon directory. - Set rclone backend option api_password taking it from above locations.

    -

    Notes: 1. If your wallet is locked, rclone cannot unlock it automatically. You should either unlock it in advance by using Sia-UI or via command line siac wallet unlock. Alternatively you can make siad unlock your wallet automatically upon startup by running it with environment variable SIA_WALLET_PASSWORD. 2. If siad cannot find the SIA_API_PASSWORD variable or the apipassword file in the SIA_DIR directory, it will generate a random password and store in the text file named apipassword under YOUR_HOME/.sia/ directory on Unix or C:\Users\YOUR_HOME\AppData\Local\Sia\apipassword on Windows. Remember this when you configure password in rclone. 3. The only way to use siad without API password is to run it on localhost with command line argument --authorize-api=false, but this is insecure and strongly discouraged.

    -

    Configuration

    -

    Here is an example of how to make a sia remote called mySia. First, run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> mySia
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -...
    -29 / Sia Decentralized Cloud
    -   \ "sia"
    -...
    -Storage> sia
    -Sia daemon API URL, like http://sia.daemon.host:9980.
    -Note that siad must run with --disable-api-security to open API port for other hosts (not recommended).
    -Keep default if Sia daemon runs on localhost.
    -Enter a string value. Press Enter for the default ("http://127.0.0.1:9980").
    -api_url> http://127.0.0.1:9980
    -Sia Daemon API Password.
    -Can be found in the apipassword file located in HOME/.sia/ or in the daemon directory.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g/n> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Edit advanced config?
    -y) Yes
    -n) No (default)
    -y/n> n
    ---------------------
    -[mySia]
    -type = sia
    -api_url = http://127.0.0.1:9980
    -api_password = *** ENCRYPTED ***
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Once configured, you can then use rclone like this:

    - -
    rclone lsd mySia:
    - -
    rclone ls mySia:
    - -
    rclone copy /home/source mySia:backup
    -

    Standard options

    -

    Here are the standard options specific to sia (Sia Decentralized Cloud).

    -

    --sia-api-url

    -

    Sia daemon API URL, like http://sia.daemon.host:9980.

    -

    Note that siad must run with --disable-api-security to open API port for other hosts (not recommended). Keep default if Sia daemon runs on localhost.

    -

    Properties:

    - -

    --sia-api-password

    -

    Sia Daemon API Password.

    -

    Can be found in the apipassword file located in HOME/.sia/ or in the daemon directory.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to sia (Sia Decentralized Cloud).

    -

    --sia-user-agent

    -

    Siad User Agent

    -

    Sia daemon requires the 'Sia-Agent' user agent by default for security

    -

    Properties:

    - -

    --sia-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    - -

    Swift

    -

    Swift refers to OpenStack Object Storage. Commercial implementations of that being:

    + +When videos are downloaded they are downloaded in a really compressed version of the video compared to downloading it via the Google Photos web interface. This is covered by bug #113672044. + + +### Duplicates + + +If a file name is duplicated in a directory then rclone will add the file ID into its name. So two files called file.jpg would then appear as file {123456}.jpg and file {ABCDEF}.jpg (the actual IDs are a lot longer alas!). + + +If you upload the same image (with the same binary data) twice then Google Photos will deduplicate it. However it will retain the filename from the first upload which may confuse rclone. For example if you uploaded an image to upload then uploaded the same image to album/my_album the filename of the image in album/my_album will be what it was uploaded with initially, not what you uploaded it with to album. In practise this shouldn't cause too many problems. + + +### Modified time + + +The date shown of media in Google Photos is the creation date as determined by the EXIF information, or the upload date if that is not known. + + +This is not changeable by rclone and is not the modification date of the media on local disk. This means that rclone cannot use the dates from Google Photos for syncing purposes. + + +### Size + + +The Google Photos API does not return the size of media. This means that when syncing to Google Photos, rclone can only do a file existence check. + + +It is possible to read the size of the media, but this needs an extra HTTP HEAD request per media item so is very slow and uses up a lot of transactions. This can be enabled with the --gphotos-read-size option or the read_size = true config parameter. + + +If you want to use the backend with rclone mount you may need to enable this flag (depending on your OS and application using the photos) otherwise you may not be able to read media off the mount. You'll need to experiment to see if it works for you without the flag. + + +### Albums + + +Rclone can only upload files to albums it created. This is a limitation of the Google Photos API. + + +Rclone can remove files it uploaded from albums it created only. + + +### Deleting files + + +Rclone can remove files from albums it created, but note that the Google Photos API does not allow media to be deleted permanently so this media will still remain. See bug #109759781. + + +Rclone cannot delete files anywhere except under album. + + +### Deleting albums + + +The Google Photos API does not support deleting albums - see bug #135714733. + + +# Hasher + + +Hasher is a special overlay backend to create remotes which handle checksums for other remotes. It's main functions include: - Emulate hash types unimplemented by backends - Cache checksums to help with slow hashing of large local or (S)FTP files - Warm up checksum cache from external SUM files + + +## Getting started + + +To use Hasher, first set up the underlying remote following the configuration instructions for that remote. You can also use a local pathname instead of a remote. Check that your base remote is working. + + +Let's call the base remote myRemote:path here. Note that anything inside myRemote:path will be handled by hasher and anything outside won't. This means that if you are using a bucket based remote (S3, B2, Swift) then you should put the bucket in the remote s3:bucket. + + +Now proceed to interactive or manual configuration. + + +### Interactive configuration + + +Run rclone config: ``` No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> Hasher1 Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Handle checksums for other remotes  "hasher" [snip] Storage> hasher Remote to cache checksums for, like myremote:mypath. Enter a string value. Press Enter for the default (""). remote> myRemote:path Comma separated list of supported checksum types. Enter a string value. Press Enter for the default ("md5,sha1"). hashsums> md5 Maximum time to keep checksums in cache. 0 = no cache, off = cache forever. max_age> off Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config + + + +

    [Hasher1] type = hasher remote = myRemote:path hashsums = md5 max_age = off -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### Manual configuration
    +
    +Run `rclone config path` to see the path of current active config file,
    +usually `YOURHOME/.config/rclone/rclone.conf`.
    +Open it in your favorite text editor, find section for the base remote
    +and create new section for hasher like in the following examples:
    +
    +

    [Hasher1] type = hasher remote = myRemote:path hashes = md5 max_age = off

    +

    [Hasher2] type = hasher remote = /local/path hashes = dropbox,sha1 max_age = 24h

    +
    
    +Hasher takes basically the following parameters:
    +- `remote` is required,
    +- `hashes` is a comma separated list of supported checksums
    +   (by default `md5,sha1`),
    +- `max_age` - maximum time to keep a checksum value in the cache,
    +   `0` will disable caching completely,
    +   `off` will cache "forever" (that is until the files get changed).
    +
    +Make sure the `remote` has `:` (colon) in. If you specify the remote without
    +a colon then rclone will use a local directory of that name. So if you use
    +a remote of `/local/path` then rclone will handle hashes for that directory.
    +If you use `remote = name` literally then rclone will put files
    +**in a directory called `name` located under current directory**.
    +
    +## Usage
    +
    +### Basic operations
    +
    +Now you can use it as `Hasher2:subdir/file` instead of base remote.
    +Hasher will transparently update cache with new checksums when a file
    +is fully read or overwritten, like:
    +

    rclone copy External:path/file Hasher:dest/path

    +

    rclone cat Hasher:path/to/file > /dev/null

    +
    
    +The way to refresh **all** cached checksums (even unsupported by the base backend)
    +for a subtree is to **re-download** all files in the subtree. For example,
    +use `hashsum --download` using **any** supported hashsum on the command line
    +(we just care to re-read):
    +

    rclone hashsum MD5 --download Hasher:path/to/subtree > /dev/null

    +

    rclone backend dump Hasher:path/to/subtree

    +
    
    +You can print or drop hashsum cache using custom backend commands:
    +

    rclone backend dump Hasher:dir/subdir

    +

    rclone backend drop Hasher:

    +
    
    +### Pre-Seed from a SUM File
    +
    +Hasher supports two backend commands: generic SUM file `import` and faster
    +but less consistent `stickyimport`.
    +
    +

    rclone backend import Hasher:dir/subdir SHA1 /path/to/SHA1SUM [--checkers 4]

    +
    
    +Instead of SHA1 it can be any hash supported by the remote. The last argument
    +can point to either a local or an `other-remote:path` text file in SUM format.
    +The command will parse the SUM file, then walk down the path given by the
    +first argument, snapshot current fingerprints and fill in the cache entries
    +correspondingly.
    +- Paths in the SUM file are treated as relative to `hasher:dir/subdir`.
    +- The command will **not** check that supplied values are correct.
    +  You **must know** what you are doing.
    +- This is a one-time action. The SUM file will not get "attached" to the
    +  remote. Cache entries can still be overwritten later, should the object's
    +  fingerprint change.
    +- The tree walk can take long depending on the tree size. You can increase
    +  `--checkers` to make it faster. Or use `stickyimport` if you don't care
    +  about fingerprints and consistency.
    +
    +

    rclone backend stickyimport hasher:path/to/data sha1 remote:/path/to/sum.sha1

    +
    
    +`stickyimport` is similar to `import` but works much faster because it
    +does not need to stat existing files and skips initial tree walk.
    +Instead of binding cache entries to file fingerprints it creates _sticky_
    +entries bound to the file name alone ignoring size, modification time etc.
    +Such hash entries can be replaced only by `purge`, `delete`, `backend drop`
    +or by full re-read/re-write of the files.
    +
    +## Configuration reference
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to hasher (Better checksums for other remotes).
    +
    +#### --hasher-remote
    +
    +Remote to cache checksums for (e.g. myRemote:path).
    +
    +Properties:
    +
    +- Config:      remote
    +- Env Var:     RCLONE_HASHER_REMOTE
    +- Type:        string
    +- Required:    true
    +
    +#### --hasher-hashes
    +
    +Comma separated list of supported checksum types.
    +
    +Properties:
    +
    +- Config:      hashes
    +- Env Var:     RCLONE_HASHER_HASHES
    +- Type:        CommaSepList
    +- Default:     md5,sha1
    +
    +#### --hasher-max-age
    +
    +Maximum time to keep checksums in cache (0 = no cache, off = cache forever).
    +
    +Properties:
    +
    +- Config:      max_age
    +- Env Var:     RCLONE_HASHER_MAX_AGE
    +- Type:        Duration
    +- Default:     off
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to hasher (Better checksums for other remotes).
    +
    +#### --hasher-auto-size
    +
    +Auto-update checksum for files smaller than this size (disabled by default).
    +
    +Properties:
    +
    +- Config:      auto_size
    +- Env Var:     RCLONE_HASHER_AUTO_SIZE
    +- Type:        SizeSuffix
    +- Default:     0
    +
    +### Metadata
    +
    +Any metadata supported by the underlying remote is read and written.
    +
    +See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
    +
    +## Backend commands
    +
    +Here are the commands specific to the hasher backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### drop
    +
    +Drop cache
    +
    +    rclone backend drop remote: [options] [<arguments>+]
    +
    +Completely drop checksum cache.
    +Usage Example:
    +    rclone backend drop hasher:
    +
    +
    +### dump
    +
    +Dump the database
    +
    +    rclone backend dump remote: [options] [<arguments>+]
    +
    +Dump cache records covered by the current remote
    +
    +### fulldump
    +
    +Full dump of the database
    +
    +    rclone backend fulldump remote: [options] [<arguments>+]
    +
    +Dump all cache records in the database
    +
    +### import
    +
    +Import a SUM file
    +
    +    rclone backend import remote: [options] [<arguments>+]
    +
    +Amend hash cache from a SUM file and bind checksums to files by size/time.
    +Usage Example:
    +    rclone backend import hasher:subdir md5 /path/to/sum.md5
    +
    +
    +### stickyimport
    +
    +Perform fast import of a SUM file
    +
    +    rclone backend stickyimport remote: [options] [<arguments>+]
    +
    +Fill hash cache from a SUM file without verifying file fingerprints.
    +Usage Example:
    +    rclone backend stickyimport hasher:subdir md5 remote:path/to/sum.md5
    +
    +
    +
    +
    +## Implementation details (advanced)
    +
    +This section explains how various rclone operations work on a hasher remote.
    +
    +**Disclaimer. This section describes current implementation which can
    +change in future rclone versions!.**
    +
    +### Hashsum command
    +
    +The `rclone hashsum` (or `md5sum` or `sha1sum`) command will:
    +
    +1. if requested hash is supported by lower level, just pass it.
    +2. if object size is below `auto_size` then download object and calculate
    +   _requested_ hashes on the fly.
    +3. if unsupported and the size is big enough, build object `fingerprint`
    +   (including size, modtime if supported, first-found _other_ hash if any).
    +4. if the strict match is found in cache for the requested remote, return
    +   the stored hash.
    +5. if remote found but fingerprint mismatched, then purge the entry and
    +   proceed to step 6.
    +6. if remote not found or had no requested hash type or after step 5:
    +   download object, calculate all _supported_ hashes on the fly and store
    +   in cache; return requested hash.
    +
    +### Other operations
    +
    +- whenever a file is uploaded or downloaded **in full**, capture the stream
    +  to calculate all supported hashes on the fly and update database
    +- server-side `move`  will update keys of existing cache entries
    +- `deletefile` will remove a single cache entry
    +- `purge` will remove all cache entries under the purged path
    +
    +Note that setting `max_age = 0` will disable checksum caching completely.
    +
    +If you set `max_age = off`, checksums in cache will never age, unless you
    +fully rewrite or delete the file.
    +
    +### Cache storage
    +
    +Cached checksums are stored as `bolt` database files under rclone cache
    +directory, usually `~/.cache/rclone/kv/`. Databases are maintained
    +one per _base_ backend, named like `BaseRemote~hasher.bolt`.
    +Checksums for multiple `alias`-es into a single base backend
    +will be stored in the single database. All local paths are treated as
    +aliases into the `local` backend (unless encrypted or chunked) and stored
    +in `~/.cache/rclone/kv/local~hasher.bolt`.
    +Databases can be shared between multiple rclone processes.
    +
    +#  HDFS
    +
    +[HDFS](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html) is a
    +distributed file-system, part of the [Apache Hadoop](https://hadoop.apache.org/) framework.
    +
    +Paths are specified as `remote:` or `remote:path/to/dir`.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`. First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [skip] XX / Hadoop distributed file system  "hdfs" [skip] Storage> hdfs ** See help for hdfs backend at: https://rclone.org/hdfs/ **

    +

    hadoop name node and port Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to host namenode at port 8020  "namenode:8020" namenode> namenode.hadoop:8020 hadoop user name Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to hdfs as root  "root" username> root Edit advanced config? (y/n) y) Yes n) No (default) y/n> n Remote config -------------------- [remote] type = hdfs namenode = namenode.hadoop:8020 username = root -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y Current remotes:

    +

    Name Type ==== ==== hadoop hdfs

    +
      +
    1. Edit existing remote
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> q
    14. +
    +
    
    +This remote is called `remote` and can now be used like this
    +
    +See all the top level directories
    +
    +    rclone lsd remote:
    +
    +List the contents of a directory
    +
    +    rclone ls remote:directory
    +
    +Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
    +
    +    rclone sync --interactive remote:directory /home/local/directory
    +
    +### Setting up your own HDFS instance for testing
    +
    +You may start with a [manual setup](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html)
    +or use the docker image from the tests:
    +
    +If you want to build the docker image
    +
    +

    git clone https://github.com/rclone/rclone.git cd rclone/fstest/testserver/images/test-hdfs docker build --rm -t rclone/test-hdfs .

    +
    
    +Or you can just use the latest one pushed
    +
    +

    docker run --rm --name "rclone-hdfs" -p 127.0.0.1:9866:9866 -p 127.0.0.1:8020:8020 --hostname "rclone-hdfs" rclone/test-hdfs

    +
    
    +**NB** it need few seconds to startup.
    +
    +For this docker image the remote needs to be configured like this:
    +
    +

    [remote] type = hdfs namenode = 127.0.0.1:8020 username = root

    +
    
    +You can stop this image with `docker kill rclone-hdfs` (**NB** it does not use volumes, so all data
    +uploaded will be lost.)
    +
    +### Modified time
    +
    +Time accurate to 1 second is stored.
    +
    +### Checksum
    +
    +No checksums are implemented.
    +
    +### Usage information
    +
    +You can use the `rclone about remote:` command which will display filesystem size and current usage.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| :         | 0x3A  | :           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8).
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to hdfs (Hadoop distributed file system).
    +
    +#### --hdfs-namenode
    +
    +Hadoop name node and port.
    +
    +E.g. "namenode:8020" to connect to host namenode at port 8020.
    +
    +Properties:
    +
    +- Config:      namenode
    +- Env Var:     RCLONE_HDFS_NAMENODE
    +- Type:        string
    +- Required:    true
    +
    +#### --hdfs-username
    +
    +Hadoop user name.
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_HDFS_USERNAME
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "root"
    +        - Connect to hdfs as root.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to hdfs (Hadoop distributed file system).
    +
    +#### --hdfs-service-principal-name
    +
    +Kerberos service principal name for the namenode.
    +
    +Enables KERBEROS authentication. Specifies the Service Principal Name
    +(SERVICE/FQDN) for the namenode. E.g. \"hdfs/namenode.hadoop.docker\"
    +for namenode running as service 'hdfs' with FQDN 'namenode.hadoop.docker'.
    +
    +Properties:
    +
    +- Config:      service_principal_name
    +- Env Var:     RCLONE_HDFS_SERVICE_PRINCIPAL_NAME
    +- Type:        string
    +- Required:    false
    +
    +#### --hdfs-data-transfer-protection
    +
    +Kerberos data transfer protection: authentication|integrity|privacy.
    +
    +Specifies whether or not authentication, data signature integrity
    +checks, and wire encryption are required when communicating with
    +the datanodes. Possible values are 'authentication', 'integrity'
    +and 'privacy'. Used only with KERBEROS enabled.
    +
    +Properties:
    +
    +- Config:      data_transfer_protection
    +- Env Var:     RCLONE_HDFS_DATA_TRANSFER_PROTECTION
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "privacy"
    +        - Ensure authentication, integrity and encryption enabled.
    +
    +#### --hdfs-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_HDFS_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Colon,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +- No server-side `Move` or `DirMove`.
    +- Checksums not implemented.
    +
    +#  HiDrive
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +The initial setup for hidrive involves getting a token from HiDrive
    +which you need to do in your browser.
    +`rclone config` walks you through it.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found - make a new one n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / HiDrive  "hidrive" [snip] Storage> hidrive OAuth Client Id - Leave blank normally. client_id> OAuth Client Secret - Leave blank normally. client_secret> Access permissions that rclone should use when requesting access from HiDrive. Leave blank normally. scope_access> Edit advanced config? y/n> n Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=xxxxxxxxxxxxxxxxxxxxxx Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] type = hidrive token = {"access_token":"xxxxxxxxxxxxxxxxxxxx","token_type":"Bearer","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxx","expiry":"xxxxxxxxxxxxxxxxxxxxxxx"} -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +**You should be aware that OAuth-tokens can be used to access your account
    +and hence should not be shared with other persons.**
    +See the [below section](#keeping-your-tokens-safe) for more information.
    +
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from HiDrive. This only runs from the moment it opens
    +your browser to the moment you get back the verification code.
    +The webserver runs on `http://127.0.0.1:53682/`.
    +If local port `53682` is protected by a firewall you may need to temporarily
    +unblock the firewall to complete authorization.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your HiDrive root folder
    +
    +    rclone lsd remote:
    +
    +List all the files in your HiDrive filesystem
    +
    +    rclone ls remote:
    +
    +To copy a local directory to a HiDrive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Keeping your tokens safe
    +
    +Any OAuth-tokens will be stored by rclone in the remote's configuration file as unencrypted text.
    +Anyone can use a valid refresh-token to access your HiDrive filesystem without knowing your password.
    +Therefore you should make sure no one else can access your configuration.
    +
    +It is possible to encrypt rclone's configuration file.
    +You can find information on securing your configuration file by viewing the [configuration encryption docs](https://rclone.org/docs/#configuration-encryption).
    +
    +### Invalid refresh token
    +
    +As can be verified [here](https://developer.hidrive.com/basics-flows/),
    +each `refresh_token` (for Native Applications) is valid for 60 days.
    +If used to access HiDrivei, its validity will be automatically extended.
    +
    +This means that if you
    +
    +  * Don't use the HiDrive remote for 60 days
    +
    +then rclone will return an error which includes a text
    +that implies the refresh token is *invalid* or *expired*.
    +
    +To fix this you will need to authorize rclone to access your HiDrive account again.
    +
    +Using
    +
    +    rclone config reconnect remote:
    +
    +the process is very similar to the process of initial setup exemplified before.
    +
    +### Modified time and hashes
    +
    +HiDrive allows modification times to be set on objects accurate to 1 second.
    +
    +HiDrive supports [its own hash type](https://static.hidrive.com/dev/0001)
    +which is used to verify the integrity of file contents after successful transfers.
    +
    +### Restricted filename characters
    +
    +HiDrive cannot store files or folders that include
    +`/` (0x2F) or null-bytes (0x00) in their name.
    +Any other characters can be used in the names of files or folders.
    +Additionally, files or folders cannot be named either of the following: `.` or `..`
    +
    +Therefore rclone will automatically replace these characters,
    +if files or folders are stored or accessed with such names.
    +
    +You can read about how this filename encoding works in general
    +[here](overview/#restricted-filenames).
    +
    +Keep in mind that HiDrive only supports file or folder names
    +with a length of 255 characters or less.
    +
    +### Transfers
    +
    +HiDrive limits file sizes per single request to a maximum of 2 GiB.
    +To allow storage of larger files and allow for better upload performance,
    +the hidrive backend will use a chunked transfer for files larger than 96 MiB.
    +Rclone will upload multiple parts/chunks of the file at the same time.
    +Chunks in the process of being uploaded are buffered in memory,
    +so you may want to restrict this behaviour on systems with limited resources.
    +
    +You can customize this behaviour using the following options:
    +
    +* `chunk_size`: size of file parts
    +* `upload_cutoff`: files larger or equal to this in size will use a chunked transfer
    +* `upload_concurrency`: number of file-parts to upload at the same time
    +
    +See the below section about configuration options for more details.
    +
    +### Root folder
    +
    +You can set the root folder for rclone.
    +This is the directory that rclone considers to be the root of your HiDrive.
    +
    +Usually, you will leave this blank, and rclone will use the root of the account.
    +
    +However, you can set this to restrict rclone to a specific folder hierarchy.
    +
    +This works by prepending the contents of the `root_prefix` option
    +to any paths accessed by rclone.
    +For example, the following two ways to access the home directory are equivalent:
    +
    +    rclone lsd --hidrive-root-prefix="/users/test/" remote:path
    +
    +    rclone lsd remote:/users/test/path
    +
    +See the below section about configuration options for more details.
    +
    +### Directory member count
    +
    +By default, rclone will know the number of directory members contained in a directory.
    +For example, `rclone lsd` uses this information.
    +
    +The acquisition of this information will result in additional time costs for HiDrive's API.
    +When dealing with large directory structures, it may be desirable to circumvent this time cost,
    +especially when this information is not explicitly needed.
    +For this, the `disable_fetching_member_count` option can be used.
    +
    +See the below section about configuration options for more details.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to hidrive (HiDrive).
    +
    +#### --hidrive-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_HIDRIVE_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --hidrive-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_HIDRIVE_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --hidrive-scope-access
    +
    +Access permissions that rclone should use when requesting access from HiDrive.
    +
    +Properties:
    +
    +- Config:      scope_access
    +- Env Var:     RCLONE_HIDRIVE_SCOPE_ACCESS
    +- Type:        string
    +- Default:     "rw"
    +- Examples:
    +    - "rw"
    +        - Read and write access to resources.
    +    - "ro"
    +        - Read-only access to resources.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to hidrive (HiDrive).
    +
    +#### --hidrive-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_HIDRIVE_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --hidrive-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_HIDRIVE_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --hidrive-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_HIDRIVE_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --hidrive-scope-role
    +
    +User-level that rclone should use when requesting access from HiDrive.
    +
    +Properties:
    +
    +- Config:      scope_role
    +- Env Var:     RCLONE_HIDRIVE_SCOPE_ROLE
    +- Type:        string
    +- Default:     "user"
    +- Examples:
    +    - "user"
    +        - User-level access to management permissions.
    +        - This will be sufficient in most cases.
    +    - "admin"
    +        - Extensive access to management permissions.
    +    - "owner"
    +        - Full access to management permissions.
    +
    +#### --hidrive-root-prefix
    +
    +The root/parent folder for all paths.
    +
    +Fill in to use the specified folder as the parent for all paths given to the remote.
    +This way rclone can use any folder as its starting point.
    +
    +Properties:
    +
    +- Config:      root_prefix
    +- Env Var:     RCLONE_HIDRIVE_ROOT_PREFIX
    +- Type:        string
    +- Default:     "/"
    +- Examples:
    +    - "/"
    +        - The topmost directory accessible by rclone.
    +        - This will be equivalent with "root" if rclone uses a regular HiDrive user account.
    +    - "root"
    +        - The topmost directory of the HiDrive user account
    +    - ""
    +        - This specifies that there is no root-prefix for your paths.
    +        - When using this you will always need to specify paths to this remote with a valid parent e.g. "remote:/path/to/dir" or "remote:root/path/to/dir".
    +
    +#### --hidrive-endpoint
    +
    +Endpoint for the service.
    +
    +This is the URL that API-calls will be made to.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_HIDRIVE_ENDPOINT
    +- Type:        string
    +- Default:     "https://api.hidrive.strato.com/2.1"
    +
    +#### --hidrive-disable-fetching-member-count
    +
    +Do not fetch number of objects in directories unless it is absolutely necessary.
    +
    +Requests may be faster if the number of objects in subdirectories is not fetched.
    +
    +Properties:
    +
    +- Config:      disable_fetching_member_count
    +- Env Var:     RCLONE_HIDRIVE_DISABLE_FETCHING_MEMBER_COUNT
    +- Type:        bool
    +- Default:     false
    +
    +#### --hidrive-chunk-size
    +
    +Chunksize for chunked uploads.
    +
    +Any files larger than the configured cutoff (or files of unknown size) will be uploaded in chunks of this size.
    +
    +The upper limit for this is 2147483647 bytes (about 2.000Gi).
    +That is the maximum amount of bytes a single upload-operation will support.
    +Setting this above the upper limit or to a negative value will cause uploads to fail.
    +
    +Setting this to larger values may increase the upload speed at the cost of using more memory.
    +It can be set to smaller values smaller to save on memory.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_HIDRIVE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     48Mi
    +
    +#### --hidrive-upload-cutoff
    +
    +Cutoff/Threshold for chunked uploads.
    +
    +Any files larger than this will be uploaded in chunks of the configured chunksize.
    +
    +The upper limit for this is 2147483647 bytes (about 2.000Gi).
    +That is the maximum amount of bytes a single upload-operation will support.
    +Setting this above the upper limit will cause uploads to fail.
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_HIDRIVE_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     96Mi
    +
    +#### --hidrive-upload-concurrency
    +
    +Concurrency for chunked uploads.
    +
    +This is the upper limit for how many transfers for the same file are running concurrently.
    +Setting this above to a value smaller than 1 will cause uploads to deadlock.
    +
    +If you are uploading small numbers of large files over high-speed links
    +and these uploads do not fully utilize your bandwidth, then increasing
    +this may help to speed up the transfers.
    +
    +Properties:
    +
    +- Config:      upload_concurrency
    +- Env Var:     RCLONE_HIDRIVE_UPLOAD_CONCURRENCY
    +- Type:        int
    +- Default:     4
    +
    +#### --hidrive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_HIDRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Dot
    +
    +
    +
    +## Limitations
    +
    +### Symbolic links
    +
    +HiDrive is able to store symbolic links (*symlinks*) by design,
    +for example, when unpacked from a zip archive.
    +
    +There exists no direct mechanism to manage native symlinks in remotes.
    +As such this implementation has chosen to ignore any native symlinks present in the remote.
    +rclone will not be able to access or show any symlinks stored in the hidrive-remote.
    +This means symlinks cannot be individually removed, copied, or moved,
    +except when removing, copying, or moving the parent folder.
    +
    +*This does not affect the `.rclonelink`-files
    +that rclone uses to encode and store symbolic links.*
    +
    +### Sparse files
    +
    +It is possible to store sparse files in HiDrive.
    +
    +Note that copying a sparse file will expand the holes
    +into null-byte (0x00) regions that will then consume disk space.
    +Likewise, when downloading a sparse file,
    +the resulting file will have null-byte regions in the place of file holes.
    +
    +#  HTTP
    +
    +The HTTP remote is a read only remote for reading files of a
    +webserver.  The webserver should provide file listings which rclone
    +will read and turn into a remote.  This has been tested with common
    +webservers such as Apache/Nginx/Caddy and will likely work with file
    +listings from most web servers.  (If it doesn't then please file an
    +issue, or send a pull request!)
    +
    +Paths are specified as `remote:` or `remote:path`.
    +
    +The `remote:` represents the configured [url](#http-url), and any path following
    +it will be resolved relative to this url, according to the URL standard. This
    +means with remote url `https://beta.rclone.org/branch` and path `fix`, the
    +resolved URL will be `https://beta.rclone.org/branch/fix`, while with path
    +`/fix` the resolved URL will be `https://beta.rclone.org/fix` as the absolute
    +path is resolved from the root of the domain.
    +
    +If the path following the `remote:` ends with `/` it will be assumed to point
    +to a directory. If the path does not end with `/`, then a HEAD request is sent
    +and the response used to decide if it it is treated as a file or a directory
    +(run with `-vv` to see details). When [--http-no-head](#http-no-head) is
    +specified, a path without ending `/` is always assumed to be a file. If rclone
    +incorrectly assumes the path is a file, the solution is to specify the path with
    +ending `/`. When you know the path is a directory, ending it with `/` is always
    +better as it avoids the initial HEAD request.
    +
    +To just download a single file it is easier to use
    +[copyurl](https://rclone.org/commands/rclone_copyurl/).
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First
    +run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / HTTP  "http" [snip] Storage> http URL of http host to connect to Choose a number from below, or type in your own value 1 / Connect to example.com  "https://example.com" url> https://beta.rclone.org Remote config -------------------- [remote] url = https://beta.rclone.org -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y Current remotes:

    +

    Name Type ==== ==== remote http

    +
      +
    1. Edit existing remote
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> q
    14. +
    +
    
    +This remote is called `remote` and can now be used like this
    +
    +See all the top level directories
    +
    +    rclone lsd remote:
    +
    +List the contents of a directory
    +
    +    rclone ls remote:directory
    +
    +Sync the remote `directory` to `/home/local/directory`, deleting any excess files.
    +
    +    rclone sync --interactive remote:directory /home/local/directory
    +
    +### Read only
    +
    +This remote is read only - you can't upload files to an HTTP server.
    +
    +### Modified time
    +
    +Most HTTP servers store time accurate to 1 second.
    +
    +### Checksum
    +
    +No checksums are stored.
    +
    +### Usage without a config file
    +
    +Since the http remote only has one config parameter it is easy to use
    +without a config file:
    +
    +    rclone lsd --http-url https://beta.rclone.org :http:
    +
    +or:
    +
    +    rclone lsd :http,url='https://beta.rclone.org':
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to http (HTTP).
    +
    +#### --http-url
    +
    +URL of HTTP host to connect to.
    +
    +E.g. "https://example.com", or "https://user:pass@example.com" to use a username and password.
    +
    +Properties:
    +
    +- Config:      url
    +- Env Var:     RCLONE_HTTP_URL
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to http (HTTP).
    +
    +#### --http-headers
    +
    +Set HTTP headers for all transactions.
    +
    +Use this to set additional HTTP headers for all transactions.
    +
    +The input format is comma separated list of key,value pairs.  Standard
    +[CSV encoding](https://godoc.org/encoding/csv) may be used.
    +
    +For example, to set a Cookie use 'Cookie,name=value', or '"Cookie","name=value"'.
    +
    +You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'.
    +
    +Properties:
    +
    +- Config:      headers
    +- Env Var:     RCLONE_HTTP_HEADERS
    +- Type:        CommaSepList
    +- Default:     
    +
    +#### --http-no-slash
    +
    +Set this if the site doesn't end directories with /.
    +
    +Use this if your target website does not use / on the end of
    +directories.
    +
    +A / on the end of a path is how rclone normally tells the difference
    +between files and directories.  If this flag is set, then rclone will
    +treat all files with Content-Type: text/html as directories and read
    +URLs from them rather than downloading them.
    +
    +Note that this may cause rclone to confuse genuine HTML files with
    +directories.
    +
    +Properties:
    +
    +- Config:      no_slash
    +- Env Var:     RCLONE_HTTP_NO_SLASH
    +- Type:        bool
    +- Default:     false
    +
    +#### --http-no-head
    +
    +Don't use HEAD requests.
    +
    +HEAD requests are mainly used to find file sizes in dir listing.
    +If your site is being very slow to load then you can try this option.
    +Normally rclone does a HEAD request for each potential file in a
    +directory listing to:
    +
    +- find its size
    +- check it really exists
    +- check to see if it is a directory
    +
    +If you set this option, rclone will not do the HEAD request. This will mean
    +that directory listings are much quicker, but rclone won't have the times or
    +sizes of any files, and some files that don't exist may be in the listing.
    +
    +Properties:
    +
    +- Config:      no_head
    +- Env Var:     RCLONE_HTTP_NO_HEAD
    +- Type:        bool
    +- Default:     false
    +
    +
    +
    +## Limitations
    +
    +`rclone about` is not supported by the HTTP backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Internet Archive
    +
    +The Internet Archive backend utilizes Items on [archive.org](https://archive.org/)
    +
    +Refer to [IAS3 API documentation](https://archive.org/services/docs/api/ias3.html) for the API this backend uses.
    +
    +Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g. `remote:item/path/to/dir`.
    +
    +Unlike S3, listing up all items uploaded by you isn't supported.
    +
    +Once you have made a remote, you can use it like this:
    +
    +Make a new item
    +
    +    rclone mkdir remote:item
    +
    +List the contents of a item
    +
    +    rclone ls remote:item
    +
    +Sync `/home/local/directory` to the remote item, deleting any excess
    +files in the item.
    +
    +    rclone sync --interactive /home/local/directory remote:item
    +
    +## Notes
    +Because of Internet Archive's architecture, it enqueues write operations (and extra post-processings) in a per-item queue. You can check item's queue at https://catalogd.archive.org/history/item-name-here . Because of that, all uploads/deletes will not show up immediately and takes some time to be available.
    +The per-item queue is enqueued to an another queue, Item Deriver Queue. [You can check the status of Item Deriver Queue here.](https://catalogd.archive.org/catalog.php?whereami=1) This queue has a limit, and it may block you from uploading, or even deleting. You should avoid uploading a lot of small files for better behavior.
    +
    +You can optionally wait for the server's processing to finish, by setting non-zero value to `wait_archive` key.
    +By making it wait, rclone can do normal file comparison.
    +Make sure to set a large enough value (e.g. `30m0s` for smaller files) as it can take a long time depending on server's queue.
    +
    +## About metadata
    +This backend supports setting, updating and reading metadata of each file.
    +The metadata will appear as file metadata on Internet Archive.
    +However, some fields are reserved by both Internet Archive and rclone.
    +
    +The following are reserved by Internet Archive:
    +- `name`
    +- `source`
    +- `size`
    +- `md5`
    +- `crc32`
    +- `sha1`
    +- `format`
    +- `old_version`
    +- `viruscheck`
    +- `summation`
    +
    +Trying to set values to these keys is ignored with a warning.
    +Only setting `mtime` is an exception. Doing so make it the identical behavior as setting ModTime.
    +
    +rclone reserves all the keys starting with `rclone-`. Setting value for these keys will give you warnings, but values are set according to request.
    +
    +If there are multiple values for a key, only the first one is returned.
    +This is a limitation of rclone, that supports one value per one key.
    +It can be triggered when you did a server-side copy.
    +
    +Reading metadata will also provide custom (non-standard nor reserved) ones.
    +
    +## Filtering auto generated files
    +
    +The Internet Archive automatically creates metadata files after
    +upload. These can cause problems when doing an `rclone sync` as rclone
    +will try, and fail, to delete them. These metadata files are not
    +changeable, as they are created by the Internet Archive automatically.
    +
    +These auto-created files can be excluded from the sync using [metadata
    +filtering](https://rclone.org/filtering/#metadata).
    +
    +    rclone sync ... --metadata-exclude "source=metadata" --metadata-exclude "format=Metadata"
    +
    +Which excludes from the sync any files which have the
    +`source=metadata` or `format=Metadata` flags which are added to
    +Internet Archive auto-created files.
    +
    +## Configuration
    +
    +Here is an example of making an internetarchive configuration.
    +Most applies to the other providers as well, any differences are described [below](#providers).
    +
    +First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process.
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. XX / InternetArchive Items  (internetarchive) Storage> internetarchive Option access_key_id. IAS3 Access Key. Leave blank for anonymous access. You can find one here: https://archive.org/account/s3.php Enter a value. Press Enter to leave empty. access_key_id> XXXX Option secret_access_key. IAS3 Secret Key (password). Leave blank for anonymous access. Enter a value. Press Enter to leave empty. secret_access_key> XXXX Edit advanced config? y) Yes n) No (default) y/n> y Option endpoint. IAS3 Endpoint. Leave blank for default value. Enter a string value. Press Enter for the default (https://s3.us.archive.org). endpoint> Option front_endpoint. Host of InternetArchive Frontend. Leave blank for default value. Enter a string value. Press Enter for the default (https://archive.org). front_endpoint> Option disable_checksum. Don't store MD5 checksum with object metadata. Normally rclone will calculate the MD5 checksum of the input before uploading it so it can ask the server to check the object against checksum. This is great for data integrity checking but can cause long delays for large files to start uploading. Enter a boolean value (true or false). Press Enter for the default (true). disable_checksum> true Option encoding. The encoding for the backend. See the encoding section in the overview for more info. Enter a encoder.MultiEncoder value. Press Enter for the default (Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot). encoding> Edit advanced config? y) Yes n) No (default) y/n> n -------------------- [remote] type = internetarchive access_key_id = XXXX secret_access_key = XXXX -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +
    +### Standard options
    +
    +Here are the Standard options specific to internetarchive (Internet Archive).
    +
    +#### --internetarchive-access-key-id
    +
    +IAS3 Access Key.
    +
    +Leave blank for anonymous access.
    +You can find one here: https://archive.org/account/s3.php
    +
    +Properties:
    +
    +- Config:      access_key_id
    +- Env Var:     RCLONE_INTERNETARCHIVE_ACCESS_KEY_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --internetarchive-secret-access-key
    +
    +IAS3 Secret Key (password).
    +
    +Leave blank for anonymous access.
    +
    +Properties:
    +
    +- Config:      secret_access_key
    +- Env Var:     RCLONE_INTERNETARCHIVE_SECRET_ACCESS_KEY
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to internetarchive (Internet Archive).
    +
    +#### --internetarchive-endpoint
    +
    +IAS3 Endpoint.
    +
    +Leave blank for default value.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_INTERNETARCHIVE_ENDPOINT
    +- Type:        string
    +- Default:     "https://s3.us.archive.org"
    +
    +#### --internetarchive-front-endpoint
    +
    +Host of InternetArchive Frontend.
    +
    +Leave blank for default value.
    +
    +Properties:
    +
    +- Config:      front_endpoint
    +- Env Var:     RCLONE_INTERNETARCHIVE_FRONT_ENDPOINT
    +- Type:        string
    +- Default:     "https://archive.org"
    +
    +#### --internetarchive-disable-checksum
    +
    +Don't ask the server to test against MD5 checksum calculated by rclone.
    +Normally rclone will calculate the MD5 checksum of the input before
    +uploading it so it can ask the server to check the object against checksum.
    +This is great for data integrity checking but can cause long delays for
    +large files to start uploading.
    +
    +Properties:
    +
    +- Config:      disable_checksum
    +- Env Var:     RCLONE_INTERNETARCHIVE_DISABLE_CHECKSUM
    +- Type:        bool
    +- Default:     true
    +
    +#### --internetarchive-wait-archive
    +
    +Timeout for waiting the server's processing tasks (specifically archive and book_op) to finish.
    +Only enable if you need to be guaranteed to be reflected after write operations.
    +0 to disable waiting. No errors to be thrown in case of timeout.
    +
    +Properties:
    +
    +- Config:      wait_archive
    +- Env Var:     RCLONE_INTERNETARCHIVE_WAIT_ARCHIVE
    +- Type:        Duration
    +- Default:     0s
    +
    +#### --internetarchive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_INTERNETARCHIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,CrLf,Del,Ctl,InvalidUtf8,Dot
    +
    +### Metadata
    +
    +Metadata fields provided by Internet Archive.
    +If there are multiple values for a key, only the first one is returned.
    +This is a limitation of Rclone, that supports one value per one key.
    +
    +Owner is able to add custom keys. Metadata feature grabs all the keys including them.
    +
    +Here are the possible system metadata items for the internetarchive backend.
    +
    +| Name | Help | Type | Example | Read Only |
    +|------|------|------|---------|-----------|
    +| crc32 | CRC32 calculated by Internet Archive | string | 01234567 | **Y** |
    +| format | Name of format identified by Internet Archive | string | Comma-Separated Values | **Y** |
    +| md5 | MD5 hash calculated by Internet Archive | string | 01234567012345670123456701234567 | **Y** |
    +| mtime | Time of last modification, managed by Rclone | RFC 3339 | 2006-01-02T15:04:05.999999999Z | **Y** |
    +| name | Full file path, without the bucket part | filename | backend/internetarchive/internetarchive.go | **Y** |
    +| old_version | Whether the file was replaced and moved by keep-old-version flag | boolean | true | **Y** |
    +| rclone-ia-mtime | Time of last modification, managed by Internet Archive | RFC 3339 | 2006-01-02T15:04:05.999999999Z | N |
    +| rclone-mtime | Time of last modification, managed by Rclone | RFC 3339 | 2006-01-02T15:04:05.999999999Z | N |
    +| rclone-update-track | Random value used by Rclone for tracking changes inside Internet Archive | string | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | N |
    +| sha1 | SHA1 hash calculated by Internet Archive | string | 0123456701234567012345670123456701234567 | **Y** |
    +| size | File size in bytes | decimal number | 123456 | **Y** |
    +| source | The source of the file | string | original | **Y** |
    +| summation | Check https://forum.rclone.org/t/31922 for how it is used | string | md5 | **Y** |
    +| viruscheck | The last time viruscheck process was run for the file (?) | unixtime | 1654191352 | **Y** |
    +
    +See the [metadata](https://rclone.org/docs/#metadata) docs for more info.
    +
    +
    +
    +#  Jottacloud
    +
    +Jottacloud is a cloud storage service provider from a Norwegian company, using its own datacenters
    +in Norway. In addition to the official service at [jottacloud.com](https://www.jottacloud.com/),
    +it also provides white-label solutions to different companies, such as:
    +* Telia
    +  * Telia Cloud (cloud.telia.se)
    +  * Telia Sky (sky.telia.no)
    +* Tele2
    +  * Tele2 Cloud (mittcloud.tele2.se)
    +* Onlime
    +  * Onlime Cloud Storage (onlime.dk)
    +* Elkjøp (with subsidiaries):
    +  * Elkjøp Cloud (cloud.elkjop.no)
    +  * Elgiganten Sweden (cloud.elgiganten.se)
    +  * Elgiganten Denmark (cloud.elgiganten.dk)
    +  * Giganti Cloud  (cloud.gigantti.fi)
    +  * ELKO Cloud (cloud.elko.is)
    +
    +Most of the white-label versions are supported by this backend, although may require different
    +authentication setup - described below.
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Authentication types
    +
    +Some of the whitelabel versions uses a different authentication method than the official service,
    +and you have to choose the correct one when setting up the remote.
    +
    +### Standard authentication
    +
    +The standard authentication method used by the official service (jottacloud.com), as well as
    +some of the whitelabel services, requires you to generate a single-use personal login token
    +from the account security settings in the service's web interface. Log in to your account,
    +go to "Settings" and then "Security", or use the direct link presented to you by rclone when
    +configuring the remote: <https://www.jottacloud.com/web/secure>. Scroll down to the section
    +"Personal login token", and click the "Generate" button. Note that if you are using a
    +whitelabel service you probably can't use the direct link, you need to find the same page in
    +their dedicated web interface, and also it may be in a different location than described above.
    +
    +To access your account from multiple instances of rclone, you need to configure each of them
    +with a separate personal login token. E.g. you create a Jottacloud remote with rclone in one
    +location, and copy the configuration file to a second location where you also want to run
    +rclone and access the same remote. Then you need to replace the token for one of them, using
    +the [config reconnect](https://rclone.org/commands/rclone_config_reconnect/) command, which
    +requires you to generate a new personal login token and supply as input. If you do not
    +do this, the token may easily end up being invalidated, resulting in both instances failing
    +with an error message something along the lines of:
    +
    +    oauth2: cannot fetch token: 400 Bad Request
    +    Response: {"error":"invalid_grant","error_description":"Stale token"}
    +
    +When this happens, you need to replace the token as described above to be able to use your
    +remote again.
    +
    +All personal login tokens you have taken into use will be listed in the web interface under
    +"My logged in devices", and from the right side of that list you can click the "X" button to
    +revoke individual tokens.
    +
    +### Legacy authentication
    +
    +If you are using one of the whitelabel versions (e.g. from Elkjøp) you may not have the option
    +to generate a CLI token. In this case you'll have to use the legacy authentication. To do this select
    +yes when the setup asks for legacy authentication and enter your username and password.
    +The rest of the setup is identical to the default setup.
    +
    +### Telia Cloud authentication
    +
    +Similar to other whitelabel versions Telia Cloud doesn't offer the option of creating a CLI token, and
    +additionally uses a separate authentication flow where the username is generated internally. To setup
    +rclone to use Telia Cloud, choose Telia Cloud authentication in the setup. The rest of the setup is
    +identical to the default setup.
    +
    +### Tele2 Cloud authentication
    +
    +As Tele2-Com Hem merger was completed this authentication can be used for former Com Hem Cloud and
    +Tele2 Cloud customers as no support for creating a CLI token exists, and additionally uses a separate
    +authentication flow where the username is generated internally. To setup rclone to use Tele2 Cloud,
    +choose Tele2 Cloud authentication in the setup. The rest of the setup is identical to the default setup.
    +
    +### Onlime Cloud Storage authentication
    +
    +Onlime has sold access to Jottacloud proper, while providing localized support to Danish Customers, but
    +have recently set up their own hosting, transferring their customers from Jottacloud servers to their
    +own ones.
    +
    +This, of course, necessitates using their servers for authentication, but otherwise functionality and
    +architecture seems equivalent to Jottacloud.
    +
    +To setup rclone to use Onlime Cloud Storage, choose Onlime Cloud authentication in the setup. The rest
    +of the setup is identical to the default setup.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote` with the default setup.  First run:
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. [snip] XX / Jottacloud  (jottacloud) [snip] Storage> jottacloud Edit advanced config? y) Yes n) No (default) y/n> n Option config_type. Select authentication type. Choose a number from below, or type in an existing string value. Press Enter for the default (standard). / Standard authentication. 1 | Use this if you're a normal Jottacloud user.  (standard) / Legacy authentication. 2 | This is only required for certain whitelabel versions of Jottacloud and not recommended for normal users.  (legacy) / Telia Cloud authentication. 3 | Use this if you are using Telia Cloud.  (telia) / Tele2 Cloud authentication. 4 | Use this if you are using Tele2 Cloud.  (tele2) / Onlime Cloud authentication. 5 | Use this if you are using Onlime Cloud.  (onlime) config_type> 1 Personal login token. Generate here: https://www.jottacloud.com/web/secure Login Token> Use a non-standard device/mountpoint? Choosing no, the default, will let you access the storage used for the archive section of the official Jottacloud client. If you instead want to access the sync or the backup section, for example, you must choose yes. y) Yes n) No (default) y/n> y Option config_device. The device to use. In standard setup the built-in Jotta device is used, which contains predefined mountpoints for archive, sync etc. All other devices are treated as backup devices by the official Jottacloud client. You may create a new by entering a unique name. Choose a number from below, or type in your own string value. Press Enter for the default (DESKTOP-3H31129). 1 > DESKTOP-3H31129 2 > Jotta config_device> 2 Option config_mountpoint. The mountpoint to use for the built-in device Jotta. The standard setup is to use the Archive mountpoint. Most other mountpoints have very limited support in rclone and should generally be avoided. Choose a number from below, or type in an existing string value. Press Enter for the default (Archive). 1 > Archive 2 > Shared 3 > Sync config_mountpoint> 1 -------------------- [remote] type = jottacloud configVersion = 1 client_id = jottacli client_secret = tokenURL = https://id.jottacloud.com/auth/realms/jottacloud/protocol/openid-connect/token token = {........} username = 2940e57271a93d987d6f8a21 device = Jotta mountpoint = Archive -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Jottacloud
    +
    +    rclone lsd remote:
    +
    +List all the files in your Jottacloud
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Jottacloud directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Devices and Mountpoints
    +
    +The official Jottacloud client registers a device for each computer you install
    +it on, and shows them in the backup section of the user interface. For each
    +folder you select for backup it will create a mountpoint within this device.
    +A built-in device called Jotta is special, and contains mountpoints Archive,
    +Sync and some others, used for corresponding features in official clients.
    +
    +With rclone you'll want to use the standard Jotta/Archive device/mountpoint in
    +most cases. However, you may for example want to access files from the sync or
    +backup functionality provided by the official clients, and rclone therefore
    +provides the option to select other devices and mountpoints during config.
    +
    +You are allowed to create new devices and mountpoints. All devices except the
    +built-in Jotta device are treated as backup devices by official Jottacloud
    +clients, and the mountpoints on them are individual backup sets.
    +
    +With the built-in Jotta device, only existing, built-in, mountpoints can be
    +selected. In addition to the mentioned Archive and Sync, it may contain
    +several other mountpoints such as: Latest, Links, Shared and Trash. All of
    +these are special mountpoints with a different internal representation than
    +the "regular" mountpoints. Rclone will only to a very limited degree support
    +them. Generally you should avoid these, unless you know what you are doing.
    +
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +Note that the implementation in Jottacloud always uses only a single
    +API request to get the entire list, so for large folders this could
    +lead to long wait time before the first results are shown.
    +
    +Note also that with rclone version 1.58 and newer information about
    +[MIME types](https://rclone.org/overview/#mime-type) are not available when using `--fast-list`.
    +
    +### Modified time and hashes
    +
    +Jottacloud allows modification times to be set on objects accurate to 1
    +second. These will be used to detect whether objects need syncing or
    +not.
    +
    +Jottacloud supports MD5 type hashes, so you can use the `--checksum`
    +flag.
    +
    +Note that Jottacloud requires the MD5 hash before upload so if the
    +source does not have an MD5 checksum then the file will be cached
    +temporarily on disk (in location given by
    +[--temp-dir](https://rclone.org/docs/#temp-dir-dir)) before it is uploaded.
    +Small files will be cached in memory - see the
    +[--jottacloud-md5-memory-limit](#jottacloud-md5-memory-limit) flag.
    +When uploading from local disk the source checksum is always available,
    +so this does not apply. Starting with rclone version 1.52 the same is
    +true for encrypted remotes (in older versions the crypt backend would not
    +calculate hashes for uploads from local disk, so the Jottacloud
    +backend had to do it as described above).
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| "         | 0x22  | "          |
    +| *         | 0x2A  | *          |
    +| :         | 0x3A  | :          |
    +| <         | 0x3C  | <          |
    +| >         | 0x3E  | >          |
    +| ?         | 0x3F  | ?          |
    +| \|        | 0x7C  | |          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in XML strings.
    +
    +### Deleting files
    +
    +By default, rclone will send all files to the trash when deleting files. They will be permanently
    +deleted automatically after 30 days. You may bypass the trash and permanently delete files immediately
    +by using the [--jottacloud-hard-delete](#jottacloud-hard-delete) flag, or set the equivalent environment variable.
    +Emptying the trash is supported by the [cleanup](https://rclone.org/commands/rclone_cleanup/) command.
    +
    +### Versions
    +
    +Jottacloud supports file versioning. When rclone uploads a new version of a file it creates a new version of it.
    +Currently rclone only supports retrieving the current version but older versions can be accessed via the Jottacloud Website.
    +
    +Versioning can be disabled by `--jottacloud-no-versions` option. This is achieved by deleting the remote file prior to uploading
    +a new version. If the upload the fails no version of the file will be available in the remote.
    +
    +### Quota information
    +
    +To view your current quota you can use the `rclone about remote:`
    +command which will display your usage limit (unless it is unlimited)
    +and the current usage.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to jottacloud (Jottacloud).
    +
    +#### --jottacloud-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_JOTTACLOUD_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --jottacloud-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_JOTTACLOUD_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to jottacloud (Jottacloud).
    +
    +#### --jottacloud-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_JOTTACLOUD_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --jottacloud-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_JOTTACLOUD_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --jottacloud-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_JOTTACLOUD_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --jottacloud-md5-memory-limit
    +
    +Files bigger than this will be cached on disk to calculate the MD5 if required.
    +
    +Properties:
    +
    +- Config:      md5_memory_limit
    +- Env Var:     RCLONE_JOTTACLOUD_MD5_MEMORY_LIMIT
    +- Type:        SizeSuffix
    +- Default:     10Mi
    +
    +#### --jottacloud-trashed-only
    +
    +Only show files that are in the trash.
    +
    +This will show trashed files in their original directory structure.
    +
    +Properties:
    +
    +- Config:      trashed_only
    +- Env Var:     RCLONE_JOTTACLOUD_TRASHED_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --jottacloud-hard-delete
    +
    +Delete files permanently rather than putting them into the trash.
    +
    +Properties:
    +
    +- Config:      hard_delete
    +- Env Var:     RCLONE_JOTTACLOUD_HARD_DELETE
    +- Type:        bool
    +- Default:     false
    +
    +#### --jottacloud-upload-resume-limit
    +
    +Files bigger than this can be resumed if the upload fail's.
    +
    +Properties:
    +
    +- Config:      upload_resume_limit
    +- Env Var:     RCLONE_JOTTACLOUD_UPLOAD_RESUME_LIMIT
    +- Type:        SizeSuffix
    +- Default:     10Mi
    +
    +#### --jottacloud-no-versions
    +
    +Avoid server side versioning by deleting files and recreating files instead of overwriting them.
    +
    +Properties:
    +
    +- Config:      no_versions
    +- Env Var:     RCLONE_JOTTACLOUD_NO_VERSIONS
    +- Type:        bool
    +- Default:     false
    +
    +#### --jottacloud-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_JOTTACLOUD_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +Note that Jottacloud is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +There are quite a few characters that can't be in Jottacloud file names. Rclone will map these names to and from an identical
    +looking unicode equivalent. For example if a file has a ? in it will be mapped to ? instead.
    +
    +Jottacloud only supports filenames up to 255 characters in length.
    +
    +## Troubleshooting
    +
    +Jottacloud exhibits some inconsistent behaviours regarding deleted files and folders which may cause Copy, Move and DirMove
    +operations to previously deleted paths to fail. Emptying the trash should help in such cases.
    +
    +#  Koofr
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for Koofr involves creating an application password for
    +rclone. You can do that by opening the Koofr
    +[web application](https://app.koofr.net/app/admin/preferences/password),
    +giving the password a nice name like `rclone` and clicking on generate.
    +
    +Here is an example of how to make a remote called `koofr`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> koofr Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible storage providers  (koofr) [snip] Storage> koofr Option provider. Choose your storage provider. Choose a number from below, or type in your own value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3 / Any other Koofr API compatible storage service  (other) provider> 1
    +Option user. Your user name. Enter a value. user> USERNAME Option password. Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password). Choose an alternative below. y) Yes, type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Edit advanced config? y) Yes n) No (default) y/n> n Remote config -------------------- [koofr] type = koofr provider = koofr user = USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +You can choose to edit advanced config in order to enter your own service URL
    +if you use an on-premise or white label Koofr instance, or choose an alternative
    +mount instead of your primary storage.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Koofr
    +
    +    rclone lsd koofr:
    +
    +List all the files in your Koofr
    +
    +    rclone ls koofr:
    +
    +To copy a local directory to an Koofr directory called backup
    +
    +    rclone copy /home/source koofr:backup
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in XML strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).
    +
    +#### --koofr-provider
    +
    +Choose your storage provider.
    +
    +Properties:
    +
    +- Config:      provider
    +- Env Var:     RCLONE_KOOFR_PROVIDER
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "koofr"
    +        - Koofr, https://app.koofr.net/
    +    - "digistorage"
    +        - Digi Storage, https://storage.rcs-rds.ro/
    +    - "other"
    +        - Any other Koofr API compatible storage service
    +
    +#### --koofr-endpoint
    +
    +The Koofr API endpoint to use.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_KOOFR_ENDPOINT
    +- Provider:    other
    +- Type:        string
    +- Required:    true
    +
    +#### --koofr-user
    +
    +Your user name.
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_KOOFR_USER
    +- Type:        string
    +- Required:    true
    +
    +#### --koofr-password
    +
    +Your password for rclone (generate one at https://app.koofr.net/app/admin/preferences/password).
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_KOOFR_PASSWORD
    +- Provider:    koofr
    +- Type:        string
    +- Required:    true
    +
    +#### --koofr-password
    +
    +Your password for rclone (generate one at https://storage.rcs-rds.ro/app/admin/preferences/password).
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_KOOFR_PASSWORD
    +- Provider:    digistorage
    +- Type:        string
    +- Required:    true
    +
    +#### --koofr-password
    +
    +Your password for rclone (generate one at your service's settings page).
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_KOOFR_PASSWORD
    +- Provider:    other
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).
    +
    +#### --koofr-mountid
    +
    +Mount ID of the mount to use.
    +
    +If omitted, the primary mount is used.
    +
    +Properties:
    +
    +- Config:      mountid
    +- Env Var:     RCLONE_KOOFR_MOUNTID
    +- Type:        string
    +- Required:    false
    +
    +#### --koofr-setmtime
    +
    +Does the backend support setting modification time.
    +
    +Set this to false if you use a mount ID that points to a Dropbox or Amazon Drive backend.
    +
    +Properties:
    +
    +- Config:      setmtime
    +- Env Var:     RCLONE_KOOFR_SETMTIME
    +- Type:        bool
    +- Default:     true
    +
    +#### --koofr-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_KOOFR_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +Note that Koofr is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +## Providers
    +
    +### Koofr
    +
    +This is the original [Koofr](https://koofr.eu) storage provider used as main example and described in the [configuration](#configuration) section above.
    +
    +### Digi Storage 
    +
    +[Digi Storage](https://www.digi.ro/servicii/online/digi-storage) is a cloud storage service run by [Digi.ro](https://www.digi.ro/) that
    +provides a Koofr API.
    +
    +Here is an example of how to make a remote called `ds`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> ds Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible storage providers  (koofr) [snip] Storage> koofr Option provider. Choose your storage provider. Choose a number from below, or type in your own value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3 / Any other Koofr API compatible storage service  (other) provider> 2 Option user. Your user name. Enter a value. user> USERNAME Option password. Your password for rclone (generate one at https://storage.rcs-rds.ro/app/admin/preferences/password). Choose an alternative below. y) Yes, type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Edit advanced config? y) Yes n) No (default) y/n> n -------------------- [ds] type = koofr provider = digistorage user = USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +### Other
    +
    +You may also want to use another, public or private storage provider that runs a Koofr API compatible service, by simply providing the base URL to connect to.
    +
    +Here is an example of how to make a remote called `other`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> other Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. [snip] 22 / Koofr, Digi Storage and other Koofr-compatible storage providers  (koofr) [snip] Storage> koofr Option provider. Choose your storage provider. Choose a number from below, or type in your own value. Press Enter to leave empty. 1 / Koofr, https://app.koofr.net/  (koofr) 2 / Digi Storage, https://storage.rcs-rds.ro/  (digistorage) 3 / Any other Koofr API compatible storage service  (other) provider> 3 Option endpoint. The Koofr API endpoint to use. Enter a value. endpoint> https://koofr.other.org Option user. Your user name. Enter a value. user> USERNAME Option password. Your password for rclone (generate one at your service's settings page). Choose an alternative below. y) Yes, type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Edit advanced config? y) Yes n) No (default) y/n> n -------------------- [other] type = koofr provider = other endpoint = https://koofr.other.org user = USERNAME password = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +#  Mail.ru Cloud
    +
    +[Mail.ru Cloud](https://cloud.mail.ru/) is a cloud storage provided by a Russian internet company [Mail.Ru Group](https://mail.ru). The official desktop client is [Disk-O:](https://disk-o.cloud/en), available on Windows and Mac OS.
    +
    +## Features highlights
    +
    +- Paths may be as deep as required, e.g. `remote:directory/subdirectory`
    +- Files have a `last modified time` property, directories don't
    +- Deleted files are by default moved to the trash
    +- Files and directories can be shared via public links
    +- Partial uploads or streaming are not supported, file size must be known before upload
    +- Maximum file size is limited to 2G for a free account, unlimited for paid accounts
    +- Storage keeps hash for all files and performs transparent deduplication,
    +  the hash algorithm is a modified SHA1
    +- If a particular file is already present in storage, one can quickly submit file hash
    +  instead of long file upload (this optimization is supported by rclone)
    +
    +## Configuration
    +
    +Here is an example of making a mailru configuration.
    +
    +First create a Mail.ru Cloud account and choose a tariff.
    +
    +You will need to log in and create an app password for rclone. Rclone
    +**will not work** with your normal username and password - it will
    +give an error like `oauth2: server response missing access_token`.
    +
    +- Click on your user icon in the top right
    +- Go to Security / "Пароль и безопасность"
    +- Click password for apps / "Пароли для внешних приложений"
    +- Add the password - give it a name - eg "rclone"
    +- Copy the password and use this password below - your normal login password won't work.
    +
    +Now run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Mail.ru Cloud  "mailru" [snip] Storage> mailru User name (usually email) Enter a string value. Press Enter for the default (""). user> username@mail.ru Password

    +

    This must be an app password - rclone will not work with your normal password. See the Configuration section in the docs for how to make an app password. y) Yes type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password: Skip full upload if there is another file with same data hash. This feature is called "speedup" or "put by hash". It is especially efficient in case of generally available files like popular books, video or audio clips [snip] Enter a boolean value (true or false). Press Enter for the default ("true"). Choose a number from below, or type in your own value 1 / Enable  "true" 2 / Disable  "false" speedup_enable> 1 Edit advanced config? (y/n) y) Yes n) No y/n> n Remote config -------------------- [remote] type = mailru user = username@mail.ru pass = *** ENCRYPTED *** speedup_enable = true -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +Configuration of this backend does not require a local web browser.
    +You can use the configured backend as shown below:
    +
    +See top level directories
    +
    +    rclone lsd remote:
    +
    +Make a new directory
    +
    +    rclone mkdir remote:directory
    +
    +List the contents of a directory
    +
    +    rclone ls remote:directory
    +
    +Sync `/home/local/directory` to the remote path, deleting any
    +excess files in the path.
    +
    +    rclone sync --interactive /home/local/directory remote:directory
    +
    +### Modified time
    +
    +Files support a modification time attribute with up to 1 second precision.
    +Directories do not have a modification time, which is shown as "Jan 1 1970".
    +
    +### Hash checksums
    +
    +Hash sums use a custom Mail.ru algorithm based on SHA1.
    +If file size is less than or equal to the SHA1 block size (20 bytes),
    +its hash is simply its data right-padded with zero bytes.
    +Hash sum of a larger file is computed as a SHA1 sum of the file data
    +bytes concatenated with a decimal representation of the data length.
    +
    +### Emptying Trash
    +
    +Removing a file or directory actually moves it to the trash, which is not
    +visible to rclone but can be seen in a web browser. The trashed file
    +still occupies part of total quota. If you wish to empty your trash
    +and free some quota, you can use the `rclone cleanup remote:` command,
    +which will permanently delete all your trashed files.
    +This command does not take any path arguments.
    +
    +### Quota information
    +
    +To view your current quota you can use the `rclone about remote:`
    +command which will display your usage limit (quota) and the current usage.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| "         | 0x22  | "          |
    +| *         | 0x2A  | *          |
    +| :         | 0x3A  | :          |
    +| <         | 0x3C  | <          |
    +| >         | 0x3E  | >          |
    +| ?         | 0x3F  | ?          |
    +| \         | 0x5C  | \          |
    +| \|        | 0x7C  | |          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to mailru (Mail.ru Cloud).
    +
    +#### --mailru-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_MAILRU_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_MAILRU_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-user
    +
    +User name (usually email).
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_MAILRU_USER
    +- Type:        string
    +- Required:    true
    +
    +#### --mailru-pass
    +
    +Password.
    +
    +This must be an app password - rclone will not work with your normal
    +password. See the Configuration section in the docs for how to make an
    +app password.
    +
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      pass
    +- Env Var:     RCLONE_MAILRU_PASS
    +- Type:        string
    +- Required:    true
    +
    +#### --mailru-speedup-enable
    +
    +Skip full upload if there is another file with same data hash.
    +
    +This feature is called "speedup" or "put by hash". It is especially efficient
    +in case of generally available files like popular books, video or audio clips,
    +because files are searched by hash in all accounts of all mailru users.
    +It is meaningless and ineffective if source file is unique or encrypted.
    +Please note that rclone may need local memory and disk space to calculate
    +content hash in advance and decide whether full upload is required.
    +Also, if rclone does not know file size in advance (e.g. in case of
    +streaming or partial uploads), it will not even try this optimization.
    +
    +Properties:
    +
    +- Config:      speedup_enable
    +- Env Var:     RCLONE_MAILRU_SPEEDUP_ENABLE
    +- Type:        bool
    +- Default:     true
    +- Examples:
    +    - "true"
    +        - Enable
    +    - "false"
    +        - Disable
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to mailru (Mail.ru Cloud).
    +
    +#### --mailru-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_MAILRU_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_MAILRU_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_MAILRU_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-speedup-file-patterns
    +
    +Comma separated list of file name patterns eligible for speedup (put by hash).
    +
    +Patterns are case insensitive and can contain '*' or '?' meta characters.
    +
    +Properties:
    +
    +- Config:      speedup_file_patterns
    +- Env Var:     RCLONE_MAILRU_SPEEDUP_FILE_PATTERNS
    +- Type:        string
    +- Default:     "*.mkv,*.avi,*.mp4,*.mp3,*.zip,*.gz,*.rar,*.pdf"
    +- Examples:
    +    - ""
    +        - Empty list completely disables speedup (put by hash).
    +    - "*"
    +        - All files will be attempted for speedup.
    +    - "*.mkv,*.avi,*.mp4,*.mp3"
    +        - Only common audio/video files will be tried for put by hash.
    +    - "*.zip,*.gz,*.rar,*.pdf"
    +        - Only common archives or PDF books will be tried for speedup.
    +
    +#### --mailru-speedup-max-disk
    +
    +This option allows you to disable speedup (put by hash) for large files.
    +
    +Reason is that preliminary hashing can exhaust your RAM or disk space.
    +
    +Properties:
    +
    +- Config:      speedup_max_disk
    +- Env Var:     RCLONE_MAILRU_SPEEDUP_MAX_DISK
    +- Type:        SizeSuffix
    +- Default:     3Gi
    +- Examples:
    +    - "0"
    +        - Completely disable speedup (put by hash).
    +    - "1G"
    +        - Files larger than 1Gb will be uploaded directly.
    +    - "3G"
    +        - Choose this option if you have less than 3Gb free on local disk.
    +
    +#### --mailru-speedup-max-memory
    +
    +Files larger than the size given below will always be hashed on disk.
    +
    +Properties:
    +
    +- Config:      speedup_max_memory
    +- Env Var:     RCLONE_MAILRU_SPEEDUP_MAX_MEMORY
    +- Type:        SizeSuffix
    +- Default:     32Mi
    +- Examples:
    +    - "0"
    +        - Preliminary hashing will always be done in a temporary disk location.
    +    - "32M"
    +        - Do not dedicate more than 32Mb RAM for preliminary hashing.
    +    - "256M"
    +        - You have at most 256Mb RAM free for hash calculations.
    +
    +#### --mailru-check-hash
    +
    +What should copy do if file checksum is mismatched or invalid.
    +
    +Properties:
    +
    +- Config:      check_hash
    +- Env Var:     RCLONE_MAILRU_CHECK_HASH
    +- Type:        bool
    +- Default:     true
    +- Examples:
    +    - "true"
    +        - Fail with error.
    +    - "false"
    +        - Ignore and continue.
    +
    +#### --mailru-user-agent
    +
    +HTTP user agent used internally by client.
    +
    +Defaults to "rclone/VERSION" or "--user-agent" provided on command line.
    +
    +Properties:
    +
    +- Config:      user_agent
    +- Env Var:     RCLONE_MAILRU_USER_AGENT
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-quirks
    +
    +Comma separated list of internal maintenance flags.
    +
    +This option must not be used by an ordinary user. It is intended only to
    +facilitate remote troubleshooting of backend issues. Strict meaning of
    +flags is not documented and not guaranteed to persist between releases.
    +Quirks will be removed when the backend grows stable.
    +Supported quirks: atomicmkdir binlist unknowndirs
    +
    +Properties:
    +
    +- Config:      quirks
    +- Env Var:     RCLONE_MAILRU_QUIRKS
    +- Type:        string
    +- Required:    false
    +
    +#### --mailru-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_MAILRU_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +File size limits depend on your account. A single file size is limited by 2G
    +for a free account and unlimited for paid tariffs. Please refer to the Mail.ru
    +site for the total uploaded size limits.
    +
    +Note that Mailru is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +#  Mega
    +
    +[Mega](https://mega.nz/) is a cloud storage and file hosting service
    +known for its security feature where all files are encrypted locally
    +before they are uploaded. This prevents anyone (including employees of
    +Mega) from accessing the files without knowledge of the key used for
    +encryption.
    +
    +This is an rclone backend for Mega which supports the file transfer
    +features of Mega using the same client side encryption.
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Mega  "mega" [snip] Storage> mega User name user> you@example.com Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y Enter the password: password: Confirm the password: password: Remote config -------------------- [remote] type = mega user = you@example.com pass = *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +**NOTE:** The encryption keys need to have been already generated after a regular login
    +via the browser, otherwise attempting to use the credentials in `rclone` will fail.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Mega
    +
    +    rclone lsd remote:
    +
    +List all the files in your Mega
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Mega directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time and hashes
    +
    +Mega does not support modification times or hashes yet.
    +
    +### Restricted filename characters
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| NUL       | 0x00  | ␀           |
    +| /         | 0x2F  | /          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Duplicated files
    +
    +Mega can have two files with exactly the same name and path (unlike a
    +normal file system).
    +
    +Duplicated files cause problems with the syncing and you will see
    +messages in the log about duplicates.
    +
    +Use `rclone dedupe` to fix duplicated files.
    +
    +### Failure to log-in
    +
    +#### Object not found
    +
    +If you are connecting to your Mega remote for the first time, 
    +to test access and synchronization, you may receive an error such as 
    +
    +

    Failed to create file system for "my-mega-remote:": couldn't login: Object (typically, node or user) not found

    +
    
    +The diagnostic steps often recommended in the [rclone forum](https://forum.rclone.org/search?q=mega)
    +start with the **MEGAcmd** utility. Note that this refers to 
    +the official C++ command from https://github.com/meganz/MEGAcmd 
    +and not the go language built command from t3rm1n4l/megacmd 
    +that is no longer maintained. 
    +
    +Follow the instructions for installing MEGAcmd and try accessing 
    +your remote as they recommend. You can establish whether or not 
    +you can log in using MEGAcmd, and obtain diagnostic information 
    +to help you, and search or work with others in the forum. 
    +
    +

    MEGA CMD> login me@example.com Password: Fetching nodes ... Loading transfers from local cache Login complete as me@example.com me@example.com:/$

    +
    
    +Note that some have found issues with passwords containing special 
    +characters. If you can not log on with rclone, but MEGAcmd logs on 
    +just fine, then consider changing your password temporarily to 
    +pure alphanumeric characters, in case that helps.
    +
    +
    +#### Repeated commands blocks access
    +
    +Mega remotes seem to get blocked (reject logins) under "heavy use".
    +We haven't worked out the exact blocking rules but it seems to be
    +related to fast paced, successive rclone commands.
    +
    +For example, executing this command 90 times in a row `rclone link
    +remote:file` will cause the remote to become "blocked". This is not an
    +abnormal situation, for example if you wish to get the public links of
    +a directory with hundred of files...  After more or less a week, the
    +remote will remote accept rclone logins normally again.
    +
    +You can mitigate this issue by mounting the remote it with `rclone
    +mount`. This will log-in when mounting and a log-out when unmounting
    +only. You can also run `rclone rcd` and then use `rclone rc` to run
    +the commands over the API to avoid logging in each time.
    +
    +Rclone does not currently close mega sessions (you can see them in the
    +web interface), however closing the sessions does not solve the issue.
    +
    +If you space rclone commands by 3 seconds it will avoid blocking the
    +remote. We haven't identified the exact blocking rules, so perhaps one
    +could execute the command 80 times without waiting and avoid blocking
    +by waiting 3 seconds, then continuing...
    +
    +Note that this has been observed by trial and error and might not be
    +set in stone.
    +
    +Other tools seem not to produce this blocking effect, as they use a
    +different working approach (state-based, using sessionIDs instead of
    +log-in) which isn't compatible with the current stateless rclone
    +approach.
    +
    +Note that once blocked, the use of other tools (such as megacmd) is
    +not a sure workaround: following megacmd login times have been
    +observed in succession for blocked remote: 7 minutes, 20 min, 30min, 30
    +min, 30min. Web access looks unaffected though.
    +
    +Investigation is continuing in relation to workarounds based on
    +timeouts, pacers, retrials and tpslimits - if you discover something
    +relevant, please post on the forum.
    +
    +So, if rclone was working nicely and suddenly you are unable to log-in
    +and you are sure the user and the password are correct, likely you
    +have got the remote blocked for a while.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to mega (Mega).
    +
    +#### --mega-user
    +
    +User name.
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_MEGA_USER
    +- Type:        string
    +- Required:    true
    +
    +#### --mega-pass
    +
    +Password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      pass
    +- Env Var:     RCLONE_MEGA_PASS
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to mega (Mega).
    +
    +#### --mega-debug
    +
    +Output more debug from Mega.
    +
    +If this flag is set (along with -vv) it will print further debugging
    +information from the mega backend.
    +
    +Properties:
    +
    +- Config:      debug
    +- Env Var:     RCLONE_MEGA_DEBUG
    +- Type:        bool
    +- Default:     false
    +
    +#### --mega-hard-delete
    +
    +Delete files permanently rather than putting them into the trash.
    +
    +Normally the mega backend will put all deletions into the trash rather
    +than permanently deleting them.  If you specify this then rclone will
    +permanently delete objects instead.
    +
    +Properties:
    +
    +- Config:      hard_delete
    +- Env Var:     RCLONE_MEGA_HARD_DELETE
    +- Type:        bool
    +- Default:     false
    +
    +#### --mega-use-https
    +
    +Use HTTPS for transfers.
    +
    +MEGA uses plain text HTTP connections by default.
    +Some ISPs throttle HTTP connections, this causes transfers to become very slow.
    +Enabling this will force MEGA to use HTTPS for all transfers.
    +HTTPS is normally not necessary since all data is already encrypted anyway.
    +Enabling it will increase CPU usage and add network overhead.
    +
    +Properties:
    +
    +- Config:      use_https
    +- Env Var:     RCLONE_MEGA_USE_HTTPS
    +- Type:        bool
    +- Default:     false
    +
    +#### --mega-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_MEGA_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,InvalidUtf8,Dot
    +
    +
    +
    +### Process `killed`
    +
    +On accounts with large files or something else, memory usage can significantly increase when executing list/sync instructions. When running on cloud providers (like AWS with EC2), check if the instance type has sufficient memory/CPU to execute the commands. Use the resource monitoring tools to inspect after sending the commands. Look [at this issue](https://forum.rclone.org/t/rclone-with-mega-appears-to-work-only-in-some-accounts/40233/4).
    +
    +## Limitations
    +
    +This backend uses the [go-mega go library](https://github.com/t3rm1n4l/go-mega) which is an opensource
    +go library implementing the Mega API. There doesn't appear to be any
    +documentation for the mega protocol beyond the [mega C++ SDK](https://github.com/meganz/sdk) source code
    +so there are likely quite a few errors still remaining in this library.
    +
    +Mega allows duplicate files which may confuse rclone.
    +
    +#  Memory
    +
    +The memory backend is an in RAM backend. It does not persist its
    +data - use the local backend for that.
    +
    +The memory backend behaves like a bucket-based remote (e.g. like
    +s3). Because it has no parameters you can just use it with the
    +`:memory:` remote name.
    +
    +## Configuration
    +
    +You can configure it as a remote like this with `rclone config` too if
    +you want to:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Memory  "memory" [snip] Storage> memory ** See help for memory backend at: https://rclone.org/memory/ **

    +

    Remote config

    + + + + + + + + + +
    [remote]
    type = memory
    +
      +
    1. Yes this is OK (default)
    2. +
    3. Edit this remote
    4. +
    5. Delete this remote y/e/d> y
    6. +
    +
    
    +Because the memory backend isn't persistent it is most useful for
    +testing or with an rclone server or rclone mount, e.g.
    +
    +    rclone mount :memory: /mnt/tmp
    +    rclone serve webdav :memory:
    +    rclone serve sftp :memory:
    +
    +### Modified time and hashes
    +
    +The memory backend supports MD5 hashes and modification times accurate to 1 nS.
    +
    +### Restricted filename characters
    +
    +The memory backend replaces the [default restricted characters
    +set](https://rclone.org/overview/#restricted-characters).
    +
    +
    +
    +
    +#  Akamai NetStorage
    +
    +Paths are specified as `remote:`
    +You may put subdirectories in too, e.g. `remote:/path/to/dir`.
    +If you have a CP code you can use that as the folder after the domain such as \<domain>\/\<cpcode>\/\<internal directories within cpcode>.
    +
    +For example, this is commonly configured with or without a CP code:
    +* **With a CP code**. `[your-domain-prefix]-nsu.akamaihd.net/123456/subdirectory/`
    +* **Without a CP code**. `[your-domain-prefix]-nsu.akamaihd.net`
    +
    +
    +See all buckets
    +   rclone lsd remote:
    +The initial setup for Netstorage involves getting an account and secret. Use `rclone config` to walk you through the setup process.
    +
    +## Configuration
    +
    +Here's an example of how to make a remote called `ns1`.
    +
    +1. To begin the interactive configuration process, enter this command:
    +
    +

    rclone config

    +
    
    +2. Type `n` to create a new remote.
    +
    +
      +
    1. New remote
    2. +
    3. Delete remote
    4. +
    5. Quit config e/n/d/q> n
    6. +
    +
    
    +3. For this example, enter `ns1` when you reach the name> prompt.
    +
    +

    name> ns1

    +
    
    +4. Enter `netstorage` as the type of storage to configure.
    +
    +

    Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value XX / NetStorage  "netstorage" Storage> netstorage

    +
    
    +5. Select between the HTTP or HTTPS protocol. Most users should choose HTTPS, which is the default. HTTP is provided primarily for debugging purposes.
    +
    +
    +

    Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / HTTP protocol  "http" 2 / HTTPS protocol  "https" protocol> 1

    +
    
    +6. Specify your NetStorage host, CP code, and any necessary content paths using this format: `<domain>/<cpcode>/<content>/`
    +
    +

    Enter a string value. Press Enter for the default (""). host> baseball-nsu.akamaihd.net/123456/content/

    +
    
    +7. Set the netstorage account name
    +

    Enter a string value. Press Enter for the default (""). account> username

    +
    
    +8. Set the Netstorage account secret/G2O key which will be used for authentication purposes. Select the `y` option to set your own password then enter your secret.
    +Note: The secret is stored in the `rclone.conf` file with hex-encoded encryption.
    +
    +
      +
    1. Yes type in my own password
    2. +
    3. Generate random password y/g> y Enter the password: password: Confirm the password: password:
    4. +
    +
    
    +9. View the summary and confirm your remote configuration.
    +
    +

    [ns1] type = netstorage protocol = http host = baseball-nsu.akamaihd.net/123456/content/ account = username secret = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `ns1` and can now be used.
    +
    +## Example operations
    +
    +Get started with rclone and NetStorage with these examples. For additional rclone commands, visit https://rclone.org/commands/.
    +
    +### See contents of a directory in your project
    +
    +    rclone lsd ns1:/974012/testing/
    +
    +### Sync the contents local with remote
    +
    +    rclone sync . ns1:/974012/testing/
    +
    +### Upload local content to remote
    +    rclone copy notes.txt ns1:/974012/testing/
    +
    +### Delete content on remote
    +    rclone delete ns1:/974012/testing/notes.txt
    +
    +### Move or copy content between CP codes.
    +
    +Your credentials must have access to two CP codes on the same remote. You can't perform operations between different remotes.
    +
    +    rclone move ns1:/974012/testing/notes.txt ns1:/974450/testing2/
    +
    +## Features
    +
    +### Symlink Support
    +
    +The Netstorage backend changes the rclone `--links, -l` behavior. When uploading, instead of creating the .rclonelink file, use the "symlink" API in order to create the corresponding symlink on the remote. The .rclonelink file will not be created, the upload will be intercepted and only the symlink file that matches the source file name with no suffix will be created on the remote.
    +
    +This will effectively allow commands like copy/copyto, move/moveto and sync to upload from local to remote and download from remote to local directories with symlinks. Due to internal rclone limitations, it is not possible to upload an individual symlink file to any remote backend. You can always use the "backend symlink" command to create a symlink on the NetStorage server, refer to "symlink" section below.
    +
    +Individual symlink files on the remote can be used with the commands like "cat" to print the destination name, or "delete" to delete symlink, or copy, copy/to and move/moveto to download from the remote to local. Note: individual symlink files on the remote should be specified including the suffix .rclonelink.
    +
    +**Note**: No file with the suffix .rclonelink should ever exist on the server since it is not possible to actually upload/create a file with .rclonelink suffix with rclone, it can only exist if it is manually created through a non-rclone method on the remote.
    +
    +### Implicit vs. Explicit Directories
    +
    +With NetStorage, directories can exist in one of two forms:
    +
    +1. **Explicit Directory**. This is an actual, physical directory that you have created in a storage group.
    +2. **Implicit Directory**. This refers to a directory within a path that has not been physically created. For example, during upload of a file, nonexistent subdirectories can be specified in the target path. NetStorage creates these as "implicit." While the directories aren't physically created, they exist implicitly and the noted path is connected with the uploaded file.
    +
    +Rclone will intercept all file uploads and mkdir commands for the NetStorage remote and will explicitly issue the mkdir command for each directory in the uploading path. This will help with the interoperability with the other Akamai services such as SFTP and the Content Management Shell (CMShell). Rclone will not guarantee correctness of operations with implicit directories which might have been created as a result of using an upload API directly.
    +
    +### `--fast-list` / ListR support
    +
    +NetStorage remote supports the ListR feature by using the "list" NetStorage API action to return a lexicographical list of all objects within the specified CP code, recursing into subdirectories as they're encountered.
    +
    +* **Rclone will use the ListR method for some commands by default**. Commands such as `lsf -R` will use ListR by default. To disable this, include the `--disable listR` option to use the non-recursive method of listing objects.
    +
    +* **Rclone will not use the ListR method for some commands**. Commands such as `sync` don't use ListR by default. To force using the ListR method, include the  `--fast-list` option.
    +
    +There are pros and cons of using the ListR method, refer to [rclone documentation](https://rclone.org/docs/#fast-list). In general, the sync command over an existing deep tree on the remote will run faster with the "--fast-list" flag but with extra memory usage as a side effect. It might also result in higher CPU utilization but the whole task can be completed faster.
    +
    +**Note**: There is a known limitation that "lsf -R" will display number of files in the directory and directory size as -1 when ListR method is used. The workaround is to pass "--disable listR" flag if these numbers are important in the output.
    +
    +### Purge
    +
    +NetStorage remote supports the purge feature by using the "quick-delete" NetStorage API action. The quick-delete action is disabled by default for security reasons and can be enabled for the account through the Akamai portal. Rclone will first try to use quick-delete action for the purge command and if this functionality is disabled then will fall back to a standard delete method.
    +
    +**Note**: Read the [NetStorage Usage API](https://learn.akamai.com/en-us/webhelp/netstorage/netstorage-http-api-developer-guide/GUID-15836617-9F50-405A-833C-EA2556756A30.html) for considerations when using "quick-delete". In general, using quick-delete method will not delete the tree immediately and objects targeted for quick-delete may still be accessible.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to netstorage (Akamai NetStorage).
    +
    +#### --netstorage-host
    +
    +Domain+path of NetStorage host to connect to.
    +
    +Format should be `<domain>/<internal folders>`
    +
    +Properties:
    +
    +- Config:      host
    +- Env Var:     RCLONE_NETSTORAGE_HOST
    +- Type:        string
    +- Required:    true
    +
    +#### --netstorage-account
    +
    +Set the NetStorage account name
    +
    +Properties:
    +
    +- Config:      account
    +- Env Var:     RCLONE_NETSTORAGE_ACCOUNT
    +- Type:        string
    +- Required:    true
    +
    +#### --netstorage-secret
    +
    +Set the NetStorage account secret/G2O key for authentication.
    +
    +Please choose the 'y' option to set your own password then enter your secret.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      secret
    +- Env Var:     RCLONE_NETSTORAGE_SECRET
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to netstorage (Akamai NetStorage).
    +
    +#### --netstorage-protocol
    +
    +Select between HTTP or HTTPS protocol.
    +
    +Most users should choose HTTPS, which is the default.
    +HTTP is provided primarily for debugging purposes.
    +
    +Properties:
    +
    +- Config:      protocol
    +- Env Var:     RCLONE_NETSTORAGE_PROTOCOL
    +- Type:        string
    +- Default:     "https"
    +- Examples:
    +    - "http"
    +        - HTTP protocol
    +    - "https"
    +        - HTTPS protocol
    +
    +## Backend commands
    +
    +Here are the commands specific to the netstorage backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### du
    +
    +Return disk usage information for a specified directory
    +
    +    rclone backend du remote: [options] [<arguments>+]
    +
    +The usage information returned, includes the targeted directory as well as all
    +files stored in any sub-directories that may exist.
    +
    +### symlink
    +
    +You can create a symbolic link in ObjectStore with the symlink action.
    +
    +    rclone backend symlink remote: [options] [<arguments>+]
    +
    +The desired path location (including applicable sub-directories) ending in
    +the object that will be the target of the symlink (for example, /links/mylink).
    +Include the file extension for the object, if applicable.
    +`rclone backend symlink <src> <path>`
    +
    +
    +
    +#  Microsoft Azure Blob Storage
    +
    +Paths are specified as `remote:container` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g.
    +`remote:container/path/to/dir`.
    +
    +## Configuration
    +
    +Here is an example of making a Microsoft Azure Blob Storage
    +configuration.  For a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Microsoft Azure Blob Storage  "azureblob" [snip] Storage> azureblob Storage Account Name account> account_name Storage Account Key key> base64encodedkey== Endpoint for the service - leave blank normally. endpoint> Remote config -------------------- [remote] account = account_name key = base64encodedkey== endpoint = -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See all containers
    +
    +    rclone lsd remote:
    +
    +Make a new container
    +
    +    rclone mkdir remote:container
    +
    +List the contents of a container
    +
    +    rclone ls remote:container
    +
    +Sync `/home/local/directory` to the remote container, deleting any excess
    +files in the container.
    +
    +    rclone sync --interactive /home/local/directory remote:container
    +
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +### Modified time
    +
    +The modified time is stored as metadata on the object with the `mtime`
    +key.  It is stored using RFC3339 Format time with nanosecond
    +precision.  The metadata is supplied during directory listings so
    +there is no performance overhead to using it.
    +
    +If you wish to use the Azure standard `LastModified` time stored on
    +the object as the modified time, then use the `--use-server-modtime`
    +flag. Note that rclone can't set `LastModified`, so using the
    +`--update` flag when syncing is recommended if using
    +`--use-server-modtime`.
    +
    +### Performance
    +
    +When uploading large files, increasing the value of
    +`--azureblob-upload-concurrency` will increase performance at the cost
    +of using more memory. The default of 16 is set quite conservatively to
    +use less memory. It maybe be necessary raise it to 64 or higher to
    +fully utilize a 1 GBit/s link with a single file transfer.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| /         | 0x2F  | /           |
    +| \         | 0x5C  | \           |
    +
    +File names can also not end with the following characters.
    +These only get replaced if they are the last character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| .         | 0x2E  | .          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Hashes
    +
    +MD5 hashes are stored with blobs.  However blobs that were uploaded in
    +chunks only have an MD5 if the source remote was capable of MD5
    +hashes, e.g. the local disk.
    +
    +### Authentication {#authentication}
    +
    +There are a number of ways of supplying credentials for Azure Blob
    +Storage. Rclone tries them in the order of the sections below.
    +
    +#### Env Auth
    +
    +If the `env_auth` config parameter is `true` then rclone will pull
    +credentials from the environment or runtime.
    +
    +It tries these authentication methods in this order:
    +
    +1. Environment Variables
    +2. Managed Service Identity Credentials
    +3. Azure CLI credentials (as used by the az tool)
    +
    +These are described in the following sections
    +
    +##### Env Auth: 1. Environment Variables
    +
    +If `env_auth` is set and environment variables are present rclone
    +authenticates a service principal with a secret or certificate, or a
    +user with a password, depending on which environment variable are set.
    +It reads configuration from these variables, in the following order:
    +
    +1. Service principal with client secret
    +    - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
    +    - `AZURE_CLIENT_ID`: the service principal's client ID
    +    - `AZURE_CLIENT_SECRET`: one of the service principal's client secrets
    +2. Service principal with certificate
    +    - `AZURE_TENANT_ID`: ID of the service principal's tenant. Also called its "directory" ID.
    +    - `AZURE_CLIENT_ID`: the service principal's client ID
    +    - `AZURE_CLIENT_CERTIFICATE_PATH`: path to a PEM or PKCS12 certificate file including the private key.
    +    - `AZURE_CLIENT_CERTIFICATE_PASSWORD`: (optional) password for the certificate file.
    +    - `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
    +3. User with username and password
    +    - `AZURE_TENANT_ID`: (optional) tenant to authenticate in. Defaults to "organizations".
    +    - `AZURE_CLIENT_ID`: client ID of the application the user will authenticate to
    +    - `AZURE_USERNAME`: a username (usually an email address)
    +    - `AZURE_PASSWORD`: the user's password
    +4. Workload Identity
    +    - `AZURE_TENANT_ID`: Tenant to authenticate in.
    +    - `AZURE_CLIENT_ID`: Client ID of the application the user will authenticate to.
    +    - `AZURE_FEDERATED_TOKEN_FILE`: Path to projected service account token file.
    +    - `AZURE_AUTHORITY_HOST`: Authority of an Azure Active Directory endpoint (default: login.microsoftonline.com).
    +
    +
    +##### Env Auth: 2. Managed Service Identity Credentials
    +
    +When using Managed Service Identity if the VM(SS) on which this
    +program is running has a system-assigned identity, it will be used by
    +default. If the resource has no system-assigned but exactly one
    +user-assigned identity, the user-assigned identity will be used by
    +default.
    +
    +If the resource has multiple user-assigned identities you will need to
    +unset `env_auth` and set `use_msi` instead. See the [`use_msi`
    +section](#use_msi).
    +
    +##### Env Auth: 3. Azure CLI credentials (as used by the az tool)
    +
    +Credentials created with the `az` tool can be picked up using `env_auth`.
    +
    +For example if you were to login with a service principal like this:
    +
    +    az login --service-principal -u XXX -p XXX --tenant XXX
    +
    +Then you could access rclone resources like this:
    +
    +    rclone lsf :azureblob,env_auth,account=ACCOUNT:CONTAINER
    +
    +Or
    +
    +    rclone lsf --azureblob-env-auth --azureblob-account=ACCOUNT :azureblob:CONTAINER
    +
    +Which is analogous to using the `az` tool:
    +
    +    az storage blob list --container-name CONTAINER --account-name ACCOUNT --auth-mode login
    +
    +#### Account and Shared Key
    +
    +This is the most straight forward and least flexible way.  Just fill
    +in the `account` and `key` lines and leave the rest blank.
    +
    +#### SAS URL
    +
    +This can be an account level SAS URL or container level SAS URL.
    +
    +To use it leave `account` and `key` blank and fill in `sas_url`.
    +
    +An account level SAS URL or container level SAS URL can be obtained
    +from the Azure portal or the Azure Storage Explorer.  To get a
    +container level SAS URL right click on a container in the Azure Blob
    +explorer in the Azure portal.
    +
    +If you use a container level SAS URL, rclone operations are permitted
    +only on a particular container, e.g.
    +
    +    rclone ls azureblob:container
    +
    +You can also list the single container from the root. This will only
    +show the container specified by the SAS URL.
    +
    +    $ rclone lsd azureblob:
    +    container/
    +
    +Note that you can't see or access any other containers - this will
    +fail
    +
    +    rclone ls azureblob:othercontainer
    +
    +Container level SAS URLs are useful for temporarily allowing third
    +parties access to a single container or putting credentials into an
    +untrusted environment such as a CI build server.
    +
    +#### Service principal with client secret
    +
    +If these variables are set, rclone will authenticate with a service principal with a client secret.
    +
    +- `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
    +- `client_id`: the service principal's client ID
    +- `client_secret`: one of the service principal's client secrets
    +
    +The credentials can also be placed in a file using the
    +`service_principal_file` configuration option.
    +
    +#### Service principal with certificate
    +
    +If these variables are set, rclone will authenticate with a service principal with certificate.
    +
    +- `tenant`: ID of the service principal's tenant. Also called its "directory" ID.
    +- `client_id`: the service principal's client ID
    +- `client_certificate_path`: path to a PEM or PKCS12 certificate file including the private key.
    +- `client_certificate_password`: (optional) password for the certificate file.
    +- `client_send_certificate_chain`: (optional) Specifies whether an authentication request will include an x5c header to support subject name / issuer based authentication. When set to "true" or "1", authentication requests include the x5c header.
    +
    +**NB** `client_certificate_password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +#### User with username and password
    +
    +If these variables are set, rclone will authenticate with username and password.
    +
    +- `tenant`: (optional) tenant to authenticate in. Defaults to "organizations".
    +- `client_id`: client ID of the application the user will authenticate to
    +- `username`: a username (usually an email address)
    +- `password`: the user's password
    +
    +Microsoft doesn't recommend this kind of authentication, because it's
    +less secure than other authentication flows. This method is not
    +interactive, so it isn't compatible with any form of multi-factor
    +authentication, and the application must already have user or admin
    +consent. This credential can only authenticate work and school
    +accounts; it can't authenticate Microsoft accounts.
    +
    +**NB** `password` must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +#### Managed Service Identity Credentials {#use_msi}
    +
    +If `use_msi` is set then managed service identity credentials are
    +used. This authentication only works when running in an Azure service.
    +`env_auth` needs to be unset to use this.
    +
    +However if you have multiple user identities to choose from these must
    +be explicitly specified using exactly one of the `msi_object_id`,
    +`msi_client_id`, or `msi_mi_res_id` parameters.
    +
    +If none of `msi_object_id`, `msi_client_id`, or `msi_mi_res_id` is
    +set, this is is equivalent to using `env_auth`.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to azureblob (Microsoft Azure Blob Storage).
    +
    +#### --azureblob-account
    +
    +Azure Storage Account Name.
    +
    +Set this to the Azure Storage Account Name in use.
    +
    +Leave blank to use SAS URL or Emulator, otherwise it needs to be set.
    +
    +If this is blank and if env_auth is set it will be read from the
    +environment variable `AZURE_STORAGE_ACCOUNT_NAME` if possible.
    +
    +
    +Properties:
    +
    +- Config:      account
    +- Env Var:     RCLONE_AZUREBLOB_ACCOUNT
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-env-auth
    +
    +Read credentials from runtime (environment variables, CLI or MSI).
    +
    +See the [authentication docs](/azureblob#authentication) for full info.
    +
    +Properties:
    +
    +- Config:      env_auth
    +- Env Var:     RCLONE_AZUREBLOB_ENV_AUTH
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-key
    +
    +Storage Account Shared Key.
    +
    +Leave blank to use SAS URL or Emulator.
    +
    +Properties:
    +
    +- Config:      key
    +- Env Var:     RCLONE_AZUREBLOB_KEY
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-sas-url
    +
    +SAS URL for container level access only.
    +
    +Leave blank if using account/key or Emulator.
    +
    +Properties:
    +
    +- Config:      sas_url
    +- Env Var:     RCLONE_AZUREBLOB_SAS_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-tenant
    +
    +ID of the service principal's tenant. Also called its directory ID.
    +
    +Set this if using
    +- Service principal with client secret
    +- Service principal with certificate
    +- User with username and password
    +
    +
    +Properties:
    +
    +- Config:      tenant
    +- Env Var:     RCLONE_AZUREBLOB_TENANT
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-client-id
    +
    +The ID of the client in use.
    +
    +Set this if using
    +- Service principal with client secret
    +- Service principal with certificate
    +- User with username and password
    +
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_AZUREBLOB_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-client-secret
    +
    +One of the service principal's client secrets
    +
    +Set this if using
    +- Service principal with client secret
    +
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_AZUREBLOB_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-client-certificate-path
    +
    +Path to a PEM or PKCS12 certificate file including the private key.
    +
    +Set this if using
    +- Service principal with certificate
    +
    +
    +Properties:
    +
    +- Config:      client_certificate_path
    +- Env Var:     RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PATH
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-client-certificate-password
    +
    +Password for the certificate file (optional).
    +
    +Optionally set this if using
    +- Service principal with certificate
    +
    +And the certificate has a password.
    +
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      client_certificate_password
    +- Env Var:     RCLONE_AZUREBLOB_CLIENT_CERTIFICATE_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to azureblob (Microsoft Azure Blob Storage).
    +
    +#### --azureblob-client-send-certificate-chain
    +
    +Send the certificate chain when using certificate auth.
    +
    +Specifies whether an authentication request will include an x5c header
    +to support subject name / issuer based authentication. When set to
    +true, authentication requests include the x5c header.
    +
    +Optionally set this if using
    +- Service principal with certificate
    +
    +
    +Properties:
    +
    +- Config:      client_send_certificate_chain
    +- Env Var:     RCLONE_AZUREBLOB_CLIENT_SEND_CERTIFICATE_CHAIN
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-username
    +
    +User name (usually an email address)
    +
    +Set this if using
    +- User with username and password
    +
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_AZUREBLOB_USERNAME
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-password
    +
    +The user's password
    +
    +Set this if using
    +- User with username and password
    +
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_AZUREBLOB_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-service-principal-file
    +
    +Path to file containing credentials for use with a service principal.
    +
    +Leave blank normally. Needed only if you want to use a service principal instead of interactive login.
    +
    +    $ az ad sp create-for-rbac --name "<name>" \
    +      --role "Storage Blob Data Owner" \
    +      --scopes "/subscriptions/<subscription>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>/blobServices/default/containers/<container>" \
    +      > azure-principal.json
    +
    +See ["Create an Azure service principal"](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) and ["Assign an Azure role for access to blob data"](https://docs.microsoft.com/en-us/azure/storage/common/storage-auth-aad-rbac-cli) pages for more details.
    +
    +It may be more convenient to put the credentials directly into the
    +rclone config file under the `client_id`, `tenant` and `client_secret`
    +keys instead of setting `service_principal_file`.
    +
    +
    +Properties:
    +
    +- Config:      service_principal_file
    +- Env Var:     RCLONE_AZUREBLOB_SERVICE_PRINCIPAL_FILE
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-use-msi
    +
    +Use a managed service identity to authenticate (only works in Azure).
    +
    +When true, use a [managed service identity](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/)
    +to authenticate to Azure Storage instead of a SAS token or account key.
    +
    +If the VM(SS) on which this program is running has a system-assigned identity, it will
    +be used by default. If the resource has no system-assigned but exactly one user-assigned identity,
    +the user-assigned identity will be used by default. If the resource has multiple user-assigned
    +identities, the identity to use must be explicitly specified using exactly one of the msi_object_id,
    +msi_client_id, or msi_mi_res_id parameters.
    +
    +Properties:
    +
    +- Config:      use_msi
    +- Env Var:     RCLONE_AZUREBLOB_USE_MSI
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-msi-object-id
    +
    +Object ID of the user-assigned MSI to use, if any.
    +
    +Leave blank if msi_client_id or msi_mi_res_id specified.
    +
    +Properties:
    +
    +- Config:      msi_object_id
    +- Env Var:     RCLONE_AZUREBLOB_MSI_OBJECT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-msi-client-id
    +
    +Object ID of the user-assigned MSI to use, if any.
    +
    +Leave blank if msi_object_id or msi_mi_res_id specified.
    +
    +Properties:
    +
    +- Config:      msi_client_id
    +- Env Var:     RCLONE_AZUREBLOB_MSI_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-msi-mi-res-id
    +
    +Azure resource ID of the user-assigned MSI to use, if any.
    +
    +Leave blank if msi_client_id or msi_object_id specified.
    +
    +Properties:
    +
    +- Config:      msi_mi_res_id
    +- Env Var:     RCLONE_AZUREBLOB_MSI_MI_RES_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-use-emulator
    +
    +Uses local storage emulator if provided as 'true'.
    +
    +Leave blank if using real azure storage endpoint.
    +
    +Properties:
    +
    +- Config:      use_emulator
    +- Env Var:     RCLONE_AZUREBLOB_USE_EMULATOR
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-endpoint
    +
    +Endpoint for the service.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_AZUREBLOB_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-upload-cutoff
    +
    +Cutoff for switching to chunked upload (<= 256 MiB) (deprecated).
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_AZUREBLOB_UPLOAD_CUTOFF
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-chunk-size
    +
    +Upload chunk size.
    +
    +Note that this is stored in memory and there may be up to
    +"--transfers" * "--azureblob-upload-concurrency" chunks stored at once
    +in memory.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_AZUREBLOB_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     4Mi
    +
    +#### --azureblob-upload-concurrency
    +
    +Concurrency for multipart uploads.
    +
    +This is the number of chunks of the same file that are uploaded
    +concurrently.
    +
    +If you are uploading small numbers of large files over high-speed
    +links and these uploads do not fully utilize your bandwidth, then
    +increasing this may help to speed up the transfers.
    +
    +In tests, upload speed increases almost linearly with upload
    +concurrency. For example to fill a gigabit pipe it may be necessary to
    +raise this to 64. Note that this will use more memory.
    +
    +Note that chunks are stored in memory and there may be up to
    +"--transfers" * "--azureblob-upload-concurrency" chunks stored at once
    +in memory.
    +
    +Properties:
    +
    +- Config:      upload_concurrency
    +- Env Var:     RCLONE_AZUREBLOB_UPLOAD_CONCURRENCY
    +- Type:        int
    +- Default:     16
    +
    +#### --azureblob-list-chunk
    +
    +Size of blob list.
    +
    +This sets the number of blobs requested in each listing chunk. Default
    +is the maximum, 5000. "List blobs" requests are permitted 2 minutes
    +per megabyte to complete. If an operation is taking longer than 2
    +minutes per megabyte on average, it will time out (
    +[source](https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations#exceptions-to-default-timeout-interval)
    +). This can be used to limit the number of blobs items to return, to
    +avoid the time out.
    +
    +Properties:
    +
    +- Config:      list_chunk
    +- Env Var:     RCLONE_AZUREBLOB_LIST_CHUNK
    +- Type:        int
    +- Default:     5000
    +
    +#### --azureblob-access-tier
    +
    +Access tier of blob: hot, cool or archive.
    +
    +Archived blobs can be restored by setting access tier to hot or
    +cool. Leave blank if you intend to use default access tier, which is
    +set at account level
    +
    +If there is no "access tier" specified, rclone doesn't apply any tier.
    +rclone performs "Set Tier" operation on blobs while uploading, if objects
    +are not modified, specifying "access tier" to new one will have no effect.
    +If blobs are in "archive tier" at remote, trying to perform data transfer
    +operations from remote will not be allowed. User should first restore by
    +tiering blob to "Hot" or "Cool".
    +
    +Properties:
    +
    +- Config:      access_tier
    +- Env Var:     RCLONE_AZUREBLOB_ACCESS_TIER
    +- Type:        string
    +- Required:    false
    +
    +#### --azureblob-archive-tier-delete
    +
    +Delete archive tier blobs before overwriting.
    +
    +Archive tier blobs cannot be updated. So without this flag, if you
    +attempt to update an archive tier blob, then rclone will produce the
    +error:
    +
    +    can't update archive tier blob without --azureblob-archive-tier-delete
    +
    +With this flag set then before rclone attempts to overwrite an archive
    +tier blob, it will delete the existing blob before uploading its
    +replacement.  This has the potential for data loss if the upload fails
    +(unlike updating a normal blob) and also may cost more since deleting
    +archive tier blobs early may be chargable.
    +
    +
    +Properties:
    +
    +- Config:      archive_tier_delete
    +- Env Var:     RCLONE_AZUREBLOB_ARCHIVE_TIER_DELETE
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-disable-checksum
    +
    +Don't store MD5 checksum with object metadata.
    +
    +Normally rclone will calculate the MD5 checksum of the input before
    +uploading it so it can add it to metadata on the object. This is great
    +for data integrity checking but can cause long delays for large files
    +to start uploading.
    +
    +Properties:
    +
    +- Config:      disable_checksum
    +- Env Var:     RCLONE_AZUREBLOB_DISABLE_CHECKSUM
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-memory-pool-flush-time
    +
    +How often internal memory buffer pools will be flushed. (no longer used)
    +
    +Properties:
    +
    +- Config:      memory_pool_flush_time
    +- Env Var:     RCLONE_AZUREBLOB_MEMORY_POOL_FLUSH_TIME
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --azureblob-memory-pool-use-mmap
    +
    +Whether to use mmap buffers in internal memory pool. (no longer used)
    +
    +Properties:
    +
    +- Config:      memory_pool_use_mmap
    +- Env Var:     RCLONE_AZUREBLOB_MEMORY_POOL_USE_MMAP
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_AZUREBLOB_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,RightPeriod,InvalidUtf8
    +
    +#### --azureblob-public-access
    +
    +Public access level of a container: blob or container.
    +
    +Properties:
    +
    +- Config:      public_access
    +- Env Var:     RCLONE_AZUREBLOB_PUBLIC_ACCESS
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - The container and its blobs can be accessed only with an authorized request.
    +        - It's a default value.
    +    - "blob"
    +        - Blob data within this container can be read via anonymous request.
    +    - "container"
    +        - Allow full public read access for container and blob data.
    +
    +#### --azureblob-directory-markers
    +
    +Upload an empty object with a trailing slash when a new directory is created
    +
    +Empty folders are unsupported for bucket based remotes, this option
    +creates an empty object ending with "/", to persist the folder.
    +
    +This object also has the metadata "hdi_isfolder = true" to conform to
    +the Microsoft standard.
    + 
    +
    +Properties:
    +
    +- Config:      directory_markers
    +- Env Var:     RCLONE_AZUREBLOB_DIRECTORY_MARKERS
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-no-check-container
    +
    +If set, don't attempt to check the container exists or create it.
    +
    +This can be useful when trying to minimise the number of transactions
    +rclone does if you know the container exists already.
    +
    +
    +Properties:
    +
    +- Config:      no_check_container
    +- Env Var:     RCLONE_AZUREBLOB_NO_CHECK_CONTAINER
    +- Type:        bool
    +- Default:     false
    +
    +#### --azureblob-no-head-object
    +
    +If set, do not do HEAD before GET when getting objects.
    +
    +Properties:
    +
    +- Config:      no_head_object
    +- Env Var:     RCLONE_AZUREBLOB_NO_HEAD_OBJECT
    +- Type:        bool
    +- Default:     false
    +
    +
    +
    +### Custom upload headers
    +
    +You can set custom upload headers with the `--header-upload` flag. 
    +
    +- Cache-Control
    +- Content-Disposition
    +- Content-Encoding
    +- Content-Language
    +- Content-Type
    +
    +Eg `--header-upload "Content-Type: text/potato"`
    +
    +## Limitations
    +
    +MD5 sums are only uploaded with chunked files if the source has an MD5
    +sum.  This will always be the case for a local to azure copy.
    +
    +`rclone about` is not supported by the Microsoft Azure Blob storage backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +## Azure Storage Emulator Support
    +
    +You can run rclone with the storage emulator (usually _azurite_).
    +
    +To do this, just set up a new remote with `rclone config` following
    +the instructions in the introduction and set `use_emulator` in the
    +advanced settings as `true`. You do not need to provide a default
    +account name nor an account key. But you can override them in the
    +`account` and `key` options. (Prior to v1.61 they were hard coded to
    +_azurite_'s `devstoreaccount1`.)
    +
    +Also, if you want to access a storage emulator instance running on a
    +different machine, you can override the `endpoint` parameter in the
    +advanced settings, setting it to
    +`http(s)://<host>:<port>/devstoreaccount1`
    +(e.g. `http://10.254.2.5:10000/devstoreaccount1`).
    +
    +#  Microsoft OneDrive
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for OneDrive involves getting a token from
    +Microsoft which you need to do in your browser.  `rclone config` walks
    +you through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +
      +
    1. Edit existing remote
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Microsoft OneDrive  "onedrive" [snip] Storage> onedrive Microsoft App Client Id Leave blank normally. Enter a string value. Press Enter for the default (""). client_id> Microsoft App Client Secret Leave blank normally. Enter a string value. Press Enter for the default (""). client_secret> Edit advanced config? (y/n)
    14. +
    15. Yes
    16. +
    17. No y/n> n Remote config Use web browser to automatically authenticate rclone with remote?
    18. +
    -

    Paths are specified as remote:container (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:container/path/to/dir.

    -

    Configuration

    -

    Here is an example of making a swift configuration. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
    -   \ "swift"
    -[snip]
    -Storage> swift
    -Get swift credentials from environment variables in standard OpenStack form.
    -Choose a number from below, or type in your own value
    - 1 / Enter swift credentials in the next step
    -   \ "false"
    - 2 / Get swift credentials from environment vars. Leave other fields blank if using this.
    -   \ "true"
    -env_auth> true
    -User name to log in (OS_USERNAME).
    -user> 
    -API key or password (OS_PASSWORD).
    -key> 
    -Authentication URL for server (OS_AUTH_URL).
    -Choose a number from below, or type in your own value
    - 1 / Rackspace US
    -   \ "https://auth.api.rackspacecloud.com/v1.0"
    - 2 / Rackspace UK
    -   \ "https://lon.auth.api.rackspacecloud.com/v1.0"
    - 3 / Rackspace v2
    -   \ "https://identity.api.rackspacecloud.com/v2.0"
    - 4 / Memset Memstore UK
    -   \ "https://auth.storage.memset.com/v1.0"
    - 5 / Memset Memstore UK v2
    -   \ "https://auth.storage.memset.com/v2.0"
    - 6 / OVH
    -   \ "https://auth.cloud.ovh.net/v3"
    -auth> 
    -User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).
    -user_id> 
    -User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
    -domain> 
    -Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME)
    -tenant> 
    -Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID)
    -tenant_id> 
    -Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME)
    -tenant_domain> 
    -Region name - optional (OS_REGION_NAME)
    -region> 
    -Storage URL - optional (OS_STORAGE_URL)
    -storage_url> 
    -Auth Token from alternate authentication - optional (OS_AUTH_TOKEN)
    -auth_token> 
    -AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION)
    -auth_version> 
    -Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE)
    -Choose a number from below, or type in your own value
    - 1 / Public (default, choose this if not sure)
    -   \ "public"
    - 2 / Internal (use internal service net)
    -   \ "internal"
    - 3 / Admin
    -   \ "admin"
    -endpoint_type> 
    -Remote config
    ---------------------
    -[test]
    -env_auth = true
    -user = 
    -key = 
    -auth = 
    -user_id = 
    -domain = 
    -tenant = 
    -tenant_id = 
    -tenant_domain = 
    -region = 
    -storage_url = 
    -auth_token = 
    -auth_version = 
    -endpoint_type = 
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called remote and can now be used like this

    -

    See all containers

    -
    rclone lsd remote:
    -

    Make a new container

    -
    rclone mkdir remote:container
    -

    List the contents of a container

    -
    rclone ls remote:container
    -

    Sync /home/local/directory to the remote container, deleting any excess files in the container.

    -
    rclone sync -i /home/local/directory remote:container
    -

    Configuration from an OpenStack credentials file

    -

    An OpenStack credentials file typically looks something something like this (without the comments)

    -
    export OS_AUTH_URL=https://a.provider.net/v2.0
    -export OS_TENANT_ID=ffffffffffffffffffffffffffffffff
    -export OS_TENANT_NAME="1234567890123456"
    -export OS_USERNAME="123abc567xy"
    -echo "Please enter your OpenStack Password: "
    -read -sr OS_PASSWORD_INPUT
    -export OS_PASSWORD=$OS_PASSWORD_INPUT
    -export OS_REGION_NAME="SBG1"
    -if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
    -

    The config file needs to look something like this where $OS_USERNAME represents the value of the OS_USERNAME variable - 123abc567xy in the example above.

    -
    [remote]
    -type = swift
    -user = $OS_USERNAME
    -key = $OS_PASSWORD
    -auth = $OS_AUTH_URL
    -tenant = $OS_TENANT_NAME
    -

    Note that you may (or may not) need to set region too - try without first.

    -

    Configuration from the environment

    -

    If you prefer you can configure rclone to use swift using a standard set of OpenStack environment variables.

    -

    When you run through the config, make sure you choose true for env_auth and leave everything else blank.

    -

    rclone will then set any empty config parameters from the environment using standard OpenStack environment variables. There is a list of the variables in the docs for the swift library.

    -

    Using an alternate authentication method

    -

    If your OpenStack installation uses a non-standard authentication method that might not be yet supported by rclone or the underlying swift library, you can authenticate externally (e.g. calling manually the openstack commands to get a token). Then, you just need to pass the two configuration variables auth_token and storage_url. If they are both provided, the other variables are ignored. rclone will not try to authenticate but instead assume it is already authenticated and use these two variables to access the OpenStack installation.

    -

    Using rclone without a config file

    -

    You can use rclone with swift without a config file, if desired, like this:

    -
    source openstack-credentials-file
    -export RCLONE_CONFIG_MYREMOTE_TYPE=swift
    -export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true
    -rclone lsd myremote:
    -

    --fast-list

    -

    This remote supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    --update and --use-server-modtime

    -

    As noted below, the modified time is stored on metadata on the object. It is used by default for all operations that require checking the time a file was last updated. It allows rclone to treat the remote more like a true filesystem, but it is inefficient because it requires an extra API call to retrieve the metadata.

    -

    For many operations, the time the object was last uploaded to the remote is sufficient to determine if it is "dirty". By using --update along with --use-server-modtime, you can avoid the extra API call and simply upload files whose local modtime is newer than the time it was last uploaded.

    -

    Modified time

    -

    The modified time is stored as metadata on the object as X-Object-Meta-Mtime as floating point since the epoch accurate to 1 ns.

    -

    This is a de facto standard (used in the official python-swiftclient amongst others) for storing the modification time for an object.

    -

    Restricted filename characters

    - +
  • Say Y if the machine running rclone has a web browser you can use
  • +
  • Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N.
  • + +
      +
    1. Yes
    2. +
    3. No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code Choose a number from below, or type in an existing value 1 / OneDrive Personal or Business  "onedrive" 2 / Sharepoint site  "sharepoint" 3 / Type in driveID  "driveid" 4 / Type in SiteID  "siteid" 5 / Search a Sharepoint site  "search" Your choice> 1 Found 1 drives, please select the one you want to use: 0: OneDrive (business) id=b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk Chose drive to use:> 0 Found drive 'root' of type 'business', URL: https://org-my.sharepoint.com/personal/you/Documents Is that okay?
    4. +
    5. Yes
    6. +
    7. No y/n> y -------------------- [remote] type = onedrive token = {"access_token":"youraccesstoken","token_type":"Bearer","refresh_token":"yourrefreshtoken","expiry":"2018-08-26T22:39:52.486512262+08:00"} drive_id = b!Eqwertyuiopasdfghjklzxcvbnm-7mnbvcxzlkjhgfdsapoiuytrewqk drive_type = business --------------------
    8. +
    9. Yes this is OK
    10. +
    11. Edit this remote
    12. +
    13. Delete this remote y/e/d> y
    14. +
    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from Microsoft. This only runs from the moment it
    +opens your browser to the moment you get back the verification
    +code.  This is on `http://127.0.0.1:53682/` and this it may require
    +you to unblock it temporarily if you are running a host firewall.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your OneDrive
    +
    +    rclone lsd remote:
    +
    +List all the files in your OneDrive
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an OneDrive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Getting your own Client ID and Key
    +
    +rclone uses a default Client ID when talking to OneDrive, unless a custom `client_id` is specified in the config.
    +The default Client ID and Key are shared by all rclone users when performing requests.
    +
    +You may choose to create and use your own Client ID, in case the default one does not work well for you. 
    +For example, you might see throttling.
    +
    +#### Creating Client ID for OneDrive Personal
    +
    +To create your own Client ID, please follow these steps:
    +
    +1. Open https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade and then click `New registration`.
    +2. Enter a name for your app, choose account type `Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)`, select `Web` in `Redirect URI`, then type (do not copy and paste) `http://localhost:53682/` and click Register. Copy and keep the `Application (client) ID` under the app name for later use.
    +3. Under `manage` select `Certificates & secrets`, click `New client secret`. Enter a description (can be anything) and set `Expires` to 24 months. Copy and keep that secret _Value_ for later use (you _won't_ be able to see this value afterwards).
    +4. Under `manage` select `API permissions`, click `Add a permission` and select `Microsoft Graph` then select `delegated permissions`.
    +5. Search and select the following permissions: `Files.Read`, `Files.ReadWrite`, `Files.Read.All`, `Files.ReadWrite.All`, `offline_access`, `User.Read` and `Sites.Read.All` (if custom access scopes are configured, select the permissions accordingly). Once selected click `Add permissions` at the bottom.
    +
    +Now the application is complete. Run `rclone config` to create or edit a OneDrive remote.
    +Supply the app ID and password as Client ID and Secret, respectively. rclone will walk you through the remaining steps.
    +
    +The access_scopes option allows you to configure the permissions requested by rclone.
    +See [Microsoft Docs](https://docs.microsoft.com/en-us/graph/permissions-reference#files-permissions) for more information about the different scopes.
    +
    +The `Sites.Read.All` permission is required if you need to [search SharePoint sites when configuring the remote](https://github.com/rclone/rclone/pull/5883). However, if that permission is not assigned, you need to exclude `Sites.Read.All` from your access scopes or set `disable_site_permission` option to true in the advanced options.
    +
    +#### Creating Client ID for OneDrive Business
    +
    +The steps for OneDrive Personal may or may not work for OneDrive Business, depending on the security settings of the organization.
    +A common error is that the publisher of the App is not verified.
    +
    +You may try to [verify you account](https://docs.microsoft.com/en-us/azure/active-directory/develop/publisher-verification-overview), or try to limit the App to your organization only, as shown below.
    +
    +1. Make sure to create the App with your business account.
    +2. Follow the steps above to create an App. However, we need a different account type here: `Accounts in this organizational directory only (*** - Single tenant)`. Note that you can also change the account type after creating the App.
    +3. Find the [tenant ID](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant) of your organization.
    +4. In the rclone config, set `auth_url` to `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/authorize`.
    +5. In the rclone config, set `token_url` to `https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token`.
    +
    +Note: If you have a special region, you may need a different host in step 4 and 5. Here are [some hints](https://github.com/rclone/rclone/blob/bc23bf11db1c78c6ebbf8ea538fbebf7058b4176/backend/onedrive/onedrive.go#L86).
    +
    +
    +### Modification time and hashes
    +
    +OneDrive allows modification times to be set on objects accurate to 1
    +second.  These will be used to detect whether objects need syncing or
    +not.
    +
    +OneDrive Personal, OneDrive for Business and Sharepoint Server support
    +[QuickXorHash](https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash).
    +
    +Before rclone 1.62 the default hash for Onedrive Personal was `SHA1`.
    +For rclone 1.62 and above the default for all Onedrive backends is
    +`QuickXorHash`.
    +
    +Starting from July 2023 `SHA1` support is being phased out in Onedrive
    +Personal in favour of `QuickXorHash`. If necessary the
    +`--onedrive-hash-type` flag (or `hash_type` config option) can be used
    +to select `SHA1` during the transition period if this is important
    +your workflow.
    +
    +For all types of OneDrive you can use the `--checksum` flag.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| "         | 0x22  | "          |
    +| *         | 0x2A  | *          |
    +| :         | 0x3A  | :          |
    +| <         | 0x3C  | <          |
    +| >         | 0x3E  | >          |
    +| ?         | 0x3F  | ?          |
    +| \         | 0x5C  | \          |
    +| \|        | 0x7C  | |          |
    +
    +File names can also not end with the following characters.
    +These only get replaced if they are the last character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +| .         | 0x2E  | .          |
    +
    +File names can also not begin with the following characters.
    +These only get replaced if they are the first character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +| ~         | 0x7E  | ~          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Deleting files
    +
    +Any files you delete with rclone will end up in the trash.  Microsoft
    +doesn't provide an API to permanently delete files, nor to empty the
    +trash, so you will have to do that with one of Microsoft's apps or via
    +the OneDrive website.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to onedrive (Microsoft OneDrive).
    +
    +#### --onedrive-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_ONEDRIVE_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_ONEDRIVE_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-region
    +
    +Choose national cloud region for OneDrive.
    +
    +Properties:
    +
    +- Config:      region
    +- Env Var:     RCLONE_ONEDRIVE_REGION
    +- Type:        string
    +- Default:     "global"
    +- Examples:
    +    - "global"
    +        - Microsoft Cloud Global
    +    - "us"
    +        - Microsoft Cloud for US Government
    +    - "de"
    +        - Microsoft Cloud Germany
    +    - "cn"
    +        - Azure and Office 365 operated by Vnet Group in China
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to onedrive (Microsoft OneDrive).
    +
    +#### --onedrive-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_ONEDRIVE_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_ONEDRIVE_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_ONEDRIVE_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-chunk-size
    +
    +Chunk size to upload files with - must be multiple of 320k (327,680 bytes).
    +
    +Above this size files will be chunked - must be multiple of 320k (327,680 bytes) and
    +should not exceed 250M (262,144,000 bytes) else you may encounter \"Microsoft.SharePoint.Client.InvalidClientQueryException: The request message is too big.\"
    +Note that the chunks will be buffered into memory.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_ONEDRIVE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     10Mi
    +
    +#### --onedrive-drive-id
    +
    +The ID of the drive to use.
    +
    +Properties:
    +
    +- Config:      drive_id
    +- Env Var:     RCLONE_ONEDRIVE_DRIVE_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-drive-type
    +
    +The type of the drive (personal | business | documentLibrary).
    +
    +Properties:
    +
    +- Config:      drive_type
    +- Env Var:     RCLONE_ONEDRIVE_DRIVE_TYPE
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-root-folder-id
    +
    +ID of the root folder.
    +
    +This isn't normally needed, but in special circumstances you might
    +know the folder ID that you wish to access but not be able to get
    +there through a path traversal.
    +
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_ONEDRIVE_ROOT_FOLDER_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-access-scopes
    +
    +Set scopes to be requested by rclone.
    +
    +Choose or manually enter a custom space separated list with all scopes, that rclone should request.
    +
    +
    +Properties:
    +
    +- Config:      access_scopes
    +- Env Var:     RCLONE_ONEDRIVE_ACCESS_SCOPES
    +- Type:        SpaceSepList
    +- Default:     Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access
    +- Examples:
    +    - "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All Sites.Read.All offline_access"
    +        - Read and write access to all resources
    +    - "Files.Read Files.Read.All Sites.Read.All offline_access"
    +        - Read only access to all resources
    +    - "Files.Read Files.ReadWrite Files.Read.All Files.ReadWrite.All offline_access"
    +        - Read and write access to all resources, without the ability to browse SharePoint sites. 
    +        - Same as if disable_site_permission was set to true
    +
    +#### --onedrive-disable-site-permission
    +
    +Disable the request for Sites.Read.All permission.
    +
    +If set to true, you will no longer be able to search for a SharePoint site when
    +configuring drive ID, because rclone will not request Sites.Read.All permission.
    +Set it to true if your organization didn't assign Sites.Read.All permission to the
    +application, and your organization disallows users to consent app permission
    +request on their own.
    +
    +Properties:
    +
    +- Config:      disable_site_permission
    +- Env Var:     RCLONE_ONEDRIVE_DISABLE_SITE_PERMISSION
    +- Type:        bool
    +- Default:     false
    +
    +#### --onedrive-expose-onenote-files
    +
    +Set to make OneNote files show up in directory listings.
    +
    +By default, rclone will hide OneNote files in directory listings because
    +operations like "Open" and "Update" won't work on them.  But this
    +behaviour may also prevent you from deleting them.  If you want to
    +delete OneNote files or otherwise want them to show up in directory
    +listing, set this option.
    +
    +Properties:
    +
    +- Config:      expose_onenote_files
    +- Env Var:     RCLONE_ONEDRIVE_EXPOSE_ONENOTE_FILES
    +- Type:        bool
    +- Default:     false
    +
    +#### --onedrive-server-side-across-configs
    +
    +Deprecated: use --server-side-across-configs instead.
    +
    +Allow server-side operations (e.g. copy) to work across different onedrive configs.
    +
    +This will only work if you are copying between two OneDrive *Personal* drives AND
    +the files to copy are already shared between them.  In other cases, rclone will
    +fall back to normal copy (which will be slightly slower).
    +
    +Properties:
    +
    +- Config:      server_side_across_configs
    +- Env Var:     RCLONE_ONEDRIVE_SERVER_SIDE_ACROSS_CONFIGS
    +- Type:        bool
    +- Default:     false
    +
    +#### --onedrive-list-chunk
    +
    +Size of listing chunk.
    +
    +Properties:
    +
    +- Config:      list_chunk
    +- Env Var:     RCLONE_ONEDRIVE_LIST_CHUNK
    +- Type:        int
    +- Default:     1000
    +
    +#### --onedrive-no-versions
    +
    +Remove all versions on modifying operations.
    +
    +Onedrive for business creates versions when rclone uploads new files
    +overwriting an existing one and when it sets the modification time.
    +
    +These versions take up space out of the quota.
    +
    +This flag checks for versions after file upload and setting
    +modification time and removes all but the last version.
    +
    +**NB** Onedrive personal can't currently delete versions so don't use
    +this flag there.
    +
    +
    +Properties:
    +
    +- Config:      no_versions
    +- Env Var:     RCLONE_ONEDRIVE_NO_VERSIONS
    +- Type:        bool
    +- Default:     false
    +
    +#### --onedrive-link-scope
    +
    +Set the scope of the links created by the link command.
    +
    +Properties:
    +
    +- Config:      link_scope
    +- Env Var:     RCLONE_ONEDRIVE_LINK_SCOPE
    +- Type:        string
    +- Default:     "anonymous"
    +- Examples:
    +    - "anonymous"
    +        - Anyone with the link has access, without needing to sign in.
    +        - This may include people outside of your organization.
    +        - Anonymous link support may be disabled by an administrator.
    +    - "organization"
    +        - Anyone signed into your organization (tenant) can use the link to get access.
    +        - Only available in OneDrive for Business and SharePoint.
    +
    +#### --onedrive-link-type
    +
    +Set the type of the links created by the link command.
    +
    +Properties:
    +
    +- Config:      link_type
    +- Env Var:     RCLONE_ONEDRIVE_LINK_TYPE
    +- Type:        string
    +- Default:     "view"
    +- Examples:
    +    - "view"
    +        - Creates a read-only link to the item.
    +    - "edit"
    +        - Creates a read-write link to the item.
    +    - "embed"
    +        - Creates an embeddable link to the item.
    +
    +#### --onedrive-link-password
    +
    +Set the password for links created by the link command.
    +
    +At the time of writing this only works with OneDrive personal paid accounts.
    +
    +
    +Properties:
    +
    +- Config:      link_password
    +- Env Var:     RCLONE_ONEDRIVE_LINK_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +#### --onedrive-hash-type
    +
    +Specify the hash in use for the backend.
    +
    +This specifies the hash type in use. If set to "auto" it will use the
    +default hash which is QuickXorHash.
    +
    +Before rclone 1.62 an SHA1 hash was used by default for Onedrive
    +Personal. For 1.62 and later the default is to use a QuickXorHash for
    +all onedrive types. If an SHA1 hash is desired then set this option
    +accordingly.
    +
    +From July 2023 QuickXorHash will be the only available hash for
    +both OneDrive for Business and OneDriver Personal.
    +
    +This can be set to "none" to not use any hashes.
    +
    +If the hash requested does not exist on the object, it will be
    +returned as an empty string which is treated as a missing hash by
    +rclone.
    +
    +
    +Properties:
    +
    +- Config:      hash_type
    +- Env Var:     RCLONE_ONEDRIVE_HASH_TYPE
    +- Type:        string
    +- Default:     "auto"
    +- Examples:
    +    - "auto"
    +        - Rclone chooses the best hash
    +    - "quickxor"
    +        - QuickXor
    +    - "sha1"
    +        - SHA1
    +    - "sha256"
    +        - SHA256
    +    - "crc32"
    +        - CRC32
    +    - "none"
    +        - None - don't use any hashes
    +
    +#### --onedrive-av-override
    +
    +Allows download of files the server thinks has a virus.
    +
    +The onedrive/sharepoint server may check files uploaded with an Anti
    +Virus checker. If it detects any potential viruses or malware it will
    +block download of the file.
    +
    +In this case you will see a message like this
    +
    +    server reports this file is infected with a virus - use --onedrive-av-override to download anyway: Infected (name of virus): 403 Forbidden: 
    +
    +If you are 100% sure you want to download this file anyway then use
    +the --onedrive-av-override flag, or av_override = true in the config
    +file.
    +
    +
    +Properties:
    +
    +- Config:      av_override
    +- Env Var:     RCLONE_ONEDRIVE_AV_OVERRIDE
    +- Type:        bool
    +- Default:     false
    +
    +#### --onedrive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_ONEDRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftSpace,LeftTilde,RightSpace,RightPeriod,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +If you don't use rclone for 90 days the refresh token will
    +expire. This will result in authorization problems. This is easy to
    +fix by running the `rclone config reconnect remote:` command to get a
    +new token and refresh token.
    +
    +### Naming
    +
    +Note that OneDrive is case insensitive so you can't have a
    +file called "Hello.doc" and one called "hello.doc".
    +
    +There are quite a few characters that can't be in OneDrive file
    +names.  These can't occur on Windows platforms, but on non-Windows
    +platforms they are common.  Rclone will map these names to and from an
    +identical looking unicode equivalent.  For example if a file has a `?`
    +in it will be mapped to `?` instead.
    +
    +### File sizes
    +
    +The largest allowed file size is 250 GiB for both OneDrive Personal and OneDrive for Business [(Updated 13 Jan 2021)](https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa?ui=en-us&rs=en-us&ad=us#individualfilesize).
    +
    +### Path length
    +
    +The entire path, including the file name, must contain fewer than 400 characters for OneDrive, OneDrive for Business and SharePoint Online. If you are encrypting file and folder names with rclone, you may want to pay attention to this limitation because the encrypted names are typically longer than the original ones.
    +
    +### Number of files
    +
    +OneDrive seems to be OK with at least 50,000 files in a folder, but at
    +100,000 rclone will get errors listing the directory like `couldn’t
    +list files: UnknownError:`.  See
    +[#2707](https://github.com/rclone/rclone/issues/2707) for more info.
    +
    +An official document about the limitations for different types of OneDrive can be found [here](https://support.office.com/en-us/article/invalid-file-names-and-file-types-in-onedrive-onedrive-for-business-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa).
    +
    +## Versions
    +
    +Every change in a file OneDrive causes the service to create a new
    +version of the file.  This counts against a users quota.  For
    +example changing the modification time of a file creates a second
    +version, so the file apparently uses twice the space.
    +
    +For example the `copy` command is affected by this as rclone copies
    +the file and then afterwards sets the modification time to match the
    +source file which uses another version.
    +
    +You can use the `rclone cleanup` command (see below) to remove all old
    +versions.
    +
    +Or you can set the `no_versions` parameter to `true` and rclone will
    +remove versions after operations which create new versions. This takes
    +extra transactions so only enable it if you need it.
    +
    +**Note** At the time of writing Onedrive Personal creates versions
    +(but not for setting the modification time) but the API for removing
    +them returns "API not found" so cleanup and `no_versions` should not
    +be used on Onedrive Personal.
    +
    +### Disabling versioning
    +
    +Starting October 2018, users will no longer be able to
    +disable versioning by default. This is because Microsoft has brought
    +an
    +[update](https://techcommunity.microsoft.com/t5/Microsoft-OneDrive-Blog/New-Updates-to-OneDrive-and-SharePoint-Team-Site-Versioning/ba-p/204390)
    +to the mechanism. To change this new default setting, a PowerShell
    +command is required to be run by a SharePoint admin. If you are an
    +admin, you can run these commands in PowerShell to change that
    +setting:
    +
    +1. `Install-Module -Name Microsoft.Online.SharePoint.PowerShell` (in case you haven't installed this already)
    +2. `Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking`
    +3. `Connect-SPOService -Url https://YOURSITE-admin.sharepoint.com -Credential YOU@YOURSITE.COM` (replacing `YOURSITE`, `YOU`, `YOURSITE.COM` with the actual values; this will prompt for your credentials)
    +4. `Set-SPOTenant -EnableMinimumVersionRequirement $False`
    +5. `Disconnect-SPOService` (to disconnect from the server)
    +
    +*Below are the steps for normal users to disable versioning. If you don't see the "No Versioning" option, make sure the above requirements are met.*
    +
    +User [Weropol](https://github.com/Weropol) has found a method to disable
    +versioning on OneDrive
    +
    +1. Open the settings menu by clicking on the gear symbol at the top of the OneDrive Business page.
    +2. Click Site settings.
    +3. Once on the Site settings page, navigate to Site Administration > Site libraries and lists.
    +4. Click Customize "Documents".
    +5. Click General Settings > Versioning Settings.
    +6. Under Document Version History select the option No versioning.
    +Note: This will disable the creation of new file versions, but will not remove any previous versions. Your documents are safe.
    +7. Apply the changes by clicking OK.
    +8. Use rclone to upload or modify files. (I also use the --no-update-modtime flag)
    +9. Restore the versioning settings after using rclone. (Optional)
    +
    +## Cleanup
    +
    +OneDrive supports `rclone cleanup` which causes rclone to look through
    +every file under the path supplied and delete all version but the
    +current version. Because this involves traversing all the files, then
    +querying each file for versions it can be quite slow. Rclone does
    +`--checkers` tests in parallel. The command also supports `--interactive`/`i`
    +or `--dry-run` which is a great way to see what it would do.
    +
    +    rclone cleanup --interactive remote:path/subdir # interactively remove all old version for path/subdir
    +    rclone cleanup remote:path/subdir               # unconditionally remove all old version for path/subdir
    +
    +**NB** Onedrive personal can't currently delete versions
    +
    +## Troubleshooting ##
    +
    +### Excessive throttling or blocked on SharePoint
    +
    +If you experience excessive throttling or is being blocked on SharePoint then it may help to set the user agent explicitly with a flag like this: `--user-agent "ISV|rclone.org|rclone/v1.55.1"`
    +
    +The specific details can be found in the Microsoft document: [Avoid getting throttled or blocked in SharePoint Online](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online#how-to-decorate-your-http-traffic-to-avoid-throttling)
    +
    +### Unexpected file size/hash differences on Sharepoint ####
    +
    +It is a
    +[known](https://github.com/OneDrive/onedrive-api-docs/issues/935#issuecomment-441741631)
    +issue that Sharepoint (not OneDrive or OneDrive for Business) silently modifies
    +uploaded files, mainly Office files (.docx, .xlsx, etc.), causing file size and
    +hash checks to fail. There are also other situations that will cause OneDrive to
    +report inconsistent file sizes. To use rclone with such
    +affected files on Sharepoint, you
    +may disable these checks with the following command line arguments:
    +
    +

    --ignore-checksum --ignore-size

    +
    
    +Alternatively, if you have write access to the OneDrive files, it may be possible
    +to fix this problem for certain files, by attempting the steps below.
    +Open the web interface for [OneDrive](https://onedrive.live.com) and find the
    +affected files (which will be in the error messages/log for rclone). Simply click on
    +each of these files, causing OneDrive to open them on the web. This will cause each
    +file to be converted in place to a format that is functionally equivalent
    +but which will no longer trigger the size discrepancy. Once all problematic files
    +are converted you will no longer need the ignore options above.
    +
    +### Replacing/deleting existing files on Sharepoint gets "item not found" ####
    +
    +It is a [known](https://github.com/OneDrive/onedrive-api-docs/issues/1068) issue
    +that Sharepoint (not OneDrive or OneDrive for Business) may return "item not
    +found" errors when users try to replace or delete uploaded files; this seems to
    +mainly affect Office files (.docx, .xlsx, etc.) and web files (.html, .aspx, etc.). As a workaround, you may use
    +the `--backup-dir <BACKUP_DIR>` command line argument so rclone moves the
    +files to be replaced/deleted into a given backup directory (instead of directly
    +replacing/deleting them). For example, to instruct rclone to move the files into
    +the directory `rclone-backup-dir` on backend `mysharepoint`, you may use:
    +
    +

    --backup-dir mysharepoint:rclone-backup-dir

    +
    
    +### access\_denied (AADSTS65005) ####
    +
    +

    Error: access_denied Code: AADSTS65005 Description: Using application 'rclone' is currently not supported for your organization [YOUR_ORGANIZATION] because it is in an unmanaged state. An administrator needs to claim ownership of the company by DNS validation of [YOUR_ORGANIZATION] before the application rclone can be provisioned.

    +
    
    +This means that rclone can't use the OneDrive for Business API with your account. You can't do much about it, maybe write an email to your admins.
    +
    +However, there are other ways to interact with your OneDrive account. Have a look at the WebDAV backend: https://rclone.org/webdav/#sharepoint
    +
    +### invalid\_grant (AADSTS50076) ####
    +
    +

    Error: invalid_grant Code: AADSTS50076 Description: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '...'.

    +
    
    +If you see the error above after enabling multi-factor authentication for your account, you can fix it by refreshing your OAuth refresh token. To do that, run `rclone config`, and choose to edit your OneDrive backend. Then, you don't need to actually make any changes until you reach this question: `Already have a token - refresh?`. For this question, answer `y` and go through the process to refresh your token, just like the first time the backend is configured. After this, rclone should work again for this backend.
    +
    +### Invalid request when making public links ####
    +
    +On Sharepoint and OneDrive for Business, `rclone link` may return an "Invalid
    +request" error. A possible cause is that the organisation admin didn't allow
    +public links to be made for the organisation/sharepoint library. To fix the
    +permissions as an admin, take a look at the docs:
    +[1](https://docs.microsoft.com/en-us/sharepoint/turn-external-sharing-on-or-off),
    +[2](https://support.microsoft.com/en-us/office/set-up-and-manage-access-requests-94b26e0b-2822-49d4-929a-8455698654b3).
    +
    +### Can not access `Shared` with me files
    +
    +Shared with me files is not supported by rclone [currently](https://github.com/rclone/rclone/issues/4062), but there is a workaround:
    +
    +1. Visit [https://onedrive.live.com](https://onedrive.live.com/)
    +2. Right click a item in `Shared`, then click `Add shortcut to My files` in the context
    +    ![make_shortcut](https://user-images.githubusercontent.com/60313789/206118040-7e762b3b-aa61-41a1-8649-cc18889f3572.png "Screenshot (Shared with me)")
    +3. The shortcut will appear in `My files`, you can access it with rclone, it behaves like a normal folder/file.
    +    ![in_my_files](https://i.imgur.com/0S8H3li.png "Screenshot (My Files)")
    +    ![rclone_mount](https://i.imgur.com/2Iq66sW.png "Screenshot (rclone mount)")
    +
    +### Live Photos uploaded from iOS (small video clips in .heic files)
    +
    +The iOS OneDrive app introduced [upload and storage](https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/live-photos-come-to-onedrive/ba-p/1953452) 
    +of [Live Photos](https://support.apple.com/en-gb/HT207310) in 2020. 
    +The usage and download of these uploaded Live Photos is unfortunately still work-in-progress 
    +and this introduces several issues when copying, synchronising and mounting – both in rclone and in the native OneDrive client on Windows.
    +
    +The root cause can easily be seen if you locate one of your Live Photos in the OneDrive web interface. 
    +Then download the photo from the web interface. You will then see that the size of downloaded .heic file is smaller than the size displayed in the web interface. 
    +The downloaded file is smaller because it only contains a single frame (still photo) extracted from the Live Photo (movie) stored in OneDrive.
    +
    +The different sizes will cause `rclone copy/sync` to repeatedly recopy unmodified photos something like this:
    +
    +    DEBUG : 20230203_123826234_iOS.heic: Sizes differ (src 4470314 vs dst 1298667)
    +    DEBUG : 20230203_123826234_iOS.heic: sha1 = fc2edde7863b7a7c93ca6771498ac797f8460750 OK
    +    INFO  : 20230203_123826234_iOS.heic: Copied (replaced existing)
    +
    +These recopies can be worked around by adding `--ignore-size`. Please note that this workaround only syncs the still-picture not the movie clip, 
    +and relies on modification dates being correctly updated on all files in all situations.
    +
    +The different sizes will also cause `rclone check` to report size errors something like this:
    +
    +    ERROR : 20230203_123826234_iOS.heic: sizes differ
    +
    +These check errors can be suppressed by adding `--ignore-size`.
    +
    +The different sizes will also cause `rclone mount` to fail downloading with an error something like this:
    +
    +    ERROR : 20230203_123826234_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: unexpected EOF
    +
    +or like this when using `--cache-mode=full`:
    +
    +    INFO  : 20230203_123826234_iOS.heic: vfs cache: downloader: error count now 1: vfs reader: failed to write to cache file: 416 Requested Range Not Satisfiable:
    +    ERROR : 20230203_123826234_iOS.heic: vfs cache: failed to download: vfs reader: failed to write to cache file: 416 Requested Range Not Satisfiable:
    +
    +#  OpenDrive
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +
      +
    1. New remote
    2. +
    3. Delete remote
    4. +
    5. Quit config e/n/d/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / OpenDrive  "opendrive" [snip] Storage> opendrive Username username> Password
    6. +
    7. Yes type in my own password
    8. +
    9. Generate random password y/g> y Enter the password: password: Confirm the password: password: -------------------- [remote] username = password = *** ENCRYPTED *** --------------------
    10. +
    11. Yes this is OK
    12. +
    13. Edit this remote
    14. +
    15. Delete this remote y/e/d> y
    16. +
    +
    
    +List directories in top level of your OpenDrive
    +
    +    rclone lsd remote:
    +
    +List all the files in your OpenDrive
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an OpenDrive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time and MD5SUMs
    +
    +OpenDrive allows modification times to be set on objects accurate to 1
    +second. These will be used to detect whether objects need syncing or
    +not.
    +
    +### Restricted filename characters
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| NUL       | 0x00  | ␀           |
    +| /         | 0x2F  | /          |
    +| "         | 0x22  | "          |
    +| *         | 0x2A  | *          |
    +| :         | 0x3A  | :          |
    +| <         | 0x3C  | <          |
    +| >         | 0x3E  | >          |
    +| ?         | 0x3F  | ?          |
    +| \         | 0x5C  | \          |
    +| \|        | 0x7C  | |          |
    +
    +File names can also not begin or end with the following characters.
    +These only get replaced if they are the first or last character in the name:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| SP        | 0x20  | ␠           |
    +| HT        | 0x09  | ␉           |
    +| LF        | 0x0A  | ␊           |
    +| VT        | 0x0B  | ␋           |
    +| CR        | 0x0D  | ␍           |
    +
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to opendrive (OpenDrive).
    +
    +#### --opendrive-username
    +
    +Username.
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_OPENDRIVE_USERNAME
    +- Type:        string
    +- Required:    true
    +
    +#### --opendrive-password
    +
    +Password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_OPENDRIVE_PASSWORD
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to opendrive (OpenDrive).
    +
    +#### --opendrive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_OPENDRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,LeftSpace,LeftCrLfHtVt,RightSpace,RightCrLfHtVt,InvalidUtf8,Dot
    +
    +#### --opendrive-chunk-size
    +
    +Files will be uploaded in chunks this size.
    +
    +Note that these chunks are buffered in memory so increasing them will
    +increase memory use.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_OPENDRIVE_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     10Mi
    +
    +
    +
    +## Limitations
    +
    +Note that OpenDrive is case insensitive so you can't have a
    +file called "Hello.doc" and one called "hello.doc".
    +
    +There are quite a few characters that can't be in OpenDrive file
    +names.  These can't occur on Windows platforms, but on non-Windows
    +platforms they are common.  Rclone will map these names to and from an
    +identical looking unicode equivalent.  For example if a file has a `?`
    +in it will be mapped to `?` instead.
    +
    +`rclone about` is not supported by the OpenDrive backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Oracle Object Storage
    +- [Oracle Object Storage Overview](https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/objectstorageoverview.htm)
    +- [Oracle Object Storage FAQ](https://www.oracle.com/cloud/storage/object-storage/faq/)
    +- [Oracle Object Storage Limits](https://docs.oracle.com/en-us/iaas/Content/Resources/Assets/whitepapers/oci-object-storage-best-practices.pdf)
    +
    +Paths are specified as `remote:bucket` (or `remote:` for the `lsd` command.)  You may put subdirectories in 
    +too, e.g. `remote:bucket/path/to/dir`.
    +
    +Sample command to transfer local artifacts to remote:bucket in oracle object storage:
    +
    +`rclone -vvv  --progress --stats-one-line --max-stats-groups 10 --log-format date,time,UTC,longfile --fast-list --buffer-size 256Mi --oos-no-check-bucket --oos-upload-cutoff 10Mi --multi-thread-cutoff 16Mi --multi-thread-streams 3000 --transfers 3000 --checkers 64  --retries 2  --oos-chunk-size 10Mi --oos-upload-concurrency 10000  --oos-attempt-resume-upload --oos-leave-parts-on-error sync ./artifacts  remote:bucket -vv`
    +
    +## Configuration
    +
    +Here is an example of making an oracle object storage configuration. `rclone config` walks you 
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +
    +
      +
    1. New remote
    2. +
    3. Delete remote
    4. +
    5. Rename remote
    6. +
    7. Copy remote
    8. +
    9. Set configuration password
    10. +
    11. Quit config e/n/d/r/c/s/q> n
    12. +
    +

    Enter name for new remote. name> remote

    +

    Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. [snip] XX / Oracle Cloud Infrastructure Object Storage  (oracleobjectstorage) Storage> oracleobjectstorage

    +

    Option provider. Choose your Auth Provider Choose a number from below, or type in your own string value. Press Enter for the default (env_auth). 1 / automatically pickup the credentials from runtime(env), first one to provide auth wins  (env_auth) / use an OCI user and an API key for authentication. 2 | you’ll need to put in a config file your tenancy OCID, user OCID, region, the path, fingerprint to an API key. | https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm  (user_principal_auth) / use instance principals to authorize an instance to make API calls. 3 | each instance has its own identity, and authenticates using the certificates that are read from instance metadata. | https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm  (instance_principal_auth) 4 / use resource principals to make API calls  (resource_principal_auth) 5 / no credentials needed, this is typically for reading public buckets  (no_auth) provider> 2

    +

    Option namespace. Object storage namespace Enter a value. namespace> idbamagbg734

    +

    Option compartment. Object storage compartment OCID Enter a value. compartment> ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba

    +

    Option region. Object storage Region Enter a value. region> us-ashburn-1

    +

    Option endpoint. Endpoint for Object storage API. Leave blank to use the default endpoint for the region. Enter a value. Press Enter to leave empty. endpoint>

    +

    Option config_file. Full Path to OCI config file Choose a number from below, or type in your own string value. Press Enter for the default (~/.oci/config). 1 / oci configuration file location  (~/.oci/config) config_file> /etc/oci/dev.conf

    +

    Option config_profile. Profile name inside OCI config file Choose a number from below, or type in your own string value. Press Enter for the default (Default). 1 / Use the default profile  (Default) config_profile> Test

    +

    Edit advanced config? y) Yes n) No (default) y/n> n

    +

    Configuration complete. Options: - type: oracleobjectstorage - namespace: idbamagbg734 - compartment: ocid1.compartment.oc1..aaaaaaaapufkxc7ame3sthry5i7ujrwfc7ejnthhu6bhanm5oqfjpyasjkba - region: us-ashburn-1 - provider: user_principal_auth - config_file: /etc/oci/dev.conf - config_profile: Test Keep this "remote" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See all buckets
    +
    +    rclone lsd remote:
    +
    +Create a new bucket
    +
    +    rclone mkdir remote:bucket
    +
    +List the contents of a bucket
    +
    +    rclone ls remote:bucket
    +    rclone ls remote:bucket --max-depth 1
    +
    +## Authentication Providers 
    +
    +OCI has various authentication methods. To learn more about authentication methods please refer [oci authentication 
    +methods](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm) 
    +These choices can be specified in the rclone config file.
    +
    +Rclone supports the following OCI authentication provider.
    +
    +    User Principal
    +    Instance Principal
    +    Resource Principal
    +    No authentication
    +
    +### User Principal
    +Sample rclone config file for Authentication Provider User Principal:
    +
    +    [oos]
    +    type = oracleobjectstorage
    +    namespace = id<redacted>34
    +    compartment = ocid1.compartment.oc1..aa<redacted>ba
    +    region = us-ashburn-1
    +    provider = user_principal_auth
    +    config_file = /home/opc/.oci/config
    +    config_profile = Default
    +
    +Advantages:
    +- One can use this method from any server within OCI or on-premises or from other cloud provider.
    +
    +Considerations:
    +- you need to configure user’s privileges / policy to allow access to object storage
    +- Overhead of managing users and keys.
    +- If the user is deleted, the config file will no longer work and may cause automation regressions that use the user's credentials.
    +
    +###  Instance Principal
    +An OCI compute instance can be authorized to use rclone by using it's identity and certificates as an instance principal. 
    +With this approach no credentials have to be stored and managed.
    +
    +Sample rclone configuration file for Authentication Provider Instance Principal:
    +
    +    [opc@rclone ~]$ cat ~/.config/rclone/rclone.conf
    +    [oos]
    +    type = oracleobjectstorage
    +    namespace = id<redacted>fn
    +    compartment = ocid1.compartment.oc1..aa<redacted>k7a
    +    region = us-ashburn-1
    +    provider = instance_principal_auth
    +
    +Advantages:
    +
    +- With instance principals, you don't need to configure user credentials and transfer/ save it to disk in your compute 
    +  instances or rotate the credentials.
    +- You don’t need to deal with users and keys.
    +- Greatly helps in automation as you don't have to manage access keys, user private keys, storing them in vault, 
    +  using kms etc.
    +
    +Considerations:
    +
    +- You need to configure a dynamic group having this instance as member and add policy to read object storage to that 
    +  dynamic group.
    +- Everyone who has access to this machine can execute the CLI commands.
    +- It is applicable for oci compute instances only. It cannot be used on external instance or resources.
    +
    +### Resource Principal
    +Resource principal auth is very similar to instance principal auth but used for resources that are not 
    +compute instances such as [serverless functions](https://docs.oracle.com/en-us/iaas/Content/Functions/Concepts/functionsoverview.htm). 
    +To use resource principal ensure Rclone process is started with these environment variables set in its process.
    +
    +    export OCI_RESOURCE_PRINCIPAL_VERSION=2.2
    +    export OCI_RESOURCE_PRINCIPAL_REGION=us-ashburn-1
    +    export OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM=/usr/share/model-server/key.pem
    +    export OCI_RESOURCE_PRINCIPAL_RPST=/usr/share/model-server/security_token
    +
    +Sample rclone configuration file for Authentication Provider Resource Principal:
    +
    +    [oos]
    +    type = oracleobjectstorage
    +    namespace = id<redacted>34
    +    compartment = ocid1.compartment.oc1..aa<redacted>ba
    +    region = us-ashburn-1
    +    provider = resource_principal_auth
    +
    +### No authentication
    +Public buckets do not require any authentication mechanism to read objects.
    +Sample rclone configuration file for No authentication:
    +    
    +    [oos]
    +    type = oracleobjectstorage
    +    namespace = id<redacted>34
    +    compartment = ocid1.compartment.oc1..aa<redacted>ba
    +    region = us-ashburn-1
    +    provider = no_auth
    +
    +## Options
    +### Modified time
    +
    +The modified time is stored as metadata on the object as
    +`opc-meta-mtime` as floating point since the epoch, accurate to 1 ns.
    +
    +If the modification time needs to be updated rclone will attempt to perform a server
    +side copy to update the modification if the object can be copied in a single part.
    +In the case the object is larger than 5Gb, the object will be uploaded rather than copied.
    +
    +Note that reading this from the object takes an additional `HEAD` request as the metadata
    +isn't returned in object listings.
    +
    +### Multipart uploads
    +
    +rclone supports multipart uploads with OOS which means that it can
    +upload files bigger than 5 GiB.
    +
    +Note that files uploaded *both* with multipart upload *and* through
    +crypt remotes do not have MD5 sums.
    +
    +rclone switches from single part uploads to multipart uploads at the
    +point specified by `--oos-upload-cutoff`.  This can be a maximum of 5 GiB
    +and a minimum of 0 (ie always upload multipart files).
    +
    +The chunk sizes used in the multipart upload are specified by
    +`--oos-chunk-size` and the number of chunks uploaded concurrently is
    +specified by `--oos-upload-concurrency`.
    +
    +Multipart uploads will use `--transfers` * `--oos-upload-concurrency` *
    +`--oos-chunk-size` extra memory.  Single part uploads to not use extra
    +memory.
    +
    +Single part transfers can be faster than multipart transfers or slower
    +depending on your latency from oos - the more latency, the more likely
    +single part transfers will be faster.
    +
    +Increasing `--oos-upload-concurrency` will increase throughput (8 would
    +be a sensible value) and increasing `--oos-chunk-size` also increases
    +throughput (16M would be sensible).  Increasing either of these will
    +use more memory.  The default values are high enough to gain most of
    +the possible performance without using too much memory.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to oracleobjectstorage (Oracle Cloud Infrastructure Object Storage).
    +
    +#### --oos-provider
    +
    +Choose your Auth Provider
    +
    +Properties:
    +
    +- Config:      provider
    +- Env Var:     RCLONE_OOS_PROVIDER
    +- Type:        string
    +- Default:     "env_auth"
    +- Examples:
    +    - "env_auth"
    +        - automatically pickup the credentials from runtime(env), first one to provide auth wins
    +    - "user_principal_auth"
    +        - use an OCI user and an API key for authentication.
    +        - you’ll need to put in a config file your tenancy OCID, user OCID, region, the path, fingerprint to an API key.
    +        - https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
    +    - "instance_principal_auth"
    +        - use instance principals to authorize an instance to make API calls. 
    +        - each instance has its own identity, and authenticates using the certificates that are read from instance metadata. 
    +        - https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm
    +    - "resource_principal_auth"
    +        - use resource principals to make API calls
    +    - "no_auth"
    +        - no credentials needed, this is typically for reading public buckets
    +
    +#### --oos-namespace
    +
    +Object storage namespace
    +
    +Properties:
    +
    +- Config:      namespace
    +- Env Var:     RCLONE_OOS_NAMESPACE
    +- Type:        string
    +- Required:    true
    +
    +#### --oos-compartment
    +
    +Object storage compartment OCID
    +
    +Properties:
    +
    +- Config:      compartment
    +- Env Var:     RCLONE_OOS_COMPARTMENT
    +- Provider:    !no_auth
    +- Type:        string
    +- Required:    true
    +
    +#### --oos-region
    +
    +Object storage Region
    +
    +Properties:
    +
    +- Config:      region
    +- Env Var:     RCLONE_OOS_REGION
    +- Type:        string
    +- Required:    true
    +
    +#### --oos-endpoint
    +
    +Endpoint for Object storage API.
    +
    +Leave blank to use the default endpoint for the region.
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_OOS_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --oos-config-file
    +
    +Path to OCI config file
    +
    +Properties:
    +
    +- Config:      config_file
    +- Env Var:     RCLONE_OOS_CONFIG_FILE
    +- Provider:    user_principal_auth
    +- Type:        string
    +- Default:     "~/.oci/config"
    +- Examples:
    +    - "~/.oci/config"
    +        - oci configuration file location
    +
    +#### --oos-config-profile
    +
    +Profile name inside the oci config file
    +
    +Properties:
    +
    +- Config:      config_profile
    +- Env Var:     RCLONE_OOS_CONFIG_PROFILE
    +- Provider:    user_principal_auth
    +- Type:        string
    +- Default:     "Default"
    +- Examples:
    +    - "Default"
    +        - Use the default profile
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to oracleobjectstorage (Oracle Cloud Infrastructure Object Storage).
    +
    +#### --oos-storage-tier
    +
    +The storage class to use when storing new objects in storage. https://docs.oracle.com/en-us/iaas/Content/Object/Concepts/understandingstoragetiers.htm
    +
    +Properties:
    +
    +- Config:      storage_tier
    +- Env Var:     RCLONE_OOS_STORAGE_TIER
    +- Type:        string
    +- Default:     "Standard"
    +- Examples:
    +    - "Standard"
    +        - Standard storage tier, this is the default tier
    +    - "InfrequentAccess"
    +        - InfrequentAccess storage tier
    +    - "Archive"
    +        - Archive storage tier
    +
    +#### --oos-upload-cutoff
    +
    +Cutoff for switching to chunked upload.
    +
    +Any files larger than this will be uploaded in chunks of chunk_size.
    +The minimum is 0 and the maximum is 5 GiB.
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_OOS_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     200Mi
    +
    +#### --oos-chunk-size
    +
    +Chunk size to use for uploading.
    +
    +When uploading files larger than upload_cutoff or files with unknown
    +size (e.g. from "rclone rcat" or uploaded with "rclone mount" they will be uploaded 
    +as multipart uploads using this chunk size.
    +
    +Note that "upload_concurrency" chunks of this size are buffered
    +in memory per transfer.
    +
    +If you are transferring large files over high-speed links and you have
    +enough memory, then increasing this will speed up the transfers.
    +
    +Rclone will automatically increase the chunk size when uploading a
    +large file of known size to stay below the 10,000 chunks limit.
    +
    +Files of unknown size are uploaded with the configured
    +chunk_size. Since the default chunk size is 5 MiB and there can be at
    +most 10,000 chunks, this means that by default the maximum size of
    +a file you can stream upload is 48 GiB.  If you wish to stream upload
    +larger files then you will need to increase chunk_size.
    +
    +Increasing the chunk size decreases the accuracy of the progress
    +statistics displayed with "-P" flag.
    +
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_OOS_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     5Mi
    +
    +#### --oos-max-upload-parts
    +
    +Maximum number of parts in a multipart upload.
    +
    +This option defines the maximum number of multipart chunks to use
    +when doing a multipart upload.
    +
    +OCI has max parts limit of 10,000 chunks.
    +
    +Rclone will automatically increase the chunk size when uploading a
    +large file of a known size to stay below this number of chunks limit.
    +
    +
    +Properties:
    +
    +- Config:      max_upload_parts
    +- Env Var:     RCLONE_OOS_MAX_UPLOAD_PARTS
    +- Type:        int
    +- Default:     10000
    +
    +#### --oos-upload-concurrency
    +
    +Concurrency for multipart uploads.
    +
    +This is the number of chunks of the same file that are uploaded
    +concurrently.
    +
    +If you are uploading small numbers of large files over high-speed links
    +and these uploads do not fully utilize your bandwidth, then increasing
    +this may help to speed up the transfers.
    +
    +Properties:
    +
    +- Config:      upload_concurrency
    +- Env Var:     RCLONE_OOS_UPLOAD_CONCURRENCY
    +- Type:        int
    +- Default:     10
    +
    +#### --oos-copy-cutoff
    +
    +Cutoff for switching to multipart copy.
    +
    +Any files larger than this that need to be server-side copied will be
    +copied in chunks of this size.
    +
    +The minimum is 0 and the maximum is 5 GiB.
    +
    +Properties:
    +
    +- Config:      copy_cutoff
    +- Env Var:     RCLONE_OOS_COPY_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     4.656Gi
    +
    +#### --oos-copy-timeout
    +
    +Timeout for copy.
    +
    +Copy is an asynchronous operation, specify timeout to wait for copy to succeed
    +
    +
    +Properties:
    +
    +- Config:      copy_timeout
    +- Env Var:     RCLONE_OOS_COPY_TIMEOUT
    +- Type:        Duration
    +- Default:     1m0s
    +
    +#### --oos-disable-checksum
    +
    +Don't store MD5 checksum with object metadata.
    +
    +Normally rclone will calculate the MD5 checksum of the input before
    +uploading it so it can add it to metadata on the object. This is great
    +for data integrity checking but can cause long delays for large files
    +to start uploading.
    +
    +Properties:
    +
    +- Config:      disable_checksum
    +- Env Var:     RCLONE_OOS_DISABLE_CHECKSUM
    +- Type:        bool
    +- Default:     false
    +
    +#### --oos-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_OOS_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,InvalidUtf8,Dot
    +
    +#### --oos-leave-parts-on-error
    +
    +If true avoid calling abort upload on a failure, leaving all successfully uploaded parts for manual recovery.
    +
    +It should be set to true for resuming uploads across different sessions.
    +
    +WARNING: Storing parts of an incomplete multipart upload counts towards space usage on object storage and will add
    +additional costs if not cleaned up.
    +
    +
    +Properties:
    +
    +- Config:      leave_parts_on_error
    +- Env Var:     RCLONE_OOS_LEAVE_PARTS_ON_ERROR
    +- Type:        bool
    +- Default:     false
    +
    +#### --oos-attempt-resume-upload
    +
    +If true attempt to resume previously started multipart upload for the object.
    +This will be helpful to speed up multipart transfers by resuming uploads from past session.
    +
    +WARNING: If chunk size differs in resumed session from past incomplete session, then the resumed multipart upload is 
    +aborted and a new multipart upload is started with the new chunk size.
    +
    +The flag leave_parts_on_error must be true to resume and optimize to skip parts that were already uploaded successfully.
    +
    +
    +Properties:
    +
    +- Config:      attempt_resume_upload
    +- Env Var:     RCLONE_OOS_ATTEMPT_RESUME_UPLOAD
    +- Type:        bool
    +- Default:     false
    +
    +#### --oos-no-check-bucket
    +
    +If set, don't attempt to check the bucket exists or create it.
    +
    +This can be useful when trying to minimise the number of transactions
    +rclone does if you know the bucket exists already.
    +
    +It can also be needed if the user you are using does not have bucket
    +creation permissions.
    +
    +
    +Properties:
    +
    +- Config:      no_check_bucket
    +- Env Var:     RCLONE_OOS_NO_CHECK_BUCKET
    +- Type:        bool
    +- Default:     false
    +
    +#### --oos-sse-customer-key-file
    +
    +To use SSE-C, a file containing the base64-encoded string of the AES-256 encryption key associated
    +with the object. Please note only one of sse_customer_key_file|sse_customer_key|sse_kms_key_id is needed.'
    +
    +Properties:
    +
    +- Config:      sse_customer_key_file
    +- Env Var:     RCLONE_OOS_SSE_CUSTOMER_KEY_FILE
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - None
    +
    +#### --oos-sse-customer-key
    +
    +To use SSE-C, the optional header that specifies the base64-encoded 256-bit encryption key to use to
    +encrypt or  decrypt the data. Please note only one of sse_customer_key_file|sse_customer_key|sse_kms_key_id is
    +needed. For more information, see Using Your Own Keys for Server-Side Encryption 
    +(https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm)
    +
    +Properties:
    +
    +- Config:      sse_customer_key
    +- Env Var:     RCLONE_OOS_SSE_CUSTOMER_KEY
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - None
    +
    +#### --oos-sse-customer-key-sha256
    +
    +If using SSE-C, The optional header that specifies the base64-encoded SHA256 hash of the encryption
    +key. This value is used to check the integrity of the encryption key. see Using Your Own Keys for 
    +Server-Side Encryption (https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm).
    +
    +Properties:
    +
    +- Config:      sse_customer_key_sha256
    +- Env Var:     RCLONE_OOS_SSE_CUSTOMER_KEY_SHA256
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - None
    +
    +#### --oos-sse-kms-key-id
    +
    +if using your own master key in vault, this header specifies the
    +OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a master encryption key used to call
    +the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
    +Please note only one of sse_customer_key_file|sse_customer_key|sse_kms_key_id is needed.
    +
    +Properties:
    +
    +- Config:      sse_kms_key_id
    +- Env Var:     RCLONE_OOS_SSE_KMS_KEY_ID
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - None
    +
    +#### --oos-sse-customer-algorithm
    +
    +If using SSE-C, the optional header that specifies "AES256" as the encryption algorithm.
    +Object Storage supports "AES256" as the encryption algorithm. For more information, see
    +Using Your Own Keys for Server-Side Encryption (https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm).
    +
    +Properties:
    +
    +- Config:      sse_customer_algorithm
    +- Env Var:     RCLONE_OOS_SSE_CUSTOMER_ALGORITHM
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - None
    +    - "AES256"
    +        - AES256
    +
    +## Backend commands
    +
    +Here are the commands specific to the oracleobjectstorage backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### rename
    +
    +change the name of an object
    +
    +    rclone backend rename remote: [options] [<arguments>+]
    +
    +This command can be used to rename a object.
    +
    +Usage Examples:
    +
    +    rclone backend rename oos:bucket relative-object-path-under-bucket object-new-name
    +
    +
    +### list-multipart-uploads
    +
    +List the unfinished multipart uploads
    +
    +    rclone backend list-multipart-uploads remote: [options] [<arguments>+]
    +
    +This command lists the unfinished multipart uploads in JSON format.
    +
    +    rclone backend list-multipart-uploads oos:bucket/path/to/object
    +
    +It returns a dictionary of buckets with values as lists of unfinished
    +multipart uploads.
    +
    +You can call it with no bucket in which case it lists all bucket, with
    +a bucket or with a bucket and path.
    +
    +    {
    +      "test-bucket": [
    +                {
    +                        "namespace": "test-namespace",
    +                        "bucket": "test-bucket",
    +                        "object": "600m.bin",
    +                        "uploadId": "51dd8114-52a4-b2f2-c42f-5291f05eb3c8",
    +                        "timeCreated": "2022-07-29T06:21:16.595Z",
    +                        "storageTier": "Standard"
    +                }
    +        ]
    +
    +
    +### cleanup
    +
    +Remove unfinished multipart uploads.
    +
    +    rclone backend cleanup remote: [options] [<arguments>+]
    +
    +This command removes unfinished multipart uploads of age greater than
    +max-age which defaults to 24 hours.
    +
    +Note that you can use --interactive/-i or --dry-run with this command to see what
    +it would do.
    +
    +    rclone backend cleanup oos:bucket/path/to/object
    +    rclone backend cleanup -o max-age=7w oos:bucket/path/to/object
    +
    +Durations are parsed as per the rest of rclone, 2h, 7d, 7w etc.
    +
    +
    +Options:
    +
    +- "max-age": Max age of upload to delete
    +
    +
    +
    +## Tutorials
    +### [Mounting Buckets](https://rclone.org/oracleobjectstorage/tutorial_mount/)
    +
    +#  QingStor
    +
    +Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g. `remote:bucket/path/to/dir`.
    +
    +## Configuration
    +
    +Here is an example of making an QingStor configuration.  First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process.
    +
    +

    No remotes found, make a new one? n) New remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config n/r/c/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / QingStor Object Storage  "qingstor" [snip] Storage> qingstor Get QingStor credentials from runtime. Only applies if access_key_id and secret_access_key is blank. Choose a number from below, or type in your own value 1 / Enter QingStor credentials in the next step  "false" 2 / Get QingStor credentials from the environment (env vars or IAM)  "true" env_auth> 1 QingStor Access Key ID - leave blank for anonymous access or runtime credentials. access_key_id> access_key QingStor Secret Access Key (password) - leave blank for anonymous access or runtime credentials. secret_access_key> secret_key Enter an endpoint URL to connection QingStor API. Leave blank will use the default value "https://qingstor.com:443" endpoint> Zone connect to. Default is "pek3a". Choose a number from below, or type in your own value / The Beijing (China) Three Zone 1 | Needs location constraint pek3a.  "pek3a" / The Shanghai (China) First Zone 2 | Needs location constraint sh1a.  "sh1a" zone> 1 Number of connection retry. Leave blank will use the default value "3". connection_retries> Remote config -------------------- [remote] env_auth = false access_key_id = access_key secret_access_key = secret_key endpoint = zone = pek3a connection_retries = -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `remote` and can now be used like this
    +
    +See all buckets
    +
    +    rclone lsd remote:
    +
    +Make a new bucket
    +
    +    rclone mkdir remote:bucket
    +
    +List the contents of a bucket
    +
    +    rclone ls remote:bucket
    +
    +Sync `/home/local/directory` to the remote bucket, deleting any excess
    +files in the bucket.
    +
    +    rclone sync --interactive /home/local/directory remote:bucket
    +
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +### Multipart uploads
    +
    +rclone supports multipart uploads with QingStor which means that it can
    +upload files bigger than 5 GiB. Note that files uploaded with multipart
    +upload don't have an MD5SUM.
    +
    +Note that incomplete multipart uploads older than 24 hours can be
    +removed with `rclone cleanup remote:bucket` just for one bucket
    +`rclone cleanup remote:` for all buckets. QingStor does not ever
    +remove incomplete multipart uploads so it may be necessary to run this
    +from time to time.
    +
    +### Buckets and Zone
    +
    +With QingStor you can list buckets (`rclone lsd`) using any zone,
    +but you can only access the content of a bucket from the zone it was
    +created in.  If you attempt to access a bucket from the wrong zone,
    +you will get an error, `incorrect zone, the bucket is not in 'XXX'
    +zone`.
    +
    +### Authentication
    +
    +There are two ways to supply `rclone` with a set of QingStor
    +credentials. In order of precedence:
    +
    + - Directly in the rclone configuration file (as configured by `rclone config`)
    +   - set `access_key_id` and `secret_access_key`
    + - Runtime configuration:
    +   - set `env_auth` to `true` in the config file
    +   - Exporting the following environment variables before running `rclone`
    +     - Access Key ID: `QS_ACCESS_KEY_ID` or `QS_ACCESS_KEY`
    +     - Secret Access Key: `QS_SECRET_ACCESS_KEY` or `QS_SECRET_KEY`
    +
    +### Restricted filename characters
    +
    +The control characters 0x00-0x1F and / are replaced as in the [default
    +restricted characters set](https://rclone.org/overview/#restricted-characters).  Note
    +that 0x7F is not replaced.
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to qingstor (QingCloud Object Storage).
    +
    +#### --qingstor-env-auth
    +
    +Get QingStor credentials from runtime.
    +
    +Only applies if access_key_id and secret_access_key is blank.
    +
    +Properties:
    +
    +- Config:      env_auth
    +- Env Var:     RCLONE_QINGSTOR_ENV_AUTH
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "false"
    +        - Enter QingStor credentials in the next step.
    +    - "true"
    +        - Get QingStor credentials from the environment (env vars or IAM).
    +
    +#### --qingstor-access-key-id
    +
    +QingStor Access Key ID.
    +
    +Leave blank for anonymous access or runtime credentials.
    +
    +Properties:
    +
    +- Config:      access_key_id
    +- Env Var:     RCLONE_QINGSTOR_ACCESS_KEY_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --qingstor-secret-access-key
    +
    +QingStor Secret Access Key (password).
    +
    +Leave blank for anonymous access or runtime credentials.
    +
    +Properties:
    +
    +- Config:      secret_access_key
    +- Env Var:     RCLONE_QINGSTOR_SECRET_ACCESS_KEY
    +- Type:        string
    +- Required:    false
    +
    +#### --qingstor-endpoint
    +
    +Enter an endpoint URL to connection QingStor API.
    +
    +Leave blank will use the default value "https://qingstor.com:443".
    +
    +Properties:
    +
    +- Config:      endpoint
    +- Env Var:     RCLONE_QINGSTOR_ENDPOINT
    +- Type:        string
    +- Required:    false
    +
    +#### --qingstor-zone
    +
    +Zone to connect to.
    +
    +Default is "pek3a".
    +
    +Properties:
    +
    +- Config:      zone
    +- Env Var:     RCLONE_QINGSTOR_ZONE
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "pek3a"
    +        - The Beijing (China) Three Zone.
    +        - Needs location constraint pek3a.
    +    - "sh1a"
    +        - The Shanghai (China) First Zone.
    +        - Needs location constraint sh1a.
    +    - "gd2a"
    +        - The Guangdong (China) Second Zone.
    +        - Needs location constraint gd2a.
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to qingstor (QingCloud Object Storage).
    +
    +#### --qingstor-connection-retries
    +
    +Number of connection retries.
    +
    +Properties:
    +
    +- Config:      connection_retries
    +- Env Var:     RCLONE_QINGSTOR_CONNECTION_RETRIES
    +- Type:        int
    +- Default:     3
    +
    +#### --qingstor-upload-cutoff
    +
    +Cutoff for switching to chunked upload.
    +
    +Any files larger than this will be uploaded in chunks of chunk_size.
    +The minimum is 0 and the maximum is 5 GiB.
    +
    +Properties:
    +
    +- Config:      upload_cutoff
    +- Env Var:     RCLONE_QINGSTOR_UPLOAD_CUTOFF
    +- Type:        SizeSuffix
    +- Default:     200Mi
    +
    +#### --qingstor-chunk-size
    +
    +Chunk size to use for uploading.
    +
    +When uploading files larger than upload_cutoff they will be uploaded
    +as multipart uploads using this chunk size.
    +
    +Note that "--qingstor-upload-concurrency" chunks of this size are buffered
    +in memory per transfer.
    +
    +If you are transferring large files over high-speed links and you have
    +enough memory, then increasing this will speed up the transfers.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_QINGSTOR_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     4Mi
    +
    +#### --qingstor-upload-concurrency
    +
    +Concurrency for multipart uploads.
    +
    +This is the number of chunks of the same file that are uploaded
    +concurrently.
    +
    +NB if you set this to > 1 then the checksums of multipart uploads
    +become corrupted (the uploads themselves are not corrupted though).
    +
    +If you are uploading small numbers of large files over high-speed links
    +and these uploads do not fully utilize your bandwidth, then increasing
    +this may help to speed up the transfers.
    +
    +Properties:
    +
    +- Config:      upload_concurrency
    +- Env Var:     RCLONE_QINGSTOR_UPLOAD_CONCURRENCY
    +- Type:        int
    +- Default:     1
    +
    +#### --qingstor-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_QINGSTOR_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Ctl,InvalidUtf8
    +
    +
    +
    +## Limitations
    +
    +`rclone about` is not supported by the qingstor backend. Backends without
    +this capability cannot determine free space for an rclone mount or
    +use policy `mfs` (most free space) as a member of an rclone union
    +remote.
    +
    +See [List of backends that do not support rclone about](https://rclone.org/overview/#optional-features) and [rclone about](https://rclone.org/commands/rclone_about/)
    +
    +#  Quatrix
    +
    +Quatrix by Maytech is [Quatrix Secure Compliant File Sharing | Maytech](https://www.maytech.net/products/quatrix-business).
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g., `remote:directory/subdirectory`.
    +
    +The initial setup for Quatrix involves getting an API Key from Quatrix. You can get the API key in the user's profile at `https://<account>/profile/api-keys`
    +or with the help of the API - https://docs.maytech.net/quatrix/quatrix-api/api-explorer#/API-Key/post_api_key_create.
    +
    +See complete Swagger documentation for Quatrix - https://docs.maytech.net/quatrix/quatrix-api/api-explorer
    +
    +## Configuration
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Quatrix by Maytech  "quatrix" [snip] Storage> quatrix API key for accessing Quatrix account. api_key> your_api_key Host name of Quatrix account. host> example.quatrix.it

    +
    +++ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement[remote] api_key = your_api_key host = example.quatrix.it
    y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y ```
    Once configured you can then use rclone like this,
    List directories in top level of your Quatrix
    rclone lsd remote:
    List all the files in your Quatrix
    rclone ls remote:
    To copy a local directory to an Quatrix directory called backup
    rclone copy /home/source remote:backup
    ### API key validity
    API Key is created with no expiration date. It will be valid until you delete or deactivate it in your account. After disabling, the API Key can be enabled back. If the API Key was deleted and a new key was created, you can update it in rclone config. The same happens if the hostname was changed.
    ``` $ rclone config Current remotes:
    Name Type ==== ==== remote quatrix
    e) Edit existing remote n) New remote d) Delete remote r) Rename remote c) Copy remote s) Set configuration password q) Quit config e/n/d/r/c/s/q> e Choose a number from below, or type in an existing value 1 > remote remote> remote
    +

    [remote] type = quatrix host = some_host.quatrix.it api_key = your_api_key -------------------- Edit remote Option api_key. API key for accessing Quatrix account Enter a string value. Press Enter for the default (your_api_key) api_key> Option host. Host name of Quatrix account Enter a string value. Press Enter for the default (some_host.quatrix.it).

    + +++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + - - - + - -
    [remote] type = quatrix host = some_host.quatrix.it api_key = your_api_key
    y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y ```
    ### Modified time and hashes
    Quatrix allows modification times to be set on objects accurate to 1 microsecond. These will be used to detect whether objects need syncing or not.
    Quatrix does not support hashes, so you cannot use the --checksum flag.
    ### Restricted filename characters
    File names in Quatrix are case sensitive and have limitations like the maximum length of a filename is 255, and the minimum length is 1. A file name cannot be equal to . or .. nor contain / , \ or non-printable ascii.
    ### Transfers
    For files above 50 MiB rclone will use a chunked transfer. Rclone will upload up to --transfers chunks at the same time (shared among all multipart uploads). Chunks are buffered in memory, and the minimal chunk size is 10_000_000 bytes by default, and it can be changed in the advanced configuration, so increasing --transfers will increase the memory use. The chunk size has a maximum size limit, which is set to 100_000_000 bytes by default and can be changed in the advanced configuration. The size of the uploaded chunk will dynamically change depending on the upload speed. The total memory use equals the number of transfers multiplied by the minimal chunk size. In case there's free memory allocated for the upload (which equals the difference of maximal_summary_chunk_size and minimal_chunk_size * transfers), the chunk size may increase in case of high upload speed. As well as it can decrease in case of upload speed problems. If no free memory is available, all chunks will equal minimal_chunk_size.
    ### Deleting files
    Files you delete with rclone will end up in Trash and be stored there for 30 days. Quatrix also provides an API to permanently delete files and an API to empty the Trash so that you can remove files permanently from your account.
    ### Standard options
    Here are the Standard options specific to quatrix (Quatrix by Maytech).
    #### --quatrix-api-key
    API key for accessing Quatrix account
    Properties:
    - Config: api_key - Env Var: RCLONE_QUATRIX_API_KEY - Type: string - Required: true
    #### --quatrix-host
    Host name of Quatrix account
    Properties:
    - Config: host - Env Var: RCLONE_QUATRIX_HOST - Type: string - Required: true
    ### Advanced options
    Here are the Advanced options specific to quatrix (Quatrix by Maytech).
    NUL0x00#### --quatrix-encoding
    /0x2FThe encoding for the backend.
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to swift (OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)).

    -

    --swift-env-auth

    -

    Get swift credentials from environment variables in standard OpenStack form.

    -

    Properties:

    - -

    --swift-user

    -

    User name to log in (OS_USERNAME).

    -

    Properties:

    - -

    --swift-key

    -

    API key or password (OS_PASSWORD).

    -

    Properties:

    - -

    --swift-auth

    -

    Authentication URL for server (OS_AUTH_URL).

    -

    Properties:

    - -

    --swift-user-id

    -

    User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).

    -

    Properties:

    - -

    --swift-domain

    -

    User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)

    -

    Properties:

    - -

    --swift-tenant

    -

    Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME).

    -

    Properties:

    - -

    --swift-tenant-id

    -

    Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID).

    -

    Properties:

    - -

    --swift-tenant-domain

    -

    Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME).

    -

    Properties:

    - -

    --swift-region

    -

    Region name - optional (OS_REGION_NAME).

    -

    Properties:

    - -

    --swift-storage-url

    -

    Storage URL - optional (OS_STORAGE_URL).

    -

    Properties:

    - -

    --swift-auth-token

    -

    Auth Token from alternate authentication - optional (OS_AUTH_TOKEN).

    -

    Properties:

    - -

    --swift-application-credential-id

    -

    Application Credential ID (OS_APPLICATION_CREDENTIAL_ID).

    -

    Properties:

    - -

    --swift-application-credential-name

    -

    Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME).

    -

    Properties:

    - -

    --swift-application-credential-secret

    -

    Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET).

    -

    Properties:

    - -

    --swift-auth-version

    -

    AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION).

    -

    Properties:

    - -

    --swift-endpoint-type

    -

    Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE).

    -

    Properties:

    - -

    --swift-storage-policy

    -

    The storage policy to use when creating a new container.

    -

    This applies the specified storage policy when creating a new container. The policy cannot be changed afterwards. The allowed configuration values and their meaning depend on your Swift storage provider.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to swift (OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)).

    -

    --swift-leave-parts-on-error

    -

    If true avoid calling abort upload on a failure.

    -

    It should be set to true for resuming uploads across different sessions.

    -

    Properties:

    - -

    --swift-chunk-size

    -

    Above this size files will be chunked into a _segments container.

    -

    Above this size files will be chunked into a _segments container. The default for this is 5 GiB which is its maximum value.

    -

    Properties:

    - -

    --swift-no-chunk

    -

    Don't chunk files during streaming upload.

    -

    When doing streaming uploads (e.g. using rcat or mount) setting this flag will cause the swift backend to not upload chunked files.

    -

    This will limit the maximum upload size to 5 GiB. However non chunked files are easier to deal with and have an MD5SUM.

    -

    Rclone will still chunk files bigger than chunk_size when doing normal copy operations.

    -

    Properties:

    - -

    --swift-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    The Swift API doesn't return a correct MD5SUM for segmented files (Dynamic or Static Large Objects) so rclone won't check or use the MD5SUM for these.

    -

    Troubleshooting

    -

    Rclone gives Failed to create file system for "remote:": Bad Request

    -

    Due to an oddity of the underlying swift library, it gives a "Bad Request" error rather than a more sensible error when the authentication fails for Swift.

    -

    So this most likely means your username / password is wrong. You can investigate further with the --dump-bodies flag.

    -

    This may also be caused by specifying the region when you shouldn't have (e.g. OVH).

    -

    Rclone gives Failed to create file system: Response didn't have storage url and auth token

    -

    This is most likely caused by forgetting to specify your tenant when setting up a swift remote.

    -

    OVH Cloud Archive

    -

    To use rclone with OVH cloud archive, first use rclone config to set up a swift backend with OVH, choosing pca as the storage_policy.

    -

    Uploading Objects

    -

    Uploading objects to OVH cloud archive is no different to object storage, you just simply run the command you like (move, copy or sync) to upload the objects. Once uploaded the objects will show in a "Frozen" state within the OVH control panel.

    -

    Retrieving Objects

    -

    To retrieve objects use rclone copy as normal. If the objects are in a frozen state then rclone will ask for them all to be unfrozen and it will wait at the end of the output with a message like the following:

    -

    2019/03/23 13:06:33 NOTICE: Received retry after error - sleeping until 2019-03-23T13:16:33.481657164+01:00 (9m59.99985121s)

    -

    Rclone will wait for the time specified then retry the copy.

    -

    pCloud

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for pCloud involves getting a token from pCloud which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Pcloud
    -   \ "pcloud"
    -[snip]
    -Storage> pcloud
    -Pcloud App Client Id - leave blank normally.
    -client_id> 
    -Pcloud App Client Secret - leave blank normally.
    -client_secret> 
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -client_id = 
    -client_secret = 
    -token = {"access_token":"XXX","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from pCloud. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your pCloud

    -
    rclone lsd remote:
    -

    List all the files in your pCloud

    -
    rclone ls remote:
    -

    To copy a local directory to a pCloud directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    pCloud allows modification times to be set on objects accurate to 1 second. These will be used to detect whether objects need syncing or not. In order to set a Modification time pCloud requires the object be re-uploaded.

    -

    pCloud supports MD5 and SHA1 hashes in the US region, and SHA1 and SHA256 hashes in the EU region, so you can use the --checksum flag.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    See the encoding section in the overview for more info.
    Properties:
    - Config: encoding - Env Var: RCLONE_QUATRIX_ENCODING - Type: MultiEncoder - Default: Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
    #### --quatrix-effective-upload-time
    Wanted upload time for one chunk
    Properties:
    - Config: effective_upload_time - Env Var: RCLONE_QUATRIX_EFFECTIVE_UPLOAD_TIME - Type: string - Default: "4s"
    #### --quatrix-minimal-chunk-size
    The minimal size for one chunk
    Properties:
    - Config: minimal_chunk_size - Env Var: RCLONE_QUATRIX_MINIMAL_CHUNK_SIZE - Type: SizeSuffix - Default: 9.537Mi
    #### --quatrix-maximal-summary-chunk-size
    The maximal summary for all chunks. It should not be less than 'transfers'*'minimal_chunk_size'
    Properties:
    - Config: maximal_summary_chunk_size - Env Var: RCLONE_QUATRIX_MAXIMAL_SUMMARY_CHUNK_SIZE - Type: SizeSuffix - Default: 95.367Mi
    #### --quatrix-hard-delete
    Delete files permanently rather than putting them into the trash.
    Properties:
    - Config: hard_delete - Env Var: RCLONE_QUATRIX_HARD_DELETE - Type: bool - Default: false
    ## Storage usage
    \0x5CThe storage usage in Quatrix is restricted to the account during the purchase. You can restrict any user with a smaller storage limit. The account limit is applied if the user has no custom storage limit. Once you've reached the limit, the upload of files will fail. This can be fixed by freeing up the space or increasing the quota.
    ## Server-side operations
    Quatrix supports server-side operations (copy and move). In case of conflict, files are overwritten during server-side operation.
    # Sia
    Sia (sia.tech) is a decentralized cloud storage platform based on the blockchain technology. With rclone you can use it like any other remote filesystem or mount Sia folders locally. The technology behind it involves a number of new concepts such as Siacoins and Wallet, Blockchain and Consensus, Renting and Hosting, and so on. If you are new to it, you'd better first familiarize yourself using their excellent support documentation.
    ## Introduction
    Before you can use rclone with Sia, you will need to have a running copy of Sia-UI or siad (the Sia daemon) locally on your computer or on local network (e.g. a NAS). Please follow the Get started guide and install one.
    rclone interacts with Sia network by talking to the Sia daemon via HTTP API which is usually available on port 9980. By default you will run the daemon locally on the same computer so it's safe to leave the API password blank (the API URL will be http://127.0.0.1:9980 making external access impossible).
    However, if you want to access Sia daemon running on another node, for example due to memory constraints or because you want to share single daemon between several rclone and Sia-UI instances, you'll need to make a few more provisions: - Ensure you have Sia daemon installed directly or in a docker container because Sia-UI does not support this mode natively. - Run it on externally accessible port, for example provide --api-addr :9980 and --disable-api-security arguments on the daemon command line. - Enforce API password for the siad daemon via environment variable SIA_API_PASSWORD or text file named apipassword in the daemon directory. - Set rclone backend option api_password taking it from above locations.
    Notes: 1. If your wallet is locked, rclone cannot unlock it automatically. You should either unlock it in advance by using Sia-UI or via command line siac wallet unlock. Alternatively you can make siad unlock your wallet automatically upon startup by running it with environment variable SIA_WALLET_PASSWORD. 2. If siad cannot find the SIA_API_PASSWORD variable or the apipassword file in the SIA_DIR directory, it will generate a random password and store in the text file named apipassword under YOUR_HOME/.sia/ directory on Unix or C:\Users\YOUR_HOME\AppData\Local\Sia\apipassword on Windows. Remember this when you configure password in rclone. 3. The only way to use siad without API password is to run it on localhost with command line argument --authorize-api=false, but this is insecure and strongly discouraged.
    ## Configuration
    Here is an example of how to make a sia remote called mySia. First, run:
    rclone config
    This will guide you through an interactive setup process:
    ``` No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> mySia Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value ... 29 / Sia Decentralized Cloud  "sia" ... Storage> sia Sia daemon API URL, like http://sia.daemon.host:9980. Note that siad must run with --disable-api-security to open API port for other hosts (not recommended). Keep default if Sia daemon runs on localhost. Enter a string value. Press Enter for the default ("http://127.0.0.1:9980"). api_url> http://127.0.0.1:9980 Sia Daemon API Password. Can be found in the apipassword file located in HOME/.sia/ or in the daemon directory. y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g/n> y Enter the password: password: Confirm the password: password: Edit advanced config? y) Yes n) No (default) y/n> n
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Deleting files

    -

    Deleted files will be moved to the trash. Your subscription level will determine how long items stay in the trash. rclone cleanup can be used to empty the trash.

    -

    Root folder ID

    -

    You can set the root_folder_id for rclone. This is the directory (identified by its Folder ID) that rclone considers to be the root of your pCloud drive.

    -

    Normally you will leave this blank and rclone will determine the correct root to use itself.

    -

    However you can set this to restrict rclone to a specific folder hierarchy.

    -

    In order to do this you will have to find the Folder ID of the directory you wish rclone to display. This will be the folder field of the URL when you open the relevant folder in the pCloud web interface.

    -

    So if the folder you want rclone to use has a URL which looks like https://my.pcloud.com/#page=filemanager&folder=5xxxxxxxx8&tpl=foldergrid in the browser, then you use 5xxxxxxxx8 as the root_folder_id in the config.

    -

    Standard options

    -

    Here are the standard options specific to pcloud (Pcloud).

    -

    --pcloud-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    - -

    --pcloud-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to pcloud (Pcloud).

    -

    --pcloud-token

    -

    OAuth Access Token as a JSON blob.

    -

    Properties:

    - -

    --pcloud-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --pcloud-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    - -

    --pcloud-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    --pcloud-root-folder-id

    -

    Fill in for rclone to use a non root folder as its starting point.

    -

    Properties:

    - -

    --pcloud-hostname

    -

    Hostname to connect to.

    -

    This is normally set when rclone initially does the oauth connection, however you will need to set it by hand if you are using remote config with rclone authorize.

    -

    Properties:

    - -

    premiumize.me

    -

    Paths are specified as remote:path

    -

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for premiumize.me involves getting a token from premiumize.me which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / premiumize.me
    -   \ "premiumizeme"
    -[snip]
    -Storage> premiumizeme
    -** See help for premiumizeme backend at: https://rclone.org/premiumizeme/ **
    +

    [mySia] type = sia api_url = http://127.0.0.1:9980 api_password = *** ENCRYPTED *** -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +Once configured, you can then use `rclone` like this:
    +
    +- List directories in top level of your Sia storage
    +
    +

    rclone lsd mySia:

    +
    
    +- List all the files in your Sia storage
    +
    +

    rclone ls mySia:

    +
    
    +- Upload a local directory to the Sia directory called _backup_
    +
    +

    rclone copy /home/source mySia:backup

    +
    
    +
    +### Standard options
    +
    +Here are the Standard options specific to sia (Sia Decentralized Cloud).
    +
    +#### --sia-api-url
    +
    +Sia daemon API URL, like http://sia.daemon.host:9980.
    +
    +Note that siad must run with --disable-api-security to open API port for other hosts (not recommended).
    +Keep default if Sia daemon runs on localhost.
    +
    +Properties:
    +
    +- Config:      api_url
    +- Env Var:     RCLONE_SIA_API_URL
    +- Type:        string
    +- Default:     "http://127.0.0.1:9980"
    +
    +#### --sia-api-password
    +
    +Sia Daemon API Password.
    +
    +Can be found in the apipassword file located in HOME/.sia/ or in the daemon directory.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      api_password
    +- Env Var:     RCLONE_SIA_API_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to sia (Sia Decentralized Cloud).
    +
    +#### --sia-user-agent
    +
    +Siad User Agent
    +
    +Sia daemon requires the 'Sia-Agent' user agent by default for security
    +
    +Properties:
    +
    +- Config:      user_agent
    +- Env Var:     RCLONE_SIA_USER_AGENT
    +- Type:        string
    +- Default:     "Sia-Agent"
    +
    +#### --sia-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_SIA_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,Question,Hash,Percent,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +- Modification times not supported
    +- Checksums not supported
    +- `rclone about` not supported
    +- rclone can work only with _Siad_ or _Sia-UI_ at the moment,
    +  the **SkyNet daemon is not supported yet.**
    +- Sia does not allow control characters or symbols like question and pound
    +  signs in file names. rclone will transparently [encode](https://rclone.org/overview/#encoding)
    +  them for you, but you'd better be aware
    +
    +#  Swift
    +
    +Swift refers to [OpenStack Object Storage](https://docs.openstack.org/swift/latest/).
    +Commercial implementations of that being:
    +
    +  * [Rackspace Cloud Files](https://www.rackspace.com/cloud/files/)
    +  * [Memset Memstore](https://www.memset.com/cloud/storage/)
    +  * [OVH Object Storage](https://www.ovh.co.uk/public-cloud/storage/object-storage/)
    +  * [Oracle Cloud Storage](https://docs.oracle.com/en-us/iaas/integration/doc/configure-object-storage.html)
    +  * [Blomp Cloud Storage](https://www.blomp.com/cloud-storage/)
    +  * [IBM Bluemix Cloud ObjectStorage Swift](https://console.bluemix.net/docs/infrastructure/objectstorage-swift/index.html)
    +
    +Paths are specified as `remote:container` (or `remote:` for the `lsd`
    +command.)  You may put subdirectories in too, e.g. `remote:container/path/to/dir`.
    +
    +## Configuration
    +
    +Here is an example of making a swift configuration.  First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process.
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)  "swift" [snip] Storage> swift Get swift credentials from environment variables in standard OpenStack form. Choose a number from below, or type in your own value 1 / Enter swift credentials in the next step  "false" 2 / Get swift credentials from environment vars. Leave other fields blank if using this.  "true" env_auth> true User name to log in (OS_USERNAME). user> API key or password (OS_PASSWORD). key> Authentication URL for server (OS_AUTH_URL). Choose a number from below, or type in your own value 1 / Rackspace US  "https://auth.api.rackspacecloud.com/v1.0" 2 / Rackspace UK  "https://lon.auth.api.rackspacecloud.com/v1.0" 3 / Rackspace v2  "https://identity.api.rackspacecloud.com/v2.0" 4 / Memset Memstore UK  "https://auth.storage.memset.com/v1.0" 5 / Memset Memstore UK v2  "https://auth.storage.memset.com/v2.0" 6 / OVH  "https://auth.cloud.ovh.net/v3" 7 / Blomp Cloud Storage  "https://authenticate.ain.net" auth> User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID). user_id> User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME) domain> Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME) tenant> Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID) tenant_id> Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME) tenant_domain> Region name - optional (OS_REGION_NAME) region> Storage URL - optional (OS_STORAGE_URL) storage_url> Auth Token from alternate authentication - optional (OS_AUTH_TOKEN) auth_token> AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION) auth_version> Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE) Choose a number from below, or type in your own value 1 / Public (default, choose this if not sure)  "public" 2 / Internal (use internal service net)  "internal" 3 / Admin  "admin" endpoint_type> Remote config -------------------- [test] env_auth = true user = key = auth = user_id = domain = tenant = tenant_id = tenant_domain = region = storage_url = auth_token = auth_version = endpoint_type = -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `remote` and can now be used like this
    +
    +See all containers
    +
    +    rclone lsd remote:
    +
    +Make a new container
    +
    +    rclone mkdir remote:container
    +
    +List the contents of a container
    +
    +    rclone ls remote:container
    +
    +Sync `/home/local/directory` to the remote container, deleting any
    +excess files in the container.
    +
    +    rclone sync --interactive /home/local/directory remote:container
    +
    +### Configuration from an OpenStack credentials file
    +
    +An OpenStack credentials file typically looks something something
    +like this (without the comments)
    +
    +

    export OS_AUTH_URL=https://a.provider.net/v2.0 export OS_TENANT_ID=ffffffffffffffffffffffffffffffff export OS_TENANT_NAME="1234567890123456" export OS_USERNAME="123abc567xy" echo "Please enter your OpenStack Password: " read -sr OS_PASSWORD_INPUT export OS_PASSWORD=$OS_PASSWORD_INPUT export OS_REGION_NAME="SBG1" if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi

    +
    
    +The config file needs to look something like this where `$OS_USERNAME`
    +represents the value of the `OS_USERNAME` variable - `123abc567xy` in
    +the example above.
    +
    +

    [remote] type = swift user = $OS_USERNAME key = $OS_PASSWORD auth = $OS_AUTH_URL tenant = $OS_TENANT_NAME

    +
    
    +Note that you may (or may not) need to set `region` too - try without first.
    +
    +### Configuration from the environment
    +
    +If you prefer you can configure rclone to use swift using a standard
    +set of OpenStack environment variables.
    +
    +When you run through the config, make sure you choose `true` for
    +`env_auth` and leave everything else blank.
    +
    +rclone will then set any empty config parameters from the environment
    +using standard OpenStack environment variables.  There is [a list of
    +the
    +variables](https://godoc.org/github.com/ncw/swift#Connection.ApplyEnvironment)
    +in the docs for the swift library.
    +
    +### Using an alternate authentication method
    +
    +If your OpenStack installation uses a non-standard authentication method
    +that might not be yet supported by rclone or the underlying swift library, 
    +you can authenticate externally (e.g. calling manually the `openstack` 
    +commands to get a token). Then, you just need to pass the two 
    +configuration variables ``auth_token`` and ``storage_url``. 
    +If they are both provided, the other variables are ignored. rclone will 
    +not try to authenticate but instead assume it is already authenticated 
    +and use these two variables to access the OpenStack installation.
    +
    +#### Using rclone without a config file
    +
    +You can use rclone with swift without a config file, if desired, like
    +this:
    +
    +

    source openstack-credentials-file export RCLONE_CONFIG_MYREMOTE_TYPE=swift export RCLONE_CONFIG_MYREMOTE_ENV_AUTH=true rclone lsd myremote:

    +
    
    +### --fast-list
    +
    +This remote supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +
    +### --update and --use-server-modtime
    +
    +As noted below, the modified time is stored on metadata on the object. It is
    +used by default for all operations that require checking the time a file was
    +last updated. It allows rclone to treat the remote more like a true filesystem,
    +but it is inefficient because it requires an extra API call to retrieve the
    +metadata.
    +
    +For many operations, the time the object was last uploaded to the remote is
    +sufficient to determine if it is "dirty". By using `--update` along with
    +`--use-server-modtime`, you can avoid the extra API call and simply upload
    +files whose local modtime is newer than the time it was last uploaded.
    +
    +### Modified time
    +
    +The modified time is stored as metadata on the object as
    +`X-Object-Meta-Mtime` as floating point since the epoch accurate to 1
    +ns.
    +
    +This is a de facto standard (used in the official python-swiftclient
    +amongst others) for storing the modification time for an object.
    +
    +### Restricted filename characters
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| NUL       | 0x00  | ␀           |
    +| /         | 0x2F  | /          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to swift (OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)).
    +
    +#### --swift-env-auth
    +
    +Get swift credentials from environment variables in standard OpenStack form.
    +
    +Properties:
    +
    +- Config:      env_auth
    +- Env Var:     RCLONE_SWIFT_ENV_AUTH
    +- Type:        bool
    +- Default:     false
    +- Examples:
    +    - "false"
    +        - Enter swift credentials in the next step.
    +    - "true"
    +        - Get swift credentials from environment vars.
    +        - Leave other fields blank if using this.
    +
    +#### --swift-user
    +
    +User name to log in (OS_USERNAME).
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_SWIFT_USER
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-key
    +
    +API key or password (OS_PASSWORD).
    +
    +Properties:
    +
    +- Config:      key
    +- Env Var:     RCLONE_SWIFT_KEY
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-auth
    +
    +Authentication URL for server (OS_AUTH_URL).
    +
    +Properties:
    +
    +- Config:      auth
    +- Env Var:     RCLONE_SWIFT_AUTH
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - "https://auth.api.rackspacecloud.com/v1.0"
    +        - Rackspace US
    +    - "https://lon.auth.api.rackspacecloud.com/v1.0"
    +        - Rackspace UK
    +    - "https://identity.api.rackspacecloud.com/v2.0"
    +        - Rackspace v2
    +    - "https://auth.storage.memset.com/v1.0"
    +        - Memset Memstore UK
    +    - "https://auth.storage.memset.com/v2.0"
    +        - Memset Memstore UK v2
    +    - "https://auth.cloud.ovh.net/v3"
    +        - OVH
    +    - "https://authenticate.ain.net"
    +        - Blomp Cloud Storage
    +
    +#### --swift-user-id
    +
    +User ID to log in - optional - most swift systems use user and leave this blank (v3 auth) (OS_USER_ID).
    +
    +Properties:
    +
    +- Config:      user_id
    +- Env Var:     RCLONE_SWIFT_USER_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-domain
    +
    +User domain - optional (v3 auth) (OS_USER_DOMAIN_NAME)
    +
    +Properties:
    +
    +- Config:      domain
    +- Env Var:     RCLONE_SWIFT_DOMAIN
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-tenant
    +
    +Tenant name - optional for v1 auth, this or tenant_id required otherwise (OS_TENANT_NAME or OS_PROJECT_NAME).
    +
    +Properties:
    +
    +- Config:      tenant
    +- Env Var:     RCLONE_SWIFT_TENANT
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-tenant-id
    +
    +Tenant ID - optional for v1 auth, this or tenant required otherwise (OS_TENANT_ID).
    +
    +Properties:
    +
    +- Config:      tenant_id
    +- Env Var:     RCLONE_SWIFT_TENANT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-tenant-domain
    +
    +Tenant domain - optional (v3 auth) (OS_PROJECT_DOMAIN_NAME).
    +
    +Properties:
    +
    +- Config:      tenant_domain
    +- Env Var:     RCLONE_SWIFT_TENANT_DOMAIN
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-region
    +
    +Region name - optional (OS_REGION_NAME).
    +
    +Properties:
    +
    +- Config:      region
    +- Env Var:     RCLONE_SWIFT_REGION
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-storage-url
    +
    +Storage URL - optional (OS_STORAGE_URL).
    +
    +Properties:
    +
    +- Config:      storage_url
    +- Env Var:     RCLONE_SWIFT_STORAGE_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-auth-token
    +
    +Auth Token from alternate authentication - optional (OS_AUTH_TOKEN).
    +
    +Properties:
    +
    +- Config:      auth_token
    +- Env Var:     RCLONE_SWIFT_AUTH_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-application-credential-id
    +
    +Application Credential ID (OS_APPLICATION_CREDENTIAL_ID).
    +
    +Properties:
    +
    +- Config:      application_credential_id
    +- Env Var:     RCLONE_SWIFT_APPLICATION_CREDENTIAL_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-application-credential-name
    +
    +Application Credential Name (OS_APPLICATION_CREDENTIAL_NAME).
    +
    +Properties:
    +
    +- Config:      application_credential_name
    +- Env Var:     RCLONE_SWIFT_APPLICATION_CREDENTIAL_NAME
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-application-credential-secret
    +
    +Application Credential Secret (OS_APPLICATION_CREDENTIAL_SECRET).
    +
    +Properties:
    +
    +- Config:      application_credential_secret
    +- Env Var:     RCLONE_SWIFT_APPLICATION_CREDENTIAL_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --swift-auth-version
    +
    +AuthVersion - optional - set to (1,2,3) if your auth URL has no version (ST_AUTH_VERSION).
    +
    +Properties:
    +
    +- Config:      auth_version
    +- Env Var:     RCLONE_SWIFT_AUTH_VERSION
    +- Type:        int
    +- Default:     0
    +
    +#### --swift-endpoint-type
    +
    +Endpoint type to choose from the service catalogue (OS_ENDPOINT_TYPE).
    +
    +Properties:
    +
    +- Config:      endpoint_type
    +- Env Var:     RCLONE_SWIFT_ENDPOINT_TYPE
    +- Type:        string
    +- Default:     "public"
    +- Examples:
    +    - "public"
    +        - Public (default, choose this if not sure)
    +    - "internal"
    +        - Internal (use internal service net)
    +    - "admin"
    +        - Admin
    +
    +#### --swift-storage-policy
    +
    +The storage policy to use when creating a new container.
    +
    +This applies the specified storage policy when creating a new
    +container. The policy cannot be changed afterwards. The allowed
    +configuration values and their meaning depend on your Swift storage
    +provider.
    +
    +Properties:
    +
    +- Config:      storage_policy
    +- Env Var:     RCLONE_SWIFT_STORAGE_POLICY
    +- Type:        string
    +- Required:    false
    +- Examples:
    +    - ""
    +        - Default
    +    - "pcs"
    +        - OVH Public Cloud Storage
    +    - "pca"
    +        - OVH Public Cloud Archive
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to swift (OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)).
    +
    +#### --swift-leave-parts-on-error
    +
    +If true avoid calling abort upload on a failure.
    +
    +It should be set to true for resuming uploads across different sessions.
    +
    +Properties:
    +
    +- Config:      leave_parts_on_error
    +- Env Var:     RCLONE_SWIFT_LEAVE_PARTS_ON_ERROR
    +- Type:        bool
    +- Default:     false
    +
    +#### --swift-chunk-size
    +
    +Above this size files will be chunked into a _segments container.
    +
    +Above this size files will be chunked into a _segments container.  The
    +default for this is 5 GiB which is its maximum value.
    +
    +Properties:
    +
    +- Config:      chunk_size
    +- Env Var:     RCLONE_SWIFT_CHUNK_SIZE
    +- Type:        SizeSuffix
    +- Default:     5Gi
    +
    +#### --swift-no-chunk
    +
    +Don't chunk files during streaming upload.
    +
    +When doing streaming uploads (e.g. using rcat or mount) setting this
    +flag will cause the swift backend to not upload chunked files.
    +
    +This will limit the maximum upload size to 5 GiB. However non chunked
    +files are easier to deal with and have an MD5SUM.
    +
    +Rclone will still chunk files bigger than chunk_size when doing normal
    +copy operations.
    +
    +Properties:
    +
    +- Config:      no_chunk
    +- Env Var:     RCLONE_SWIFT_NO_CHUNK
    +- Type:        bool
    +- Default:     false
    +
    +#### --swift-no-large-objects
    +
    +Disable support for static and dynamic large objects
    +
    +Swift cannot transparently store files bigger than 5 GiB. There are
    +two schemes for doing that, static or dynamic large objects, and the
    +API does not allow rclone to determine whether a file is a static or
    +dynamic large object without doing a HEAD on the object. Since these
    +need to be treated differently, this means rclone has to issue HEAD
    +requests for objects for example when reading checksums.
    +
    +When `no_large_objects` is set, rclone will assume that there are no
    +static or dynamic large objects stored. This means it can stop doing
    +the extra HEAD calls which in turn increases performance greatly
    +especially when doing a swift to swift transfer with `--checksum` set.
    +
    +Setting this option implies `no_chunk` and also that no files will be
    +uploaded in chunks, so files bigger than 5 GiB will just fail on
    +upload.
    +
    +If you set this option and there *are* static or dynamic large objects,
    +then this will give incorrect hashes for them. Downloads will succeed,
    +but other operations such as Remove and Copy will fail.
    +
    +
    +Properties:
    +
    +- Config:      no_large_objects
    +- Env Var:     RCLONE_SWIFT_NO_LARGE_OBJECTS
    +- Type:        bool
    +- Default:     false
    +
    +#### --swift-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_SWIFT_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,InvalidUtf8
    +
    +
    +
    +## Limitations
    +
    +The Swift API doesn't return a correct MD5SUM for segmented files
    +(Dynamic or Static Large Objects) so rclone won't check or use the
    +MD5SUM for these.
    +
    +## Troubleshooting
    +
    +### Rclone gives Failed to create file system for "remote:": Bad Request
    +
    +Due to an oddity of the underlying swift library, it gives a "Bad
    +Request" error rather than a more sensible error when the
    +authentication fails for Swift.
    +
    +So this most likely means your username / password is wrong.  You can
    +investigate further with the `--dump-bodies` flag.
    +
    +This may also be caused by specifying the region when you shouldn't
    +have (e.g. OVH).
    +
    +### Rclone gives Failed to create file system: Response didn't have storage url and auth token
    +
    +This is most likely caused by forgetting to specify your tenant when
    +setting up a swift remote.
    +
    +## OVH Cloud Archive
    +
    +To use rclone with OVH cloud archive, first use `rclone config` to set up a `swift` backend with OVH, choosing `pca` as the `storage_policy`.
    +
    +### Uploading Objects
    +
    +Uploading objects to OVH cloud archive is no different to object storage, you just simply run the command you like (move, copy or sync) to upload the objects. Once uploaded the objects will show in a "Frozen" state within the OVH control panel.
    +
    +### Retrieving Objects
    +
    +To retrieve objects use `rclone copy` as normal. If the objects are in a frozen state then rclone will ask for them all to be unfrozen and it will wait at the end of the output with a message like the following:
    +
    +`2019/03/23 13:06:33 NOTICE: Received retry after error - sleeping until 2019-03-23T13:16:33.481657164+01:00 (9m59.99985121s)`
    +
    +Rclone will wait for the time specified then retry the copy.
    +
    +#  pCloud
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for pCloud involves getting a token from pCloud which you
    +need to do in your browser.  `rclone config` walks you through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Pcloud  "pcloud" [snip] Storage> pcloud Pcloud App Client Id - leave blank normally. client_id> Pcloud App Client Secret - leave blank normally. client_secret> Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] client_id = client_secret = token = {"access_token":"XXX","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from pCloud. This only runs from the moment it opens
    +your browser to the moment you get back the verification code.  This
    +is on `http://127.0.0.1:53682/` and this it may require you to unblock
    +it temporarily if you are running a host firewall.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your pCloud
    +
    +    rclone lsd remote:
    +
    +List all the files in your pCloud
    +
    +    rclone ls remote:
    +
    +To copy a local directory to a pCloud directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time and hashes ###
    +
    +pCloud allows modification times to be set on objects accurate to 1
    +second.  These will be used to detect whether objects need syncing or
    +not.  In order to set a Modification time pCloud requires the object
    +be re-uploaded.
    +
    +pCloud supports MD5 and SHA1 hashes in the US region, and SHA1 and SHA256
    +hashes in the EU region, so you can use the `--checksum` flag.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \          |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Deleting files
    +
    +Deleted files will be moved to the trash.  Your subscription level
    +will determine how long items stay in the trash.  `rclone cleanup` can
    +be used to empty the trash.
    +
    +### Emptying the trash
    +
    +Due to an API limitation, the `rclone cleanup` command will only work if you 
    +set your username and password in the advanced options for this backend. 
    +Since we generally want to avoid storing user passwords in the rclone config
    +file, we advise you to only set this up if you need the `rclone cleanup` command to work.
    +
    +### Root folder ID
    +
    +You can set the `root_folder_id` for rclone.  This is the directory
    +(identified by its `Folder ID`) that rclone considers to be the root
    +of your pCloud drive.
    +
    +Normally you will leave this blank and rclone will determine the
    +correct root to use itself.
    +
    +However you can set this to restrict rclone to a specific folder
    +hierarchy.
    +
    +In order to do this you will have to find the `Folder ID` of the
    +directory you wish rclone to display.  This will be the `folder` field
    +of the URL when you open the relevant folder in the pCloud web
    +interface.
    +
    +So if the folder you want rclone to use has a URL which looks like
    +`https://my.pcloud.com/#page=filemanager&folder=5xxxxxxxx8&tpl=foldergrid`
    +in the browser, then you use `5xxxxxxxx8` as
    +the `root_folder_id` in the config.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to pcloud (Pcloud).
    +
    +#### --pcloud-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_PCLOUD_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --pcloud-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_PCLOUD_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to pcloud (Pcloud).
    +
    +#### --pcloud-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_PCLOUD_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --pcloud-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_PCLOUD_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --pcloud-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_PCLOUD_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --pcloud-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PCLOUD_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +#### --pcloud-root-folder-id
    +
    +Fill in for rclone to use a non root folder as its starting point.
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_PCLOUD_ROOT_FOLDER_ID
    +- Type:        string
    +- Default:     "d0"
    +
    +#### --pcloud-hostname
    +
    +Hostname to connect to.
    +
    +This is normally set when rclone initially does the oauth connection,
    +however you will need to set it by hand if you are using remote config
    +with rclone authorize.
    +
    +
    +Properties:
    +
    +- Config:      hostname
    +- Env Var:     RCLONE_PCLOUD_HOSTNAME
    +- Type:        string
    +- Default:     "api.pcloud.com"
    +- Examples:
    +    - "api.pcloud.com"
    +        - Original/US region
    +    - "eapi.pcloud.com"
    +        - EU region
    +
    +#### --pcloud-username
    +
    +Your pcloud username.
    +            
    +This is only required when you want to use the cleanup command. Due to a bug
    +in the pcloud API the required API does not support OAuth authentication so
    +we have to rely on user password authentication for it.
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_PCLOUD_USERNAME
    +- Type:        string
    +- Required:    false
    +
    +#### --pcloud-password
    +
    +Your pcloud password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_PCLOUD_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +
    +
    +#  PikPak
    +
    +PikPak is [a private cloud drive](https://mypikpak.com/).
    +
    +Paths are specified as `remote:path`, and may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +Here is an example of making a remote for PikPak.
    +
    +First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n

    +

    Enter name for new remote. name> remote

    +

    Option Storage. Type of storage to configure. Choose a number from below, or type in your own value. XX / PikPak  (pikpak) Storage> XX

    +

    Option user. Pikpak username. Enter a value. user> USERNAME

    +

    Option pass. Pikpak password. Choose an alternative below. y) Yes, type in my own password g) Generate random password y/g> y Enter the password: password: Confirm the password: password:

    +

    Edit advanced config? y) Yes n) No (default) y/n>

    +

    Configuration complete. Options: - type: pikpak - user: USERNAME - pass: *** ENCRYPTED *** - token: {"access_token":"eyJ...","token_type":"Bearer","refresh_token":"os...","expiry":"2023-01-26T18:54:32.170582647+09:00"} Keep this "remote" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +
    +### Standard options
    +
    +Here are the Standard options specific to pikpak (PikPak).
    +
    +#### --pikpak-user
    +
    +Pikpak username.
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_PIKPAK_USER
    +- Type:        string
    +- Required:    true
    +
    +#### --pikpak-pass
    +
    +Pikpak password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      pass
    +- Env Var:     RCLONE_PIKPAK_PASS
    +- Type:        string
    +- Required:    true
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to pikpak (PikPak).
    +
    +#### --pikpak-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_PIKPAK_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_PIKPAK_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_PIKPAK_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_PIKPAK_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_PIKPAK_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-root-folder-id
    +
    +ID of the root folder.
    +Leave blank normally.
    +
    +Fill in for rclone to use a non root folder as its starting point.
    +
    +
    +Properties:
    +
    +- Config:      root_folder_id
    +- Env Var:     RCLONE_PIKPAK_ROOT_FOLDER_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --pikpak-use-trash
    +
    +Send files to the trash instead of deleting permanently.
    +
    +Defaults to true, namely sending files to the trash.
    +Use `--pikpak-use-trash=false` to delete files permanently instead.
    +
    +Properties:
    +
    +- Config:      use_trash
    +- Env Var:     RCLONE_PIKPAK_USE_TRASH
    +- Type:        bool
    +- Default:     true
    +
    +#### --pikpak-trashed-only
    +
    +Only show files that are in the trash.
    +
    +This will show trashed files in their original directory structure.
    +
    +Properties:
    +
    +- Config:      trashed_only
    +- Env Var:     RCLONE_PIKPAK_TRASHED_ONLY
    +- Type:        bool
    +- Default:     false
    +
    +#### --pikpak-hash-memory-limit
    +
    +Files bigger than this will be cached on disk to calculate hash if required.
    +
    +Properties:
    +
    +- Config:      hash_memory_limit
    +- Env Var:     RCLONE_PIKPAK_HASH_MEMORY_LIMIT
    +- Type:        SizeSuffix
    +- Default:     10Mi
    +
    +#### --pikpak-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PIKPAK_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,LeftSpace,RightSpace,RightPeriod,InvalidUtf8,Dot
    +
    +## Backend commands
    +
    +Here are the commands specific to the pikpak backend.
    +
    +Run them with
    +
    +    rclone backend COMMAND remote:
    +
    +The help below will explain what arguments each command takes.
    +
    +See the [backend](https://rclone.org/commands/rclone_backend/) command for more
    +info on how to pass options and arguments.
    +
    +These can be run on a running backend using the rc command
    +[backend/command](https://rclone.org/rc/#backend-command).
    +
    +### addurl
    +
    +Add offline download task for url
    +
    +    rclone backend addurl remote: [options] [<arguments>+]
    +
    +This command adds offline download task for url.
    +
    +Usage:
    +
    +    rclone backend addurl pikpak:dirpath url
    +
    +Downloads will be stored in 'dirpath'. If 'dirpath' is invalid, 
    +download will fallback to default 'My Pack' folder.
    +
    +
    +### decompress
    +
    +Request decompress of a file/files in a folder
    +
    +    rclone backend decompress remote: [options] [<arguments>+]
    +
    +This command requests decompress of file/files in a folder.
    +
    +Usage:
    +
    +    rclone backend decompress pikpak:dirpath {filename} -o password=password
    +    rclone backend decompress pikpak:dirpath {filename} -o delete-src-file
    +
    +An optional argument 'filename' can be specified for a file located in 
    +'pikpak:dirpath'. You may want to pass '-o password=password' for a 
    +password-protected files. Also, pass '-o delete-src-file' to delete 
    +source files after decompression finished.
    +
    +Result:
    +
    +    {
    +        "Decompressed": 17,
    +        "SourceDeleted": 0,
    +        "Errors": 0
    +    }
    +
    +
    +
    +
    +## Limitations ##
    +
    +### Hashes ###
    +
    +PikPak supports MD5 hash, but sometimes given empty especially for user-uploaded files.
    +
    +### Deleted files ###
    +
    +Deleted files will still be visible with `--pikpak-trashed-only` even after the trash emptied. This goes away after few days.
    +
    +#  premiumize.me
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for [premiumize.me](https://premiumize.me/) involves getting a token from premiumize.me which you
    +need to do in your browser.  `rclone config` walks you through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / premiumize.me  "premiumizeme" [snip] Storage> premiumizeme ** See help for premiumizeme backend at: https://rclone.org/premiumizeme/ **

    +

    Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [remote] type = premiumizeme token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2029-08-07T18:44:15.548915378+01:00"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d>

    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from premiumize.me. This only runs from the moment it opens
    +your browser to the moment you get back the verification code.  This
    +is on `http://127.0.0.1:53682/` and this it may require you to unblock
    +it temporarily if you are running a host firewall.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your premiumize.me
    +
    +    rclone lsd remote:
    +
    +List all the files in your premiumize.me
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an premiumize.me directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time and hashes
    +
    +premiumize.me does not support modification times or hashes, therefore
    +syncing will default to `--size-only` checking.  Note that using
    +`--update` will work.
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \           |
    +| "         | 0x22  | "           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to premiumizeme (premiumize.me).
    +
    +#### --premiumizeme-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_PREMIUMIZEME_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --premiumizeme-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_PREMIUMIZEME_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +#### --premiumizeme-api-key
    +
    +API Key.
    +
    +This is not normally used - use oauth instead.
    +
    +
    +Properties:
    +
    +- Config:      api_key
    +- Env Var:     RCLONE_PREMIUMIZEME_API_KEY
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to premiumizeme (premiumize.me).
    +
    +#### --premiumizeme-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_PREMIUMIZEME_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --premiumizeme-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_PREMIUMIZEME_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --premiumizeme-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_PREMIUMIZEME_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --premiumizeme-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PREMIUMIZEME_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,DoubleQuote,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +Note that premiumize.me is case insensitive so you can't have a file called
    +"Hello.doc" and one called "hello.doc".
    +
    +premiumize.me file names can't have the `\` or `"` characters in.
    +rclone maps these to and from an identical looking unicode equivalents
    +`\` and `"`
    +
    +premiumize.me only supports filenames up to 255 characters in length.
    +
    +#  Proton Drive
    +
    +[Proton Drive](https://proton.me/drive) is an end-to-end encrypted Swiss vault
    + for your files that protects your data.
    +
    +This is an rclone backend for Proton Drive which supports the file transfer
    +features of Proton Drive using the same client-side encryption.
    +
    +Due to the fact that Proton Drive doesn't publish its API documentation, this 
    +backend is implemented with best efforts by reading the open-sourced client 
    +source code and observing the Proton Drive traffic in the browser.
    +
    +**NB** This backend is currently in Beta. It is believed to be correct
    +and all the integration tests pass. However the Proton Drive protocol
    +has evolved over time there may be accounts it is not compatible
    +with. Please [post on the rclone forum](https://forum.rclone.org/) if
    +you find an incompatibility.
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configurations
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Proton Drive  "Proton Drive" [snip] Storage> protondrive User name user> you@protonmail.com Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y Enter the password: password: Confirm the password: password: Option 2fa. 2FA code (if the account requires one) Enter a value. Press Enter to leave empty. 2fa> 123456 Remote config -------------------- [remote] type = protondrive user = you@protonmail.com pass = *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +**NOTE:** The Proton Drive encryption keys need to have been already generated 
    +after a regular login via the browser, otherwise attempting to use the 
    +credentials in `rclone` will fail.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Proton Drive
    +
    +    rclone lsd remote:
    +
    +List all the files in your Proton Drive
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Proton Drive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time
    +
    +Proton Drive Bridge does not support updating modification times yet.
    +
    +### Restricted filename characters
    +
    +Invalid UTF-8 bytes will be [replaced](https://rclone.org/overview/#invalid-utf8), also left and 
    +right spaces will be removed ([code reference](https://github.com/ProtonMail/WebClients/blob/b4eba99d241af4fdae06ff7138bd651a40ef5d3c/applications/drive/src/app/store/_links/validation.ts#L51))
    +
    +### Duplicated files
    +
    +Proton Drive can not have two files with exactly the same name and path. If the 
    +conflict occurs, depending on the advanced config, the file might or might not 
    +be overwritten.
    +
    +### [Mailbox password](https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password)
    +
    +Please set your mailbox password in the advanced config section.
    +
    +### Caching
    +
    +The cache is currently built for the case when the rclone is the only instance 
    +performing operations to the mount point. The event system, which is the proton
    +API system that provides visibility of what has changed on the drive, is yet 
    +to be implemented, so updates from other clients won’t be reflected in the 
    +cache. Thus, if there are concurrent clients accessing the same mount point, 
    +then we might have a problem with caching the stale data.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to protondrive (Proton Drive).
    +
    +#### --protondrive-username
    +
    +The username of your proton account
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_PROTONDRIVE_USERNAME
    +- Type:        string
    +- Required:    true
    +
    +#### --protondrive-password
    +
    +The password of your proton account.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_PROTONDRIVE_PASSWORD
    +- Type:        string
    +- Required:    true
    +
    +#### --protondrive-2fa
    +
    +The 2FA code
    +
    +The value can also be provided with --protondrive-2fa=000000
    +
    +The 2FA code of your proton drive account if the account is set up with 
    +two-factor authentication
    +
    +Properties:
    +
    +- Config:      2fa
    +- Env Var:     RCLONE_PROTONDRIVE_2FA
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to protondrive (Proton Drive).
    +
    +#### --protondrive-mailbox-password
    +
    +The mailbox password of your two-password proton account.
    +
    +For more information regarding the mailbox password, please check the 
    +following official knowledge base article: 
    +https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password
    +
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      mailbox_password
    +- Env Var:     RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-uid
    +
    +Client uid key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_uid
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_UID
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-access-token
    +
    +Client access token key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_access_token
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-refresh-token
    +
    +Client refresh token key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_refresh_token
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-salted-key-pass
    +
    +Client salted key pass key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_salted_key_pass
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PROTONDRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
    +
    +#### --protondrive-original-file-size
    +
    +Return the file size before encryption
    +            
    +The size of the encrypted file will be different from (bigger than) the 
    +original file size. Unless there is a reason to return the file size 
    +after encryption is performed, otherwise, set this option to true, as 
    +features like Open() which will need to be supplied with original content 
    +size, will fail to operate properly
    +
    +Properties:
    +
    +- Config:      original_file_size
    +- Env Var:     RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
    +- Type:        bool
    +- Default:     true
    +
    +#### --protondrive-app-version
    +
    +The app version string 
    +
    +The app version string indicates the client that is currently performing 
    +the API request. This information is required and will be sent with every 
    +API request.
    +
    +Properties:
    +
    +- Config:      app_version
    +- Env Var:     RCLONE_PROTONDRIVE_APP_VERSION
    +- Type:        string
    +- Default:     "macos-drive@1.0.0-alpha.1+rclone"
    +
    +#### --protondrive-replace-existing-draft
    +
    +Create a new revision when filename conflict is detected
    +
    +When a file upload is cancelled or failed before completion, a draft will be 
    +created and the subsequent upload of the same file to the same location will be 
    +reported as a conflict.
    +
    +The value can also be set by --protondrive-replace-existing-draft=true
    +
    +If the option is set to true, the draft will be replaced and then the upload 
    +operation will restart. If there are other clients also uploading at the same 
    +file location at the same time, the behavior is currently unknown. Need to set 
    +to true for integration tests.
    +If the option is set to false, an error "a draft exist - usually this means a 
    +file is being uploaded at another client, or, there was a failed upload attempt" 
    +will be returned, and no upload will happen.
    +
    +Properties:
    +
    +- Config:      replace_existing_draft
    +- Env Var:     RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
    +- Type:        bool
    +- Default:     false
    +
    +#### --protondrive-enable-caching
    +
    +Caches the files and folders metadata to reduce API calls
    +
    +Notice: If you are mounting ProtonDrive as a VFS, please disable this feature, 
    +as the current implementation doesn't update or clear the cache when there are 
    +external changes. 
    +
    +The files and folders on ProtonDrive are represented as links with keyrings, 
    +which can be cached to improve performance and be friendly to the API server.
    +
    +The cache is currently built for the case when the rclone is the only instance 
    +performing operations to the mount point. The event system, which is the proton
    +API system that provides visibility of what has changed on the drive, is yet 
    +to be implemented, so updates from other clients won’t be reflected in the 
    +cache. Thus, if there are concurrent clients accessing the same mount point, 
    +then we might have a problem with caching the stale data.
    +
    +Properties:
    +
    +- Config:      enable_caching
    +- Env Var:     RCLONE_PROTONDRIVE_ENABLE_CACHING
    +- Type:        bool
    +- Default:     true
    +
    +
    +
    +## Limitations
    +
    +This backend uses the 
    +[Proton-API-Bridge](https://github.com/henrybear327/Proton-API-Bridge), which 
    +is based on [go-proton-api](https://github.com/henrybear327/go-proton-api), a 
    +fork of the [official repo](https://github.com/ProtonMail/go-proton-api).
    +
    +There is no official API documentation available from Proton Drive. But, thanks 
    +to Proton open sourcing [proton-go-api](https://github.com/ProtonMail/go-proton-api) 
    +and the web, iOS, and Android client codebases, we don't need to completely 
    +reverse engineer the APIs by observing the web client traffic! 
    +
    +[proton-go-api](https://github.com/ProtonMail/go-proton-api) provides the basic 
    +building blocks of API calls and error handling, such as 429 exponential 
    +back-off, but it is pretty much just a barebone interface to the Proton API. 
    +For example, the encryption and decryption of the Proton Drive file are not 
    +provided in this library. 
    +
    +The Proton-API-Bridge, attempts to bridge the gap, so rclone can be built on 
    +top of this quickly. This codebase handles the intricate tasks before and after 
    +calling Proton APIs, particularly the complex encryption scheme, allowing 
    +developers to implement features for other software on top of this codebase. 
    +There are likely quite a few errors in this library, as there isn't official 
    +documentation available.
    +
    +#  put.io
    +
    +Paths are specified as `remote:path`
    +
    +put.io paths may be as deep as required, e.g.
    +`remote:directory/subdirectory`.
    +
    +## Configuration
    +
    +The initial setup for put.io involves getting a token from put.io
    +which you need to do in your browser.  `rclone config` walks you
    +through it.
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> putio Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Put.io  "putio" [snip] Storage> putio ** See help for putio backend at: https://rclone.org/putio/ **

    +

    Remote config Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N. y) Yes n) No y/n> y If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth Log in and authorize rclone for access Waiting for code... Got code -------------------- [putio] type = putio token = {"access_token":"XXXXXXXX","expiry":"0001-01-01T00:00:00Z"} -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y Current remotes:

    +

    Name Type ==== ==== putio putio

    +
      +
    1. Edit existing remote
    2. +
    3. New remote
    4. +
    5. Delete remote
    6. +
    7. Rename remote
    8. +
    9. Copy remote
    10. +
    11. Set configuration password
    12. +
    13. Quit config e/n/d/r/c/s/q> q
    14. +
    +
    
    +See the [remote setup docs](https://rclone.org/remote_setup/) for how to set it up on a
    +machine with no Internet browser available.
    +
    +Note that rclone runs a webserver on your local machine to collect the
    +token as returned from put.io  if using web browser to automatically 
    +authenticate. This only
    +runs from the moment it opens your browser to the moment you get back
    +the verification code.  This is on `http://127.0.0.1:53682/` and this
    +it may require you to unblock it temporarily if you are running a host
    +firewall, or use manual mode.
    +
    +You can then use it like this,
    +
    +List directories in top level of your put.io
    +
    +    rclone lsd remote:
    +
    +List all the files in your put.io
    +
    +    rclone ls remote:
    +
    +To copy a local directory to a put.io directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| \         | 0x5C  | \           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to putio (Put.io).
    +
    +#### --putio-client-id
    +
    +OAuth Client Id.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_id
    +- Env Var:     RCLONE_PUTIO_CLIENT_ID
    +- Type:        string
    +- Required:    false
    +
    +#### --putio-client-secret
    +
    +OAuth Client Secret.
    +
    +Leave blank normally.
    +
    +Properties:
    +
    +- Config:      client_secret
    +- Env Var:     RCLONE_PUTIO_CLIENT_SECRET
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to putio (Put.io).
    +
    +#### --putio-token
    +
    +OAuth Access Token as a JSON blob.
    +
    +Properties:
    +
    +- Config:      token
    +- Env Var:     RCLONE_PUTIO_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --putio-auth-url
    +
    +Auth server URL.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      auth_url
    +- Env Var:     RCLONE_PUTIO_AUTH_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --putio-token-url
    +
    +Token server url.
    +
    +Leave blank to use the provider defaults.
    +
    +Properties:
    +
    +- Config:      token_url
    +- Env Var:     RCLONE_PUTIO_TOKEN_URL
    +- Type:        string
    +- Required:    false
    +
    +#### --putio-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PUTIO_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot
    +
    +
    +
    +## Limitations
    +
    +put.io has rate limiting. When you hit a limit, rclone automatically
    +retries after waiting the amount of time requested by the server.
     
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[remote]
    -type = premiumizeme
    -token = {"access_token":"XXX","token_type":"Bearer","refresh_token":"XXX","expiry":"2029-08-07T18:44:15.548915378+01:00"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> 
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from premiumize.me. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    -

    Once configured you can then use rclone like this,

    -

    List directories in top level of your premiumize.me

    -
    rclone lsd remote:
    -

    List all the files in your premiumize.me

    -
    rclone ls remote:
    -

    To copy a local directory to an premiumize.me directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    premiumize.me does not support modification times or hashes, therefore syncing will default to --size-only checking. Note that using --update will work.

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    "0x22
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to premiumizeme (premiumize.me).

    -

    --premiumizeme-api-key

    -

    API Key.

    -

    This is not normally used - use oauth instead.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to premiumizeme (premiumize.me).

    -

    --premiumizeme-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Limitations

    -

    Note that premiumize.me is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    -

    premiumize.me file names can't have the \ or " characters in. rclone maps these to and from an identical looking unicode equivalents and

    -

    premiumize.me only supports filenames up to 255 characters in length.

    -

    put.io

    -

    Paths are specified as remote:path

    -

    put.io paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    -

    The initial setup for put.io involves getting a token from put.io which you need to do in your browser. rclone config walks you through it.

    -

    Here is an example of how to make a remote called remote. First run:

    -
     rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> putio
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Put.io
    -   \ "putio"
    -[snip]
    -Storage> putio
    -** See help for putio backend at: https://rclone.org/putio/ **
    +If you want to avoid ever hitting these limits, you may use the
    +`--tpslimit` flag with a low number. Note that the imposed limits
    +may be different for different operations, and may change over time.
    +
    +#  Proton Drive
    +
    +[Proton Drive](https://proton.me/drive) is an end-to-end encrypted Swiss vault
    + for your files that protects your data.
    +
    +This is an rclone backend for Proton Drive which supports the file transfer
    +features of Proton Drive using the same client-side encryption.
    +
    +Due to the fact that Proton Drive doesn't publish its API documentation, this 
    +backend is implemented with best efforts by reading the open-sourced client 
    +source code and observing the Proton Drive traffic in the browser.
    +
    +**NB** This backend is currently in Beta. It is believed to be correct
    +and all the integration tests pass. However the Proton Drive protocol
    +has evolved over time there may be accounts it is not compatible
    +with. Please [post on the rclone forum](https://forum.rclone.org/) if
    +you find an incompatibility.
    +
    +Paths are specified as `remote:path`
    +
    +Paths may be as deep as required, e.g. `remote:directory/subdirectory`.
    +
    +## Configurations
    +
    +Here is an example of how to make a remote called `remote`.  First run:
    +
    +     rclone config
    +
    +This will guide you through an interactive setup process:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / Proton Drive  "Proton Drive" [snip] Storage> protondrive User name user> you@protonmail.com Password. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> y Enter the password: password: Confirm the password: password: Option 2fa. 2FA code (if the account requires one) Enter a value. Press Enter to leave empty. 2fa> 123456 Remote config -------------------- [remote] type = protondrive user = you@protonmail.com pass = *** ENCRYPTED *** -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +**NOTE:** The Proton Drive encryption keys need to have been already generated 
    +after a regular login via the browser, otherwise attempting to use the 
    +credentials in `rclone` will fail.
    +
    +Once configured you can then use `rclone` like this,
    +
    +List directories in top level of your Proton Drive
    +
    +    rclone lsd remote:
    +
    +List all the files in your Proton Drive
    +
    +    rclone ls remote:
    +
    +To copy a local directory to an Proton Drive directory called backup
    +
    +    rclone copy /home/source remote:backup
    +
    +### Modified time
    +
    +Proton Drive Bridge does not support updating modification times yet.
    +
    +### Restricted filename characters
    +
    +Invalid UTF-8 bytes will be [replaced](https://rclone.org/overview/#invalid-utf8), also left and 
    +right spaces will be removed ([code reference](https://github.com/ProtonMail/WebClients/blob/b4eba99d241af4fdae06ff7138bd651a40ef5d3c/applications/drive/src/app/store/_links/validation.ts#L51))
    +
    +### Duplicated files
    +
    +Proton Drive can not have two files with exactly the same name and path. If the 
    +conflict occurs, depending on the advanced config, the file might or might not 
    +be overwritten.
    +
    +### [Mailbox password](https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password)
    +
    +Please set your mailbox password in the advanced config section.
    +
    +### Caching
    +
    +The cache is currently built for the case when the rclone is the only instance 
    +performing operations to the mount point. The event system, which is the proton
    +API system that provides visibility of what has changed on the drive, is yet 
    +to be implemented, so updates from other clients won’t be reflected in the 
    +cache. Thus, if there are concurrent clients accessing the same mount point, 
    +then we might have a problem with caching the stale data.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to protondrive (Proton Drive).
    +
    +#### --protondrive-username
    +
    +The username of your proton account
    +
    +Properties:
    +
    +- Config:      username
    +- Env Var:     RCLONE_PROTONDRIVE_USERNAME
    +- Type:        string
    +- Required:    true
    +
    +#### --protondrive-password
    +
    +The password of your proton account.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      password
    +- Env Var:     RCLONE_PROTONDRIVE_PASSWORD
    +- Type:        string
    +- Required:    true
    +
    +#### --protondrive-2fa
    +
    +The 2FA code
    +
    +The value can also be provided with --protondrive-2fa=000000
    +
    +The 2FA code of your proton drive account if the account is set up with 
    +two-factor authentication
    +
    +Properties:
    +
    +- Config:      2fa
    +- Env Var:     RCLONE_PROTONDRIVE_2FA
    +- Type:        string
    +- Required:    false
    +
    +### Advanced options
    +
    +Here are the Advanced options specific to protondrive (Proton Drive).
    +
    +#### --protondrive-mailbox-password
    +
    +The mailbox password of your two-password proton account.
    +
    +For more information regarding the mailbox password, please check the 
    +following official knowledge base article: 
    +https://proton.me/support/the-difference-between-the-mailbox-password-and-login-password
    +
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      mailbox_password
    +- Env Var:     RCLONE_PROTONDRIVE_MAILBOX_PASSWORD
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-uid
    +
    +Client uid key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_uid
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_UID
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-access-token
    +
    +Client access token key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_access_token
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_ACCESS_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-refresh-token
    +
    +Client refresh token key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_refresh_token
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_REFRESH_TOKEN
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-client-salted-key-pass
    +
    +Client salted key pass key (internal use only)
    +
    +Properties:
    +
    +- Config:      client_salted_key_pass
    +- Env Var:     RCLONE_PROTONDRIVE_CLIENT_SALTED_KEY_PASS
    +- Type:        string
    +- Required:    false
    +
    +#### --protondrive-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_PROTONDRIVE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,LeftSpace,RightSpace,InvalidUtf8,Dot
    +
    +#### --protondrive-original-file-size
    +
    +Return the file size before encryption
    +            
    +The size of the encrypted file will be different from (bigger than) the 
    +original file size. Unless there is a reason to return the file size 
    +after encryption is performed, otherwise, set this option to true, as 
    +features like Open() which will need to be supplied with original content 
    +size, will fail to operate properly
    +
    +Properties:
    +
    +- Config:      original_file_size
    +- Env Var:     RCLONE_PROTONDRIVE_ORIGINAL_FILE_SIZE
    +- Type:        bool
    +- Default:     true
    +
    +#### --protondrive-app-version
    +
    +The app version string 
    +
    +The app version string indicates the client that is currently performing 
    +the API request. This information is required and will be sent with every 
    +API request.
    +
    +Properties:
    +
    +- Config:      app_version
    +- Env Var:     RCLONE_PROTONDRIVE_APP_VERSION
    +- Type:        string
    +- Default:     "macos-drive@1.0.0-alpha.1+rclone"
    +
    +#### --protondrive-replace-existing-draft
    +
    +Create a new revision when filename conflict is detected
    +
    +When a file upload is cancelled or failed before completion, a draft will be 
    +created and the subsequent upload of the same file to the same location will be 
    +reported as a conflict.
    +
    +The value can also be set by --protondrive-replace-existing-draft=true
    +
    +If the option is set to true, the draft will be replaced and then the upload 
    +operation will restart. If there are other clients also uploading at the same 
    +file location at the same time, the behavior is currently unknown. Need to set 
    +to true for integration tests.
    +If the option is set to false, an error "a draft exist - usually this means a 
    +file is being uploaded at another client, or, there was a failed upload attempt" 
    +will be returned, and no upload will happen.
    +
    +Properties:
    +
    +- Config:      replace_existing_draft
    +- Env Var:     RCLONE_PROTONDRIVE_REPLACE_EXISTING_DRAFT
    +- Type:        bool
    +- Default:     false
    +
    +#### --protondrive-enable-caching
    +
    +Caches the files and folders metadata to reduce API calls
    +
    +Notice: If you are mounting ProtonDrive as a VFS, please disable this feature, 
    +as the current implementation doesn't update or clear the cache when there are 
    +external changes. 
    +
    +The files and folders on ProtonDrive are represented as links with keyrings, 
    +which can be cached to improve performance and be friendly to the API server.
    +
    +The cache is currently built for the case when the rclone is the only instance 
    +performing operations to the mount point. The event system, which is the proton
    +API system that provides visibility of what has changed on the drive, is yet 
    +to be implemented, so updates from other clients won’t be reflected in the 
    +cache. Thus, if there are concurrent clients accessing the same mount point, 
    +then we might have a problem with caching the stale data.
    +
    +Properties:
    +
    +- Config:      enable_caching
    +- Env Var:     RCLONE_PROTONDRIVE_ENABLE_CACHING
    +- Type:        bool
    +- Default:     true
    +
    +
    +
    +## Limitations
    +
    +This backend uses the 
    +[Proton-API-Bridge](https://github.com/henrybear327/Proton-API-Bridge), which 
    +is based on [go-proton-api](https://github.com/henrybear327/go-proton-api), a 
    +fork of the [official repo](https://github.com/ProtonMail/go-proton-api).
    +
    +There is no official API documentation available from Proton Drive. But, thanks 
    +to Proton open sourcing [proton-go-api](https://github.com/ProtonMail/go-proton-api) 
    +and the web, iOS, and Android client codebases, we don't need to completely 
    +reverse engineer the APIs by observing the web client traffic! 
    +
    +[proton-go-api](https://github.com/ProtonMail/go-proton-api) provides the basic 
    +building blocks of API calls and error handling, such as 429 exponential 
    +back-off, but it is pretty much just a barebone interface to the Proton API. 
    +For example, the encryption and decryption of the Proton Drive file are not 
    +provided in this library. 
    +
    +The Proton-API-Bridge, attempts to bridge the gap, so rclone can be built on 
    +top of this quickly. This codebase handles the intricate tasks before and after 
    +calling Proton APIs, particularly the complex encryption scheme, allowing 
    +developers to implement features for other software on top of this codebase. 
    +There are likely quite a few errors in this library, as there isn't official 
    +documentation available.
    +
    +#  Seafile
    +
    +This is a backend for the [Seafile](https://www.seafile.com/) storage service:
    +- It works with both the free community edition or the professional edition.
    +- Seafile versions 6.x, 7.x, 8.x and 9.x are all supported.
    +- Encrypted libraries are also supported.
    +- It supports 2FA enabled users
    +- Using a Library API Token is **not** supported
    +
    +## Configuration
    +
    +There are two distinct modes you can setup your remote:
    +- you point your remote to the **root of the server**, meaning you don't specify a library during the configuration:
    +Paths are specified as `remote:library`. You may put subdirectories in too, e.g. `remote:library/path/to/dir`.
    +- you point your remote to a specific library during the configuration:
    +Paths are specified as `remote:path/to/dir`. **This is the recommended mode when using encrypted libraries**. (_This mode is possibly slightly faster than the root mode_)
    +
    +### Configuration in root mode
    +
    +Here is an example of making a seafile configuration for a user with **no** two-factor authentication.  First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process. To authenticate
    +you will need the URL of your server, your email (or username) and your password.
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> seafile Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Seafile  "seafile" [snip] Storage> seafile ** See help for seafile backend at: https://rclone.org/seafile/ **

    +

    URL of seafile host to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to cloud.seafile.com  "https://cloud.seafile.com/" url> http://my.seafile.server/ User name (usually email address) Enter a string value. Press Enter for the default (""). user> me@example.com Password y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g> y Enter the password: password: Confirm the password: password: Two-factor authentication ('true' if the account has 2FA enabled) Enter a boolean value (true or false). Press Enter for the default ("false"). 2fa> false Name of the library. Leave blank to access all non-encrypted libraries. Enter a string value. Press Enter for the default (""). library> Library password (for encrypted libraries only). Leave blank if you pass it through the command line. y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g/n> n Edit advanced config? (y/n) y) Yes n) No (default) y/n> n Remote config Two-factor authentication is not enabled on this account. -------------------- [seafile] type = seafile url = http://my.seafile.server/ user = me@example.com pass = *** ENCRYPTED *** 2fa = false -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `seafile`. It's pointing to the root of your seafile server and can now be used like this:
    +
    +See all libraries
    +
    +    rclone lsd seafile:
    +
    +Create a new library
    +
    +    rclone mkdir seafile:library
    +
    +List the contents of a library
    +
    +    rclone ls seafile:library
    +
    +Sync `/home/local/directory` to the remote library, deleting any
    +excess files in the library.
    +
    +    rclone sync --interactive /home/local/directory seafile:library
    +
    +### Configuration in library mode
    +
    +Here's an example of a configuration in library mode with a user that has the two-factor authentication enabled. Your 2FA code will be asked at the end of the configuration, and will attempt to authenticate you:
    +
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> seafile Type of storage to configure. Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value [snip] XX / Seafile  "seafile" [snip] Storage> seafile ** See help for seafile backend at: https://rclone.org/seafile/ **

    +

    URL of seafile host to connect to Enter a string value. Press Enter for the default (""). Choose a number from below, or type in your own value 1 / Connect to cloud.seafile.com  "https://cloud.seafile.com/" url> http://my.seafile.server/ User name (usually email address) Enter a string value. Press Enter for the default (""). user> me@example.com Password y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g> y Enter the password: password: Confirm the password: password: Two-factor authentication ('true' if the account has 2FA enabled) Enter a boolean value (true or false). Press Enter for the default ("false"). 2fa> true Name of the library. Leave blank to access all non-encrypted libraries. Enter a string value. Press Enter for the default (""). library> My Library Library password (for encrypted libraries only). Leave blank if you pass it through the command line. y) Yes type in my own password g) Generate random password n) No leave this optional password blank (default) y/g/n> n Edit advanced config? (y/n) y) Yes n) No (default) y/n> n Remote config Two-factor authentication: please enter your 2FA code 2fa code> 123456 Authenticating... Success! -------------------- [seafile] type = seafile url = http://my.seafile.server/ user = me@example.com pass = 2fa = true library = My Library -------------------- y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +You'll notice your password is blank in the configuration. It's because we only need the password to authenticate you once.
    +
    +You specified `My Library` during the configuration. The root of the remote is pointing at the
    +root of the library `My Library`:
    +
    +See all files in the library:
    +
    +    rclone lsd seafile:
    +
    +Create a new directory inside the library
    +
    +    rclone mkdir seafile:directory
    +
    +List the contents of a directory
    +
    +    rclone ls seafile:directory
    +
    +Sync `/home/local/directory` to the remote library, deleting any
    +excess files in the library.
    +
    +    rclone sync --interactive /home/local/directory seafile:
    +
    +
    +### --fast-list
    +
    +Seafile version 7+ supports `--fast-list` which allows you to use fewer
    +transactions in exchange for more memory. See the [rclone
    +docs](https://rclone.org/docs/#fast-list) for more details.
    +Please note this is not supported on seafile server version 6.x
    +
    +
    +### Restricted filename characters
    +
    +In addition to the [default restricted characters set](https://rclone.org/overview/#restricted-characters)
    +the following characters are also replaced:
    +
    +| Character | Value | Replacement |
    +| --------- |:-----:|:-----------:|
    +| /         | 0x2F  | /          |
    +| "         | 0x22  | "          |
    +| \         | 0x5C  | \           |
    +
    +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8),
    +as they can't be used in JSON strings.
    +
    +### Seafile and rclone link
    +
    +Rclone supports generating share links for non-encrypted libraries only.
    +They can either be for a file or a directory:
    +
    +

    rclone link seafile:seafile-tutorial.doc http://my.seafile.server/f/fdcd8a2f93f84b8b90f4/

    +
    
    +or if run on a directory you will get:
    +
    +

    rclone link seafile:dir http://my.seafile.server/d/9ea2455f6f55478bbb0d/

    +
    
    +Please note a share link is unique for each file or directory. If you run a link command on a file/dir
    +that has already been shared, you will get the exact same link.
    +
    +### Compatibility
    +
    +It has been actively developed using the [seafile docker image](https://github.com/haiwen/seafile-docker) of these versions:
    +- 6.3.4 community edition
    +- 7.0.5 community edition
    +- 7.1.3 community edition
    +- 9.0.10 community edition
    +
    +Versions below 6.0 are not supported.
    +Versions between 6.0 and 6.3 haven't been tested and might not work properly.
    +
    +Each new version of `rclone` is automatically tested against the [latest docker image](https://hub.docker.com/r/seafileltd/seafile-mc/) of the seafile community server.
    +
    +
    +### Standard options
    +
    +Here are the Standard options specific to seafile (seafile).
    +
    +#### --seafile-url
    +
    +URL of seafile host to connect to.
    +
    +Properties:
    +
    +- Config:      url
    +- Env Var:     RCLONE_SEAFILE_URL
    +- Type:        string
    +- Required:    true
    +- Examples:
    +    - "https://cloud.seafile.com/"
    +        - Connect to cloud.seafile.com.
    +
    +#### --seafile-user
    +
    +User name (usually email address).
    +
    +Properties:
    +
    +- Config:      user
    +- Env Var:     RCLONE_SEAFILE_USER
    +- Type:        string
    +- Required:    true
    +
    +#### --seafile-pass
    +
    +Password.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      pass
    +- Env Var:     RCLONE_SEAFILE_PASS
    +- Type:        string
    +- Required:    false
    +
    +#### --seafile-2fa
    +
    +Two-factor authentication ('true' if the account has 2FA enabled).
    +
    +Properties:
    +
    +- Config:      2fa
    +- Env Var:     RCLONE_SEAFILE_2FA
    +- Type:        bool
    +- Default:     false
    +
    +#### --seafile-library
    +
    +Name of the library.
    +
    +Leave blank to access all non-encrypted libraries.
    +
    +Properties:
    +
    +- Config:      library
    +- Env Var:     RCLONE_SEAFILE_LIBRARY
    +- Type:        string
    +- Required:    false
    +
    +#### --seafile-library-key
    +
    +Library password (for encrypted libraries only).
    +
    +Leave blank if you pass it through the command line.
    +
    +**NB** Input to this must be obscured - see [rclone obscure](https://rclone.org/commands/rclone_obscure/).
    +
    +Properties:
    +
    +- Config:      library_key
    +- Env Var:     RCLONE_SEAFILE_LIBRARY_KEY
    +- Type:        string
    +- Required:    false
    +
    +#### --seafile-auth-token
    +
    +Authentication token.
     
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes
    -n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    ---------------------
    -[putio]
    -type = putio
    -token = {"access_token":"XXXXXXXX","expiry":"0001-01-01T00:00:00Z"}
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -Current remotes:
    +Properties:
     
    -Name                 Type
    -====                 ====
    -putio                putio
    +- Config:      auth_token
    +- Env Var:     RCLONE_SEAFILE_AUTH_TOKEN
    +- Type:        string
    +- Required:    false
     
    -e) Edit existing remote
    -n) New remote
    -d) Delete remote
    -r) Rename remote
    -c) Copy remote
    -s) Set configuration password
    -q) Quit config
    -e/n/d/r/c/s/q> q
    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Google if you use auto config mode. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall, or use manual mode.

    -

    You can then use it like this,

    -

    List directories in top level of your put.io

    -
    rclone lsd remote:
    -

    List all the files in your put.io

    -
    rclone ls remote:
    -

    To copy a local directory to a put.io directory called backup

    -
    rclone copy /home/source remote:backup
    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    \0x5C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Advanced options

    -

    Here are the advanced options specific to putio (Put.io).

    -

    --putio-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    Seafile

    -

    This is a backend for the Seafile storage service: - It works with both the free community edition or the professional edition. - Seafile versions 6.x and 7.x are all supported. - Encrypted libraries are also supported. - It supports 2FA enabled users

    -

    Configuration

    -

    There are two distinct modes you can setup your remote: - you point your remote to the root of the server, meaning you don't specify a library during the configuration: Paths are specified as remote:library. You may put subdirectories in too, e.g. remote:library/path/to/dir. - you point your remote to a specific library during the configuration: Paths are specified as remote:path/to/dir. This is the recommended mode when using encrypted libraries. (This mode is possibly slightly faster than the root mode)

    -

    Configuration in root mode

    -

    Here is an example of making a seafile configuration for a user with no two-factor authentication. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process. To authenticate you will need the URL of your server, your email (or username) and your password.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> seafile
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Seafile
    -   \ "seafile"
    -[snip]
    -Storage> seafile
    -** See help for seafile backend at: https://rclone.org/seafile/ **
    +### Advanced options
     
    -URL of seafile host to connect to
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Connect to cloud.seafile.com
    -   \ "https://cloud.seafile.com/"
    -url> http://my.seafile.server/
    -User name (usually email address)
    -Enter a string value. Press Enter for the default ("").
    -user> me@example.com
    -Password
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Two-factor authentication ('true' if the account has 2FA enabled)
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -2fa> false
    -Name of the library. Leave blank to access all non-encrypted libraries.
    -Enter a string value. Press Enter for the default ("").
    -library>
    -Library password (for encrypted libraries only). Leave blank if you pass it through the command line.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g/n> n
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    -Two-factor authentication is not enabled on this account.
    ---------------------
    -[seafile]
    -type = seafile
    -url = http://my.seafile.server/
    -user = me@example.com
    -pass = *** ENCRYPTED ***
    -2fa = false
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called seafile. It's pointing to the root of your seafile server and can now be used like this:

    -

    See all libraries

    -
    rclone lsd seafile:
    -

    Create a new library

    -
    rclone mkdir seafile:library
    -

    List the contents of a library

    -
    rclone ls seafile:library
    -

    Sync /home/local/directory to the remote library, deleting any excess files in the library.

    -
    rclone sync -i /home/local/directory seafile:library
    -

    Configuration in library mode

    -

    Here's an example of a configuration in library mode with a user that has the two-factor authentication enabled. Your 2FA code will be asked at the end of the configuration, and will attempt to authenticate you:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> seafile
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Seafile
    -   \ "seafile"
    -[snip]
    -Storage> seafile
    -** See help for seafile backend at: https://rclone.org/seafile/ **
    +Here are the Advanced options specific to seafile (seafile).
     
    -URL of seafile host to connect to
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    - 1 / Connect to cloud.seafile.com
    -   \ "https://cloud.seafile.com/"
    -url> http://my.seafile.server/
    -User name (usually email address)
    -Enter a string value. Press Enter for the default ("").
    -user> me@example.com
    -Password
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g> y
    -Enter the password:
    -password:
    -Confirm the password:
    -password:
    -Two-factor authentication ('true' if the account has 2FA enabled)
    -Enter a boolean value (true or false). Press Enter for the default ("false").
    -2fa> true
    -Name of the library. Leave blank to access all non-encrypted libraries.
    -Enter a string value. Press Enter for the default ("").
    -library> My Library
    -Library password (for encrypted libraries only). Leave blank if you pass it through the command line.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank (default)
    -y/g/n> n
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    -Two-factor authentication: please enter your 2FA code
    -2fa code> 123456
    -Authenticating...
    -Success!
    ---------------------
    -[seafile]
    -type = seafile
    -url = http://my.seafile.server/
    -user = me@example.com
    -pass = 
    -2fa = true
    -library = My Library
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    You'll notice your password is blank in the configuration. It's because we only need the password to authenticate you once.

    -

    You specified My Library during the configuration. The root of the remote is pointing at the root of the library My Library:

    -

    See all files in the library:

    -
    rclone lsd seafile:
    -

    Create a new directory inside the library

    -
    rclone mkdir seafile:directory
    -

    List the contents of a directory

    -
    rclone ls seafile:directory
    -

    Sync /home/local/directory to the remote library, deleting any excess files in the library.

    -
    rclone sync -i /home/local/directory seafile:
    -

    --fast-list

    -

    Seafile version 7+ supports --fast-list which allows you to use fewer transactions in exchange for more memory. See the rclone docs for more details. Please note this is not supported on seafile server version 6.x

    -

    Restricted filename characters

    -

    In addition to the default restricted characters set the following characters are also replaced:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    /0x2F
    "0x22
    \0x5C
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    - -

    Rclone supports generating share links for non-encrypted libraries only. They can either be for a file or a directory:

    -
    rclone link seafile:seafile-tutorial.doc
    -http://my.seafile.server/f/fdcd8a2f93f84b8b90f4/
    +#### --seafile-create-library
    +
    +Should rclone create a library if it doesn't exist.
    +
    +Properties:
    +
    +- Config:      create_library
    +- Env Var:     RCLONE_SEAFILE_CREATE_LIBRARY
    +- Type:        bool
    +- Default:     false
    +
    +#### --seafile-encoding
    +
    +The encoding for the backend.
    +
    +See the [encoding section in the overview](https://rclone.org/overview/#encoding) for more info.
    +
    +Properties:
    +
    +- Config:      encoding
    +- Env Var:     RCLONE_SEAFILE_ENCODING
    +- Type:        MultiEncoder
    +- Default:     Slash,DoubleQuote,BackSlash,Ctl,InvalidUtf8
    +
    +
    +
    +#  SFTP
    +
    +SFTP is the [Secure (or SSH) File Transfer
    +Protocol](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol).
    +
    +The SFTP backend can be used with a number of different providers:
    +
    +
    +- Hetzner Storage Box
    +- rsync.net
    +
    +
    +SFTP runs over SSH v2 and is installed as standard with most modern
    +SSH installations.
    +
    +Paths are specified as `remote:path`. If the path does not begin with
    +a `/` it is relative to the home directory of the user.  An empty path
    +`remote:` refers to the user's home directory. For example, `rclone lsd remote:` 
    +would list the home directory of the user configured in the rclone remote config 
    +(`i.e /home/sftpuser`). However, `rclone lsd remote:/` would list the root 
    +directory for remote machine (i.e. `/`)
    +
    +Note that some SFTP servers will need the leading / - Synology is a
    +good example of this. rsync.net and Hetzner, on the other hand, requires users to
    +OMIT the leading /.
    +
    +Note that by default rclone will try to execute shell commands on
    +the server, see [shell access considerations](#shell-access-considerations).
    +
    +## Configuration
    +
    +Here is an example of making an SFTP configuration.  First run
    +
    +    rclone config
    +
    +This will guide you through an interactive setup process.
     
    -

    or if run on a directory you will get:

    -
    rclone link seafile:dir
    -http://my.seafile.server/d/9ea2455f6f55478bbb0d/
    -

    Please note a share link is unique for each file or directory. If you run a link command on a file/dir that has already been shared, you will get the exact same link.

    -

    Compatibility

    -

    It has been actively tested using the seafile docker image of these versions: - 6.3.4 community edition - 7.0.5 community edition - 7.1.3 community edition

    -

    Versions below 6.0 are not supported. Versions between 6.0 and 6.3 haven't been tested and might not work properly.

    -

    Standard options

    -

    Here are the standard options specific to seafile (seafile).

    -

    --seafile-url

    -

    URL of seafile host to connect to.

    -

    Properties:

    - -

    --seafile-user

    -

    User name (usually email address).

    -

    Properties:

    - -

    --seafile-pass

    -

    Password.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --seafile-2fa

    -

    Two-factor authentication ('true' if the account has 2FA enabled).

    -

    Properties:

    - -

    --seafile-library

    -

    Name of the library.

    -

    Leave blank to access all non-encrypted libraries.

    -

    Properties:

    - -

    --seafile-library-key

    -

    Library password (for encrypted libraries only).

    -

    Leave blank if you pass it through the command line.

    -

    NB Input to this must be obscured - see rclone obscure.

    -

    Properties:

    - -

    --seafile-auth-token

    -

    Authentication token.

    -

    Properties:

    - -

    Advanced options

    -

    Here are the advanced options specific to seafile (seafile).

    -

    --seafile-create-library

    -

    Should rclone create a library if it doesn't exist.

    -

    Properties:

    - -

    --seafile-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    - -

    SFTP

    -

    SFTP is the Secure (or SSH) File Transfer Protocol.

    -

    The SFTP backend can be used with a number of different providers:

    - -

    SFTP runs over SSH v2 and is installed as standard with most modern SSH installations.

    -

    Paths are specified as remote:path. If the path does not begin with a / it is relative to the home directory of the user. An empty path remote: refers to the user's home directory. For example, rclone lsd remote: would list the home directory of the user cofigured in the rclone remote config (i.e /home/sftpuser). However, rclone lsd remote:/ would list the root directory for remote machine (i.e. /)

    -

    Note that some SFTP servers will need the leading / - Synology is a good example of this. rsync.net, on the other hand, requires users to OMIT the leading /.

    -

    Configuration

    -

    Here is an example of making an SFTP configuration. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process.

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -q) Quit config
    -n/s/q> n
    -name> remote
    -Type of storage to configure.
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / SSH/SFTP Connection
    -   \ "sftp"
    -[snip]
    -Storage> sftp
    -SSH host to connect to
    -Choose a number from below, or type in your own value
    - 1 / Connect to example.com
    -   \ "example.com"
    -host> example.com
    -SSH username
    -Enter a string value. Press Enter for the default ("$USER").
    -user> sftpuser
    -SSH port number
    -Enter a signed integer. Press Enter for the default (22).
    -port>
    -SSH password, leave blank to use ssh-agent.
    -y) Yes type in my own password
    -g) Generate random password
    -n) No leave this optional password blank
    -y/g/n> n
    -Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent.
    -key_file>
    -Remote config
    ---------------------
    +

    No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n name> remote Type of storage to configure. Choose a number from below, or type in your own value [snip] XX / SSH/SFTP  "sftp" [snip] Storage> sftp SSH host to connect to Choose a number from below, or type in your own value 1 / Connect to example.com  "example.com" host> example.com SSH username Enter a string value. Press Enter for the default ("$USER"). user> sftpuser SSH port number Enter a signed integer. Press Enter for the default (22). port> SSH password, leave blank to use ssh-agent. y) Yes type in my own password g) Generate random password n) No leave this optional password blank y/g/n> n Path to unencrypted PEM-encoded private key file, leave blank to use ssh-agent. key_file> Remote config -------------------- [remote] host = example.com user = sftpuser port = pass = key_file = -------------------- y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y

    +
    
    +This remote is called `remote` and can now be used like this:
    +
    +See all directories in the home directory
    +
    +    rclone lsd remote:
    +
    +See all directories in the root directory
    +
    +    rclone lsd remote:/
    +
    +Make a new directory
    +
    +    rclone mkdir remote:path/to/directory
    +
    +List the contents of a directory
    +
    +    rclone ls remote:path/to/directory
    +
    +Sync `/home/local/directory` to the remote directory, deleting any
    +excess files in the directory.
    +
    +    rclone sync --interactive /home/local/directory remote:directory
    +
    +Mount the remote path `/srv/www-data/` to the local path
    +`/mnt/www-data`
    +
    +    rclone mount remote:/srv/www-data/ /mnt/www-data
    +
    +### SSH Authentication
    +
    +The SFTP remote supports three authentication methods:
    +
    +  * Password
    +  * Key file, including certificate signed keys
    +  * ssh-agent
    +
    +Key files should be PEM-encoded private key files. For instance `/home/$USER/.ssh/id_rsa`.
    +Only unencrypted OpenSSH or PEM encrypted files are supported.
    +
    +The key file can be specified in either an external file (key_file) or contained within the 
    +rclone config file (key_pem).  If using key_pem in the config file, the entry should be on a
    +single line with new line ('\n' or '\r\n') separating lines.  i.e.
    +
    +    key_pem = -----BEGIN RSA PRIVATE KEY-----\nMaMbaIXtE\n0gAMbMbaSsd\nMbaass\n-----END RSA PRIVATE KEY-----
    +
    +This will generate it correctly for key_pem for use in the config:
    +
    +    awk '{printf "%s\\n", $0}' < ~/.ssh/id_rsa
    +
    +If you don't specify `pass`, `key_file`, or `key_pem` or `ask_password` then
    +rclone will attempt to contact an ssh-agent. You can also specify `key_use_agent`
    +to force the usage of an ssh-agent. In this case `key_file` or `key_pem` can
    +also be specified to force the usage of a specific key in the ssh-agent.
    +
    +Using an ssh-agent is the only way to load encrypted OpenSSH keys at the moment.
    +
    +If you set the `ask_password` option, rclone will prompt for a password when
    +needed and no password has been configured.
    +
    +#### Certificate-signed keys
    +
    +With traditional key-based authentication, you configure your private key only,
    +and the public key built into it will be used during the authentication process.
    +
    +If you have a certificate you may use it to sign your public key, creating a
    +separate SSH user certificate that should be used instead of the plain public key
    +extracted from the private key. Then you must provide the path to the
    +user certificate public key file in `pubkey_file`.
    +
    +Note: This is not the traditional public key paired with your private key,
    +typically saved as `/home/$USER/.ssh/id_rsa.pub`. Setting this path in
    +`pubkey_file` will not work.
    +
    +Example:
    +
    +

    [remote] type = sftp host = example.com user = sftpuser key_file = ~/id_rsa pubkey_file = ~/id_rsa-cert.pub

    +
    
    +If you concatenate a cert with a private key then you can specify the
    +merged file in both places.
    +
    +Note: the cert must come first in the file.  e.g.
    +
    +```
    +cat id_rsa-cert.pub id_rsa > merged_key
    +```
    +
    +### Host key validation
    +
    +By default rclone will not check the server's host key for validation.  This
    +can allow an attacker to replace a server with their own and if you use
    +password authentication then this can lead to that password being exposed.
    +
    +Host key matching, using standard `known_hosts` files can be turned on by
    +enabling the `known_hosts_file` option.  This can point to the file maintained
    +by `OpenSSH` or can point to a unique file.
    +
    +e.g. using the OpenSSH `known_hosts` file:
    +
    +```
     [remote]
    -host = example.com
    -user = sftpuser
    -port =
    -pass =
    -key_file =
    ---------------------
    -y) Yes this is OK
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    This remote is called remote and can now be used like this:

    -

    See all directories in the home directory

    -
    rclone lsd remote:
    -

    See all directories in the root directory

    -
    rclone lsd remote:/
    -

    Make a new directory

    -
    rclone mkdir remote:path/to/directory
    -

    List the contents of a directory

    -
    rclone ls remote:path/to/directory
    -

    Sync /home/local/directory to the remote directory, deleting any excess files in the directory.

    -
    rclone sync -i /home/local/directory remote:directory
    -

    Mount the remote path /srv/www-data/ to the local path /mnt/www-data

    -
    rclone mount remote:/srv/www-data/ /mnt/www-data
    -

    SSH Authentication

    -

    The SFTP remote supports three authentication methods:

    -
      -
    • Password
    • -
    • Key file, including certificate signed keys
    • -
    • ssh-agent
    • -
    -

    Key files should be PEM-encoded private key files. For instance /home/$USER/.ssh/id_rsa. Only unencrypted OpenSSH or PEM encrypted files are supported.

    -

    The key file can be specified in either an external file (key_file) or contained within the rclone config file (key_pem). If using key_pem in the config file, the entry should be on a single line with new line ('' or '') separating lines. i.e.

    -
    key_pem = -----BEGIN RSA PRIVATE KEY-----\nMaMbaIXtE\n0gAMbMbaSsd\nMbaass\n-----END RSA PRIVATE KEY-----
    -

    This will generate it correctly for key_pem for use in the config:

    -
    awk '{printf "%s\\n", $0}' < ~/.ssh/id_rsa
    -

    If you don't specify pass, key_file, or key_pem or ask_password then rclone will attempt to contact an ssh-agent. You can also specify key_use_agent to force the usage of an ssh-agent. In this case key_file or key_pem can also be specified to force the usage of a specific key in the ssh-agent.

    -

    Using an ssh-agent is the only way to load encrypted OpenSSH keys at the moment.

    -

    If you set the ask_password option, rclone will prompt for a password when needed and no password has been configured.

    -

    Certificate-signed keys

    -

    With traditional key-based authentication, you configure your private key only, and the public key built into it will be used during the authentication process.

    -

    If you have a certificate you may use it to sign your public key, creating a separate SSH user certificate that should be used instead of the plain public key extracted from the private key. Then you must provide the path to the user certificate public key file in pubkey_file.

    -

    Note: This is not the traditional public key paired with your private key, typically saved as /home/$USER/.ssh/id_rsa.pub. Setting this path in pubkey_file will not work.

    -

    Example:

    -
    [remote]
    -type = sftp
    -host = example.com
    -user = sftpuser
    -key_file = ~/id_rsa
    -pubkey_file = ~/id_rsa-cert.pub
    -

    If you concatenate a cert with a private key then you can specify the merged file in both places.

    -

    Note: the cert must come first in the file. e.g.

    -
    cat id_rsa-cert.pub id_rsa > merged_key
    -

    Host key validation

    -

    By default rclone will not check the server's host key for validation. This can allow an attacker to replace a server with their own and if you use password authentication then this can lead to that password being exposed.

    -

    Host key matching, using standard known_hosts files can be turned on by enabling the known_hosts_file option. This can point to the file maintained by OpenSSH or can point to a unique file.

    -

    e.g. using the OpenSSH known_hosts file:

    -
    [remote]
     type = sftp
     host = example.com
     user = sftpuser
    @@ -22490,12 +33442,30 @@ 

    ssh-agent on macOS

    And then at the end of the session

    eval `ssh-agent -k`

    These commands can be used in scripts of course.

    -

    Modified time

    +

    Shell access

    +

    Some functionality of the SFTP backend relies on remote shell access, and the possibility to execute commands. This includes checksum, and in some cases also about. The shell commands that must be executed may be different on different type of shells, and also quoting/escaping of file path arguments containing special characters may be different. Rclone therefore needs to know what type of shell it is, and if shell access is available at all.

    +

    Most servers run on some version of Unix, and then a basic Unix shell can be assumed, without further distinction. Windows 10, Server 2019, and later can also run a SSH server, which is a port of OpenSSH (see official installation guide). On a Windows server the shell handling is different: Although it can also be set up to use a Unix type shell, e.g. Cygwin bash, the default is to use Windows Command Prompt (cmd.exe), and PowerShell is a recommended alternative. All of these have behave differently, which rclone must handle.

    +

    Rclone tries to auto-detect what type of shell is used on the server, first time you access the SFTP remote. If a remote shell session is successfully created, it will look for indications that it is CMD or PowerShell, with fall-back to Unix if not something else is detected. If unable to even create a remote shell session, then shell command execution will be disabled entirely. The result is stored in the SFTP remote configuration, in option shell_type, so that the auto-detection only have to be performed once. If you manually set a value for this option before first run, the auto-detection will be skipped, and if you set a different value later this will override any existing. Value none can be set to avoid any attempts at executing shell commands, e.g. if this is not allowed on the server.

    +

    When the server is rclone serve sftp, the rclone SFTP remote will detect this as a Unix type shell - even if it is running on Windows. This server does not actually have a shell, but it accepts input commands matching the specific ones that the SFTP backend relies on for Unix shells, e.g. md5sum and df. Also it handles the string escape rules used for Unix shell. Treating it as a Unix type shell from a SFTP remote will therefore always be correct, and support all features.

    +

    Shell access considerations

    +

    The shell type auto-detection logic, described above, means that by default rclone will try to run a shell command the first time a new sftp remote is accessed. If you configure a sftp remote without a config file, e.g. an on the fly remote, rclone will have nowhere to store the result, and it will re-run the command on every access. To avoid this you should explicitly set the shell_type option to the correct value, or to none if you want to prevent rclone from executing any remote shell commands.

    +

    It is also important to note that, since the shell type decides how quoting and escaping of file paths used as command-line arguments are performed, configuring the wrong shell type may leave you exposed to command injection exploits. Make sure to confirm the auto-detected shell type, or explicitly set the shell type you know is correct, or disable shell access until you know.

    +

    Checksum

    +

    SFTP does not natively support checksums (file hash), but rclone is able to use checksumming if the same login has shell access, and can execute remote commands. If there is a command that can calculate compatible checksums on the remote system, Rclone can then be configured to execute this whenever a checksum is needed, and read back the results. Currently MD5 and SHA-1 are supported.

    +

    Normally this requires an external utility being available on the server. By default rclone will try commands md5sum, md5 and rclone md5sum for MD5 checksums, and the first one found usable will be picked. Same with sha1sum, sha1 and rclone sha1sum commands for SHA-1 checksums. These utilities normally need to be in the remote's PATH to be found.

    +

    In some cases the shell itself is capable of calculating checksums. PowerShell is an example of such a shell. If rclone detects that the remote shell is PowerShell, which means it most probably is a Windows OpenSSH server, rclone will use a predefined script block to produce the checksums when no external checksum commands are found (see shell access). This assumes PowerShell version 4.0 or newer.

    +

    The options md5sum_command and sha1_command can be used to customize the command to be executed for calculation of checksums. You can for example set a specific path to where md5sum and sha1sum executables are located, or use them to specify some other tools that print checksums in compatible format. The value can include command-line arguments, or even shell script blocks as with PowerShell. Rclone has subcommands md5sum and sha1sum that use compatible format, which means if you have an rclone executable on the server it can be used. As mentioned above, they will be automatically picked up if found in PATH, but if not you can set something like /path/to/rclone md5sum as the value of option md5sum_command to make sure a specific executable is used.

    +

    Remote checksumming is recommended and enabled by default. First time rclone is using a SFTP remote, if options md5sum_command or sha1_command are not set, it will check if any of the default commands for each of them, as described above, can be used. The result will be saved in the remote configuration, so next time it will use the same. Value none will be set if none of the default commands could be used for a specific algorithm, and this algorithm will not be supported by the remote.

    +

    Disabling the checksumming may be required if you are connecting to SFTP servers which are not under your control, and to which the execution of remote shell commands is prohibited. Set the configuration option disable_hashcheck to true to disable checksumming entirely, or set shell_type to none to disable all functionality based on remote shell command execution.

    +

    Modified time

    Modified times are stored on the server to 1 second precision.

    Modified times are used in syncing and are fully supported.

    Some SFTP servers disable setting/modifying the file modification time after upload (for example, certain configurations of ProFTPd with mod_sftp). If you are using one of these servers, you can set the option set_modtime = false in your RClone backend configuration to disable this behaviour.

    -

    Standard options

    -

    Here are the standard options specific to sftp (SSH/SFTP Connection).

    +

    About command

    +

    The about command returns the total space, free space, and used space on the remote for the disk of the specified path on the remote or, if not set, the disk of the root on the remote.

    +

    SFTP usually supports the about command, but it depends on the server. If the server implements the vendor-specific VFS statistics extension, which is normally the case with OpenSSH instances, it will be used. If not, but the same login has access to a Unix shell, where the df command is available (e.g. in the remote's PATH), then this will be used instead. If the server shell is PowerShell, probably with a Windows OpenSSH server, rclone will use a built-in shell command (see shell access). If none of the above is applicable, about will fail.

    +

    Standard options

    +

    Here are the Standard options specific to sftp (SSH/SFTP).

    --sftp-host

    SSH host to connect to.

    E.g. "example.com".

    @@ -22599,6 +33569,7 @@

    --sftp-use-insecure-cipher

  • diffie-hellman-group-exchange-sha1
  • Those algorithms are insecure and may allow plaintext data to be recovered by an attacker.

    +

    This must be false if you use either ciphers or key_exchange advanced options.

    Properties:

    • Config: use_insecure_cipher
    • @@ -22627,8 +33598,25 @@

      --sftp-disable-hashcheck

    • Type: bool
    • Default: false
    -

    Advanced options

    -

    Here are the advanced options specific to sftp (SSH/SFTP Connection).

    +

    --sftp-ssh

    +

    Path and arguments to external ssh binary.

    +

    Normally rclone will use its internal ssh library to connect to the SFTP server. However it does not implement all possible ssh options so it may be desirable to use an external ssh binary.

    +

    Rclone ignores all the internal config if you use this option and expects you to configure the ssh binary with the user/host/port and any other options you need.

    +

    Important The ssh command must log in without asking for a password so needs to be configured with keys or certificates.

    +

    Rclone will run the command supplied either with the additional arguments "-s sftp" to access the SFTP subsystem or with commands such as "md5sum /path/to/file" appended to read checksums.

    +

    Any arguments with spaces in should be surrounded by "double quotes".

    +

    An example setting might be:

    +
    ssh -o ServerAliveInterval=20 user@example.com
    +

    Note that when using an external ssh binary rclone makes a new ssh connection for every hash it calculates.

    +

    Properties:

    +
      +
    • Config: ssh
    • +
    • Env Var: RCLONE_SFTP_SSH
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    Advanced options

    +

    Here are the Advanced options specific to sftp (SSH/SFTP).

    --sftp-known-hosts-file

    Optional path to known_hosts file.

    Set this value to enable server host key validation.

    @@ -22658,12 +33646,18 @@

    --sftp-ask-password

  • Default: false
  • --sftp-path-override

    -

    Override path used by SSH connection.

    +

    Override path used by SSH shell commands.

    This allows checksum calculation when SFTP and SSH paths are different. This issue affects among others Synology NAS boxes.

    -

    Shared folders can be found in directories representing volumes

    +

    E.g. if shared folders can be found in directories representing volumes:

    rclone sync /home/local/directory remote:/directory --sftp-path-override /volume2/directory
    -

    Home directory can be found in a shared folder called "home"

    +

    E.g. if home directory can be found in a shared folder called "home":

    rclone sync /home/local/directory remote:/home/directory --sftp-path-override /volume1/homes/USER/directory
    +

    To specify only the path to the SFTP remote's root, and allow rclone to add any relative subpaths automatically (including unwrapping/decrypting remotes as necessary), add the '@' character to the beginning of the path.

    +

    E.g. the first example above could be rewritten as:

    +
    rclone sync /home/local/directory remote:/directory --sftp-path-override @/volume2
    +

    Note that when using this method with Synology "home" folders, the full "/homes/USER" path should be specified instead of "/home".

    +

    E.g. the second example above should be rewritten as:

    +
    rclone sync /home/local/directory remote:/homes/USER/directory --sftp-path-override @/volume1

    Properties:

    • Config: path_override
    • @@ -22680,6 +33674,35 @@

      --sftp-set-modtime

    • Type: bool
    • Default: true
    +

    --sftp-shell-type

    +

    The type of SSH shell on remote server, if any.

    +

    Leave blank for autodetect.

    +

    Properties:

    +
      +
    • Config: shell_type
    • +
    • Env Var: RCLONE_SFTP_SHELL_TYPE
    • +
    • Type: string
    • +
    • Required: false
    • +
    • Examples: +
        +
      • "none" +
          +
        • No shell access
        • +
      • +
      • "unix" +
          +
        • Unix shell
        • +
      • +
      • "powershell" +
          +
        • PowerShell
        • +
      • +
      • "cmd" +
          +
        • Windows Command Prompt
        • +
      • +
    • +

    --sftp-md5sum-command

    The command used to read md5 hashes.

    Leave blank for autodetect.

    @@ -22713,83 +33736,372 @@

    --sftp-subsystem

    Specifies the SSH2 subsystem on the remote host.

    Properties:

      -
    • Config: subsystem
    • -
    • Env Var: RCLONE_SFTP_SUBSYSTEM
    • +
    • Config: subsystem
    • +
    • Env Var: RCLONE_SFTP_SUBSYSTEM
    • +
    • Type: string
    • +
    • Default: "sftp"
    • +
    +

    --sftp-server-command

    +

    Specifies the path or command to run a sftp server on the remote host.

    +

    The subsystem option is ignored when server_command is defined.

    +

    If adding server_command to the configuration file please note that it should not be enclosed in quotes, since that will make rclone fail.

    +

    A working example is:

    +
    [remote_name]
    +type = sftp
    +server_command = sudo /usr/libexec/openssh/sftp-server
    +

    Properties:

    +
      +
    • Config: server_command
    • +
    • Env Var: RCLONE_SFTP_SERVER_COMMAND
    • +
    • Type: string
    • +
    • Required: false
    • +
    +

    --sftp-use-fstat

    +

    If set use fstat instead of stat.

    +

    Some servers limit the amount of open files and calling Stat after opening the file will throw an error from the server. Setting this flag will call Fstat instead of Stat which is called on an already open file handle.

    +

    It has been found that this helps with IBM Sterling SFTP servers which have "extractability" level set to 1 which means only 1 file can be opened at any given time.

    +

    Properties:

    +
      +
    • Config: use_fstat
    • +
    • Env Var: RCLONE_SFTP_USE_FSTAT
    • +
    • Type: bool
    • +
    • Default: false
    • +
    +

    --sftp-disable-concurrent-reads

    +

    If set don't use concurrent reads.

    +

    Normally concurrent reads are safe to use and not using them will degrade performance, so this option is disabled by default.

    +

    Some servers limit the amount number of times a file can be downloaded. Using concurrent reads can trigger this limit, so if you have a server which returns

    +
    Failed to copy: file does not exist
    +

    Then you may need to enable this flag.

    +

    If concurrent reads are disabled, the use_fstat option is ignored.

    +

    Properties:

    +
      +
    • Config: disable_concurrent_reads
    • +
    • Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_READS
    • +
    • Type: bool
    • +
    • Default: false
    • +
    +

    --sftp-disable-concurrent-writes

    +

    If set don't use concurrent writes.

    +

    Normally rclone uses concurrent writes to upload files. This improves the performance greatly, especially for distant servers.

    +

    This option disables concurrent writes should that be necessary.

    +

    Properties:

    +
      +
    • Config: disable_concurrent_writes
    • +
    • Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_WRITES
    • +
    • Type: bool
    • +
    • Default: false
    • +
    +

    --sftp-idle-timeout

    +

    Max time before closing idle connections.

    +

    If no connections have been returned to the connection pool in the time given, rclone will empty the connection pool.

    +

    Set to 0 to keep connections indefinitely.

    +

    Properties:

    +
      +
    • Config: idle_timeout
    • +
    • Env Var: RCLONE_SFTP_IDLE_TIMEOUT
    • +
    • Type: Duration
    • +
    • Default: 1m0s
    • +
    +

    --sftp-chunk-size

    +

    Upload and download chunk size.

    +

    This controls the maximum size of payload in SFTP protocol packets. The RFC limits this to 32768 bytes (32k), which is the default. However, a lot of servers support larger sizes, typically limited to a maximum total package size of 256k, and setting it larger will increase transfer speed dramatically on high latency links. This includes OpenSSH, and, for example, using the value of 255k works well, leaving plenty of room for overhead while still being within a total packet size of 256k.

    +

    Make sure to test thoroughly before using a value higher than 32k, and only use it if you always connect to the same server or after sufficiently broad testing. If you get errors such as "failed to send packet payload: EOF", lots of "connection lost", or "corrupted on transfer", when copying a larger file, try lowering the value. The server run by rclone serve sftp sends packets with standard 32k maximum payload so you must not set a different chunk_size when downloading files, but it accepts packets up to the 256k total size, so for uploads the chunk_size can be set as for the OpenSSH example above.

    +

    Properties:

    +
      +
    • Config: chunk_size
    • +
    • Env Var: RCLONE_SFTP_CHUNK_SIZE
    • +
    • Type: SizeSuffix
    • +
    • Default: 32Ki
    • +
    +

    --sftp-concurrency

    +

    The maximum number of outstanding requests for one file

    +

    This controls the maximum number of outstanding requests for one file. Increasing it will increase throughput on high latency links at the cost of using more memory.

    +

    Properties:

    +
      +
    • Config: concurrency
    • +
    • Env Var: RCLONE_SFTP_CONCURRENCY
    • +
    • Type: int
    • +
    • Default: 64
    • +
    +

    --sftp-set-env

    +

    Environment variables to pass to sftp and commands

    +

    Set environment variables in the form:

    +
    VAR=value
    +

    to be passed to the sftp client and to any commands run (eg md5sum).

    +

    Pass multiple variables space separated, eg

    +
    VAR1=value VAR2=value
    +

    and pass variables with spaces in quotes, eg

    +
    "VAR3=value with space" "VAR4=value with space" VAR5=nospacehere
    +

    Properties:

    +
      +
    • Config: set_env
    • +
    • Env Var: RCLONE_SFTP_SET_ENV
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    --sftp-ciphers

    +

    Space separated list of ciphers to be used for session encryption, ordered by preference.

    +

    At least one must match with server configuration. This can be checked for example using ssh -Q cipher.

    +

    This must not be set if use_insecure_cipher is true.

    +

    Example:

    +
    aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com
    +

    Properties:

    +
      +
    • Config: ciphers
    • +
    • Env Var: RCLONE_SFTP_CIPHERS
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    --sftp-key-exchange

    +

    Space separated list of key exchange algorithms, ordered by preference.

    +

    At least one must match with server configuration. This can be checked for example using ssh -Q kex.

    +

    This must not be set if use_insecure_cipher is true.

    +

    Example:

    +
    sntrup761x25519-sha512@openssh.com curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256
    +

    Properties:

    +
      +
    • Config: key_exchange
    • +
    • Env Var: RCLONE_SFTP_KEY_EXCHANGE
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    --sftp-macs

    +

    Space separated list of MACs (message authentication code) algorithms, ordered by preference.

    +

    At least one must match with server configuration. This can be checked for example using ssh -Q mac.

    +

    Example:

    +
    umac-64-etm@openssh.com umac-128-etm@openssh.com hmac-sha2-256-etm@openssh.com
    +

    Properties:

    +
      +
    • Config: macs
    • +
    • Env Var: RCLONE_SFTP_MACS
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    --sftp-host-key-algorithms

    +

    Space separated list of host key algorithms, ordered by preference.

    +

    At least one must match with server configuration. This can be checked for example using ssh -Q HostKeyAlgorithms.

    +

    Note: This can affect the outcome of key negotiation with the server even if server host key validation is not enabled.

    +

    Example:

    +
    ssh-ed25519 ssh-rsa ssh-dss
    +

    Properties:

    +
      +
    • Config: host_key_algorithms
    • +
    • Env Var: RCLONE_SFTP_HOST_KEY_ALGORITHMS
    • +
    • Type: SpaceSepList
    • +
    • Default:
    • +
    +

    --sftp-socks-proxy

    +

    Socks 5 proxy host.

    +

    Supports the format user:pass@host:port, user@host:port, host:port.

    +

    Example:

    +
    myUser:myPass@localhost:9005
    +

    Properties:

    +
      +
    • Config: socks_proxy
    • +
    • Env Var: RCLONE_SFTP_SOCKS_PROXY
    • +
    • Type: string
    • +
    • Required: false
    • +
    +

    Limitations

    +

    On some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly. For them using disable_hashcheck is a good idea.

    +

    The only ssh agent supported under Windows is Putty's pageant.

    +

    The Go SSH library disables the use of the aes128-cbc cipher by default, due to security concerns. This can be re-enabled on a per-connection basis by setting the use_insecure_cipher setting in the configuration file to true. Further details on the insecurity of this cipher can be found in this paper.

    +

    SFTP isn't supported under plan9 until this issue is fixed.

    +

    Note that since SFTP isn't HTTP based the following flags don't work with it: --dump-headers, --dump-bodies, --dump-auth.

    +

    Note that --timeout and --contimeout are both supported.

    +

    rsync.net

    +

    rsync.net is supported through the SFTP backend.

    +

    See rsync.net's documentation of rclone examples.

    +

    Hetzner Storage Box

    +

    Hetzner Storage Boxes are supported through the SFTP backend on port 23.

    +

    See Hetzner's documentation for details

    +

    SMB

    +

    SMB is a communication protocol to share files over network.

    +

    This relies on go-smb2 library for communication with SMB protocol.

    +

    Paths are specified as remote:sharename (or remote: for the lsd command.) You may put subdirectories in too, e.g. remote:item/path/to/dir.

    +

    Notes

    +

    The first path segment must be the name of the share, which you entered when you started to share on Windows. On smbd, it's the section title in smb.conf (usually in /etc/samba/) file. You can find shares by querying the root if you're unsure (e.g. rclone lsd remote:).

    +

    You can't access to the shared printers from rclone, obviously.

    +

    You can't use Anonymous access for logging in. You have to use the guest user with an empty password instead. The rclone client tries to avoid 8.3 names when uploading files by encoding trailing spaces and periods. Alternatively, the local backend on Windows can access SMB servers using UNC paths, by \\server\share. This doesn't apply to non-Windows OSes, such as Linux and macOS.

    +

    Configuration

    +

    Here is an example of making a SMB configuration.

    +

    First run

    +
    rclone config
    +

    This will guide you through an interactive setup process.

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +q) Quit config
    +n/s/q> n
    +name> remote
    +Option Storage.
    +Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +XX / SMB / CIFS
    +   \ (smb)
    +Storage> smb
    +
    +Option host.
    +Samba hostname to connect to.
    +E.g. "example.com".
    +Enter a value.
    +host> localhost
    +
    +Option user.
    +Samba username.
    +Enter a string value. Press Enter for the default (lesmi).
    +user> guest
    +
    +Option port.
    +Samba port number.
    +Enter a signed integer. Press Enter for the default (445).
    +port> 
    +
    +Option pass.
    +Samba password.
    +Choose an alternative below. Press Enter for the default (n).
    +y) Yes, type in my own password
    +g) Generate random password
    +n) No, leave this optional password blank (default)
    +y/g/n> g
    +Password strength in bits.
    +64 is just about memorable
    +128 is secure
    +1024 is the maximum
    +Bits> 64
    +Your password is: XXXX
    +Use this password? Please note that an obscured version of this 
    +password (and not the password itself) will be stored under your 
    +configuration file, so keep this generated password in a safe place.
    +y) Yes (default)
    +n) No
    +y/n> y
    +
    +Option domain.
    +Domain name for NTLM authentication.
    +Enter a string value. Press Enter for the default (WORKGROUP).
    +domain> 
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: samba
    +- host: localhost
    +- user: guest
    +- pass: *** ENCRYPTED ***
    +Keep this "remote" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> d
    +

    Standard options

    +

    Here are the Standard options specific to smb (SMB / CIFS).

    +

    --smb-host

    +

    SMB server hostname to connect to.

    +

    E.g. "example.com".

    +

    Properties:

    +
      +
    • Config: host
    • +
    • Env Var: RCLONE_SMB_HOST
    • +
    • Type: string
    • +
    • Required: true
    • +
    +

    --smb-user

    +

    SMB username.

    +

    Properties:

    +
      +
    • Config: user
    • +
    • Env Var: RCLONE_SMB_USER
    • +
    • Type: string
    • +
    • Default: "$USER"
    • +
    +

    --smb-port

    +

    SMB port number.

    +

    Properties:

    +
      +
    • Config: port
    • +
    • Env Var: RCLONE_SMB_PORT
    • +
    • Type: int
    • +
    • Default: 445
    • +
    +

    --smb-pass

    +

    SMB password.

    +

    NB Input to this must be obscured - see rclone obscure.

    +

    Properties:

    +
      +
    • Config: pass
    • +
    • Env Var: RCLONE_SMB_PASS
    • +
    • Type: string
    • +
    • Required: false
    • +
    +

    --smb-domain

    +

    Domain name for NTLM authentication.

    +

    Properties:

    +
      +
    • Config: domain
    • +
    • Env Var: RCLONE_SMB_DOMAIN
    • Type: string
    • -
    • Default: "sftp"
    • +
    • Default: "WORKGROUP"
    -

    --sftp-server-command

    -

    Specifies the path or command to run a sftp server on the remote host.

    -

    The subsystem option is ignored when server_command is defined.

    +

    --smb-spn

    +

    Service principal name.

    +

    Rclone presents this name to the server. Some servers use this as further authentication, and it often needs to be set for clusters. For example:

    +
    cifs/remotehost:1020
    +

    Leave blank if not sure.

    Properties:

      -
    • Config: server_command
    • -
    • Env Var: RCLONE_SFTP_SERVER_COMMAND
    • +
    • Config: spn
    • +
    • Env Var: RCLONE_SMB_SPN
    • Type: string
    • Required: false
    -

    --sftp-use-fstat

    -

    If set use fstat instead of stat.

    -

    Some servers limit the amount of open files and calling Stat after opening the file will throw an error from the server. Setting this flag will call Fstat instead of Stat which is called on an already open file handle.

    -

    It has been found that this helps with IBM Sterling SFTP servers which have "extractability" level set to 1 which means only 1 file can be opened at any given time.

    +

    Advanced options

    +

    Here are the Advanced options specific to smb (SMB / CIFS).

    +

    --smb-idle-timeout

    +

    Max time before closing idle connections.

    +

    If no connections have been returned to the connection pool in the time given, rclone will empty the connection pool.

    +

    Set to 0 to keep connections indefinitely.

    Properties:

      -
    • Config: use_fstat
    • -
    • Env Var: RCLONE_SFTP_USE_FSTAT
    • -
    • Type: bool
    • -
    • Default: false
    • +
    • Config: idle_timeout
    • +
    • Env Var: RCLONE_SMB_IDLE_TIMEOUT
    • +
    • Type: Duration
    • +
    • Default: 1m0s
    -

    --sftp-disable-concurrent-reads

    -

    If set don't use concurrent reads.

    -

    Normally concurrent reads are safe to use and not using them will degrade performance, so this option is disabled by default.

    -

    Some servers limit the amount number of times a file can be downloaded. Using concurrent reads can trigger this limit, so if you have a server which returns

    -
    Failed to copy: file does not exist
    -

    Then you may need to enable this flag.

    -

    If concurrent reads are disabled, the use_fstat option is ignored.

    +

    --smb-hide-special-share

    +

    Hide special shares (e.g. print$) which users aren't supposed to access.

    Properties:

      -
    • Config: disable_concurrent_reads
    • -
    • Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_READS
    • +
    • Config: hide_special_share
    • +
    • Env Var: RCLONE_SMB_HIDE_SPECIAL_SHARE
    • Type: bool
    • -
    • Default: false
    • +
    • Default: true
    -

    --sftp-disable-concurrent-writes

    -

    If set don't use concurrent writes.

    -

    Normally rclone uses concurrent writes to upload files. This improves the performance greatly, especially for distant servers.

    -

    This option disables concurrent writes should that be necessary.

    +

    --smb-case-insensitive

    +

    Whether the server is configured to be case-insensitive.

    +

    Always true on Windows shares.

    Properties:

      -
    • Config: disable_concurrent_writes
    • -
    • Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_WRITES
    • +
    • Config: case_insensitive
    • +
    • Env Var: RCLONE_SMB_CASE_INSENSITIVE
    • Type: bool
    • -
    • Default: false
    • +
    • Default: true
    -

    --sftp-idle-timeout

    -

    Max time before closing idle connections.

    -

    If no connections have been returned to the connection pool in the time given, rclone will empty the connection pool.

    -

    Set to 0 to keep connections indefinitely.

    +

    --smb-encoding

    +

    The encoding for the backend.

    +

    See the encoding section in the overview for more info.

    Properties:

      -
    • Config: idle_timeout
    • -
    • Env Var: RCLONE_SFTP_IDLE_TIMEOUT
    • -
    • Type: Duration
    • -
    • Default: 1m0s
    • +
    • Config: encoding
    • +
    • Env Var: RCLONE_SMB_ENCODING
    • +
    • Type: MultiEncoder
    • +
    • Default: Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot
    -

    Limitations

    -

    SFTP supports checksums if the same login has shell access and md5sum or sha1sum as well as echo are in the remote's PATH. This remote checksumming (file hashing) is recommended and enabled by default. Disabling the checksumming may be required if you are connecting to SFTP servers which are not under your control, and to which the execution of remote commands is prohibited. Set the configuration option disable_hashcheck to true to disable checksumming.

    -

    SFTP also supports about if the same login has shell access and df are in the remote's PATH. about will return the total space, free space, and used space on the remote for the disk of the specified path on the remote or, if not set, the disk of the root on the remote. about will fail if it does not have shell access or if df is not in the remote's PATH.

    -

    Note that some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly. For them using disable_hashcheck is a good idea.

    -

    The only ssh agent supported under Windows is Putty's pageant.

    -

    The Go SSH library disables the use of the aes128-cbc cipher by default, due to security concerns. This can be re-enabled on a per-connection basis by setting the use_insecure_cipher setting in the configuration file to true. Further details on the insecurity of this cipher can be found in this paper.

    -

    SFTP isn't supported under plan9 until this issue is fixed.

    -

    Note that since SFTP isn't HTTP based the following flags don't work with it: --dump-headers, --dump-bodies, --dump-auth

    -

    Note that --timeout and --contimeout are both supported.

    -

    C14

    -

    C14 is supported through the SFTP backend.

    -

    See C14's documentation

    -

    rsync.net

    -

    rsync.net is supported through the SFTP backend.

    -

    See rsync.net's documentation of rclone examples.

    Storj

    Storj is an encrypted, secure, and cost-effective object storage service that enables you to store, back up, and archive large amounts of data in a decentralized manner.

    Backend options

    @@ -22849,7 +34161,7 @@

    Backend options

  • S3 backend: secret encryption key is shared with the gateway
  • -

    Configuration

    +

    Configuration

    To make a new Storj configuration you need one of the following: * Access Grant that someone else shared with you. * API Key of a Storj project you are a member of.

    Here is an example of how to make a remote called remote. First run:

     rclone config
    @@ -22918,14 +34230,14 @@

    Setup with API key and passphrase

    Setup with API key and passphraseSetup with API key and passphrase
    -

    Standard options

    -

    Here are the standard options specific to storj (Storj Decentralized Cloud Storage).

    +

    Standard options

    +

    Here are the Standard options specific to storj (Storj Decentralized Cloud Storage).

    --storj-provider

    Choose an authentication method.

    Properties:

    @@ -22987,20 +34299,20 @@

    --storj-satellite-address

  • Env Var: RCLONE_STORJ_SATELLITE_ADDRESS
  • Provider: new
  • Type: string
  • -
  • Default: "us-central-1.storj.io"
  • +
  • Default: "us1.storj.io"
  • Examples:
      -
    • "us-central-1.storj.io" +
    • "us1.storj.io"
        -
      • US Central 1
      • +
      • US1
    • -
    • "europe-west-1.storj.io" +
    • "eu1.storj.io"
        -
      • Europe West 1
      • +
      • EU1
    • -
    • "asia-east-1.storj.io" +
    • "ap1.storj.io"
        -
      • Asia East 1
      • +
      • AP1
  • @@ -23025,7 +34337,7 @@

    --storj-passphrase

  • Type: string
  • Required: false
  • -

    Usage

    +

    Usage

    Paths are specified as remote:bucket (or remote: for the lsf command.) You may put subdirectories in too, e.g. remote:bucket/path/to/dir.

    Once configured you can then use rclone like this.

    Create a new bucket

    @@ -23070,24 +34382,24 @@
    rclone size remote:bucket/path/to/dir/

    Sync two Locations

    Use the sync command to sync the source to the destination, changing the destination only, deleting any excess files.

    -
    rclone sync -i --progress /home/local/directory/ remote:bucket/path/to/dir/
    +
    rclone sync --interactive --progress /home/local/directory/ remote:bucket/path/to/dir/

    The --progress flag is for displaying progress information. Remove it if you don't need this information.

    Since this can cause data loss, test first with the --dry-run flag to see exactly what would be copied and deleted.

    The sync can be done also from Storj to the local file system.

    -
    rclone sync -i --progress remote:bucket/path/to/dir/ /home/local/directory/
    +
    rclone sync --interactive --progress remote:bucket/path/to/dir/ /home/local/directory/

    Or between two Storj buckets.

    -
    rclone sync -i --progress remote-us:bucket/path/to/dir/ remote-europe:bucket/path/to/dir/
    +
    rclone sync --interactive --progress remote-us:bucket/path/to/dir/ remote-europe:bucket/path/to/dir/

    Or even between another cloud storage and Storj.

    -
    rclone sync -i --progress s3:bucket/path/to/dir/ storj:bucket/path/to/dir/
    -

    Limitations

    +
    rclone sync --interactive --progress s3:bucket/path/to/dir/ storj:bucket/path/to/dir/
    +

    Limitations

    rclone about is not supported by the rclone Storj backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    -

    Known issues

    +

    See List of backends that do not support rclone about and rclone about

    +

    Known issues

    If you get errors like too many open files this usually happens when the default ulimit for system max open files is exceeded. Native Storj protocol opens a large number of TCP connections (each of which is counted as an open file). For a single upload stream you can expect 110 TCP connections to be opened. For a single download stream you can expect 35. This batch of connections will be opened for every 64 MiB segment and you should also expect TCP connections to be reused. If you do many transfers you eventually open a connection to most storage nodes (thousands of nodes).

    To fix these, please raise your system limits. You can do this issuing a ulimit -n 65536 just before you run rclone. To change the limits more permanently you can add this to your shell startup script, e.g. $HOME/.bashrc, or change the system-wide configuration, usually /etc/sysctl.conf and/or /etc/security/limits.conf, but please refer to your operating system manual.

    SugarSync

    SugarSync is a cloud service that enables active synchronization of files across computers and other devices for file backup, access, syncing, and sharing.

    -

    Configuration

    +

    Configuration

    The initial setup for SugarSync involves getting a token from SugarSync which you can do with rclone. rclone config walks you through it.

    Here is an example of how to make a remote called remote. First run:

     rclone config
    @@ -23152,16 +34464,16 @@

    Configuration

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    NB you can't create files in the top level folder you have to create a folder, which rclone will create as a "Sync Folder" with SugarSync.

    -

    Modified time and hashes

    +

    Modified time and hashes

    SugarSync does not support modification times or hashes, therefore syncing will default to --size-only checking. Note that using --update will work as rclone can read the time files were uploaded.

    -

    Restricted filename characters

    +

    Restricted filename characters

    SugarSync replaces the default restricted characters set except for DEL.

    Invalid UTF-8 bytes will also be replaced, as they can't be used in XML strings.

    -

    Deleting files

    +

    Deleting files

    Deleted files will be moved to the "Deleted items" folder by default.

    However you can supply the flag --sugarsync-hard-delete or set the config parameter hard_delete = true if you would like files to be deleted straight away.

    -

    Standard options

    -

    Here are the standard options specific to sugarsync (Sugarsync).

    +

    Standard options

    +

    Here are the Standard options specific to sugarsync (Sugarsync).

    --sugarsync-app-id

    Sugarsync App ID.

    Leave blank to use rclone's.

    @@ -23201,8 +34513,8 @@

    --sugarsync-hard-delete

  • Type: bool
  • Default: false
  • -

    Advanced options

    -

    Here are the advanced options specific to sugarsync (Sugarsync).

    +

    Advanced options

    +

    Here are the Advanced options specific to sugarsync (Sugarsync).

    --sugarsync-refresh-token

    Sugarsync refresh token.

    Leave blank normally, will be auto configured by rclone.

    @@ -23273,16 +34585,16 @@

    --sugarsync-encoding

  • Type: MultiEncoder
  • Default: Slash,Ctl,InvalidUtf8,Dot
  • -

    Limitations

    +

    Limitations

    rclone about is not supported by the SugarSync backend. Backends without this capability cannot determine free space for an rclone mount or use policy mfs (most free space) as a member of an rclone union remote.

    -

    See List of backends that do not support rclone about See rclone about

    +

    See List of backends that do not support rclone about and rclone about

    Tardigrade

    The Tardigrade backend has been renamed to be the Storj backend. Old configuration files will continue to work.

    Uptobox

    This is a Backend for Uptobox file storage service. Uptobox is closer to a one-click hoster than a traditional cloud storage provider and therefore not suitable for long term storage.

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    To configure an Uptobox backend you'll need your personal api token. You'll find it in your account settings

    Here is an example of how to make a remote called remote with the default setup. First run:

    rclone config
    @@ -23336,9 +34648,9 @@

    Configuration

    rclone ls remote:

    To copy a local directory to an Uptobox directory called backup

    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    Uptobox supports neither modified times nor checksums.

    -

    Restricted filename characters

    +

    Modified time and hashes

    +

    Uptobox supports neither modified times nor checksums. All timestamps will read as that set by --default-time.

    +

    Restricted filename characters

    In addition to the default restricted characters set the following characters are also replaced:

    @@ -23362,8 +34674,8 @@

    Restricted filename characters

    Invalid UTF-8 bytes will also be replaced, as they can't be used in XML strings.

    -

    Standard options

    -

    Here are the standard options specific to uptobox (Uptobox).

    +

    Standard options

    +

    Here are the Standard options specific to uptobox (Uptobox).

    --uptobox-access-token

    Your access token.

    Get it from https://uptobox.com/my_account.

    @@ -23374,8 +34686,17 @@

    --uptobox-access-token

  • Type: string
  • Required: false
  • -

    Advanced options

    -

    Here are the advanced options specific to uptobox (Uptobox).

    +

    Advanced options

    +

    Here are the Advanced options specific to uptobox (Uptobox).

    +

    --uptobox-private

    +

    Set to make uploaded files private

    +

    Properties:

    +
      +
    • Config: private
    • +
    • Env Var: RCLONE_UPTOBOX_PRIVATE
    • +
    • Type: bool
    • +
    • Default: false
    • +

    --uptobox-encoding

    The encoding for the backend.

    See the encoding section in the overview for more info.

    @@ -23386,17 +34707,21 @@

    --uptobox-encoding

  • Type: MultiEncoder
  • Default: Slash,LtGt,DoubleQuote,BackQuote,Del,Ctl,LeftSpace,InvalidUtf8,Dot
  • -

    Limitations

    +

    Limitations

    Uptobox will delete inactive files that have not been accessed in 60 days.

    rclone about is not supported by this backend an overview of used space can however been seen in the uptobox web interface.

    Union

    -

    The union remote provides a unification similar to UnionFS using other remotes.

    -

    Paths may be as deep as required or a local path, e.g. remote:directory/subdirectory or /directory/subdirectory.

    +

    The union backend joins several remotes together to make a single unified view of them.

    During the initial setup with rclone config you will specify the upstream remotes as a space separated list. The upstream remotes can either be a local paths or other remotes.

    -

    Attribute :ro and :nc can be attach to the end of path to tag the remote as read only or no create, e.g. remote:directory/subdirectory:ro or remote:directory/subdirectory:nc.

    +

    The attributes :ro, :nc and :nc can be attached to the end of the remote to tag the remote as read only, no create or writeback, e.g. remote:directory/subdirectory:ro or remote:directory/subdirectory:nc.

    +
      +
    • :ro means files will only be read from here and never written
    • +
    • :nc means new files or directories won't be created here
    • +
    • :writeback means files found in different remotes will be written back here. See the writeback section for more info.
    • +

    Subfolders can be used in upstream remotes. Assume a union remote named backup with the remotes mydrive:private/backup. Invoking rclone mkdir backup:desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/desktop.

    -

    There will be no special handling of paths containing .. segments. Invoking rclone mkdir backup:../desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/../desktop.

    -

    Configuration

    +

    There is no special handling of paths containing .. segments. Invoking rclone mkdir backup:../desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/../desktop.

    +

    Configuration

    Here is an example of how to make a union called remote for local folders. First run:

     rclone config

    This will guide you through an interactive setup process:

    @@ -23617,8 +34942,20 @@

    Policy descriptions

    -

    Standard options

    -

    Here are the standard options specific to union (Union merges the contents of several upstream fs).

    +

    Writeback

    +

    The tag :writeback on an upstream remote can be used to make a simple cache system like this:

    +
    [union]
    +type = union
    +action_policy = all
    +create_policy = all
    +search_policy = ff
    +upstreams = /local:writeback remote:dir
    +

    When files are opened for read, if the file is in remote:dir but not /local then rclone will copy the file entirely into /local before returning a reference to the file in /local. The copy will be done with the equivalent of rclone copy so will use --multi-thread-streams if configured. Any copies will be logged with an INFO log.

    +

    When files are written, they will be written to both remote:dir and /local.

    +

    As many remotes as desired can be added to upstreams but there should only be one :writeback tag.

    +

    Rclone does not manage the :writeback remote in any way other than writing files back to it. So if you need to expire old files or manage the size then you will have to do this yourself.

    +

    Standard options

    +

    Here are the Standard options specific to union (Union merges the contents of several upstream fs).

    --union-upstreams

    List of space separated upstreams.

    Can be 'upstreama:test/dir upstreamb:', '"upstreama:test/space:ro dir" upstreamb:', etc.

    @@ -23666,10 +35003,25 @@

    --union-cache-time

  • Type: int
  • Default: 120
  • +

    Advanced options

    +

    Here are the Advanced options specific to union (Union merges the contents of several upstream fs).

    +

    --union-min-free-space

    +

    Minimum viable free space for lfs/eplfs policies.

    +

    If a remote has less than this much free space then it won't be considered for use in lfs or eplfs policies.

    +

    Properties:

    +
      +
    • Config: min_free_space
    • +
    • Env Var: RCLONE_UNION_MIN_FREE_SPACE
    • +
    • Type: SizeSuffix
    • +
    • Default: 1Gi
    • +
    +

    Metadata

    +

    Any metadata supported by the underlying remote is read and written.

    +

    See the metadata docs for more info.

    WebDAV

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    To configure the WebDAV remote you will need to have a URL for it, and a username and password. If you know what kind of system you are connecting to then rclone can enable extra features.

    Here is an example of how to make a remote called remote. First run:

     rclone config
    @@ -23683,7 +35035,7 @@

    Configuration

    Type of storage to configure. Choose a number from below, or type in your own value [snip] -XX / Webdav +XX / WebDAV \ "webdav" [snip] Storage> webdav @@ -23692,19 +35044,21 @@

    Configuration

    1 / Connect to example.com \ "https://example.com" url> https://example.com/remote.php/webdav/ -Name of the Webdav site/service/software you are using +Name of the WebDAV site/service/software you are using Choose a number from below, or type in your own value - 1 / Nextcloud - \ "nextcloud" - 2 / Owncloud - \ "owncloud" - 3 / Sharepoint Online, authenticated by Microsoft account. - \ "sharepoint" - 4 / Sharepoint with NTLM authentication. Usually self-hosted or on-premises. - \ "sharepoint-ntlm" - 5 / Other site/service or software - \ "other" -vendor> 1 + 1 / Fastmail Files + \ (fastmail) + 2 / Nextcloud + \ (nextcloud) + 3 / Owncloud + \ (owncloud) + 4 / Sharepoint Online, authenticated by Microsoft account + \ (sharepoint) + 5 / Sharepoint with NTLM authentication, usually self-hosted or on-premises + \ (sharepoint-ntlm) + 6 / Other site/service or software + \ (other) +vendor> 2 User name user> user Password. @@ -23739,11 +35093,11 @@

    Configuration

    rclone ls remote:

    To copy a local directory to an WebDAV directory called backup

    rclone copy /home/source remote:backup
    -

    Modified time and hashes

    -

    Plain WebDAV does not support modified times. However when used with Owncloud or Nextcloud rclone will support modified times.

    -

    Likewise plain WebDAV does not support hashes, however when used with Owncloud or Nextcloud rclone will support SHA1 and MD5 hashes. Depending on the exact version of Owncloud or Nextcloud hashes may appear on all objects, or only on objects which had a hash uploaded with them.

    -

    Standard options

    -

    Here are the standard options specific to webdav (Webdav).

    +

    Modified time and hashes

    +

    Plain WebDAV does not support modified times. However when used with Fastmail Files, Owncloud or Nextcloud rclone will support modified times.

    +

    Likewise plain WebDAV does not support hashes, however when used with Fastmail Files, Owncloud or Nextcloud rclone will support SHA1 and MD5 hashes. Depending on the exact version of Owncloud or Nextcloud hashes may appear on all objects, or only on objects which had a hash uploaded with them.

    +

    Standard options

    +

    Here are the Standard options specific to webdav (WebDAV).

    --webdav-url

    URL of http host to connect to.

    E.g. https://example.com.

    @@ -23755,7 +35109,7 @@

    --webdav-url

  • Required: true
  • --webdav-vendor

    -

    Name of the Webdav site/service/software you are using.

    +

    Name of the WebDAV site/service/software you are using.

    Properties:

    • Config: vendor
    • @@ -23764,6 +35118,10 @@

      --webdav-vendor

    • Required: false
    • Examples:
        +
      • "fastmail" +
          +
        • Fastmail Files
        • +
      • "nextcloud"
        • Nextcloud
        • @@ -23815,8 +35173,8 @@

          --webdav-bearer-token

        • Type: string
        • Required: false
        -

        Advanced options

        -

        Here are the advanced options specific to webdav (Webdav).

        +

        Advanced options

        +

        Here are the Advanced options specific to webdav (WebDAV).

        --webdav-bearer-token-command

        Command to run to get a bearer token.

        Properties:

        @@ -23850,8 +35208,31 @@

        --webdav-headers

      • Type: CommaSepList
      • Default:
      +

      --webdav-pacer-min-sleep

      +

      Minimum time to sleep between API calls.

      +

      Properties:

      +
        +
      • Config: pacer_min_sleep
      • +
      • Env Var: RCLONE_WEBDAV_PACER_MIN_SLEEP
      • +
      • Type: Duration
      • +
      • Default: 10ms
      • +
      +

      --webdav-nextcloud-chunk-size

      +

      Nextcloud upload chunk size.

      +

      We recommend configuring your NextCloud instance to increase the max chunk size to 1 GB for better upload performances. See https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#adjust-chunk-size-on-nextcloud-side

      +

      Set to 0 to disable chunked uploading.

      +

      Properties:

      +
        +
      • Config: nextcloud_chunk_size
      • +
      • Env Var: RCLONE_WEBDAV_NEXTCLOUD_CHUNK_SIZE
      • +
      • Type: SizeSuffix
      • +
      • Default: 10Mi
      • +

      Provider notes

      See below for notes on specific providers.

      +

      Fastmail Files

      +

      Use https://webdav.fastmail.com/ or a subdirectory as the URL, and your Fastmail email username@domain.tld as the username. Follow this documentation to create an app password with access to Files (WebDAV) and use this as the password.

      +

      Fastmail supports modified times using the X-OC-Mtime header.

      Owncloud

      Click on the settings cog in the bottom right of the page and this will show the WebDAV URL that rclone needs in the config step. It will look something like https://example.com/remote.php/webdav/.

      Owncloud supports modified times using the X-OC-Mtime header.

      @@ -23922,7 +35303,7 @@

      OpenID-Connect

      bearer_token_command = oidc-token XDC

    Yandex Disk

    Yandex Disk is a cloud storage solution created by Yandex.

    -

    Configuration

    +

    Configuration

    Here is an example of making a yandex configuration. First run

    rclone config

    This will guide you through an interactive setup process:

    @@ -23943,28 +35324,191 @@

    Configuration

    Yandex Client Secret - leave blank normally. client_secret> Remote config -Use auto config? - * Say Y if not sure - * Say N if you are working on a remote or headless machine +Use web browser to automatically authenticate rclone with remote? + * Say Y if the machine running rclone has a web browser you can use + * Say N if running rclone on a (remote) machine without web browser access +If not sure try Y. If Y failed, try N. +y) Yes +n) No +y/n> y +If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth +Log in and authorize rclone for access +Waiting for code... +Got code +-------------------- +[remote] +client_id = +client_secret = +token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"OAuth","expiry":"2016-12-29T12:27:11.362788025Z"} +-------------------- +y) Yes this is OK +e) Edit this remote +d) Delete this remote +y/e/d> y
    +

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    +

    Note that rclone runs a webserver on your local machine to collect the token as returned from Yandex Disk. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    +

    Once configured you can then use rclone like this,

    +

    See top level directories

    +
    rclone lsd remote:
    +

    Make a new directory

    +
    rclone mkdir remote:directory
    +

    List the contents of a directory

    +
    rclone ls remote:directory
    +

    Sync /home/local/directory to the remote path, deleting any excess files in the path.

    +
    rclone sync --interactive /home/local/directory remote:directory
    +

    Yandex paths may be as deep as required, e.g. remote:directory/subdirectory.

    +

    Modified time

    +

    Modified times are supported and are stored accurate to 1 ns in custom metadata called rclone_modified in RFC3339 with nanoseconds format.

    +

    MD5 checksums

    +

    MD5 checksums are natively supported by Yandex Disk.

    +

    Emptying Trash

    +

    If you wish to empty your trash you can use the rclone cleanup remote: command which will permanently delete all your trashed files. This command does not take any path arguments.

    +

    Quota information

    +

    To view your current quota you can use the rclone about remote: command which will display your usage limit (quota) and the current usage.

    +

    Restricted filename characters

    +

    The default restricted characters set are replaced.

    +

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    +

    Standard options

    +

    Here are the Standard options specific to yandex (Yandex Disk).

    +

    --yandex-client-id

    +

    OAuth Client Id.

    +

    Leave blank normally.

    +

    Properties:

    + +

    --yandex-client-secret

    +

    OAuth Client Secret.

    +

    Leave blank normally.

    +

    Properties:

    + +

    Advanced options

    +

    Here are the Advanced options specific to yandex (Yandex Disk).

    +

    --yandex-token

    +

    OAuth Access Token as a JSON blob.

    +

    Properties:

    + +

    --yandex-auth-url

    +

    Auth server URL.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --yandex-token-url

    +

    Token server url.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --yandex-hard-delete

    +

    Delete files permanently rather than putting them into the trash.

    +

    Properties:

    + +

    --yandex-encoding

    +

    The encoding for the backend.

    +

    See the encoding section in the overview for more info.

    +

    Properties:

    + +

    Limitations

    +

    When uploading very large files (bigger than about 5 GiB) you will need to increase the --timeout parameter. This is because Yandex pauses (perhaps to calculate the MD5SUM for the entire file) before returning confirmation that the file has been uploaded. The default handling of timeouts in rclone is to assume a 5 minute pause is an error and close the connection - you'll see net/http: timeout awaiting response headers errors in the logs if this is happening. Setting the timeout to twice the max size of file in GiB should be enough, so if you want to upload a 30 GiB file set a timeout of 2 * 30 = 60m, that is --timeout 60m.

    +

    Having a Yandex Mail account is mandatory to use the Yandex.Disk subscription. Token generation will work without a mail account, but Rclone won't be able to complete any actions.

    +
    [403 - DiskUnsupportedUserAccountTypeError] User account type is not supported.
    +

    Zoho Workdrive

    +

    Zoho WorkDrive is a cloud storage solution created by Zoho.

    +

    Configuration

    +

    Here is an example of making a zoho configuration. First run

    +
    rclone config
    +

    This will guide you through an interactive setup process:

    +
    No remotes found, make a new one?
    +n) New remote
    +s) Set configuration password
    +n/s> n
    +name> remote
    +Type of storage to configure.
    +Enter a string value. Press Enter for the default ("").
    +Choose a number from below, or type in your own value
    +[snip]
    +XX / Zoho
    +   \ "zoho"
    +[snip]
    +Storage> zoho
    +** See help for zoho backend at: https://rclone.org/zoho/ **
    +
    +OAuth Client Id
    +Leave blank normally.
    +Enter a string value. Press Enter for the default ("").
    +client_id> 
    +OAuth Client Secret
    +Leave blank normally.
    +Enter a string value. Press Enter for the default ("").
    +client_secret> 
    +Edit advanced config? (y/n)
     y) Yes
    +n) No (default)
    +y/n> n
    +Remote config
    +Use web browser to automatically authenticate rclone with remote?
    + * Say Y if the machine running rclone has a web browser you can use
    + * Say N if running rclone on a (remote) machine without web browser access
    +If not sure try Y. If Y failed, try N.
    +y) Yes (default)
     n) No
    -y/n> y
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    +y/n> 
    +If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
     Log in and authorize rclone for access
     Waiting for code...
     Got code
    +Choose a number from below, or type in your own value
    + 1 / MyTeam
    +   \ "4u28602177065ff22426787a6745dba8954eb"
    +Enter a Team ID> 1
    +Choose a number from below, or type in your own value
    + 1 / General
    +   \ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
    +Enter a Workspace ID> 1
     --------------------
     [remote]
    -client_id =
    -client_secret =
    -token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"OAuth","expiry":"2016-12-29T12:27:11.362788025Z"}
    +type = zoho
    +token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
    +root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     --------------------
    -y) Yes this is OK
    +y) Yes this is OK (default)
     e) Edit this remote
     d) Delete this remote
    -y/e/d> y
    +y/e/d>

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Note that rclone runs a webserver on your local machine to collect the token as returned from Yandex Disk. This only runs from the moment it opens your browser to the moment you get back the verification code. This is on http://127.0.0.1:53682/ and this it may require you to unblock it temporarily if you are running a host firewall.

    +

    Rclone runs a webserver on your local computer to collect the authorization token from Zoho Workdrive. This is only from the moment your browser is opened until the token is returned. The webserver runs on http://127.0.0.1:53682/. If local port 53682 is protected by a firewall you may need to temporarily unblock the firewall to complete authorization.

    Once configured you can then use rclone like this,

    See top level directories

    rclone lsd remote:
    @@ -23973,824 +35517,2149 @@

    Configuration

    List the contents of a directory

    rclone ls remote:directory

    Sync /home/local/directory to the remote path, deleting any excess files in the path.

    -
    rclone sync -i /home/local/directory remote:directory
    -

    Yandex paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Modified time

    -

    Modified times are supported and are stored accurate to 1 ns in custom metadata called rclone_modified in RFC3339 with nanoseconds format.

    -

    MD5 checksums

    -

    MD5 checksums are natively supported by Yandex Disk.

    -

    Emptying Trash

    -

    If you wish to empty your trash you can use the rclone cleanup remote: command which will permanently delete all your trashed files. This command does not take any path arguments.

    -

    Quota information

    -

    To view your current quota you can use the rclone about remote: command which will display your usage limit (quota) and the current usage.

    -

    Restricted filename characters

    -

    The default restricted characters set are replaced.

    -

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Standard options

    -

    Here are the standard options specific to yandex (Yandex Disk).

    -

    --yandex-client-id

    +
    rclone sync --interactive /home/local/directory remote:directory
    +

    Zoho paths may be as deep as required, eg remote:directory/subdirectory.

    +

    Modified time

    +

    Modified times are currently not supported for Zoho Workdrive

    +

    Checksums

    +

    No checksums are supported.

    +

    Usage information

    +

    To view your current quota you can use the rclone about remote: command which will display your current usage.

    +

    Restricted filename characters

    +

    Only control characters and invalid UTF-8 are replaced. In addition most Unicode full-width characters are not supported at all and will be removed from filenames during upload.

    +

    Standard options

    +

    Here are the Standard options specific to zoho (Zoho).

    +

    --zoho-client-id

    OAuth Client Id.

    Leave blank normally.

    Properties:

    +

    --zoho-client-secret

    +

    OAuth Client Secret.

    +

    Leave blank normally.

    +

    Properties:

    + +

    --zoho-region

    +

    Zoho region to connect to.

    +

    You'll have to use the region your organization is registered in. If not sure use the same top level domain as you connect to in your browser.

    +

    Properties:

    + +

    Advanced options

    +

    Here are the Advanced options specific to zoho (Zoho).

    +

    --zoho-token

    +

    OAuth Access Token as a JSON blob.

    +

    Properties:

    + +

    --zoho-auth-url

    +

    Auth server URL.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --zoho-token-url

    +

    Token server url.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --zoho-encoding

    +

    The encoding for the backend.

    +

    See the encoding section in the overview for more info.

    +

    Properties:

    + +

    Setting up your own client_id

    +

    For Zoho we advise you to set up your own client_id. To do so you have to complete the following steps.

    +
      +
    1. Log in to the Zoho API Console

    2. +
    3. Create a new client of type "Server-based Application". The name and website don't matter, but you must add the redirect URL http://localhost:53682/.

    4. +
    5. Once the client is created, you can go to the settings tab and enable it in other regions.

    6. +
    +

    The client id and client secret can now be used with rclone.

    +

    Local Filesystem

    +

    Local paths are specified as normal filesystem paths, e.g. /path/to/wherever, so

    +
    rclone sync --interactive /home/source /tmp/destination
    +

    Will sync /home/source to /tmp/destination.

    +

    Configuration

    +

    For consistencies sake one can also configure a remote of type local in the config file, and access the local filesystem using rclone remote paths, e.g. remote:path/to/wherever, but it is probably easier not to.

    +

    Modified time

    +

    Rclone reads and writes the modified time using an accuracy determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows and 1 Second on OS X.

    +

    Filenames

    +

    Filenames should be encoded in UTF-8 on disk. This is the normal case for Windows and OS X.

    +

    There is a bit more uncertainty in the Linux world, but new distributions will have UTF-8 encoded files names. If you are using an old Linux filesystem with non UTF-8 file names (e.g. latin1) then you can use the convmv tool to convert the filesystem to UTF-8. This tool is available in most distributions' package managers.

    +

    If an invalid (non-UTF8) filename is read, the invalid characters will be replaced with a quoted representation of the invalid bytes. The name gro\xdf will be transferred as gro‛DF. rclone will emit a debug message in this case (use -v to see), e.g.

    +
    Local file system at .: Replacing invalid UTF-8 characters in "gro\xdf"
    +

    Restricted characters

    +

    With the local backend, restrictions on the characters that are usable in file or directory names depend on the operating system. To check what rclone will replace by default on your system, run rclone help flags local-encoding.

    +

    On non Windows platforms the following characters are replaced when handling file names.

    + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    NUL0x00
    /0x2F
    +

    When running on Windows the following characters are replaced. This list is based on the Windows file naming conventions.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    NUL0x00
    SOH0x01
    STX0x02
    ETX0x03
    EOT0x04
    ENQ0x05
    ACK0x06
    BEL0x07
    BS0x08
    HT0x09
    LF0x0A
    VT0x0B
    FF0x0C
    CR0x0D
    SO0x0E
    SI0x0F
    DLE0x10
    DC10x11
    DC20x12
    DC30x13
    DC40x14
    NAK0x15
    SYN0x16
    ETB0x17
    CAN0x18
    EM0x19
    SUB0x1A
    ESC0x1B
    FS0x1C
    GS0x1D
    RS0x1E
    US0x1F
    /0x2F
    "0x22
    *0x2A
    :0x3A
    <0x3C
    >0x3E
    ?0x3F
    \0x5C
    |0x7C
    +

    File names on Windows can also not end with the following characters. These only get replaced if they are the last character in the name:

    + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    SP0x20
    .0x2E
    +

    Invalid UTF-8 bytes will also be replaced, as they can't be converted to UTF-16.

    +

    Paths on Windows

    +

    On Windows there are many ways of specifying a path to a file system resource. Local paths can be absolute, like C:\path\to\wherever, or relative, like ..\wherever. Network paths in UNC format, \\server\share, are also supported. Path separator can be either \ (as in C:\path\to\wherever) or / (as in C:/path/to/wherever). Length of these paths are limited to 259 characters for files and 247 characters for directories, but there is an alternative extended-length path format increasing the limit to (approximately) 32,767 characters. This format requires absolute paths and the use of prefix \\?\, e.g. \\?\D:\some\very\long\path. For convenience rclone will automatically convert regular paths into the corresponding extended-length paths, so in most cases you do not have to worry about this (read more below).

    +

    Note that Windows supports using the same prefix \\?\ to specify path to volumes identified by their GUID, e.g. \\?\Volume{b75e2c83-0000-0000-0000-602f00000000}\some\path. This is not supported in rclone, due to an issue in go.

    +

    Long paths

    +

    Rclone handles long paths automatically, by converting all paths to extended-length path format, which allows paths up to 32,767 characters.

    +

    This conversion will ensure paths are absolute and prefix them with the \\?\. This is why you will see that your paths, for instance .\files is shown as path \\?\C:\files in the output, and \\server\share as \\?\UNC\server\share.

    +

    However, in rare cases this may cause problems with buggy file system drivers like EncFS. To disable UNC conversion globally, add this to your .rclone.conf file:

    +
    [local]
    +nounc = true
    +

    If you want to selectively disable UNC, you can add it to a separate entry like this:

    +
    [nounc]
    +type = local
    +nounc = true
    +

    And use rclone like this:

    +

    rclone copy c:\src nounc:z:\dst

    +

    This will use UNC paths on c:\src but not on z:\dst. Of course this will cause problems if the absolute path length of a file exceeds 259 characters on z, so only use this option if you have to.

    + +

    Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).

    +

    If you supply --copy-links or -L then rclone will follow the symlink and copy the pointed to file or directory. Note that this flag is incompatible with --links / -l.

    +

    This flag applies to all commands.

    +

    For example, supposing you have a directory structure like this

    +
    $ tree /tmp/a
    +/tmp/a
    +├── b -> ../b
    +├── expected -> ../expected
    +├── one
    +└── two
    +    └── three
    +

    Then you can see the difference with and without the flag like this

    +
    $ rclone ls /tmp/a
    +        6 one
    +        6 two/three
    +

    and

    +
    $ rclone -L ls /tmp/a
    +     4174 expected
    +        6 one
    +        6 two/three
    +        6 b/two
    +        6 b/one
    + +

    Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).

    +

    If you supply this flag then rclone will copy symbolic links from the local storage, and store them as text files, with a '.rclonelink' suffix in the remote storage.

    +

    The text file will contain the target of the symbolic link (see example).

    +

    This flag applies to all commands.

    +

    For example, supposing you have a directory structure like this

    +
    $ tree /tmp/a
    +/tmp/a
    +├── file1 -> ./file4
    +└── file2 -> /home/user/file3
    +

    Copying the entire directory with '-l'

    +
    $ rclone copyto -l /tmp/a/file1 remote:/tmp/a/
    +

    The remote files are created with a '.rclonelink' suffix

    +
    $ rclone ls remote:/tmp/a
    +       5 file1.rclonelink
    +      14 file2.rclonelink
    +

    The remote files will contain the target of the symbolic links

    +
    $ rclone cat remote:/tmp/a/file1.rclonelink
    +./file4
    +
    +$ rclone cat remote:/tmp/a/file2.rclonelink
    +/home/user/file3
    +

    Copying them back with '-l'

    +
    $ rclone copyto -l remote:/tmp/a/ /tmp/b/
    +
    +$ tree /tmp/b
    +/tmp/b
    +├── file1 -> ./file4
    +└── file2 -> /home/user/file3
    +

    However, if copied back without '-l'

    +
    $ rclone copyto remote:/tmp/a/ /tmp/b/
    +
    +$ tree /tmp/b
    +/tmp/b
    +├── file1.rclonelink
    +└── file2.rclonelink
    +

    Note that this flag is incompatible with -copy-links / -L.

    +

    Restricting filesystems with --one-file-system

    +

    Normally rclone will recurse through filesystems as mounted.

    +

    However if you set --one-file-system or -x this tells rclone to stay in the filesystem specified by the root and not to recurse into different file systems.

    +

    For example if you have a directory hierarchy like this

    +
    root
    +├── disk1     - disk1 mounted on the root
    +│   └── file3 - stored on disk1
    +├── disk2     - disk2 mounted on the root
    +│   └── file4 - stored on disk12
    +├── file1     - stored on the root disk
    +└── file2     - stored on the root disk
    +

    Using rclone --one-file-system copy root remote: will only copy file1 and file2. Eg

    +
    $ rclone -q --one-file-system ls root
    +        0 file1
    +        0 file2
    +
    $ rclone -q ls root
    +        0 disk1/file3
    +        0 disk2/file4
    +        0 file1
    +        0 file2
    +

    NB Rclone (like most unix tools such as du, rsync and tar) treats a bind mount to the same device as being on the same filesystem.

    +

    NB This flag is only available on Unix based systems. On systems where it isn't supported (e.g. Windows) it will be ignored.

    +

    Advanced options

    +

    Here are the Advanced options specific to local (Local Disk).

    +

    --local-nounc

    +

    Disable UNC (long path names) conversion on Windows.

    +

    Properties:

    + -

    --yandex-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    + +

    Follow symlinks and copy the pointed to item.

    Properties:

    -

    Advanced options

    -

    Here are the advanced options specific to yandex (Yandex Disk).

    -

    --yandex-token

    -

    OAuth Access Token as a JSON blob.

    + +

    Translate symlinks to/from regular files with a '.rclonelink' extension.

    Properties:

    -

    --yandex-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    + +

    Don't warn about skipped symlinks.

    +

    This flag disables warning messages on skipped symlinks or junction points, as you explicitly acknowledge that they should be skipped.

    Properties:

    -

    --yandex-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    -

    Properties:

    + +

    Assume the Stat size of links is zero (and read them instead) (deprecated).

    +

    Rclone used to use the Stat size of links as the link size, but this fails in quite a few places:

    -

    --yandex-hard-delete

    -

    Delete files permanently rather than putting them into the trash.

    +

    So rclone now always reads the link.

    Properties:

    -

    --yandex-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    +

    --local-unicode-normalization

    +

    Apply unicode NFC normalization to paths and filenames.

    +

    This flag can be used to normalize file names into unicode NFC form that are read from the local filesystem.

    +

    Rclone does not normally touch the encoding of file names it reads from the file system.

    +

    This can be useful when using macOS as it normally provides decomposed (NFD) unicode which in some language (eg Korean) doesn't display properly on some OSes.

    +

    Note that rclone compares filenames with unicode normalization in the sync routine so this flag shouldn't normally be used.

    Properties:

    -

    Limitations

    -

    When uploading very large files (bigger than about 5 GiB) you will need to increase the --timeout parameter. This is because Yandex pauses (perhaps to calculate the MD5SUM for the entire file) before returning confirmation that the file has been uploaded. The default handling of timeouts in rclone is to assume a 5 minute pause is an error and close the connection - you'll see net/http: timeout awaiting response headers errors in the logs if this is happening. Setting the timeout to twice the max size of file in GiB should be enough, so if you want to upload a 30 GiB file set a timeout of 2 * 30 = 60m, that is --timeout 60m.

    -

    Having a Yandex Mail account is mandatory to use the Yandex.Disk subscription. Token generation will work without a mail account, but Rclone won't be able to complete any actions.

    -
    [403 - DiskUnsupportedUserAccountTypeError] User account type is not supported.
    -

    Zoho Workdrive

    -

    Zoho WorkDrive is a cloud storage solution created by Zoho.

    -

    Configuration

    -

    Here is an example of making a zoho configuration. First run

    -
    rclone config
    -

    This will guide you through an interactive setup process:

    -
    No remotes found, make a new one?
    -n) New remote
    -s) Set configuration password
    -n/s> n
    -name> remote
    -Type of storage to configure.
    -Enter a string value. Press Enter for the default ("").
    -Choose a number from below, or type in your own value
    -[snip]
    -XX / Zoho
    -   \ "zoho"
    -[snip]
    -Storage> zoho
    -** See help for zoho backend at: https://rclone.org/zoho/ **
    -
    -OAuth Client Id
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -client_id> 
    -OAuth Client Secret
    -Leave blank normally.
    -Enter a string value. Press Enter for the default ("").
    -client_secret> 
    -Edit advanced config? (y/n)
    -y) Yes
    -n) No (default)
    -y/n> n
    -Remote config
    -Use auto config?
    - * Say Y if not sure
    - * Say N if you are working on a remote or headless machine
    -y) Yes (default)
    -n) No
    -y/n> 
    -If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=LVn0IHzxej1ZkmQw31d0wQ
    -Log in and authorize rclone for access
    -Waiting for code...
    -Got code
    -Choose a number from below, or type in your own value
    - 1 / MyTeam
    -   \ "4u28602177065ff22426787a6745dba8954eb"
    -Enter a Team ID> 1
    -Choose a number from below, or type in your own value
    - 1 / General
    -   \ "4u2869d2aa6fca04f4f2f896b6539243b85b1"
    -Enter a Workspace ID> 1
    ---------------------
    -[remote]
    -type = zoho
    -token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Zoho-oauthtoken","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2020-10-12T00:54:52.370275223+02:00"}
    -root_folder_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    ---------------------
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> 
    -

    See the remote setup docs for how to set it up on a machine with no Internet browser available.

    -

    Rclone runs a webserver on your local computer to collect the authorization token from Zoho Workdrive. This is only from the moment your browser is opened until the token is returned. The webserver runs on http://127.0.0.1:53682/. If local port 53682 is protected by a firewall you may need to temporarily unblock the firewall to complete authorization.

    -

    Once configured you can then use rclone like this,

    -

    See top level directories

    -
    rclone lsd remote:
    -

    Make a new directory

    -
    rclone mkdir remote:directory
    -

    List the contents of a directory

    -
    rclone ls remote:directory
    -

    Sync /home/local/directory to the remote path, deleting any excess files in the path.

    -
    rclone sync -i /home/local/directory remote:directory
    -

    Zoho paths may be as deep as required, eg remote:directory/subdirectory.

    -

    Modified time

    -

    Modified times are currently not supported for Zoho Workdrive

    -

    Checksums

    -

    No checksums are supported.

    -

    Usage information

    -

    To view your current quota you can use the rclone about remote: command which will display your current usage.

    -

    Restricted filename characters

    -

    Only control characters and invalid UTF-8 are replaced. In addition most Unicode full-width characters are not supported at all and will be removed from filenames during upload.

    -

    Standard options

    -

    Here are the standard options specific to zoho (Zoho).

    -

    --zoho-client-id

    -

    OAuth Client Id.

    -

    Leave blank normally.

    -

    Properties:

    +

    --local-no-check-updated

    +

    Don't check to see if the files change during upload.

    +

    Normally rclone checks the size and modification time of files as they are being uploaded and aborts with a message which starts "can't copy - source file is being updated" if the file changes during upload.

    +

    However on some file systems this modification time check may fail (e.g. Glusterfs #2206) so this check can be disabled with this flag.

    +

    If this flag is set, rclone will use its best efforts to transfer a file which is being updated. If the file is only having things appended to it (e.g. a log) then rclone will transfer the log file with the size it had the first time rclone saw it.

    +

    If the file is being modified throughout (not just appended to) then the transfer may fail with a hash check failure.

    +

    In detail, once the file has had stat() called on it for the first time we:

    -

    --zoho-client-secret

    -

    OAuth Client Secret.

    -

    Leave blank normally.

    Properties:

    -

    --zoho-region

    -

    Zoho region to connect to.

    -

    You'll have to use the region your organization is registered in. If not sure use the same top level domain as you connect to in your browser.

    +

    --one-file-system / -x

    +

    Don't cross filesystem boundaries (unix/macOS only).

    Properties:

    +

    --local-case-insensitive

    +

    Force the filesystem to report itself as case insensitive.

    +

    Normally the local backend declares itself as case insensitive on Windows/macOS and case sensitive for everything else. Use this flag to override the default choice.

    +

    Properties:

    - +
  • Config: case_insensitive
  • +
  • Env Var: RCLONE_LOCAL_CASE_INSENSITIVE
  • +
  • Type: bool
  • +
  • Default: false
  • -

    Advanced options

    -

    Here are the advanced options specific to zoho (Zoho).

    -

    --zoho-token

    -

    OAuth Access Token as a JSON blob.

    +

    --local-no-preallocate

    +

    Disable preallocation of disk space for transferred files.

    +

    Preallocation of disk space helps prevent filesystem fragmentation. However, some virtual filesystem layers (such as Google Drive File Stream) may incorrectly set the actual file size equal to the preallocated space, causing checksum and file size checks to fail. Use this flag to disable preallocation.

    Properties:

    -

    --zoho-auth-url

    -

    Auth server URL.

    -

    Leave blank to use the provider defaults.

    +

    --local-no-sparse

    +

    Disable sparse files for multi-thread downloads.

    +

    On Windows platforms rclone will make sparse files when doing multi-thread downloads. This avoids long pauses on large files where the OS zeros the file. However sparse files may be undesirable as they cause disk fragmentation and can be slow to work with.

    Properties:

    -

    --zoho-token-url

    -

    Token server url.

    -

    Leave blank to use the provider defaults.

    +

    --local-no-set-modtime

    +

    Disable setting modtime.

    +

    Normally rclone updates modification time of files after they are done uploading. This can cause permissions issues on Linux platforms when the user rclone is running as does not own the file uploaded, such as when copying to a CIFS mount owned by another user. If this option is enabled, rclone will no longer update the modtime after copying a file.

    Properties:

    -

    --zoho-encoding

    +

    --local-encoding

    The encoding for the backend.

    See the encoding section in the overview for more info.

    Properties:

    -

    Local Filesystem

    -

    Local paths are specified as normal filesystem paths, e.g. /path/to/wherever, so

    -
    rclone sync -i /home/source /tmp/destination
    -

    Will sync /home/source to /tmp/destination.

    -

    Configuration

    -

    For consistencies sake one can also configure a remote of type local in the config file, and access the local filesystem using rclone remote paths, e.g. remote:path/to/wherever, but it is probably easier not to.

    -

    Modified time

    -

    Rclone reads and writes the modified time using an accuracy determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows and 1 Second on OS X.

    -

    Filenames

    -

    Filenames should be encoded in UTF-8 on disk. This is the normal case for Windows and OS X.

    -

    There is a bit more uncertainty in the Linux world, but new distributions will have UTF-8 encoded files names. If you are using an old Linux filesystem with non UTF-8 file names (e.g. latin1) then you can use the convmv tool to convert the filesystem to UTF-8. This tool is available in most distributions' package managers.

    -

    If an invalid (non-UTF8) filename is read, the invalid characters will be replaced with a quoted representation of the invalid bytes. The name gro\xdf will be transferred as gro‛DF. rclone will emit a debug message in this case (use -v to see), e.g.

    -
    Local file system at .: Replacing invalid UTF-8 characters in "gro\xdf"
    -

    Restricted characters

    -

    With the local backend, restrictions on the characters that are usable in file or directory names depend on the operating system. To check what rclone will replace by default on your system, run rclone help flags local-encoding.

    -

    On non Windows platforms the following characters are replaced when handling file names.

    - - - - - - - - - - - - - - - - - - - - -
    CharacterValueReplacement
    NUL0x00
    /0x2F
    -

    When running on Windows the following characters are replaced. This list is based on the Windows file naming conventions.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
  • Env Var: RCLONE_LOCAL_ENCODING
  • +
  • Type: MultiEncoder
  • +
  • Default: Slash,Dot
  • + +

    Metadata

    +

    Depending on which OS is in use the local backend may return only some of the system metadata. Setting system metadata is supported on all OSes but setting user metadata is only supported on linux, freebsd, netbsd, macOS and Solaris. It is not supported on Windows yet (see pkg/attrs#47).

    +

    User metadata is stored as extended attributes (which may not be supported by all file systems) under the "user.*" prefix.

    +

    Here are the possible system metadata items for the local backend.

    +
    CharacterValueReplacement
    NUL0x00
    SOH0x01
    STX0x02
    ETX0x03
    EOT0x04
    ENQ0x05
    ACK0x06
    BEL0x07
    BS0x08
    HT0x09
    LF0x0A
    VT0x0B
    FF0x0C
    CR0x0D
    SO0x0E
    SI0x0F
    DLE0x10
    DC10x11
    DC20x12
    DC30x13
    DC40x14
    NAK0x15
    SYN0x16
    ETB0x17
    CAN0x18
    EM0x19
    SUB0x1A
    ESC0x1B
    FS0x1C
    GS0x1D
    RS0x1E
    US0x1F
    /0x2F
    "0x22
    +++++++ + + + + + + + + + - - - + + + + + - - - + + + + + - - - + + + + + - - - + + + + + - - - + + + + + - - - - - - - - - - -
    NameHelpTypeExampleRead Only
    *0x2AatimeTime of last accessRFC 33392006-01-02T15:04:05.999999999Z07:00N
    :0x3AbtimeTime of file birth (creation)RFC 33392006-01-02T15:04:05.999999999Z07:00N
    <0x3CgidGroup ID of ownerdecimal number500N
    >0x3EmodeFile type and modeoctal, unix style0100664N
    ?0x3FmtimeTime of last modificationRFC 33392006-01-02T15:04:05.999999999Z07:00N
    \0x5C
    |0x7C
    -

    File names on Windows can also not end with the following characters. These only get replaced if they are the last character in the name:

    - - - - - - + + + + + - - - - - - - - - - + + + + +
    CharacterValueReplacementrdevDevice ID (if special file)hexadecimal1abcN
    SP0x20
    .0x2EuidUser ID of ownerdecimal number500N
    -

    Invalid UTF-8 bytes will also be replaced, as they can't be converted to UTF-16.

    -

    Paths on Windows

    -

    On Windows there are many ways of specifying a path to a file system resource. Local paths can be absolute, like C:\path\to\wherever, or relative, like ..\wherever. Network paths in UNC format, \\server\share, are also supported. Path separator can be either \ (as in C:\path\to\wherever) or / (as in C:/path/to/wherever). Length of these paths are limited to 259 characters for files and 247 characters for directories, but there is an alternative extended-length path format increasing the limit to (approximately) 32,767 characters. This format requires absolute paths and the use of prefix \\?\, e.g. \\?\D:\some\very\long\path. For convenience rclone will automatically convert regular paths into the corresponding extended-length paths, so in most cases you do not have to worry about this (read more below).

    -

    Note that Windows supports using the same prefix \\?\ to specify path to volumes identified by their GUID, e.g. \\?\Volume{b75e2c83-0000-0000-0000-602f00000000}\some\path. This is not supported in rclone, due to an issue in go.

    -

    Long paths

    -

    Rclone handles long paths automatically, by converting all paths to extended-length path format, which allows paths up to 32,767 characters.

    -

    This conversion will ensure paths are absolute and prefix them with the \\?\. This is why you will see that your paths, for instance .\files is shown as path \\?\C:\files in the output, and \\server\share as \\?\UNC\server\share.

    -

    However, in rare cases this may cause problems with buggy file system drivers like EncFS. To disable UNC conversion globally, add this to your .rclone.conf file:

    -
    [local]
    -nounc = true
    -

    If you want to selectively disable UNC, you can add it to a separate entry like this:

    -
    [nounc]
    -type = local
    -nounc = true
    -

    And use rclone like this:

    -

    rclone copy c:\src nounc:z:\dst

    -

    This will use UNC paths on c:\src but not on z:\dst. Of course this will cause problems if the absolute path length of a file exceeds 259 characters on z, so only use this option if you have to.

    - -

    Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).

    -

    If you supply --copy-links or -L then rclone will follow the symlink and copy the pointed to file or directory. Note that this flag is incompatible with --links / -l.

    -

    This flag applies to all commands.

    -

    For example, supposing you have a directory structure like this

    -
    $ tree /tmp/a
    -/tmp/a
    -├── b -> ../b
    -├── expected -> ../expected
    -├── one
    -└── two
    -    └── three
    -

    Then you can see the difference with and without the flag like this

    -
    $ rclone ls /tmp/a
    -        6 one
    -        6 two/three
    -

    and

    -
    $ rclone -L ls /tmp/a
    -     4174 expected
    -        6 one
    -        6 two/three
    -        6 b/two
    -        6 b/one
    - -

    Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).

    -

    If you supply this flag then rclone will copy symbolic links from the local storage, and store them as text files, with a '.rclonelink' suffix in the remote storage.

    -

    The text file will contain the target of the symbolic link (see example).

    -

    This flag applies to all commands.

    -

    For example, supposing you have a directory structure like this

    -
    $ tree /tmp/a
    -/tmp/a
    -├── file1 -> ./file4
    -└── file2 -> /home/user/file3
    -

    Copying the entire directory with '-l'

    -
    $ rclone copyto -l /tmp/a/file1 remote:/tmp/a/
    -

    The remote files are created with a '.rclonelink' suffix

    -
    $ rclone ls remote:/tmp/a
    -       5 file1.rclonelink
    -      14 file2.rclonelink
    -

    The remote files will contain the target of the symbolic links

    -
    $ rclone cat remote:/tmp/a/file1.rclonelink
    -./file4
    -
    -$ rclone cat remote:/tmp/a/file2.rclonelink
    -/home/user/file3
    -

    Copying them back with '-l'

    -
    $ rclone copyto -l remote:/tmp/a/ /tmp/b/
    -
    -$ tree /tmp/b
    -/tmp/b
    -├── file1 -> ./file4
    -└── file2 -> /home/user/file3
    -

    However, if copied back without '-l'

    -
    $ rclone copyto remote:/tmp/a/ /tmp/b/
    -
    -$ tree /tmp/b
    -/tmp/b
    -├── file1.rclonelink
    -└── file2.rclonelink
    -

    Note that this flag is incompatible with -copy-links / -L.

    -

    Restricting filesystems with --one-file-system

    -

    Normally rclone will recurse through filesystems as mounted.

    -

    However if you set --one-file-system or -x this tells rclone to stay in the filesystem specified by the root and not to recurse into different file systems.

    -

    For example if you have a directory hierarchy like this

    -
    root
    -├── disk1     - disk1 mounted on the root
    -│   └── file3 - stored on disk1
    -├── disk2     - disk2 mounted on the root
    -│   └── file4 - stored on disk12
    -├── file1     - stored on the root disk
    -└── file2     - stored on the root disk
    -

    Using rclone --one-file-system copy root remote: will only copy file1 and file2. Eg

    -
    $ rclone -q --one-file-system ls root
    -        0 file1
    -        0 file2
    -
    $ rclone -q ls root
    -        0 disk1/file3
    -        0 disk2/file4
    -        0 file1
    -        0 file2
    -

    NB Rclone (like most unix tools such as du, rsync and tar) treats a bind mount to the same device as being on the same filesystem.

    -

    NB This flag is only available on Unix based systems. On systems where it isn't supported (e.g. Windows) it will be ignored.

    -

    Advanced options

    -

    Here are the advanced options specific to local (Local Disk).

    -

    --local-nounc

    -

    Disable UNC (long path names) conversion on Windows.

    -

    Properties:

    +

    See the metadata docs for more info.

    +

    Backend commands

    +

    Here are the commands specific to the local backend.

    +

    Run them with

    +
    rclone backend COMMAND remote:
    +

    The help below will explain what arguments each command takes.

    +

    See the backend command for more info on how to pass options and arguments.

    +

    These can be run on a running backend using the rc command backend/command.

    +

    noop

    +

    A null operation for testing backend commands

    +
    rclone backend noop remote: [options] [<arguments>+]
    +

    This is a test command which has some options you can try to change the output.

    +

    Options:

    + +

    Changelog

    +

    v1.64.0 - 2023-09-11

    +

    See commits

    + +

    v1.63.1 - 2023-07-17

    +

    See commits

    + +

    v1.63.0 - 2023-06-30

    +

    See commits

    + +

    v1.62.2 - 2023-03-16

    +

    See commits

    + +

    v1.62.1 - 2023-03-15

    +

    See commits

    + +

    v1.62.0 - 2023-03-14

    +

    See commits

    + +

    v1.61.1 - 2022-12-23

    +

    See commits

    + +

    v1.61.0 - 2022-12-20

    +

    See commits

    + +

    v1.60.1 - 2022-11-17

    +

    See commits

    + +

    v1.60.0 - 2022-10-21

    +

    See commits

    + +

    v1.59.2 - 2022-09-15

    +

    See commits

    + +

    v1.59.1 - 2022-08-08

    +

    See commits

    + +

    v1.59.0 - 2022-07-09

    +

    See commits

    + - -

    Follow symlinks and copy the pointed to item.

    -

    Properties:

    +
  • Dropbox - -

    Translate symlinks to/from regular files with a '.rclonelink' extension.

    -

    Properties:

    +
  • Migrate from deprecated api (m8rge)
  • +
  • Add logs to show when poll interval limits are exceeded (Nick Craig-Wood)
  • +
  • Fix nil pointer exception on dropbox impersonate user not found (Nick Craig-Wood)
  • + +
  • Fichier - -

    Don't warn about skipped symlinks.

    -

    This flag disables warning messages on skipped symlinks or junction points, as you explicitly acknowledge that they should be skipped.

    -

    Properties:

    +
  • Parse api error codes and them accordingly (buengese)
  • + +
  • FTP - -

    Assume the Stat size of links is zero (and read them instead) (deprecated).

    -

    Rclone used to use the Stat size of links as the link size, but this fails in quite a few places:

    +
  • Add support for disable_utf8 option (Jason Zheng)
  • +
  • Revert to upstream github.com/jlaffaye/ftp from our fork (Nick Craig-Wood)
  • + +
  • Google Cloud Storage -

    So rclone now always reads the link.

    -

    Properties:

    +
  • Add --gcs-no-check-bucket to minimise transactions and perms (Nick Gooding)
  • +
  • Add --gcs-decompress flag to decompress gzip-encoded files (Nick Craig-Wood) -

    --local-unicode-normalization

    -

    Apply unicode NFC normalization to paths and filenames.

    -

    This flag can be used to normalize file names into unicode NFC form that are read from the local filesystem.

    -

    Rclone does not normally touch the encoding of file names it reads from the file system.

    -

    This can be useful when using macOS as it normally provides decomposed (NFD) unicode which in some language (eg Korean) doesn't display properly on some OSes.

    -

    Note that rclone compares filenames with unicode normalization in the sync routine so this flag shouldn't normally be used.

    -

    Properties:

    +
  • by default these will be downloaded compressed (which previously failed)
  • + + +
  • Hasher -

    --local-no-check-updated

    -

    Don't check to see if the files change during upload.

    -

    Normally rclone checks the size and modification time of files as they are being uploaded and aborts with a message which starts "can't copy - source file is being updated" if the file changes during upload.

    -

    However on some file systems this modification time check may fail (e.g. Glusterfs #2206) so this check can be disabled with this flag.

    -

    If this flag is set, rclone will use its best efforts to transfer a file which is being updated. If the file is only having things appended to it (e.g. a log) then rclone will transfer the log file with the size it had the first time rclone saw it.

    -

    If the file is being modified throughout (not just appended to) then the transfer may fail with a hash check failure.

    -

    In detail, once the file has had stat() called on it for the first time we:

    +
  • Support metadata (Nick Craig-Wood)
  • + +
  • HTTP -

    Properties:

    +
  • Fix missing response when using custom auth handler (albertony)
  • + +
  • Jottacloud -

    --one-file-system / -x

    -

    Don't cross filesystem boundaries (unix/macOS only).

    -

    Properties:

    +
  • Add support for upload to custom device and mountpoint (albertony)
  • +
  • Always store username in config and use it to avoid initial API request (albertony)
  • +
  • Fix issue with server-side copy when destination is in trash (albertony)
  • +
  • Fix listing output of remote with special characters (albertony)
  • + +
  • Mailru -

    --local-case-sensitive

    -

    Force the filesystem to report itself as case sensitive.

    -

    Normally the local backend declares itself as case insensitive on Windows/macOS and case sensitive for everything else. Use this flag to override the default choice.

    -

    Properties:

    +
  • Fix timeout by using int instead of time.Duration for keeping number of seconds (albertony)
  • + +
  • Mega -

    --local-case-insensitive

    -

    Force the filesystem to report itself as case insensitive.

    -

    Normally the local backend declares itself as case insensitive on Windows/macOS and case sensitive for everything else. Use this flag to override the default choice.

    -

    Properties:

    +
  • Document using MEGAcmd to help with login failures (Art M. Gallagher)
  • + +
  • Onedrive -

    --local-no-preallocate

    -

    Disable preallocation of disk space for transferred files.

    -

    Preallocation of disk space helps prevent filesystem fragmentation. However, some virtual filesystem layers (such as Google Drive File Stream) may incorrectly set the actual file size equal to the preallocated space, causing checksum and file size checks to fail. Use this flag to disable preallocation.

    -

    Properties:

    +
  • Implement --poll-interval for onedrive (Hugo Laloge)
  • +
  • Add access scopes option (Sven Gerber)
  • + +
  • Opendrive -

    --local-no-sparse

    -

    Disable sparse files for multi-thread downloads.

    -

    On Windows platforms rclone will make sparse files when doing multi-thread downloads. This avoids long pauses on large files where the OS zeros the file. However sparse files may be undesirable as they cause disk fragmentation and can be slow to work with.

    -

    Properties:

    +
  • Resolve lag and truncate bugs (Scott Grimes)
  • + +
  • Pcloud -

    --local-no-set-modtime

    -

    Disable setting modtime.

    -

    Normally rclone updates modification time of files after they are done uploading. This can cause permissions issues on Linux platforms when the user rclone is running as does not own the file uploaded, such as when copying to a CIFS mount owned by another user. If this option is enabled, rclone will no longer update the modtime after copying a file.

    -

    Properties:

    +
  • Fix about with no free space left (buengese)
  • +
  • Fix cleanup (buengese)
  • + +
  • S3 -

    --local-encoding

    -

    The encoding for the backend.

    -

    See the encoding section in the overview for more info.

    -

    Properties:

    +
  • Use PUT Object instead of presigned URLs to upload single part objects (Nick Craig-Wood)
  • +
  • Backend restore command to skip non-GLACIER objects (Vincent Murphy)
  • +
  • Use chunksize lib to determine chunksize dynamically (Derek Battams)
  • +
  • Retry RequestTimeout errors (Nick Craig-Wood)
  • +
  • Implement reading and writing of metadata (Nick Craig-Wood)
  • + +
  • SFTP
  • +
  • Storj +
  • +
  • Union +
  • +
  • Uptobox +
  • +
  • WebDAV +
  • +
  • Yandex +
  • +
  • Zoho +
  • -

    Backend commands

    -

    Here are the commands specific to the local backend.

    -

    Run them with

    -
    rclone backend COMMAND remote:
    -

    The help below will explain what arguments each command takes.

    -

    See the "rclone backend" command for more info on how to pass options and arguments.

    -

    These can be run on a running backend using the rc command backend/command.

    -

    noop

    -

    A null operation for testing backend commands

    -
    rclone backend noop remote: [options] [<arguments>+]
    -

    This is a test command which has some options you can try to change the output.

    -

    Options:

    +

    v1.58.1 - 2022-04-29

    +

    See commits

    -

    Changelog

    v1.58.0 - 2022-03-18

    See commits

    -
  • oauthutil: Fix crash when webrowser requests /robots.txt (Nick Craig-Wood)
  • +
  • oauthutil: Fix crash when webbrowser requests /robots.txt (Nick Craig-Wood)
  • operations: Fix goroutine leak in case of copy retry (Ankur Gupta)
  • rc:
  • Storj @@ -25872,9 +38741,9 @@

    v1.54.0 - 2021-02-02

  • Add sort by average size in directory (Adam Plánský)
  • Add toggle option for average s3ize in directory - key 'a' (Adam Plánský)
  • Add empty folder flag into ncdu browser (Adam Plánský)
  • -
  • Add ! (errror) and . (unreadable) file flags to go with e (empty) (Nick Craig-Wood)
  • +
  • Add ! (error) and . (unreadable) file flags to go with e (empty) (Nick Craig-Wood)
  • -
  • obscure: Make rclone osbcure - ignore newline at end of line (Nick Craig-Wood)
  • +
  • obscure: Make rclone obscure - ignore newline at end of line (Nick Craig-Wood)
  • operations