From e982ff36668f5130d94b4f70409babb3d964df42 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 6 Nov 2026 14:37:03 +0000 Subject: [PATCH] Version v1.76.0 --- MANUAL.html | 10360 ++++++++++++----- MANUAL.md | 6552 +++++++++-- MANUAL.txt | 7064 ++++++++--- cmd/bisync/rc.md | 4 + docs/content/azureblob.md | 67 + docs/content/azurefiles.md | 4 +- docs/content/b2.md | 9 +- docs/content/bisync.md | 21 +- docs/content/changelog.md | 300 + docs/content/commands/rclone.md | 41 +- docs/content/commands/rclone_bisync.md | 1 + docs/content/commands/rclone_completion.md | 2 + docs/content/commands/rclone_convmv.md | 4 +- docs/content/commands/rclone_deletefile.md | 26 +- docs/content/commands/rclone_gui.md | 5 - docs/content/commands/rclone_hashsum.md | 1 + docs/content/commands/rclone_index.md | 331 + docs/content/commands/rclone_ls.md | 4 + docs/content/commands/rclone_lsd.md | 6 +- docs/content/commands/rclone_lsf.md | 4 + docs/content/commands/rclone_lsjson.md | 4 + docs/content/commands/rclone_lsl.md | 4 + docs/content/commands/rclone_mount.md | 12 +- docs/content/commands/rclone_nfsmount.md | 12 +- docs/content/commands/rclone_rcd.md | 32 +- docs/content/commands/rclone_serve_dlna.md | 7 +- docs/content/commands/rclone_serve_docker.md | 7 +- docs/content/commands/rclone_serve_ftp.md | 68 +- docs/content/commands/rclone_serve_http.md | 95 +- docs/content/commands/rclone_serve_nfs.md | 7 +- docs/content/commands/rclone_serve_restic.md | 19 + docs/content/commands/rclone_serve_s3.md | 711 +- docs/content/commands/rclone_serve_sftp.md | 68 +- docs/content/commands/rclone_serve_webdav.md | 95 +- docs/content/commands/rclone_test_speed.md | 2 +- docs/content/drive.md | 4 +- docs/content/flags.md | 40 +- docs/content/http.md | 43 + docs/content/local.md | 21 +- docs/content/onedrive.md | 62 +- docs/content/oracleobjectstorage/_index.md | 2 +- docs/content/pikpak.md | 2 + docs/content/rc.md | 187 +- docs/content/s3.md | 359 +- docs/content/sftp.md | 30 +- docs/content/smb.md | 21 +- docs/content/swift.md | 8 + docs/content/webdav.md | 7 + docs/content/yandex.md | 20 + lib/transform/transform.md | 4 +- rclone.1 | 8112 +++++++++++-- 51 files changed, 28428 insertions(+), 6443 deletions(-) create mode 100644 docs/content/commands/rclone_index.md diff --git a/MANUAL.html b/MANUAL.html index 4a397f5b7..32e331e47 100644 --- a/MANUAL.html +++ b/MANUAL.html @@ -233,7 +233,7 @@

rclone(1) User Manual

Nick Craig-Wood

-

Jul 31, 2026

+

Nov 06, 2026

NAME

rclone - manage files on cloud storage

@@ -268,6 +268,7 @@ Available commands: gui Open the web based GUI. hashsum Produces a hashsum file for all the objects in the path. help Show help for rclone commands, flags and backends. + index Write static directory listings into a remote. link Generate public link to file/folder. listremotes List all the remotes in the config file and defined in environment variables. ls List the objects in the path with size and path. @@ -422,6 +423,7 @@ S3, that work out of the box.)

  • Akamai Netstorage
  • Alibaba Cloud (Aliyun) Object Storage System (OSS)
  • Amazon S3
  • +
  • Autonomys Auto Drive
  • Bizfly Cloud Simple Storage
  • Backblaze B2
  • Box
  • @@ -429,11 +431,13 @@ S3, that work out of the box.)

  • China Mobile Ecloud Elastic Object Storage (EOS)
  • Arvan Cloud Object Storage (AOS)
  • Citrix ShareFile
  • +
  • Clever Cloud Cellar
  • Cloudflare R2
  • Cloudinary
  • Cubbit DS3
  • DigitalOcean Spaces
  • Digi Storage
  • +
  • dosya.dev
  • Dreamhost
  • Drime
  • Dropbox
  • @@ -467,8 +471,11 @@ S3, that work out of the box.)

  • IBM COS S3
  • IDrive e2
  • Impossible Cloud
  • +
  • Infomaniak Swiss Backup (S3)
  • +
  • Infomaniak Swiss Backup (Swift)
  • Intercolo Object Storage
  • IONOS Cloud
  • +
  • kDrive
  • Koofr
  • Leviia Object Storage
  • Liara Object Storage
  • @@ -484,6 +491,7 @@ S3, that work out of the box.)

  • Microsoft Azure Files Storage
  • Microsoft OneDrive
  • Minio
  • +
  • Neon Object Storage
  • Nextcloud
  • Blomp Cloud Storage
  • OpenDrive
  • @@ -508,6 +516,7 @@ S3, that work out of the box.)

  • RackCorp Object Storage
  • Rackspace Cloud Files
  • Rclone Serve S3
  • +
  • RelAix.Storage
  • rsync.net
  • Scaleway
  • Scality (RING / ARTESCA)
  • @@ -752,12 +761,6 @@ alt="Packaging status" />

    The rclone developers maintain a docker image for rclone.

    -

    Note: We also now offer a paid version of rclone -with enterprise-grade security and zero CVEs through our partner SecureBuild. -If you are interested, check out their website and the Rclone SecureBuild -Image.

    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 @@ -868,7 +871,7 @@ current version is as below.

    src="https://snapcraft.io/rclone/badge.svg" alt="rclone" />

    Source installation

    Make sure you have git and Go -installed. Go version 1.25 or newer is required, the latest release is +installed. Go version 1.26 or newer is required, the 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:

    @@ -1182,6 +1185,7 @@ remotes Spaces
  • Digi Storage
  • +
  • dosya.dev
  • Drime
  • Dropbox
  • Enterprise File @@ -1208,6 +1212,7 @@ Storage Box
  • Archive
  • Internxt
  • Jottacloud
  • +
  • kDrive
  • Koofr
  • Linkbox
  • Mail.ru Cloud
  • @@ -2259,6 +2264,10 @@ 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.

    +

    On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows +each prefix as one directory entry and not the objects stored under +it.

    List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See

    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, E.g.

    +not), the modification time (if known, the --default-time +if not), the number of objects in the directory (if known, -1 if not) +and the name of the directory, E.g.

    $ rclone lsd swift:
           494000 2018-04-26 08:43:20     10000 10000files
               65 2018-04-26 08:43:20         1 1File
    @@ -2351,6 +2360,10 @@ 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.

    +

    On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows +each prefix as one directory entry and not the objects stored under +it.

    List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --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.

    +

    On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows +each prefix as one directory entry and not the objects stored under +it.

    List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -3576,7 +3594,9 @@ for rclone commands, flags and backends.

    Output completion script for a given shell.

    Synopsis

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

    +--help to list the supported shells. Enum-valued flags such +as --log-level and --vfs-cache-mode also +complete their supported values.

    Options

      -h, --help   help for completion

    See the global flags page for @@ -4623,9 +4643,9 @@ SquareBracket

    rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,command=echo"
     // Output: stories/The Quick Brown Fox!.txt
    rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}"
    -// Output: stories/The Quick Brown Fox!-20260731
    +// Output: stories/The Quick Brown Fox!-20261106
    rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}"
    -// Output: stories/The Quick Brown Fox!-2026-07-31 0340PM
    +// Output: stories/The Quick Brown Fox!-2026-11-06 0220PM
    rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,regex=[\\.\\w]/ab"
     // Output: ababababababab/ababab ababababab ababababab ababab!abababab

    The regex command generally accepts Perl-style regular expressions, @@ -5211,13 +5231,31 @@ for rclone commands, flags and backends.

    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.

    +filters - if the specified file exists, it will always be removed from +its original location.

    +

    The --backup-dir and --suffix flags are +honored when set.

    rclone deletefile remote:path [flags]

    Options

      -h, --help   help for deletefile

    Options shared with other commands are described next. See the global flags page for global options not listed here.

    +

    Sync Options

    +

    Flags used for sync commands

    +
          --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
    +      --fix-case                        Force rename of case insensitive dest to match source
    +      --ignore-errors                   Delete even if there are I/O errors
    +      --list-cutoff int                 To save memory, sort directory listings on disk above this threshold (default 1000000)
    +      --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 Options

    Important flags useful for most commands

      -n, --dry-run         Do a trial run with no permanent changes
    @@ -5385,12 +5423,7 @@ options not listed here.

    --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-user-from-header string User name from a defined HTTP header - --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
    + --rc-user-from-header string User name from a defined HTTP header

    See Also

    @@ -5427,7 +5460,8 @@ Supported hashes are: - sha512 - blake3 - xxh3 -- xxh128 +- xxh128 +- crc32c

    Then

    rclone hashsum MD5 remote:path

    Note that hash names are case insensitive and values are output in @@ -5480,9 +5514,309 @@ options not listed here.

    for rclone commands, flags and backends. +

    rclone index

    +

    Write static directory listings into a remote.

    +

    Synopsis

    +

    Write a directory listing, index.html by default, into +every directory of remote:path so that it can be browsed +when it is served as a static website, for example from an S3 website +endpoint, a bucket behind a CDN, or a plain web server.

    +

    This works like rclone sync: each run makes the minimum +changes needed to bring the listings into line with the files. Listings +which haven't changed aren't rewritten, so a run with no changes makes +no uploads. The listings never show the listing files themselves.

    +

    Note that rclone index treats every +file with an output name (index.html by default) in the +directories it indexes as its own, and will overwrite it or delete it +without checking where it came from. To protect a hand-written index, +exclude its directory with --index-exclude.

    +

    Outputs

    +

    --output NAME=FORMAT says what to write in each +directory and can be repeated. NAME is the file name, and FORMAT is one +of the built-in formats below or the path of a Go template file.

    + +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
    FormatMIME typeContents
    htmltext/html; charset=utf-8The HTML listing from the +rclone serve http template
    jsonapplication/jsonJSON in the format of +rclone lsjson for the directory
    caddyapplication/jsonJSON in the format of Caddy's +file_server browse
    +

    The default is --output index.html=html. The built-in +formats are templates, so they can be printed with +--print-template FORMAT, copied and changed. Outputs whose +name ends in .html or .htm are rendered with +Go's html/template and everything else with +text/template, which has a json function for +safe encoding. The template data is that of +rclone serve http with .Static set (see rclone +serve http). Outputs are uploaded with the MIME type of the built-in +format, or that of the output name's extension for template outputs, +since static hosts serve the stored type.

    +

    Filters

    +

    The normal filters (--include, --exclude, +--filter-from, --max-age, ...) control what +appears in the listings. An excluded file isn't listed, and an excluded +directory isn't listed or indexed.

    +

    The --index-include, --index-exclude, +--index-filter flags and their -from variants +control which directories get listings. They take the same patterns as +the normal filters, applied to directory paths, and +--index-include implies excluding all other directories. A +directory excluded here still appears in its parent's listing, but +nothing is written or deleted inside it, so it can have its own +hand-made index. --index-max-depth limits how deep listings +are written.

    +

    Modification times

    +

    Listings show the modification time of each file. When using the s3, +oracleobjectstorage and swift backends rclone stores the modification +time as metadata which isn't returned by the bucket listing, so +every object needs a HEAD request, which can mean +thousands of transactions per run. Avoid this with one of:

    + +

    --dir-time sets the time shown for directories:

    + +

    The listing files are given the newest modification time below their +directory, so the Last-Modified header of a listing is +meaningful.

    + +

    Directory links are dir/ by default, which works on +hosts that serve index documents: S3 website endpoints, GCS and Azure +static websites, nginx and Apache, and R2 custom domains with a URL +rewrite rule. For hosts that don't (plain S3 REST URLs, B2 friendly +URLs) use --link-index to make directory links +dir/index.html instead.

    +

    Partial runs

    +

    After a sync which changed a known set of files there is no need to +walk the whole remote. Tell rclone index what changed and +it re-indexes only the directories that could be affected:

    +
    rclone index r2:bucket --changed v1.76.0/ --changed version.txt
    +rclone index r2:bucket --changed-from changes.txt
    +rclone sync ./public r2:bucket --exclude index.html --combined - | rclone index r2:bucket --changed-combined -
    + +

    A changed file re-indexes its directory and every directory above it, +since their times and their listings can change too, and on bucket based +storage a directory can cease to exist. Each of those is one directory +listing. With --dir-time newest the directories above also +need the times of their unchanged subdirectories, which are read from +the modification times of those subdirectories' listings at the cost of +one small request each. With --use-server-modtime that is +the time the listing was written rather than the time of the newest +file, so partial runs can drift by the indexing delay until the next +full run. --dir-time dir and none need no such +lookups.

    +

    Directories which are neither named nor above a named path are left +alone, as are directories deeper than --max-depth. An empty +change list does nothing, and naming the root does a full run. There is +no automatic cutover to a full run since that depends on the size of the +whole remote: a partial run costs one listing per affected directory, a +full run one request per thousand objects on S3-like storage or one per +directory elsewhere. The number of directories a partial run will list +is logged with -v, and --changed-max-dirs +makes it fall back to a full run above that number. A good pattern is a +partial run after each upload and a scheduled full run to catch anything +missed.

    +

    Site icon

    +

    The listings carry no icon or branding of their own. To give a site +an icon, upload a favicon.ico to the root of the remote, +which browsers fetch from there for every page. Exclude it from the +listings with --exclude /favicon.ico so it stays on the +site but isn't shown.

    +

    Deleting listings

    +

    On backends which can't have empty directories (S3, B2 and other +bucket-based storage) a directory only exists while it has files in it. +Once the last file in a directory has been removed its listing is +deleted, since the directory only existed because of it. Backends which +can have empty directories keep a listing for each empty directory.

    +

    Using with sync

    +

    A sync from a local build deletes files on the destination which +aren't in the source, which includes the listings. Either index the +local build before syncing:

    +
    rclone index ./public
    +rclone sync ./public r2:bucket
    +

    or exclude the listings from the sync so it neither uploads nor +deletes them, then index the remote:

    +
    rclone sync ./public r2:bucket --exclude index.html
    +rclone index r2:bucket
    +

    Examples

    +

    An S3 website bucket, using the upload times so no object needs a +HEAD request:

    +
    rclone index s3:my-site --use-server-modtime
    +

    HTML and rclone JSON listings, setting Cache-Control on +them:

    +
    rclone index s3:bucket --output index.html=html --output index.json=json --header-upload "Cache-Control: max-age=300"
    +

    Only list release files, and don't write listings under +/private:

    +
    rclone index r2:bucket --include "*.{zip,deb,rpm}" --index-exclude "/private/**"
    +

    A B2 bucket served from its friendly URLs:

    +
    rclone index b2:bucket --link-index
    +

    See what would change:

    +
    rclone index r2:bucket --dry-run -v
    +

    Listings which haven't changed aren't normally rewritten, so changing +the headers or metadata set on them needs --index-rewrite, +which writes every listing a run would render whether it changed or +not:

    +
    rclone index r2:bucket --index-rewrite --header-upload "Cache-Control: max-age=3600"
    +
    rclone index remote:path [flags]
    +

    Options

    +
          --changed stringArray              Only re-index directories affected by this changed path (directories end in /)
    +      --changed-combined stringArray     Read changed paths from a sync --combined report (use - to read from stdin)
    +      --changed-from stringArray         Read changed paths from file, one per line (use - to read from stdin)
    +      --changed-max-dirs int             Do a full index if a partial one would list more than this many directories (0 for no limit)
    +      --dir-time newest|dir|none         How to work out the time shown for a directory (default newest)
    +  -h, --help                             help for index
    +      --index-exclude stringArray        Don't write listings in directories matching pattern
    +      --index-exclude-from stringArray   Read directory exclude patterns from file (use - to read from stdin)
    +      --index-filter stringArray         Add a rule for which directories get listings
    +      --index-filter-from stringArray    Read directory rules from a file (use - to read from stdin)
    +      --index-include stringArray        Only write listings in directories matching pattern
    +      --index-include-from stringArray   Read directory include patterns from file (use - to read from stdin)
    +      --index-max-depth int              Only write listings this many directories deep (-1 for no limit) (default -1)
    +      --index-rewrite                    Write every listing even if it is unchanged
    +      --link-index                       Link to dir/NAME rather than dir/ for hosts without index documents
    +      --no-modtime                       Don't show modification times in listings
    +      --output stringArray               Listing to write in each directory as NAME=FORMAT (default [index.html=html])
    +      --print-template string            Print the built-in template for FORMAT and exit
    +

    Options shared with other commands are described next. See the global flags page for global +options not listed here.

    +

    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 server-side paths during comparison
    +      --copy-dest stringArray                       Implies --compare-dest but also copies files from paths into destination
    +      --cutoff-mode HARD|SOFT|CAUTIOUS              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 modtime or checksum
    +  -I, --ignore-times                                Don't skip items that match size and time - transfer all unconditionally
    +      --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
    +  -l, --links                                       Translate symlinks to/from regular files with a '.rclonelink' extension
    +      --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)
    +      --name-transform stringArray                  Transform paths during the copy process
    +      --no-check-dest                               Don't check the destination, copy regardless
    +      --no-traverse                                 Don't traverse destination file system on copy
    +      --no-update-dir-modtime                       Don't update directory modification times
    +      --no-update-modtime                           Don't update destination modtime if files identical
    +      --order-by string                             Instructions on how to order the transfers, e.g. 'size,descending'
    +      --partial-suffix string                       Add partial-suffix to temporary file name when --inplace is not used (default ".partial")
    +      --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 modtime 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)
    +      --files-from0 stringArray             Read list of source-file names from file using NUL as separator (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)
    +      --hash-filter string                  Partition filenames by hash k/n or randomly @/n
    +      --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 Also

    + + + +

    rclone link

    Generate public link to file/folder.

    -

    Synopsis

    +

    Synopsis

    Create, retrieve or remove a public link to the given file or folder.

    rclone link remote:path/to/file
    @@ -5501,13 +5835,13 @@ 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

      @@ -5518,7 +5852,7 @@ for rclone commands, flags and backends.

      rclone listremotes

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

      -

      Synopsis

      +

      Synopsis

      Lists all the available remotes from the config file, or the remotes matching an optional filter.

      Prints the result in human-readable format by default, and as a @@ -5535,7 +5869,7 @@ syntax.

      --type box also matches dropbox. Use --exact to match complete values only.

      rclone listremotes [<filter>] [flags]
      -

      Options

      +

      Options

            --description string   Filter remotes by description
             --exact                Match filter strings exactly instead of using non-anchored glob matching
         -h, --help                 help for listremotes
      @@ -5547,7 +5881,7 @@ syntax.

      --type string Filter remotes by type

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

      -

      See Also

      +

      See Also

        @@ -5558,7 +5892,7 @@ 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 @@ -5674,6 +6008,10 @@ 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.

        +

        On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows +each prefix as one directory entry and not the objects stored under +it.

        List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See 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)
        @@ -5698,7 +6036,7 @@ bucket-based remotes).

        Options shared with other commands are described next. See the global flags page for global options not listed here.

        -

        Filter Options

        +

        Filter Options

        Flags for filtering directory listings

              --delete-excluded                     Delete files on dest excluded from sync
               --exclude stringArray                 Exclude files matching pattern
        @@ -5724,11 +6062,11 @@ options not listed here.

        --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

        +

        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 Also

        +

        See Also

          @@ -5738,29 +6076,29 @@ 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",
          -}
          +
          {
          +  "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",
          +}

          The exact set of properties included depends on the backend:

          • The property IsBucket will only be included for bucket-based @@ -5841,6 +6179,10 @@ 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.

            +

            On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows +each prefix as one directory entry and not the objects stored under +it.

            List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See 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
                   --encrypted               Show the encrypted names
                   --files-only              Show only files in the listing
            @@ -5866,7 +6208,7 @@ bucket-based remotes).

            Options shared with other commands are described next. See the global flags page for global options not listed here.

            -

            Filter Options

            +

            Filter Options

            Flags for filtering directory listings

                  --delete-excluded                     Delete files on dest excluded from sync
                   --exclude stringArray                 Exclude files matching pattern
            @@ -5892,11 +6234,11 @@ options not listed here.

            --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

            +

            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 Also

            +

            See Also

              @@ -5906,7 +6248,7 @@ 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 @@ -6164,6 +6506,12 @@ server.

              and serve commands on macOS. For details, see vfs-case-sensitivity.

              NFS mount

              +

              For macOS (and other platforms where this path is supported), prefer +the dedicated rclone nfsmount +command. It starts the NFS server and performs the mount for you. +rclone mount itself still uses FUSE (macFUSE/FUSE-T) and +does not switch to NFS via a flag.

              This method spins up an NFS server using serve nfs command and mounts it to the specified mountpoint. If you run this in @@ -6331,7 +6679,7 @@ however there is more chance of the corruption issue above.

              then there is no chance of corruption.

              This is the same as setting the attr_timeout option in mount.fuse.

              -

              Filters

              +

              Filters

              Note that all the rclone filters can be used to select a subset of the files to be visible in the mount.

              systemd

              @@ -6364,25 +6712,25 @@ detect it and translate command-line arguments appropriately.

              Now you can run classic mounts like this:

              mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/path/to/pem

              or create systemd mount units:

              -
              # /etc/systemd/system/mnt-data.mount
              -[Unit]
              -Description=Mount for /mnt/data
              -[Mount]
              -Type=rclone
              -What=sftp1:subdir
              -Where=/mnt/data
              -Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
              +
              # /etc/systemd/system/mnt-data.mount
              +[Unit]
              +Description=Mount for /mnt/data
              +[Mount]
              +Type=rclone
              +What=sftp1:subdir
              +Where=/mnt/data
              +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]
              -Description=AutoMount for /mnt/data
              -[Automount]
              -Where=/mnt/data
              -TimeoutIdleSec=600
              -[Install]
              -WantedBy=multi-user.target
              +
              # /etc/systemd/system/mnt-data.automount
              +[Unit]
              +Description=AutoMount for /mnt/data
              +[Automount]
              +Where=/mnt/data
              +TimeoutIdleSec=600
              +[Install]
              +WantedBy=multi-user.target

              or add in /etc/fstab a line like

              sftp1:subdir /mnt/data rclone rw,noauto,nofail,_netdev,x-systemd.automount,args2env,vfs_cache_mode=writes,config=/etc/rclone.conf,cache_dir=/var/cache/rclone 0 0

              or use classic Automountd. Remember to provide explicit @@ -6453,7 +6801,7 @@ that will be used to buffer data in advance.

              memory at all times. The buffered data is bound to one open file and won't be shared.

              This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

              The maximum memory used by rclone for buffering can be up to @@ -6496,11 +6844,12 @@ 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 .

              +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -6625,8 +6974,8 @@ id="vfs-read-chunk-streams-0-1">--vfs-read-chunk-streams

              Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

              -

              This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

              +

              This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

              Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -6806,7 +7155,7 @@ total 1048578 and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

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

              Options

              +

              Options

                    --allow-idmap                            Allow id-mapped mounts (Linux 6.12+, mount2 only)
                     --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)
              @@ -6866,7 +7215,7 @@ as {"error":"error string"}.

              Options shared with other commands are described next. See the global flags page for global options not listed here.

              -

              Filter Options

              +

              Filter Options

              Flags for filtering directory listings

                    --delete-excluded                     Delete files on dest excluded from sync
                     --exclude stringArray                 Exclude files matching pattern
              @@ -6892,7 +7241,7 @@ options not listed here.

              --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 Also

              +

              See Also

                @@ -6902,7 +7251,7 @@ 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 @@ -6978,7 +7327,7 @@ scenarios are not currently supported:

                after, so it is most useful as a predictor of what SHOULD happen to each file (which may or may not match what actually DID).

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

                Options

                +

                Options

                      --absolute                Put a leading / in front of path names
                       --combined string         Make a combined report of changes to this file
                       --csv                     Output in CSV format
                @@ -6999,7 +7348,7 @@ file (which may or may not match what actually DID).

                Options shared with other commands are described next. See the global flags page for global options not listed here.

                -

                Copy Options

                +

                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)
                @@ -7035,12 +7384,12 @@ options not listed here.

                --size-only Skip based on size only, not modtime 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 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

                +

                Filter Options

                Flags for filtering directory listings

                      --delete-excluded                     Delete files on dest excluded from sync
                       --exclude stringArray                 Exclude files matching pattern
                @@ -7066,11 +7415,11 @@ options not listed here.

                --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

                +

                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 Also

                +

                See Also

                  @@ -7080,7 +7429,7 @@ 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?".

                  @@ -7135,12 +7484,12 @@ href="https://rclone.org/commands/rclone_tree/">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

                  Options shared with other commands are described next. See the global flags page for global options not listed here.

                  -

                  Filter Options

                  +

                  Filter Options

                  Flags for filtering directory listings

                        --delete-excluded                     Delete files on dest excluded from sync
                         --exclude stringArray                 Exclude files matching pattern
                  @@ -7166,11 +7515,11 @@ options not listed here.

                  --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

                  +

                  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 Also

                  +

                  See Also

                    @@ -7180,7 +7529,7 @@ for rclone commands, flags and backends.

                    rclone nfsmount

                    Mount the remote as file system on a mountpoint.

                    -

                    Synopsis

                    +

                    Synopsis

                    Rclone nfsmount 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 @@ -7438,6 +7787,12 @@ server.

                    and serve commands on macOS. For details, see vfs-case-sensitivity.

                    NFS mount

                    +

                    For macOS (and other platforms where this path is supported), prefer +the dedicated rclone nfsmount +command. It starts the NFS server and performs the mount for you. +rclone mount itself still uses FUSE (macFUSE/FUSE-T) and +does not switch to NFS via a flag.

                    This method spins up an NFS server using serve nfs command and mounts it to the specified mountpoint. If you run this in @@ -7605,7 +7960,7 @@ however there is more chance of the corruption issue above.

                    then there is no chance of corruption.

                    This is the same as setting the attr_timeout option in mount.fuse.

                    -

                    Filters

                    +

                    Filters

                    Note that all the rclone filters can be used to select a subset of the files to be visible in the mount.

                    systemd

                    @@ -7638,25 +7993,25 @@ detect it and translate command-line arguments appropriately.

                    Now you can run classic mounts like this:

                    mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/path/to/pem

                    or create systemd mount units:

                    -
                    # /etc/systemd/system/mnt-data.mount
                    -[Unit]
                    -Description=Mount for /mnt/data
                    -[Mount]
                    -Type=rclone
                    -What=sftp1:subdir
                    -Where=/mnt/data
                    -Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
                    +
                    # /etc/systemd/system/mnt-data.mount
                    +[Unit]
                    +Description=Mount for /mnt/data
                    +[Mount]
                    +Type=rclone
                    +What=sftp1:subdir
                    +Where=/mnt/data
                    +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]
                    -Description=AutoMount for /mnt/data
                    -[Automount]
                    -Where=/mnt/data
                    -TimeoutIdleSec=600
                    -[Install]
                    -WantedBy=multi-user.target
                    +
                    # /etc/systemd/system/mnt-data.automount
                    +[Unit]
                    +Description=AutoMount for /mnt/data
                    +[Automount]
                    +Where=/mnt/data
                    +TimeoutIdleSec=600
                    +[Install]
                    +WantedBy=multi-user.target

                    or add in /etc/fstab a line like

                    sftp1:subdir /mnt/data rclone rw,noauto,nofail,_netdev,x-systemd.automount,args2env,vfs_cache_mode=writes,config=/etc/rclone.conf,cache_dir=/var/cache/rclone 0 0

                    or use classic Automountd. Remember to provide explicit @@ -7727,7 +8082,7 @@ that will be used to buffer data in advance.

                    memory at all times. The buffered data is bound to one open file and won't be shared.

                    This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                    The maximum memory used by rclone for buffering can be up to @@ -7770,11 +8125,12 @@ 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 .

                    +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -7900,8 +8256,8 @@ id="vfs-read-chunk-streams-0-3">--vfs-read-chunk-streams

                    Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                    -

                    This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                    +

                    This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                    Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -8081,7 +8437,7 @@ total 1048578 and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

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

                    Options

                    +

                    Options

                          --addr string                            IPaddress:Port or :Port to bind server to
                           --allow-idmap                            Allow id-mapped mounts (Linux 6.12+, mount2 only)
                           --allow-non-empty                        Allow mounting over a non-empty directory (not supported on Windows)
                    @@ -8147,7 +8503,7 @@ as {"error":"error string"}.

                    Options shared with other commands are described next. See the global flags page for global options not listed here.

                    -

                    Filter Options

                    +

                    Filter Options

                    Flags for filtering directory listings

                          --delete-excluded                     Delete files on dest excluded from sync
                           --exclude stringArray                 Exclude files matching pattern
                    @@ -8173,7 +8529,7 @@ options not listed here.

                    --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 Also

                    +

                    See Also

                      @@ -8183,7 +8539,7 @@ 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 @@ -8204,11 +8560,11 @@ 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

                        @@ -8218,7 +8574,7 @@ for rclone commands, flags and backends.

                        rclone rc

                        Run a command against a running rclone.

                        -

                        Synopsis

                        +

                        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://host:port.

                        --user, --pass.

                        The --unix-socket flag can be used to connect over a unix socket like this

                        -
                        # start server on /tmp/my.socket
                        -rclone rcd --rc-addr unix:///tmp/my.socket
                        -# Connect to it
                        -rclone rc --unix-socket /tmp/my.socket core/stats
                        +
                        # start server on /tmp/my.socket
                        +rclone rcd --rc-addr unix:///tmp/my.socket
                        +# Connect to it
                        +rclone rc --unix-socket /tmp/my.socket core/stats

                        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 @@ -8249,25 +8605,25 @@ 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","")
                        +
                        {"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.

                        -a value -a value2

                        Will place this in the "arg" value

                        -
                        ["value", "value2"]
                        +
                        ["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.:

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

                        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
                        @@ -8280,7 +8636,7 @@ commands.

                        --user string Username to use to rclone remote control

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

                        -

                        See Also

                        +

                        See Also

                          @@ -8290,7 +8646,7 @@ for rclone commands, flags and backends.

                          rclone rcat

                          Copies standard input to file on remote.

                          -

                          Synopsis

                          +

                          Synopsis

                          Reads from standard input (stdin) and copies it to a single remote file.

                          echo "hello world" | rclone rcat remote:path/to/file
                          @@ -8317,18 +8673,18 @@ 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)

                          Options shared with other commands are described next. See the global flags page for global options not listed here.

                          -

                          Important Options

                          +

                          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 Also

                          +

                          See Also

                            @@ -8338,7 +8694,7 @@ 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.

                            @@ -8372,6 +8728,14 @@ bytes the server will accept in the HTTP header.

                            for all responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value.

                            +

                            --rc-allow-origin enables cross-origin (CORS) requests +from browsers by setting the Access-Control-Allow-Origin +header on every response to the origin given, e.g. +--rc-allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an +authenticated server.

                            --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 @@ -8468,55 +8832,101 @@ asc). Currently unused. +.Path + +The path of the directory from the root +with leading and trailing slashes, e.g. '/dir/'. + + +.IsRoot + +Boolean for if this is the root +directory. + + +.UpLink + +The link to the parent directory. + + +.Static + +Boolean for if the listing is being +written as a static page by rclone index. + + +.NumDirs + +The number of directories in the +listing. + + +.NumFiles + +The number of files in the listing. + + +.TotalSize + +The total size in bytes of the files in +the listing. + + .Breadcrumb Allows for creating a relative navigation. - + .Link The link of the Text relative to the root. - + .Text The Name of the directory. - + .Entries Information about a specific file/directory. - + .URL The url of an entry. - + .Leaf Currently same as '.URL' but intended to be just the name. - + .IsDir Boolean for if an entry is a directory or not. - + .Size Size in bytes of the entry. - + .ModTime The UTC timestamp of an entry. + + +.MimeType +The MIME type of an entry guessed from its +name, or 'inode/directory'. +

                            The server also makes the following functions available so that they @@ -8579,12 +8989,22 @@ and BCrypt for basic authentication. Bcrypt is recommended.

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

                            Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist.

                            The password file can be updated while rclone is running.

                            +

                            When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when +--rc-allow-origin is set, which are answered without +authentication as browsers never send credentials with them.

                            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

                            +

                            Options

                              -h, --help   help for rcd

                            Options shared with other commands are described next. See the global flags page for global @@ -8616,13 +9036,8 @@ options not listed here.

                            --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-user-from-header string User name from a defined HTTP header - --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 Also

                          + --rc-user-from-header string User name from a defined HTTP header
                    +

                    See Also

                      @@ -8632,7 +9047,7 @@ for rclone commands, flags and backends.

                      rclone rmdirs

                      Remove empty directories under the path.

                      -

                      Synopsis

                      +

                      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 @@ -8651,18 +9066,18 @@ number.

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

                      rclone rmdirs remote:path [flags]
                      -

                      Options

                      +

                      Options

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

                      Options shared with other commands are described next. See the global flags page for global options not listed here.

                      -

                      Important Options

                      +

                      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 Also

                      +

                      See Also

                        @@ -8672,7 +9087,7 @@ for rclone commands, flags and backends.

                        rclone selfupdate

                        Update the rclone binary.

                        -

                        Synopsis

                        +

                        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 manually following the install documentation.

                        rclone selfupdate [flags]
                        -

                        Options

                        +

                        Options

                              --beta             Install beta release
                               --check            Check for latest release, do not download
                           -h, --help             help for selfupdate
                        @@ -8734,7 +9149,7 @@ documentation.

                        --version string Install the given rclone version (default: latest)

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

                        -

                        See Also

                        +

                        See Also

                          @@ -8744,7 +9159,7 @@ for rclone commands, flags and backends.

                          rclone serve

                          Serve a remote over a protocol.

                          -

                          Synopsis

                          +

                          Synopsis

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

                          rclone serve http remote:
                          @@ -8755,11 +9170,11 @@ fields depends on whether the remote supports metadata.

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

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

                          Options

                          +

                          Options

                            -h, --help   help for serve

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

                          -

                          See Also

                          +

                          See Also

                            @@ -8787,7 +9202,7 @@ serve webdav - Serve remote:path over WebDAV.

                            rclone serve dlna

                            Serve remote:path over DLNA

                            -

                            Synopsis

                            +

                            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 @@ -8847,7 +9262,7 @@ that will be used to buffer data in advance.

                            memory at all times. The buffered data is bound to one open file and won't be shared.

                            This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                            The maximum memory used by rclone for buffering can be up to @@ -8890,11 +9305,12 @@ 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 .

                            +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -9020,8 +9436,8 @@ id="vfs-read-chunk-streams-0-5">--vfs-read-chunk-streams

                            Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                            -

                            This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                            +

                            This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                            Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -9201,7 +9617,7 @@ total 1048578 and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                            rclone serve dlna remote:path [flags]
                            -

                            Options

                            +

                            Options

                                  --addr string                            The ip:port or :port to bind the DLNA http server to (default ":7879")
                                   --announce-interval Duration             The interval between SSDP announcements (default 12m0s)
                                   --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
                            @@ -9244,7 +9660,7 @@ as {"error":"error string"}.

                            Options shared with other commands are described next. See the global flags page for global options not listed here.

                            -

                            Filter Options

                            +

                            Filter Options

                            Flags for filtering directory listings

                                  --delete-excluded                     Delete files on dest excluded from sync
                                   --exclude stringArray                 Exclude files matching pattern
                            @@ -9270,7 +9686,7 @@ options not listed here.

                            --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 Also

                            +

                            See Also

                              @@ -9280,7 +9696,7 @@ options not listed here.

                              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 @@ -9411,7 +9827,7 @@ that will be used to buffer data in advance.

                              memory at all times. The buffered data is bound to one open file and won't be shared.

                              This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                              The maximum memory used by rclone for buffering can be up to @@ -9454,11 +9870,12 @@ 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 .

                              +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -9584,8 +10001,8 @@ id="vfs-read-chunk-streams-0-7">--vfs-read-chunk-streams

                              Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                              -

                              This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                              +

                              This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                              Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -9765,7 +10182,7 @@ total 1048578 and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                              rclone serve docker [flags]
                              -

                              Options

                              +

                              Options

                                    --allow-idmap                            Allow id-mapped mounts (Linux 6.12+, mount2 only)
                                     --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)
                              @@ -9830,7 +10247,7 @@ as {"error":"error string"}.

                              Options shared with other commands are described next. See the global flags page for global options not listed here.

                              -

                              Filter Options

                              +

                              Filter Options

                              Flags for filtering directory listings

                                    --delete-excluded                     Delete files on dest excluded from sync
                                     --exclude stringArray                 Exclude files matching pattern
                              @@ -9856,7 +10273,7 @@ options not listed here.

                              --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 Also

                              +

                              See Also

                                @@ -9866,7 +10283,7 @@ options not listed here.

                                rclone serve ftp

                                Serve remote:path over FTP.

                                -

                                Synopsis

                                +

                                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.

                                @@ -9920,7 +10337,7 @@ that will be used to buffer data in advance.

                                memory at all times. The buffered data is bound to one open file and won't be shared.

                                This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                The maximum memory used by rclone for buffering can be up to @@ -9963,11 +10380,12 @@ 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 .

                                +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -10093,8 +10511,8 @@ id="vfs-read-chunk-streams-0-9">--vfs-read-chunk-streams

                                Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                -

                                This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                +

                                This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -10296,35 +10714,69 @@ proxy program to make a complete config.

                                • _root - root to use for the backend
                                -

                                And it may have this parameter

                                +

                                And it may have these parameters

                                • _obscure - comma separated strings for parameters to obscure
                                • +
                                • _secret_access_key - the secret for S3 access key auth +(see below)

                                If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

                                -
                                {
                                -  "user": "me",
                                -  "pass": "mypassword"
                                -}
                                +
                                {
                                +  "user": "me",
                                +  "pass": "mypassword",
                                +  "client_ip": "192.168.1.1"
                                +}

                                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"
                                -}
                                +
                                {
                                +  "user": "me",
                                +  "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf",
                                +  "client_ip": "192.168.1.1"
                                +}
                                +

                                If the client authenticated with an S3 access key +(rclone serve s3), the client never sends its secret, only +a signature made with it, so the input contains just the access key ID +as the user with no pass or +public_key:

                                +
                                {
                                +  "user": "AKIAIOSFODNN7EXAMPLE",
                                +  "client_ip": "192.168.1.1"
                                +}
                                +

                                In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field +of the output. Rclone then uses that secret to verify the signature on +the request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +_secret_access_key or returns it empty the request is +refused.

                                +

                                The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it.

                                +

                                The client_ip key holds the IP address the client +connected from, without a port number. It can be used to restrict logins +to certain networks, or to log authentication attempts centrally. It is +omitted if the client has no IP address, for example when connecting +over a unix socket. Note that if rclone is behind a reverse proxy this +will be the address of the reverse proxy and not the original +client.

                                And as an example return this on STDOUT

                                -
                                {
                                -  "type": "sftp",
                                -  "_root": "",
                                -  "_obscure": "pass",
                                -  "user": "me",
                                -  "pass": "mypassword",
                                -  "host": "sftp.example.com"
                                -}
                                +
                                {
                                +  "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 @@ -10337,16 +10789,23 @@ 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.

                                -

                                An internal cache of backends is keyed on the user and a -hash of the pass or public_key. This means -that if a user's password or public-key changes, or the proxy returns -different config parameters (eg a rotated api_key), a fresh -backend will be created on the next request rather than the cached one -being reused.

                                +

                                An internal cache of backends is keyed on the user, the +kind of credential presented, a hash of the pass or +public_key, and the client_ip. This means that +if a user's password or public-key changes, the client connects from a +new IP address, or the proxy returns different config parameters (eg a +rotated api_key), a fresh backend will be created on the +next request rather than the cached one being reused. A backend created +for a public key login is never reused for a password login, so a public +key cannot be sent as a password to skip the program.

                                +

                                A cached answer is checked with the program again after 5 minutes +even if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For serve sftp this applies +to new logins - an existing connection is not closed.

                                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)
                                @@ -10392,7 +10851,7 @@ backend that rclone supports.

                                Options shared with other commands are described next. See the global flags page for global options not listed here.

                                -

                                Filter Options

                                +

                                Filter Options

                                Flags for filtering directory listings

                                      --delete-excluded                     Delete files on dest excluded from sync
                                       --exclude stringArray                 Exclude files matching pattern
                                @@ -10418,7 +10877,7 @@ options not listed here.

                                --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 Also

                                +

                                See Also

                                  @@ -10428,7 +10887,7 @@ options not listed here.

                                  rclone serve http

                                  Serve the remote over HTTP.

                                  -

                                  Synopsis

                                  +

                                  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.

                                  @@ -10462,6 +10921,14 @@ the server will accept in the HTTP header.

                                  all responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value.

                                  +

                                  --allow-origin enables cross-origin (CORS) requests from +browsers by setting the Access-Control-Allow-Origin header +on every response to the origin given, e.g. +--allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an +authenticated server.

                                  --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 @@ -10558,55 +11025,101 @@ asc). Currently unused. +.Path + +The path of the directory from the root +with leading and trailing slashes, e.g. '/dir/'. + + +.IsRoot + +Boolean for if this is the root +directory. + + +.UpLink + +The link to the parent directory. + + +.Static + +Boolean for if the listing is being +written as a static page by rclone index. + + +.NumDirs + +The number of directories in the +listing. + + +.NumFiles + +The number of files in the listing. + + +.TotalSize + +The total size in bytes of the files in +the listing. + + .Breadcrumb Allows for creating a relative navigation. - + .Link The link of the Text relative to the root. - + .Text The Name of the directory. - + .Entries Information about a specific file/directory. - + .URL The url of an entry. - + .Leaf Currently same as '.URL' but intended to be just the name. - + .IsDir Boolean for if an entry is a directory or not. - + .Size Size in bytes of the entry. - + .ModTime The UTC timestamp of an entry. + + +.MimeType +The MIME type of an entry guessed from its +name, or 'inode/directory'. +

                                  The server also makes the following functions available so that they @@ -10669,7 +11182,17 @@ BCrypt for basic authentication. Bcrypt is recommended.

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

                                  Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist.

                                  The password file can be updated while rclone is running.

                                  +

                                  When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when +--allow-origin is set, which are answered without +authentication as browsers never send credentials with them.

                                  Use --realm to set the authentication realm.

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

                                  @@ -10711,7 +11234,7 @@ that will be used to buffer data in advance.

                                  memory at all times. The buffered data is bound to one open file and won't be shared.

                                  This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                  The maximum memory used by rclone for buffering can be up to @@ -10754,11 +11277,12 @@ 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 .

                                  +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -10884,8 +11408,8 @@ id="vfs-read-chunk-streams-0-11">--vfs-read-chunk-streams

                                  Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                  -

                                  This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                  +

                                  This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                  Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -11087,35 +11611,69 @@ proxy program to make a complete config.

                                  • _root - root to use for the backend
                                  -

                                  And it may have this parameter

                                  +

                                  And it may have these parameters

                                  • _obscure - comma separated strings for parameters to obscure
                                  • +
                                  • _secret_access_key - the secret for S3 access key auth +(see below)

                                  If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

                                  -
                                  {
                                  -  "user": "me",
                                  -  "pass": "mypassword"
                                  -}
                                  +
                                  {
                                  +  "user": "me",
                                  +  "pass": "mypassword",
                                  +  "client_ip": "192.168.1.1"
                                  +}

                                  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"
                                  -}
                                  +
                                  {
                                  +  "user": "me",
                                  +  "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf",
                                  +  "client_ip": "192.168.1.1"
                                  +}
                                  +

                                  If the client authenticated with an S3 access key +(rclone serve s3), the client never sends its secret, only +a signature made with it, so the input contains just the access key ID +as the user with no pass or +public_key:

                                  +
                                  {
                                  +  "user": "AKIAIOSFODNN7EXAMPLE",
                                  +  "client_ip": "192.168.1.1"
                                  +}
                                  +

                                  In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field +of the output. Rclone then uses that secret to verify the signature on +the request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +_secret_access_key or returns it empty the request is +refused.

                                  +

                                  The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it.

                                  +

                                  The client_ip key holds the IP address the client +connected from, without a port number. It can be used to restrict logins +to certain networks, or to log authentication attempts centrally. It is +omitted if the client has no IP address, for example when connecting +over a unix socket. Note that if rclone is behind a reverse proxy this +will be the address of the reverse proxy and not the original +client.

                                  And as an example return this on STDOUT

                                  -
                                  {
                                  -  "type": "sftp",
                                  -  "_root": "",
                                  -  "_obscure": "pass",
                                  -  "user": "me",
                                  -  "pass": "mypassword",
                                  -  "host": "sftp.example.com"
                                  -}
                                  +
                                  {
                                  +  "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 @@ -11128,16 +11686,23 @@ 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.

                                  -

                                  An internal cache of backends is keyed on the user and a -hash of the pass or public_key. This means -that if a user's password or public-key changes, or the proxy returns -different config parameters (eg a rotated api_key), a fresh -backend will be created on the next request rather than the cached one -being reused.

                                  +

                                  An internal cache of backends is keyed on the user, the +kind of credential presented, a hash of the pass or +public_key, and the client_ip. This means that +if a user's password or public-key changes, the client connects from a +new IP address, or the proxy returns different config parameters (eg a +rotated api_key), a fresh backend will be created on the +next request rather than the cached one being reused. A backend created +for a public key login is never reused for a password login, so a public +key cannot be sent as a password to skip the program.

                                  +

                                  A cached answer is checked with the program again after 5 minutes +even if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For serve sftp this applies +to new logins - an existing connection is not closed.

                                  This can be used to build general purpose proxies to any kind of backend that rclone supports.

                                  rclone serve http remote:path [flags]
                                  -

                                  Options

                                  +

                                  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
                                  @@ -11196,7 +11761,7 @@ backend that rclone supports.

                                  Options shared with other commands are described next. See the global flags page for global options not listed here.

                                  -

                                  Filter Options

                                  +

                                  Filter Options

                                  Flags for filtering directory listings

                                        --delete-excluded                     Delete files on dest excluded from sync
                                         --exclude stringArray                 Exclude files matching pattern
                                  @@ -11222,7 +11787,7 @@ options not listed here.

                                  --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 Also

                                  +

                                  See Also

                                    @@ -11232,7 +11797,7 @@ options not listed here.

                                    rclone serve nfs

                                    Serve the remote as an NFS mount

                                    -

                                    Synopsis

                                    +

                                    Synopsis

                                    Create an NFS server that serves the given remote over the network.

                                    This implements an NFSv3 server to serve any rclone remote via @@ -11281,20 +11846,20 @@ default is 1000000, but consider lowering this limit if the server's system resource usage causes problems. This is only used by the memory type cache.

                                    To serve NFS over the network use following command:

                                    -
                                    rclone serve nfs remote: --addr 0.0.0.0:$PORT --vfs-cache-mode=full
                                    +
                                    rclone serve nfs remote: --addr 0.0.0.0:$PORT --vfs-cache-mode=full

                                    This specifies a port that can be used in the mount command. To mount the server under Linux/macOS, use the following command:

                                    -
                                    mount -t nfs -o port=$PORT,mountport=$PORT,tcp $HOSTNAME:/ path/to/mountpoint
                                    +
                                    mount -t nfs -o port=$PORT,mountport=$PORT,tcp $HOSTNAME:/ path/to/mountpoint

                                    Where $PORT is the same port number used in the serve nfs command and $HOSTNAME is the network address of the machine that serve nfs was run on.

                                    NFS clients can also mount a subdirectory of the served remote by including it in the mount path. For example to mount only the photos/2024 subdirectory:

                                    -
                                    mount -t nfs -o port=$PORT,mountport=$PORT,tcp $HOSTNAME:/photos/2024 path/to/mountpoint
                                    +
                                    mount -t nfs -o port=$PORT,mountport=$PORT,tcp $HOSTNAME:/photos/2024 path/to/mountpoint

                                    The subpath is resolved within the served remote and must refer to an existing directory (not a file or a symlink). Subpath mounts are a convenience equivalent to mounting / and changing @@ -11346,7 +11911,7 @@ that will be used to buffer data in advance.

                                    memory at all times. The buffered data is bound to one open file and won't be shared.

                                    This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                    The maximum memory used by rclone for buffering can be up to @@ -11389,11 +11954,12 @@ 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 .

                                    +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -11519,8 +12085,8 @@ id="vfs-read-chunk-streams-0-13">--vfs-read-chunk-streams

                                    Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                    -

                                    This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                    +

                                    This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                    Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -11700,7 +12266,7 @@ total 1048578 and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                                    rclone serve nfs remote:path [flags]
                                    -

                                    Options

                                    +

                                    Options

                                          --addr string                            IPaddress:Port or :Port to bind server to
                                           --dir-cache-time Duration                Time to cache directory entries for (default 5m0s)
                                           --dir-perms FileMode                     Directory permissions (default 777)
                                    @@ -11742,7 +12308,7 @@ as {"error":"error string"}.

                                    Options shared with other commands are described next. See the global flags page for global options not listed here.

                                    -

                                    Filter Options

                                    +

                                    Filter Options

                                    Flags for filtering directory listings

                                          --delete-excluded                     Delete files on dest excluded from sync
                                           --exclude stringArray                 Exclude files matching pattern
                                    @@ -11768,7 +12334,7 @@ options not listed here.

                                    --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 Also

                                    +

                                    See Also

                                      @@ -11778,7 +12344,7 @@ options not listed here.

                                      rclone serve restic

                                      Serve the remote for restic's REST API.

                                      -

                                      Synopsis

                                      +

                                      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.

                                      @@ -11867,6 +12433,14 @@ the server will accept in the HTTP header.

                                      all responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value.

                                      +

                                      --allow-origin enables cross-origin (CORS) requests from +browsers by setting the Access-Control-Allow-Origin header +on every response to the origin given, e.g. +--allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an +authenticated server.

                                      --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 @@ -11937,12 +12511,22 @@ BCrypt for basic authentication. Bcrypt is recommended.

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

                                      Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist.

                                      The password file can be updated while rclone is running.

                                      +

                                      When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when +--allow-origin is set, which are answered without +authentication as browsers never send credentials with them.

                                      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

                                      +

                                      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
                                      @@ -11967,7 +12551,7 @@ default.

                                      --user-from-header string User name from a defined HTTP header

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

                                      -

                                      See Also

                                      +

                                      See Also

                                        @@ -11977,7 +12561,7 @@ global options not listed here.

                                        rclone serve s3

                                        Serve remote:path over s3.

                                        -

                                        Synopsis

                                        +

                                        Synopsis

                                        serve s3 implements a basic s3 server that serves a remote via s3. This can be viewed with an s3 client, or you can make an s3 type remote to read and write to @@ -11992,6 +12576,21 @@ docs).

                                        --auth-key can be repeated for multiple auth pairs. If --auth-key is not provided then serve s3 will allow anonymous access.

                                        +

                                        Alternatively --auth-proxy can be used to look up the +secret for each access key ID and choose the backend it maps to (see Auth Proxy below). When an auth proxy is in use +--auth-key is ignored and every request must be signed with +the secret the proxy returns for its access key ID. Each access key ID +is a separate user, whose multipart uploads and object metadata are +private to it, even if the proxy maps several access key IDs to the same +backend.

                                        +

                                        As on AWS, every x-amz-* header in an authenticated +request must be in its signed headers list; a request with an unsigned +x-amz-* header is refused with AccessDenied. +S3 clients sign these headers as a matter of course, but a header added +after signing (for example by a proxy in front of the server, or +x-amz-meta-* headers sent with a presigned URL which only +signs the host) is refused.

                                        Like all rclone flags --auth-key can be set via environment variables, in this case RCLONE_AUTH_KEY. Since this flag can be repeated, the input to RCLONE_AUTH_KEY is @@ -12015,7 +12614,15 @@ bucket name as a part of the hostname (such as mybucket.local)

                                        Use --etag-hash if you want to change the hash uses for the ETag. Note that using anything other than MD5 (the default) is likely to cause problems for S3 -clients which rely on the Etag being the MD5.

                                        +clients which rely on the Etag being the MD5. Use +--etag-hash auto to use the best hash the backend supports +- with --auth-proxy that of each user's backend.

                                        +

                                        The ETag of an object made by a multipart upload is its +hash, like any other object, rather than the -N suffixed +ETag AWS S3 gives these. If the remote doesn't have the MD5 +of objects, HeadObject and listings only return the MD5 of +objects uploaded through serve s3 while the object's +metadata is kept (see below).

                                        Quickstart

                                        For a simple set up, to serve remote:path over s3, run the server like this:

                                        @@ -12024,9 +12631,9 @@ the server like this:

                                        with a command like this:

                                        rclone serve s3 --auth-key ACCESS_KEY_ID,SECRET_ACCESS_KEY local:/path/to/folder

                                        The rclone.conf for the server could look like this:

                                        -
                                        [local]
                                        -type = local
                                        +
                                        [local]
                                        +type = local

                                        The local configuration is optional though. If you run the server with a remote:path like /path/to/folder (without the local: prefix and @@ -12035,35 +12642,81 @@ default configuration, which will be visible as a warning in the logs. But it will run nonetheless.

                                        This will be compatible with an rclone (client) remote configuration which is defined like this:

                                        -
                                        [serves3]
                                        -type = s3
                                        -provider = Rclone
                                        -endpoint = http://127.0.0.1:8080/
                                        -access_key_id = ACCESS_KEY_ID
                                        -secret_access_key = SECRET_ACCESS_KEY
                                        +
                                        [serves3]
                                        +type = s3
                                        +provider = Rclone
                                        +endpoint = http://127.0.0.1:8080/
                                        +access_key_id = ACCESS_KEY_ID
                                        +secret_access_key = SECRET_ACCESS_KEY
                                        +

                                        Object uploads (PUT)

                                        +

                                        A PutObject upload only ever changes the object at its +key atomically, on success, a failed or interrupted PUT neither removes +nor overwrites the object already stored at the key, and never leaves a +partial object visible at it.

                                        +

                                        Remotes that upload atomically (e.g. object stores such as +s3) are streamed straight to the destination. On remotes +where a partial upload would otherwise be visible (e.g. +local), and whenever --vfs-cache-mode is +writes or above, the upload is written to a temporary +object that is renamed into place on success; these remotes need to +support a server-side move or copy for this (nearly all do - without +move or copy the upload is written directly and a failed PUT may leave a +partial object at the key). If serve s3 is killed part-way +through an upload the temporary object (named with a leading +.rclone_temp_put_) may be left behind; it is hidden from S3 +listings but must be removed manually.

                                        Multipart uploads

                                        -

                                        By default serve s3 streams each -multipart upload, in part-number order, into a single -PutStream upload to the underlying remote, so the whole -file is never buffered in memory - memory use stays bounded by the parts -in flight. The remote then performs its own internal upload (for example -its own multipart upload, still with bounded memory). This works for any -remote that supports PutStream, which is nearly all of -them, including through crypt.

                                        -

                                        The upload is atomic so the destination object only ever changes on a +

                                        Multipart uploads are written, in part-number order, to a temporary +object which is renamed into place, server-side, on completion, so the +upload is atomic. The object at the key only ever changes on a successful completion. A failed or aborted upload never affects any -object already stored under that name. Remotes that upload atomically -already (object stores such as s3) are streamed straight to -the destination. On remotes where a partial upload would otherwise be -visible (such as local), the parts are streamed to a -temporary object that is moved into place, server-side, on completion; -these remotes therefore also need to support a server-side move or -copy.

                                        +object already stored under that name and a partly-uploaded object never +becomes visible under it.

                                        +

                                        With the default --vfs-cache-mode off +serve s3 streams each multipart upload, in +part-number order, into a single streaming upload to the underlying +remote, so the whole file is never buffered in memory: only parts which +arrive out of order are buffered, within the limits described below. The +remote then performs its own internal upload (for example its own +multipart upload, still with bounded memory). Remotes that don't support +streaming uploads (those that must know the file size before the upload +starts, such as onedrive, pcloud, +jottacloud, mailru, opendrive, +putio, protondrive and zoho) have +the parts spooled to a temporary file on local disk +instead, and uploaded with the size then known on completion, so they +need local disk space for the largest objects in flight rather than +memory.

                                        +

                                        With --vfs-cache-mode writes (or full) the +parts are written to a temporary file in the VFS cache and uploaded by +the VFS write-back - see Multipart uploads and the +VFS cache below.

                                        +

                                        The rename into place needs the remote to support a server-side move +or copy, which nearly all do. It is a cheap rename on most remotes, but +on object stores without a real rename (such as s3 itself) +the move is performed as a server-side copy and delete of the whole +object, which can take time and API calls for large objects. Concurrent +multipart uploads of the same key (which S3 permits) are safe. Each +writes its own temporary object and the last to complete wins.

                                        +

                                        On the few remotes that support neither server side move nor copy, +the parts are written straight to the destination object instead and +never buffered in memory. This is at some cost in atomicity - the +incomplete object is visible under its final name while the upload is in +flight, as it also is for a plain object PUT on such remotes, and +concurrent multipart uploads of the same key write to the same object +and can interleave. A failed or aborted upload still leaves any +pre-existing object untouched provided the remote uploads atomically and +the VFS cache is off; on a remote where partial uploads are visible it +may leave partial data at the key (like a plain PUT there), and with +--vfs-cache-mode writes (or full) a write to +the cache cannot be abandoned, so an aborted upload's partial data is +written back to the remote as if it had completed.

                                        Features

                                          -
                                        • The whole object is never buffered in memory; memory use is bounded -by the parts in flight, not the upload size.
                                        • +
                                        • The whole object is never buffered in memory; only parts arriving +out of order are, within fixed limits, whatever the upload size.
                                        • Parts can be any size. Clients that don't produce uniform-sized parts work fine - for example PostgreSQL backup tools such as pgBarman and pgBackRest, which flush @@ -12073,123 +12726,547 @@ chunk size plus a variable overshoot.
                                        • is encrypted as one continuous stream.
                                        • The destination object only ever changes atomically, on completion: an aborted or failed upload leaves any pre-existing object of the same -name untouched, and a partly-uploaded object never becomes visible.
                                        • -
                                        • Backend-agnostic - it only needs the remote to support -PutStream (plus a server-side move or copy on remotes that -don't upload atomically).
                                        • +name untouched, and a partly-uploaded object never becomes visible +(except on the few remotes with no server-side move or copy, as +above). +
                                        • Multipart uploads go through the VFS like any other upload, so they +show in rclone's transfer stats and obey --bwlimit.
                                        • +
                                        • Backend-agnostic - it only needs the remote to support a server-side +move or copy for the rename into place, which nearly all do; a remote +without streaming upload support spools to local disk as above.

                                        Limitations

                                        • Parts must arrive in ascending, contiguous part-number order (1, 2, -3, ...). Parts the client uploads concurrently or out of order are -buffered until their turn. The memory used for this buffering is capped, -per upload, by --multipart-streaming-buffer-limit (default -256M, 0 for no limit): a part that would take -the buffer over the limit is stalled until the stream drains, so a -client that uploads faster than the remote can accept sees backpressure -rather than unbounded server memory use. Since a stalled part holds its -HTTP request open, clients whose upload concurrency times chunk size -exceeds the limit may need a longer read timeout when the remote is -slow. Non-contiguous part numbers are rejected on completion. Configure -the client to upload in part order, ideally with low concurrency, for -the lowest memory use.
                                        • +3, ...). The part the stream needs next is written straight through as +it arrives, so it is never buffered, whatever its size. Parts the client +uploads concurrently or out of order are buffered until their turn. The +memory used for this buffering is capped, per upload, by +--multipart-streaming-buffer-limit (default +256M, 0 for no limit), and across all the +uploads of each user (each access key) by +--multipart-streaming-buffer-total (default +1G, 0 for no limit), counting each buffered +part in the whole 1 MiB memory pages it occupies: a part that would take +the buffer over either limit is stalled until the stream drains (or, if +it is bigger than the limits, until it is the next part), so a client +that uploads faster than the remote can accept sees backpressure rather +than unbounded server memory use. A stalled part holds its HTTP request +open, and one stalled for more than a minute is failed with a +SlowDown error, which S3 clients retry. Clients whose +upload concurrency times part size exceeds the limits will see these +stalls and retries when the remote is slower than the client. +Non-contiguous part numbers are rejected on completion. Configure the +client to upload in part order, ideally with low concurrency, for the +lowest memory use.
                                        • A part uploaded again before completion - typically a client retrying after a timeout - is accepted: if the earlier copy is still buffered it is replaced, and if it has already been streamed an -identical re-upload is a no-op. What isn't possible is replacing a part -that has already been streamed with different content - that is -rejected. A failure in the stream to the remote itself still aborts the -whole upload and the client must start it again. (The remote's own -upload still retries its internal chunks.)
                                        • +identical re-upload is a no-op (a re-upload which arrives while the part +is being streamed waits for it to finish first). If a part fails part +way through being streamed (for example the client's connection drops) +the client's retry of it carries on where it stopped, provided it has +the same content. What isn't possible is replacing a part that has +already been streamed, in whole or in part, with different +content - that is rejected. A part which arrives in full but is then +rejected, for example because it doesn't match the +Content-MD5 the client declared, has already been streamed, +so the whole upload is failed and the client must start it again. So is +a failure in the stream to the remote itself. (The remote's own upload +still retries its internal chunks.) +
                                        • A CompleteMultipartUpload which fails because the parts +it lists don't match those uploaded, or there is a gap in the part +numbers, leaves the upload open, as on S3, so the client can upload any +missing parts and complete it again. If writing the completed object to +the remote fails, the upload is failed and must be started again.
                                        • Parts are serialised into one stream, so ingest from the client is -effectively single-threaded, although the remote's own upload still runs -concurrently.
                                        • -
                                        • On remotes that don't upload atomically (such as -local), the completed object is moved into place with a -server-side operation. This is a cheap rename on most such remotes. On -these remotes, if serve s3 is killed part-way through an -upload the temporary object (named with a leading -.rclone_multipart_upload_) may be left behind; it is hidden +effectively single-threaded. When streaming, the remote's own upload +runs concurrently with the parts arriving; with the local disk spool or +the VFS cache the upload to the remote only starts on completion.
                                        • +
                                        • If serve s3 is killed part-way through an upload the +temporary object (named with a leading +.rclone_temp_multipart_) may be left behind; it is hidden from S3 listings but must be removed manually.
                                        +

                                        Multipart uploads and the +VFS cache

                                        +

                                        With --vfs-cache-mode writes (or full) +multipart uploads do not stream to the remote at all. The parts are +written, in part-number order, to a temporary file in the VFS cache. On +completion the file is renamed into place and uploaded by the VFS +write-back, exactly like a plain object PUT. This needs no streaming +upload support from the remote. The rename normally happens in the cache +before the upload has started, but the VFS requires the remote to +support a server-side move or copy to rename files at all (and uses one +if the temporary file has already been written back, e.g. with +--vfs-write-back 0). On remotes without either, the parts +are written to the cache directly under the final key instead: the +upload still never touches memory, but it loses its atomicity - the +in-flight upload is visible at the key, and an aborted upload cannot be +abandoned once in the cache, so its partial data is written back to the +remote as if it were a completed object.

                                        +

                                        Remotes that benefit from --vfs-cache-mode writes:

                                        +
                                          +
                                        • Remotes over slow or unreliable links. A failure in +a streamed upload aborts the whole multipart upload and the client must +start again from the first part; a failed write-back upload is retried +by the VFS (see --vfs-cache-max-age and friends) without +the client being involved. Ingest from the client also runs at local +disk speed rather than being throttled to the remote's pace.
                                        • +
                                        • Workloads that read back or overwrite what they just +wrote. The completed object stays in the cache, so subsequent +GET/HEAD requests are served locally, and +plain PUTs and multipart uploads to the same key go through the same +cache entry so the last write wins regardless of upload style.
                                        • +
                                        +

                                        The trade-offs of the VFS cache:

                                        +
                                          +
                                        • The whole object lands on local disk, so the cache +(--cache-dir) needs space for the largest objects in +flight; --vfs-cache-max-size cannot evict files which are +still being uploaded.
                                        • +
                                        • The 200 OK for CompleteMultipartUpload +means the data is safely in the local cache, not yet on +the remote - the same durability the cache gives plain PUTs. If an +acknowledgement must mean the data has reached the remote (for example +WAL archiving), use the default --vfs-cache-mode off.
                                        • +
                                        • The upload to the remote only starts on completion, rather than +overlapping with the parts arriving, so the data reaches the remote +later than with streaming.
                                        • +
                                        • If serve s3 is killed part-way through an upload, the +temporary file survives in the cache and the VFS cache recovery uploads +it to the remote on restart as a temporary object (named with a leading +.rclone_temp_multipart_); as with the streaming path, it is +hidden from S3 listings but must be removed manually.
                                        • +
                                        +

                                        Cleaning up temporary +objects

                                        +

                                        If serve s3 is killed part-way through an upload it can +leave a temporary object behind, named with a leading +.rclone_temp_. This whole prefix is reserved: any object +whose name (the last /-separated segment of its key) starts +with .rclone_temp_ is hidden from S3 listings, so don't +give real objects such names - an existing object with such a name +disappears from listings (though it stays accessible directly by its +key: only listings hide reserved names, GET, +HEAD and DELETE of the exact key still work). +A temporary object never holds acknowledged data - uploads whose +temporary object survived were never confirmed to the client - so old +ones are safe to delete:

                                        +
                                        rclone delete --min-age 24h --include ".rclone_temp_*" remote:path
                                        +

                                        The --min-age protects uploads which are still in +progress: make sure it is longer than your longest upload, especially if +several serve s3 instances share the same remote.

                                        +

                                        rclone v1.75 named its temporary multipart objects +.rclone_multipart_upload_*; leftovers from an older server +are also hidden from listings and can be cleaned up the same way.

                                        +

                                        Abandoned uploads

                                        +

                                        A client which starts a multipart upload and vanishes without either +completing or aborting it would otherwise hold on to its resources +forever.

                                        +

                                        An incomplete multipart upload which has had no activity for +--multipart-expiry (default 24h) is therefore +aborted and cleaned up, exactly as if the client had called +AbortMultipartUpload, and a NOTICE is +logged.

                                        +

                                        An upload with a part still being received is never expired, however +slowly the part is arriving, and each completed part restarts the clock, +so the expiry only needs to outlast the client's pauses between +parts, not the whole upload.

                                        +

                                        Late operations on an expired upload fail with +NoSuchUpload, as they do on real S3 when a lifecycle rule +has aborted the upload. Set --multipart-expiry 0 to keep +incomplete uploads forever - but note that abandoned uploads are then +never cleaned up and go on counting towards +--multipart-max-uploads below, so enough of them will stop +the user starting any new multipart upload until the server is +restarted.

                                        +

                                        Each multipart upload in progress holds server resources - for +example the buffers the remote's own upload uses once the first part has +arrived - so each user (each access key) can have no more than +--multipart-max-uploads (default 1000, +0 for no limit) in progress at once. Starting another fails +with a SlowDown error, which S3 clients retry, and a +one-off NOTICE is logged.

                                        Disabling streaming

                                        -

                                        If you pass --disable-multipart-streaming, or the remote -doesn't support PutStream (or doesn't upload atomically and -can't move or copy server-side), multipart uploads are instead -buffered in memory by the underlying S3 library: every -part is held in memory and the whole object is written out in one go -when the upload completes (the previous behaviour). This removes the +

                                        If you pass --disable-multipart-streaming, multipart +uploads are instead buffered in memory by the +underlying S3 library: every part is held in memory and the whole object +is written out in one go when the upload completes. This removes the in-order/contiguous-part restriction above, so parts can be uploaded in any order, but memory use grows with the size of the upload, so it is only suitable for small objects. A one-off -NOTICE is logged the first time this happens.

                                        -

                                        Alternatively, if the client is an rclone s3 remote -(like the [serves3] example above), you can set -use_multipart_uploads = false on it so it uploads each -object as a single stream and skips multipart uploads altogether.

                                        +NOTICE is logged the first time this happens. This flag is +the only thing that makes multipart uploads buffer in memory - it is +never done because of missing remote capabilities. The limits on +multipart uploads above +(--multipart-streaming-buffer-limit, +--multipart-streaming-buffer-total and +--multipart-max-uploads) do not apply to uploads buffered +in memory, so don't use this flag if the server is open to clients you +don't trust. Consider --vfs-cache-mode writes instead, +which buffers the upload in the VFS cache on disk and takes precedence +over --disable-multipart-streaming.

                                        +

                                        Memory use

                                        +

                                        serve s3 never buffers whole objects in memory (except +with --disable-multipart-streaming, above), and limits the +memory each kind of request can use, so that a client, even a hostile +one, can't make it use unbounded memory.

                                        +
                                          +
                                        • Object data. PutObject bodies and +multipart parts arriving in order are streamed straight through to the +remote. Parts arriving out of order are buffered, up to +--multipart-streaming-buffer-limit per upload and +--multipart-streaming-buffer-total per user.
                                        • +
                                        • Uploads in progress. Each user can have at most +--multipart-max-uploads multipart uploads in progress. An +upload holds little memory until its first part arrives. After that, +with --vfs-cache-mode off, it holds a +--streaming-upload-cutoff sized buffer plus whatever the +remote's own upload buffers, which for many remotes is up to their chunk +size times their upload concurrency (for example +--s3-chunk-size times +--s3-upload-concurrency). Plain PutObject +uploads use the same while they are in progress.
                                        • +
                                        • Metadata. The metadata of at most +--metadata-max-objects objects of each user is kept, each +limited to 2 KB.
                                        • +
                                        • Request bodies. The XML bodies of requests such as +CompleteMultipartUpload and DeleteObjects are +limited to 10 MiB, and DeleteObjects to 1000 keys. A +browser form (POST) upload holds at most 1 MiB in memory, +spooling the rest to a temporary file, and is limited to 5 GB.
                                        • +
                                        • Listings. Each page of a ListObjects +listing reads only the directories needed to fill it, and returns at +most 1000 keys. Directory listings are cached by the VFS directory cache.
                                        • +
                                        +

                                        The largest of these is usually the remote's upload buffers, which +can be up to --multipart-max-uploads times the buffers of +one upload for each user if clients start many uploads and send part of +each. The limits apply to each user separately, so that one user can't +stop others uploading, which means the memory use grows with the number +of users. To limit it, lower --multipart-max-uploads, the +remote's chunk size or upload concurrency, or set +--max-buffer-memory to limit the memory used by the buffers +of all uploads to remotes which use rclone's buffer pool (including +s3, azureblob and b2). Buffered +multipart parts come from the same pool, so if you set +--max-buffer-memory make it comfortably bigger than +--multipart-streaming-buffer-total times the number of +users uploading at once, otherwise buffered parts can use up all the +memory the remote needs to upload the parts which would free them.

                                        +

                                        The number of connections is not limited, so if the server is open to +clients you don't trust, use --auth-key or +--auth-proxy and consider putting it behind a reverse proxy +which limits connections.

                                        +

                                        Design goals

                                        +

                                        These goals explain many of the limitations below.

                                        +
                                          +
                                        • Objects are plain files on the remote. A bucket is +a directory in the root and a key is a path in it, so the remote stays +usable by other tools, such as rclone mount or +rclone sync. So keys must be paths (see Object names).
                                        • +
                                        • No database. serve s3 stores nothing +but the objects. What the remote can't hold, such as user metadata, +tags, the MD5 ETag of an object on a remote without MD5 and +the directory markers put, is kept in memory as a best effort, and lost +on restart.
                                        • +
                                        • Works with any rclone remote. What +serve s3 can do depends on what the remote supports, such +as the hashes used for ETags and modification times, rather +than needing a particular backend.
                                        • +
                                        • Bounded memory. Uploads, including multipart +uploads, are streamed to the remote and the memory each request can use +is limited (see Memory use). Nothing is +written to local disk unless the VFS cache is used or the remote can't +stream uploads (see Multipart +uploads).
                                        • +
                                        • Refuse rather than ignore. Unsupported features are +refused, or answered as S3 answers when the feature isn't configured, so +a client is never told something was done which wasn't (see Compatibility).
                                        • +
                                        • A storage gateway, not a full S3. +serve s3 implements the parts of the S3 API clients use to +store and fetch objects. Versioning, ACLs, bucket policies, lifecycle +rules and the like are out of scope.
                                        • +
                                        • Compatible with rclone's s3 backend. This includes +its directory markers, which the tests check.
                                        • +

                                        Bugs

                                        -

                                        Multipart server side copies do not work (see #7454). These -take a very long time and eventually fail. The default threshold for -multipart server side copies is 5G which is the maximum it can be, so -files above this side will fail to be server side copied.

                                        For a current list of serve s3 bugs see the serve s3 bug category on GitHub.

                                        Limitations

                                        serve s3 will treat all directories in the root as buckets and ignore all files in the root. You can use -CreateBucket to create folders under the root, but you -can't create empty folders under other folders not in the root.

                                        +CreateBucket to create folders under the root, and put a +directory marker to create an empty folder below them (see Object names).

                                        When using PutObject or DeleteObject, rclone will automatically create or clean up empty folders. If you don't want to clean up empty folders automatically, use ---no-cleanup.

                                        -

                                        When using ListObjects, rclone will use / -when the delimiter is empty. This reduces backend requests with no -effect on most operations, but if the delimiter is something other than -/ and empty, rclone will do a full recursive search of the -backend, which can take some time.

                                        -

                                        Versioning is not currently supported.

                                        -

                                        Metadata will only be saved in memory other than the rclone +--directory-markers (see Object +names). The deprecated --no-cleanup does the same.

                                        +

                                        When using ListObjects with the delimiter +/, rclone lists the directory the prefix is in, showing its +subdirectories as common prefixes, including empty ones. Without a +delimiter the listing is recursive: rclone walks the directory tree +below the prefix, reading only as many directories as it needs to fill +each page, and lists empty directories as their directory markers (see +below). Any other delimiter is supported too, but needs the whole +directory tree below the prefix walking, unless the delimiter is in the +directory names.

                                        +

                                        Versioning is not supported (see Design +goals).

                                        +

                                        Conditional writes, PutObject and +CompleteMultipartUpload with If-None-Match or +If-Match, are supported. The conditions are checked before +the object is written, and again as it is moved into place when it is +written to a temporary object first. This happens for multipart uploads +and, for PutObject, with remotes which can upload partial +files (such as local disk) or with --vfs-cache-mode minimal +or above. The second check is atomic against other writes through +serve s3, but neither is atomic against changes made to the +remote some other way. If the remote doesn't support the +--etag-hash, objects have no ETag so +If-Match with an ETag always fails.

                                        +

                                        Metadata will only be saved in memory (see Design goals) other than the rclone mtime metadata which will be set as the modification time -of the file.

                                        +of the file. The metadata of at most --metadata-max-objects +objects (default 100000, 0 for no limit) of +each user (each access key) is kept; after that the metadata of the +user's least recently used object is forgotten. The metadata of an +object is ignored once the object has been changed some other way, for +example by another --auth-proxy user or directly on the +backend. Object tags are kept with the metadata in the same way.

                                        Object names

                                        serve s3 stores objects as files in the backend, so object keys are mapped to file paths rather than treated as the opaque strings AWS S3 allows. Keys must be in canonical path form: keys that contain .. or . path segments, repeated -slashes (//), or a leading or trailing slash are rejected -with a 400 Bad Request (InvalidArgument) -instead of being normalised, since normalising them could alias two -distinct keys to the same file or resolve a key outside its bucket. This -matches the behaviour of other S3 servers such as MinIO.

                                        -

                                        Supported operations

                                        -

                                        serve s3 currently supports the following -operations.

                                        -
                                          -
                                        • Bucket -
                                            -
                                          • ListBuckets
                                          • -
                                          • CreateBucket
                                          • -
                                          • DeleteBucket
                                          • -
                                        • -
                                        • Object -
                                            -
                                          • HeadObject
                                          • -
                                          • ListObjects
                                          • -
                                          • GetObject
                                          • -
                                          • PutObject
                                          • -
                                          • DeleteObject
                                          • -
                                          • DeleteObjects
                                          • -
                                          • CreateMultipartUpload
                                          • -
                                          • CompleteMultipartUpload
                                          • -
                                          • AbortMultipartUpload
                                          • -
                                          • CopyObject
                                          • -
                                          • UploadPart
                                          • -
                                        • -
                                        -

                                        Other operations will return error Unimplemented.

                                        +slashes (//), or a leading slash are rejected with a +400 Bad Request (InvalidArgument) instead of +being normalised, since normalising them could alias two distinct keys +to the same file or resolve a key outside its bucket. This matches the +behaviour of other S3 servers such as MinIO.

                                        +

                                        A key ending in /, such as dir/, is a +directory marker, standing for the directory dir. Putting +an empty directory marker creates the directory (one with data is +rejected with 400 Bad Request), and deleting it removes the +directory if it is empty. Directory markers are found by +HeadObject, GetObject and +CopyObject for any directory, but only the markers of empty +directories, and of the directories a marker was put for, are listed as +objects, as other directories may not have been made by putting a +marker. The markers put are remembered in memory with the metadata (see +Limitations), so after a restart, or once +forgotten, the marker of a directory holding other keys is no longer +listed. While a marker is remembered its directory isn't removed when +the last key below it is deleted.

                                        +

                                        With --directory-markers every directory is listed as a +directory marker, so the markers are listed after a restart too, as +needed by clients which rely on them, such as rclone's s3 backend with +--s3-directory-markers. As every directory has a marker, a +directory isn't removed when the last key below it is deleted. Deleting +the marker of a directory which holds other keys stops it being listed, +and the directory is then removed with the last key below it, but this +is only remembered in memory, like the markers put without +--directory-markers.

                                        +

                                        As keys are file paths, a key can't be both an object and a directory +holding other objects, for example a/b and +a/b/c. Writing an object which would need this fails with +400 Bad Request (InvalidRequest).

                                        +

                                        Compatibility

                                        +

                                        serve s3 implements the parts of the S3 API that S3 +clients commonly use to store and fetch objects. Features it doesn't +support are refused with 501 NotImplemented, or answered as +AWS S3 answers for a bucket without that feature configured, rather than +being silently ignored.

                                        + +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                        FeatureSupportedNotes
                                        ListBuckets, CreateBucket, +DeleteBucket, HeadBucket, +GetBucketLocationYesBuckets are the directories in the root of the remote.
                                        ListObjects, ListObjectsV2YesPrefixes, delimiters, markers, start-after, +continuation tokens, fetch-owner and +encoding-type=url all work. Delimiters other than +/ need the whole directory tree walking.
                                        HeadObject, GetObjectYesIncluding Range, partNumber, the +response-* header overrides and the If-Match, +If-None-Match, If-Modified-Since and +If-Unmodified-Since conditions.
                                        PutObjectYesIncluding Content-MD5, aws-chunked uploads +and uploads with no Content-Length.
                                        CopyObjectYesIncluding the metadata and tagging directives and the +x-amz-copy-source-if-* conditions.
                                        DeleteObject, DeleteObjectsYes
                                        Multipart uploadsYesCreateMultipartUpload, UploadPart, +UploadPartCopy, CompleteMultipartUpload, +AbortMultipartUpload, ListMultipartUploads and +ListParts. The ETag of the object is its hash, +not the -N suffixed one AWS gives. The 5 MiB minimum part +size isn't enforced.
                                        Conditional writesPartialIf-Match and If-None-Match on +PutObject and CompleteMultipartUpload are +checked, but not atomically against changes made to the remote some +other way (see Limitations).
                                        AuthenticationPartialAWS Signature Version 4, in headers, presigned URLs and browser form +(POST) uploads. Signature Version 2 isn't supported.
                                        Anonymous accessPartialAll requests are allowed without --auth-key or +--auth-proxy, and none are with them, as buckets and +objects can't be made public.
                                        MetadataPartialx-amz-meta-*, the storage class and the standard +headers such as Content-Type are kept in memory only (see +Limitations), except the modification time. +The storage class is only recorded, so doesn't change how the object is +stored.
                                        Directory markersPartialKeys ending in / are stored as directories, so can't +hold data. A marker put for a directory holding other keys is only +listed while it is remembered in memory, unless +--directory-markers is set (see Object names).
                                        ChecksumsPartialThe x-amz-checksum-* of a PutObject +(CRC32, CRC32C, CRC64NVME, SHA1 or SHA256) is checked and returned with +the metadata. The Content-MD5 and +x-amz-checksum-* of the bodies of other requests, such as +DeleteObjects, are checked. The checksums of multipart +uploads aren't supported.
                                        GetObjectAttributesPartialEverything but the checksums of multipart uploads.
                                        Object taggingPartialGetObjectTagging, PutObjectTagging and +DeleteObjectTagging work, but tags are kept in memory with +the metadata.
                                        Bucket ownerNoserve s3 has no AWS account IDs, so +x-amz-expected-bucket-owner and +x-amz-source-expected-bucket-owner are ignored.
                                        ACLsPartialGetBucketAcl and GetObjectAcl give the +owner full control. Only the private ACL can be set.
                                        CORSPartialPreflight (OPTIONS) requests are answered, allowing any +origin. CORS configuration (PutBucketCors) isn't +supported.
                                        Server side encryptionNoSSE-S3 (AES256) is accepted but the data isn't +encrypted. SSE-KMS and SSE-C are refused.
                                        VersioningNoBuckets are reported as unversioned and +ListObjectVersions lists each object as version +null. Enabling versioning is refused.
                                        Object lock, retention and legal holdNo
                                        Bucket configurationNoBucket policies, tagging, lifecycle, logging, encryption, website, +replication, notifications and the like. Getting them fails as for a +bucket without them configured.
                                        SelectObjectContent, RestoreObject, +torrentsNo
                                        +

                                        The ceph s3-tests can +be run against serve s3 to check its compatibility. See cmd/serve/s3/s3tests +for how.

                                        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 @@ -12212,7 +13289,17 @@ BCrypt for basic authentication. Bcrypt is recommended.

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

                                        Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist.

                                        The password file can be updated while rclone is running.

                                        +

                                        When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when +--allow-origin is set, which are answered without +authentication as browsers never send credentials with them.

                                        Use --realm to set the authentication realm.

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

                                        @@ -12240,6 +13327,14 @@ the server will accept in the HTTP header.

                                        all responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value.

                                        +

                                        --allow-origin enables cross-origin (CORS) requests from +browsers by setting the Access-Control-Allow-Origin header +on every response to the origin given, e.g. +--allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an +authenticated server.

                                        --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 @@ -12326,7 +13421,7 @@ that will be used to buffer data in advance.

                                        memory at all times. The buffered data is bound to one open file and won't be shared.

                                        This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                        The maximum memory used by rclone for buffering can be up to @@ -12369,11 +13464,12 @@ 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 .

                                        +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -12499,8 +13595,8 @@ id="vfs-read-chunk-streams-0-15">--vfs-read-chunk-streams

                                        Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                        -

                                        This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                        +

                                        This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                        Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -12679,8 +13775,121 @@ total 1048578

                                        If the file has no metadata it will be returned as {} and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                                        +

                                        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 these parameters

                                        +
                                          +
                                        • _obscure - comma separated strings for parameters to +obscure
                                        • +
                                        • _secret_access_key - the secret for S3 access key auth +(see below)
                                        • +
                                        +

                                        If password authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this:

                                        +
                                        {
                                        +  "user": "me",
                                        +  "pass": "mypassword",
                                        +  "client_ip": "192.168.1.1"
                                        +}
                                        +

                                        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",
                                        +  "client_ip": "192.168.1.1"
                                        +}
                                        +

                                        If the client authenticated with an S3 access key +(rclone serve s3), the client never sends its secret, only +a signature made with it, so the input contains just the access key ID +as the user with no pass or +public_key:

                                        +
                                        {
                                        +  "user": "AKIAIOSFODNN7EXAMPLE",
                                        +  "client_ip": "192.168.1.1"
                                        +}
                                        +

                                        In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field +of the output. Rclone then uses that secret to verify the signature on +the request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +_secret_access_key or returns it empty the request is +refused.

                                        +

                                        The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it.

                                        +

                                        The client_ip key holds the IP address the client +connected from, without a port number. It can be used to restrict logins +to certain networks, or to log authentication attempts centrally. It is +omitted if the client has no IP address, for example when connecting +over a unix socket. Note that if rclone is behind a reverse proxy this +will be the address of the reverse proxy and not the original +client.

                                        +

                                        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.

                                        +

                                        An internal cache of backends is keyed on the user, the +kind of credential presented, a hash of the pass or +public_key, and the client_ip. This means that +if a user's password or public-key changes, the client connects from a +new IP address, or the proxy returns different config parameters (eg a +rotated api_key), a fresh backend will be created on the +next request rather than the cached one being reused. A backend created +for a public key login is never reused for a password login, so a public +key cannot be sent as a password to skip the program.

                                        +

                                        A cached answer is checked with the program again after 5 minutes +even if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For serve sftp this applies +to new logins - an existing connection is not closed.

                                        +

                                        This can be used to build general purpose proxies to any kind of +backend that rclone supports.

                                        rclone serve s3 remote:path [flags]
                                        -

                                        Options

                                        +

                                        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-key stringArray                          Set key pair for v4 authorization: access_key_id,secret_access_key
                                        @@ -12690,7 +13899,8 @@ as {"error":"error string"}.

                                        --client-ca string Client certificate authority to verify clients with --dir-cache-time Duration Time to cache directory entries for (default 5m0s) --dir-perms FileMode Directory permissions (default 777) - --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend (see the Multipart uploads docs section) + --directory-markers List every directory as a directory marker object + --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") --file-perms FileMode File permissions (default 666) --force-path-style If true use path style access if false use virtual hosted style (default true) @@ -12700,10 +13910,14 @@ as {"error":"error string"}.

                                        --key string TLS PEM Private key --link-perms FileMode Link permissions (default 666) --max-header-bytes int Maximum size of request header (default 4096) + --metadata-max-objects int Maximum number of objects of a user whose metadata is kept in memory, 0 for unlimited (default 100000) --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") - --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (see the Multipart uploads docs section) (default 256Mi) + --multipart-expiry Duration Abort incomplete multipart uploads idle for longer than this, 0 to keep forever (default 1d) + --multipart-max-uploads int Maximum number of streamed multipart uploads a user can have in progress at once, 0 for unlimited (default 1000) + --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (default 256Mi) + --multipart-streaming-buffer-total SizeSuffix Maximum memory buffered by all the streamed multipart uploads of a user for parts arriving out of order, 0 for unlimited (default 1Gi) --no-checksum Don't compare checksums on up/download - --no-cleanup Not to cleanup empty folder after object is deleted + --no-cleanup Deprecated: use --directory-markers instead --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 @@ -12742,7 +13956,7 @@ as {"error":"error string"}.

                                        Options shared with other commands are described next. See the global flags page for global options not listed here.

                                        -

                                        Filter Options

                                        +

                                        Filter Options

                                        Flags for filtering directory listings

                                              --delete-excluded                     Delete files on dest excluded from sync
                                               --exclude stringArray                 Exclude files matching pattern
                                        @@ -12768,7 +13982,7 @@ options not listed here.

                                        --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 Also

                                        +

                                        See Also

                                          @@ -12778,7 +13992,7 @@ options not listed here.

                                          rclone serve sftp

                                          Serve the remote over SFTP.

                                          -

                                          Synopsis

                                          +

                                          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.

                                          @@ -12876,7 +14090,7 @@ that will be used to buffer data in advance.

                                          memory at all times. The buffered data is bound to one open file and won't be shared.

                                          This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                          The maximum memory used by rclone for buffering can be up to @@ -12919,11 +14133,12 @@ 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 .

                                          +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -13049,8 +14264,8 @@ id="vfs-read-chunk-streams-0-17">--vfs-read-chunk-streams

                                          Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                          -

                                          This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                          +

                                          This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                          Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -13229,7 +14444,7 @@ total 1048578

                                          If the file has no metadata it will be returned as {} and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                                          -

                                          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 @@ -13252,35 +14467,69 @@ proxy program to make a complete config.

                                          • _root - root to use for the backend
                                          -

                                          And it may have this parameter

                                          +

                                          And it may have these parameters

                                          • _obscure - comma separated strings for parameters to obscure
                                          • +
                                          • _secret_access_key - the secret for S3 access key auth +(see below)

                                          If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

                                          -
                                          {
                                          -  "user": "me",
                                          -  "pass": "mypassword"
                                          -}
                                          +
                                          {
                                          +  "user": "me",
                                          +  "pass": "mypassword",
                                          +  "client_ip": "192.168.1.1"
                                          +}

                                          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"
                                          -}
                                          +
                                          {
                                          +  "user": "me",
                                          +  "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf",
                                          +  "client_ip": "192.168.1.1"
                                          +}
                                          +

                                          If the client authenticated with an S3 access key +(rclone serve s3), the client never sends its secret, only +a signature made with it, so the input contains just the access key ID +as the user with no pass or +public_key:

                                          +
                                          {
                                          +  "user": "AKIAIOSFODNN7EXAMPLE",
                                          +  "client_ip": "192.168.1.1"
                                          +}
                                          +

                                          In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field +of the output. Rclone then uses that secret to verify the signature on +the request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +_secret_access_key or returns it empty the request is +refused.

                                          +

                                          The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it.

                                          +

                                          The client_ip key holds the IP address the client +connected from, without a port number. It can be used to restrict logins +to certain networks, or to log authentication attempts centrally. It is +omitted if the client has no IP address, for example when connecting +over a unix socket. Note that if rclone is behind a reverse proxy this +will be the address of the reverse proxy and not the original +client.

                                          And as an example return this on STDOUT

                                          -
                                          {
                                          -  "type": "sftp",
                                          -  "_root": "",
                                          -  "_obscure": "pass",
                                          -  "user": "me",
                                          -  "pass": "mypassword",
                                          -  "host": "sftp.example.com"
                                          -}
                                          +
                                          {
                                          +  "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 @@ -13293,16 +14542,23 @@ 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.

                                          -

                                          An internal cache of backends is keyed on the user and a -hash of the pass or public_key. This means -that if a user's password or public-key changes, or the proxy returns -different config parameters (eg a rotated api_key), a fresh -backend will be created on the next request rather than the cached one -being reused.

                                          +

                                          An internal cache of backends is keyed on the user, the +kind of credential presented, a hash of the pass or +public_key, and the client_ip. This means that +if a user's password or public-key changes, the client connects from a +new IP address, or the proxy returns different config parameters (eg a +rotated api_key), a fresh backend will be created on the +next request rather than the cached one being reused. A backend created +for a public key login is never reused for a password login, so a public +key cannot be sent as a password to skip the program.

                                          +

                                          A cached answer is checked with the program again after 5 minutes +even if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For serve sftp this applies +to new logins - an existing connection is not closed.

                                          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")
                                          @@ -13348,7 +14604,7 @@ backend that rclone supports.

                                          Options shared with other commands are described next. See the global flags page for global options not listed here.

                                          -

                                          Filter Options

                                          +

                                          Filter Options

                                          Flags for filtering directory listings

                                                --delete-excluded                     Delete files on dest excluded from sync
                                                 --exclude stringArray                 Exclude files matching pattern
                                          @@ -13374,7 +14630,7 @@ options not listed here.

                                          --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 Also

                                          +

                                          See Also

                                            @@ -13384,7 +14640,7 @@ options not listed here.

                                            rclone serve webdav

                                            Serve remote:path over WebDAV.

                                            -

                                            Synopsis

                                            +

                                            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 @@ -13471,6 +14727,14 @@ the server will accept in the HTTP header.

                                            all responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value.

                                            +

                                            --allow-origin enables cross-origin (CORS) requests from +browsers by setting the Access-Control-Allow-Origin header +on every response to the origin given, e.g. +--allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an +authenticated server.

                                            --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 @@ -13567,55 +14831,101 @@ asc). Currently unused. +.Path + +The path of the directory from the root +with leading and trailing slashes, e.g. '/dir/'. + + +.IsRoot + +Boolean for if this is the root +directory. + + +.UpLink + +The link to the parent directory. + + +.Static + +Boolean for if the listing is being +written as a static page by rclone index. + + +.NumDirs + +The number of directories in the +listing. + + +.NumFiles + +The number of files in the listing. + + +.TotalSize + +The total size in bytes of the files in +the listing. + + .Breadcrumb Allows for creating a relative navigation. - + .Link The link of the Text relative to the root. - + .Text The Name of the directory. - + .Entries Information about a specific file/directory. - + .URL The url of an entry. - + .Leaf Currently same as '.URL' but intended to be just the name. - + .IsDir Boolean for if an entry is a directory or not. - + .Size Size in bytes of the entry. - + .ModTime The UTC timestamp of an entry. + + +.MimeType +The MIME type of an entry guessed from its +name, or 'inode/directory'. +

                                            The server also makes the following functions available so that they @@ -13678,7 +14988,17 @@ BCrypt for basic authentication. Bcrypt is recommended.

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

                                            Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist.

                                            The password file can be updated while rclone is running.

                                            +

                                            When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when +--allow-origin is set, which are answered without +authentication as browsers never send credentials with them.

                                            Use --realm to set the authentication realm.

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

                                            @@ -13720,7 +15040,7 @@ that will be used to buffer data in advance.

                                            memory at all times. The buffered data is bound to one open file and won't be shared.

                                            This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not yet +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used.

                                            The maximum memory used by rclone for buffering can be up to @@ -13763,11 +15083,12 @@ 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 .

                                            +after the set time since last access has passed; it is based on access +time, not on when the file was first added to the cache. 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 @@ -13893,8 +15214,8 @@ id="vfs-read-chunk-streams-0-19">--vfs-read-chunk-streams

                                            Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant.

                                            -

                                            This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores.

                                            +

                                            This improves performance massively on high latency links or very +high bandwidth links to high performance object stores.

                                            Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend on the @@ -14073,7 +15394,7 @@ total 1048578

                                            If the file has no metadata it will be returned as {} and if there is an error reading the metadata the error will be returned as {"error":"error string"}.

                                            -

                                            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 @@ -14096,35 +15417,69 @@ proxy program to make a complete config.

                                            • _root - root to use for the backend
                                            -

                                            And it may have this parameter

                                            +

                                            And it may have these parameters

                                            • _obscure - comma separated strings for parameters to obscure
                                            • +
                                            • _secret_access_key - the secret for S3 access key auth +(see below)

                                            If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this:

                                            -
                                            {
                                            -  "user": "me",
                                            -  "pass": "mypassword"
                                            -}
                                            +
                                            {
                                            +  "user": "me",
                                            +  "pass": "mypassword",
                                            +  "client_ip": "192.168.1.1"
                                            +}

                                            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"
                                            -}
                                            +
                                            {
                                            +  "user": "me",
                                            +  "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf",
                                            +  "client_ip": "192.168.1.1"
                                            +}
                                            +

                                            If the client authenticated with an S3 access key +(rclone serve s3), the client never sends its secret, only +a signature made with it, so the input contains just the access key ID +as the user with no pass or +public_key:

                                            +
                                            {
                                            +  "user": "AKIAIOSFODNN7EXAMPLE",
                                            +  "client_ip": "192.168.1.1"
                                            +}
                                            +

                                            In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field +of the output. Rclone then uses that secret to verify the signature on +the request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +_secret_access_key or returns it empty the request is +refused.

                                            +

                                            The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it.

                                            +

                                            The client_ip key holds the IP address the client +connected from, without a port number. It can be used to restrict logins +to certain networks, or to log authentication attempts centrally. It is +omitted if the client has no IP address, for example when connecting +over a unix socket. Note that if rclone is behind a reverse proxy this +will be the address of the reverse proxy and not the original +client.

                                            And as an example return this on STDOUT

                                            -
                                            {
                                            -  "type": "sftp",
                                            -  "_root": "",
                                            -  "_obscure": "pass",
                                            -  "user": "me",
                                            -  "pass": "mypassword",
                                            -  "host": "sftp.example.com"
                                            -}
                                            +
                                            {
                                            +  "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 @@ -14137,16 +15492,23 @@ 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.

                                            -

                                            An internal cache of backends is keyed on the user and a -hash of the pass or public_key. This means -that if a user's password or public-key changes, or the proxy returns -different config parameters (eg a rotated api_key), a fresh -backend will be created on the next request rather than the cached one -being reused.

                                            +

                                            An internal cache of backends is keyed on the user, the +kind of credential presented, a hash of the pass or +public_key, and the client_ip. This means that +if a user's password or public-key changes, the client connects from a +new IP address, or the proxy returns different config parameters (eg a +rotated api_key), a fresh backend will be created on the +next request rather than the cached one being reused. A backend created +for a public key login is never reused for a password login, so a public +key cannot be sent as a password to skip the program.

                                            +

                                            A cached answer is checked with the program again after 5 minutes +even if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For serve sftp this applies +to new logins - an existing connection is not closed.

                                            This can be used to build general purpose proxies to any kind of backend that rclone supports.

                                            rclone serve webdav remote:path [flags]
                                            -

                                            Options

                                            +

                                            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
                                            @@ -14206,7 +15568,7 @@ backend that rclone supports.

                                            Options shared with other commands are described next. See the global flags page for global options not listed here.

                                            -

                                            Filter Options

                                            +

                                            Filter Options

                                            Flags for filtering directory listings

                                                  --delete-excluded                     Delete files on dest excluded from sync
                                                   --exclude stringArray                 Exclude files matching pattern
                                            @@ -14232,7 +15594,7 @@ options not listed here.

                                            --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 Also

                                            +

                                            See Also

                                              @@ -14242,7 +15604,7 @@ options not listed here.

                                              rclone settier

                                              Changes storage class/tier of objects in remote.

                                              -

                                              Synopsis

                                              +

                                              Synopsis

                                              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, @@ -14259,11 +15621,11 @@ similarly S3 to Glacier makes object inaccessible.true

                                              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

                                                @@ -14273,7 +15635,7 @@ for rclone commands, flags and backends.

                                                rclone test

                                                Run a test command

                                                -

                                                Synopsis

                                                +

                                                Synopsis

                                                Rclone test is used to run test commands.

                                                Select which test command you want with the subcommand, eg

                                                rclone test memory remote:
                                                @@ -14281,11 +15643,11 @@ for rclone commands, flags and backends. 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

                                                  @@ -14314,31 +15676,11 @@ speed - Run a speed test to the remote

                                                  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)

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

                                                  -

                                                  See Also

                                                  - - - - -

                                                  rclone test histogram

                                                  -

                                                  Makes a histogram of file name characters.

                                                  -

                                                  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

                                                  -
                                                    -h, --help   help for histogram
                                                  -

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

                                                  See Also

                                                  @@ -14347,9 +15689,29 @@ global options not listed here.

                                                  Run a test command
                                                +

                                                rclone test histogram

                                                +

                                                Makes a histogram of file name characters.

                                                +

                                                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

                                                +
                                                  -h, --help   help for histogram
                                                +

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

                                                +

                                                See Also

                                                + + + +

                                                rclone test info

                                                Discovers file name or other limitations for paths.

                                                -

                                                Synopsis

                                                +

                                                Synopsis

                                                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 @@ -14357,7 +15719,7 @@ 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
                                                @@ -14370,7 +15732,7 @@ hazards - use with care!

                                                --write-json string Write results to file

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

                                                -

                                                See Also

                                                +

                                                See Also

                                                  @@ -14381,7 +15743,7 @@ Run a test command

                                                  rclone test makefile

                                                  Make files with random contents of the size given

                                                  rclone test makefile <size> [<file>]+ [flags]
                                                  -

                                                  Options

                                                  +

                                                  Options

                                                        --ascii      Fill files with random ASCII printable bytes only
                                                         --chargen    Fill files with a ASCII chargen pattern
                                                     -h, --help       help for makefile
                                                  @@ -14391,7 +15753,7 @@ Run a test command
                                                         --zero       Fill files with ASCII 0x00

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

                                                  -

                                                  See Also

                                                  +

                                                  See Also

                                                    @@ -14402,7 +15764,7 @@ Run a test command

                                                    rclone test makefiles

                                                    Make a random file hierarchy in a directory

                                                    rclone test makefiles <dir> [flags]
                                                    -

                                                    Options

                                                    +

                                                    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)
                                                    @@ -14420,7 +15782,7 @@ Run a test command
                                                           --zero                       Fill files with ASCII 0x00

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

                                                    -

                                                    See Also

                                                    +

                                                    See Also

                                                      @@ -14432,11 +15794,11 @@ Run a test command

                                                      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

                                                        @@ -14446,12 +15808,12 @@ Run a test command

                                                        rclone test speed

                                                        Run a speed test to the remote

                                                        -

                                                        Synopsis

                                                        +

                                                        Synopsis

                                                        Run a speed test to the remote.

                                                        This command runs a series of uploads and downloads to the remote, measuring and printing the speed of each test using varying file sizes and numbers of files.

                                                        -

                                                        Test time can be innaccurate with small file caps and large files. As +

                                                        Test time can be inaccurate with small file caps and large files. As it uses the results of an initial test to determine how many files to use in each subsequent test.

                                                        It is recommended to use -q flag for a simpler output. e.g.:

                                                        @@ -14462,7 +15824,7 @@ on a clean exit.

                                                        You can use the --json flag to only print the results in JSON format.

                                                        rclone test speed <remote> [flags]
                                                        -

                                                        Options

                                                        +

                                                        Options

                                                              --ascii                Fill files with random ASCII printable bytes only
                                                               --chargen              Fill files with a ASCII chargen pattern
                                                               --file-cap int         Maximum number of files to use in each test (default 100)
                                                        @@ -14478,7 +15840,7 @@ format.

                                                        --zero Fill files with ASCII 0x00

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

                                                        -

                                                        See Also

                                                        +

                                                        See Also

                                                          @@ -14488,7 +15850,7 @@ Run a test command

                                                          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, @@ -14503,9 +15865,11 @@ or the --interactive/-i flag. This will touch to that time instead of the current time. Times may be specified as one of:

                                                            -
                                                          • 'YYMMDD' - e.g. 17.10.30
                                                          • +
                                                          • 'YYMMDD' - e.g. 171030
                                                          • +
                                                          • 'YYYY-MM-DD' - e.g. 2006-01-02
                                                          • 'YYYY-MM-DDTHH:MM:SS' - e.g. 2006-01-02T15:04:05
                                                          • 'YYYY-MM-DDTHH:MM:SS.SSS' - e.g. 2006-01-02T15:04:05.123456789
                                                          • +
                                                          • 'YYYY-MM-DDTHH:MM:SSZ' - e.g. 2006-01-02T15:04:05Z

                                                          Note that value of --timestamp is in UTC. If you want local time then add the --localtime flag.

                                                          @@ -14513,7 +15877,7 @@ local time then add the --localtime flag.

                                                          --metadata-set. For example: rclone touch remote:path -M --metadata-set key=value

                                                          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)
                                                          @@ -14522,98 +15886,11 @@ local time then add the --localtime flag.

                                                          Options shared with other commands are described next. See the global flags page for global options not listed here.

                                                          -

                                                          Important Options

                                                          +

                                                          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)
                                                          -      --files-from0 stringArray             Read list of source-file names from file using NUL as separator (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)
                                                          -      --hash-filter string                  Partition filenames by hash k/n or randomly @/n
                                                          -      --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 Also

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

                                                          rclone tree

                                                          -

                                                          List the contents of the remote in a tree like fashion.

                                                          -

                                                          Synopsis

                                                          -

                                                          Lists the contents of a remote in a similar way to the unix tree -command.

                                                          -

                                                          For example

                                                          -
                                                          $ rclone tree remote:path
                                                          -/
                                                          -├── file1
                                                          -├── file2
                                                          -├── file3
                                                          -└── subdir
                                                          -    ├── file4
                                                          -    └── 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, 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

                                                          -
                                                            -a, --all             All files are listed (list . files too)
                                                          -  -d, --dirs-only       List directories only
                                                          -      --dirsfirst       List directories before files (-U disables)
                                                          -      --full-path       Print the full path prefix for each file
                                                          -  -h, --help            help for tree
                                                          -      --level int       Descend only level directories deep
                                                          -  -D, --modtime         Print the date of last modification.
                                                          -      --noindent        Don't print indentation lines
                                                          -      --noreport        Turn off file/directory count at end of tree listing
                                                          -  -o, --output string   Output to file instead of stdout
                                                          -  -p, --protections     Print the protections for each file.
                                                          -  -Q, --quote           Quote filenames with double quotes.
                                                          -  -s, --size            Print the size in bytes of each file.
                                                          -      --sort string     Select sort: name,version,size,mtime,ctime
                                                          -      --sort-ctime      Sort files by last status change time
                                                          -  -t, --sort-modtime    Sort files by last modification time
                                                          -  -r, --sort-reverse    Reverse the order of the sort
                                                          -  -U, --unsorted        Leave files unsorted
                                                          -      --version         Sort files alphanumerically by version
                                                          -

                                                          Options shared with other commands are described next. See the global flags page for global -options not listed here.

                                                          Filter Options

                                                          Flags for filtering directory listings

                                                                --delete-excluded                     Delete files on dest excluded from sync
                                                          @@ -14652,6 +15929,93 @@ options not listed here.

                                                          for rclone commands, flags and backends.
                                                        +

                                                        rclone tree

                                                        +

                                                        List the contents of the remote in a tree like fashion.

                                                        +

                                                        Synopsis

                                                        +

                                                        Lists the contents of a remote in a similar way to the unix tree +command.

                                                        +

                                                        For example

                                                        +
                                                        $ rclone tree remote:path
                                                        +/
                                                        +├── file1
                                                        +├── file2
                                                        +├── file3
                                                        +└── subdir
                                                        +    ├── file4
                                                        +    └── 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, 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

                                                        +
                                                          -a, --all             All files are listed (list . files too)
                                                        +  -d, --dirs-only       List directories only
                                                        +      --dirsfirst       List directories before files (-U disables)
                                                        +      --full-path       Print the full path prefix for each file
                                                        +  -h, --help            help for tree
                                                        +      --level int       Descend only level directories deep
                                                        +  -D, --modtime         Print the date of last modification.
                                                        +      --noindent        Don't print indentation lines
                                                        +      --noreport        Turn off file/directory count at end of tree listing
                                                        +  -o, --output string   Output to file instead of stdout
                                                        +  -p, --protections     Print the protections for each file.
                                                        +  -Q, --quote           Quote filenames with double quotes.
                                                        +  -s, --size            Print the size in bytes of each file.
                                                        +      --sort string     Select sort: name,version,size,mtime,ctime
                                                        +      --sort-ctime      Sort files by last status change time
                                                        +  -t, --sort-modtime    Sort files by last modification time
                                                        +  -r, --sort-reverse    Reverse the order of the sort
                                                        +  -U, --unsorted        Leave files unsorted
                                                        +      --version         Sort files alphanumerically by version
                                                        +

                                                        Options shared with other commands are described next. See the global flags page for global +options not listed here.

                                                        +

                                                        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)
                                                        +      --files-from0 stringArray             Read list of source-file names from file using NUL as separator (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)
                                                        +      --hash-filter string                  Partition filenames by hash k/n or randomly @/n
                                                        +      --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 Also

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

                                                        Copying single files

                                                        rclone normally syncs or copies directories. However, if the source remote points to a file, rclone will just copy that file. The @@ -14812,6 +16176,11 @@ 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".

                                                        +

                                                        If you want to configure a remote using environment variables then +its name becomes part of the environment variable name, which in +practice restricts the characters you can use in it. See the Config file section under Environment variables +for details.

                                                        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 @@ -14837,11 +16206,11 @@ infrastructure without a proper certificate. You could supply the --no-check-certificate flag to rclone, but this will affect all the remotes. To make it just affect this remote you use an override. You could put this in the config file:

                                                        -
                                                        [remote]
                                                        -type = XXX
                                                        -...
                                                        -override.no_check_certificate = true
                                                        +
                                                        [remote]
                                                        +type = XXX
                                                        +...
                                                        +override.no_check_certificate = true

                                                        or use it in the connection string remote,override.no_check_certificate=true: (or just remote,override.no_check_certificate:).

                                                        @@ -14852,6 +16221,7 @@ gets - replaced with _ and gets an config is only applied during the remote creation. Here is a non exhaustive list of ones which might be useful:

                                                          +
                                                        • allow_https_downgrade
                                                        • bind_addr
                                                        • ca_cert
                                                        • client_cert
                                                        • @@ -14885,11 +16255,11 @@ as an override. For example, say you have a remote where you would always like to use the --checksum flag. You could supply the --checksum flag to rclone on every command line, but instead you could put this in the config file:

                                                          -
                                                          [remote]
                                                          -type = XXX
                                                          -...
                                                          -global.checksum = true
                                                          +
                                                          [remote]
                                                          +type = XXX
                                                          +...
                                                          +global.checksum = true

                                                          or use it in the connection string remote,global.checksum=true: (or just remote,global.checksum:). This is equivalent to using the @@ -14925,13 +16295,13 @@ shell.

                                                          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
                                                          +
                                                          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.

                                                          -
                                                          rclone copy E:\ remote:backup
                                                          +
                                                          rclone copy E:\ remote:backup

                                                          Copying files or directories with : in the names

                                                          rclone uses : to mark a remote name. This is, however, a @@ -15151,7 +16521,117 @@ 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

                                                          +

                                                          Performance

                                                          +

                                                          Rclone's defaults are fairly conservative. They are chosen to work on +small machines, slow links and with cloud providers which rate limit +heavily. If you have plenty of bandwidth, memory and a fast storage +system then rclone can usually be made to run a great deal faster by +adjusting a few flags.

                                                          +

                                                          The right values depend on the size of your files, your network and +the storage systems at each end, so treat the numbers below as starting +points. Change one thing at a time and measure the result.

                                                          +

                                                          Measuring

                                                          +

                                                          Use rclone copy with -P/--progress to watch the transfer rate while +you are experimenting. For unattended runs log the stats instead, e.g. +--stats 1m --stats-one-line --stats-log-level NOTICE.

                                                          +

                                                          A transfer is always limited by something: the network bandwidth, the +rate at which the storage system will accept requests, disk IO, CPU or +memory. Tuning is working out which limit you are hitting and raising it +until you hit the next one. Watch the network, disk, CPU and memory use +of the machine rclone is running on as well as rclone's stats.

                                                          +

                                                          Lots of files

                                                          +

                                                          The time taken to transfer small files is dominated by the round trip +time of the requests rather than by the bandwidth, so the way to make +them go faster is to do more of them at once.

                                                          +

                                                          --transfers sets the number of files +transferred in parallel. The default is 4. Double this until the +transfer rate stops increasing or the storage system starts returning +errors. Values of 32 to 64 are common and values in the hundreds work +well with the large object storage systems (e.g. s3, azureblob, +googlecloudstorage, b2) when transferring lots of small files.

                                                          +

                                                          --checkers sets the number of directory +listings and file comparisons done in parallel. The default is 8. +Raising this speeds up syncs where most of the files are already present +on the destination and stops the checking being the bottleneck when +--transfers is large. 16 to 64 is a reasonable range.

                                                          +

                                                          Not all storage systems like lots of parallel requests. If you see +rate limiting errors (e.g. HTTP 429 or 503 errors) or lots of low level +retries in the log then you have gone too far, so reduce +--transfers and --checkers or use --tpslimit to cap the request rate. Local +disks, especially spinning ones, and network file systems may get slower +rather than faster with too much parallelism.

                                                          +

                                                          Large files

                                                          +

                                                          A single stream often won't fill a fast link, so rclone can transfer +a large file as several chunks in parallel. These are called +multi-thread transfers and are used for files bigger than --multi-thread-cutoff on backends which +support them.

                                                          +

                                                          The number of chunks transferred in parallel is set by --multi-thread-streams (default 4) +and this works for all backends so increase this first to make large +files transfer faster.

                                                          +

                                                          The size of the chunks is set by the backend, usually with a +--backend-chunk-size flag, e.g. +--s3-chunk-size. Backends without a natural chunk size +(e.g. local, smb) use --multi-thread-chunk-size. +Larger chunks mean fewer requests which increases throughput on big +files. See the docs for the backend you are using for details.

                                                          +

                                                          Chunked uploads are usually buffered in memory, so in the worst case +rclone will use

                                                          +
                                                          --transfers * upload concurrency * chunk size
                                                          +

                                                          of memory for buffers. For example --transfers 256 with +an upload concurrency of 8 and a chunk size of 16 MiB could use up to 32 +GiB. When you raise --transfers to speed up small files you +may therefore need to lower the upload concurrency, or set --max-buffer-memory which limits the total +memory used for buffers and makes transfers wait when the limit is +reached.

                                                          +

                                                          --use-mmap makes rclone return buffer memory +to the OS as soon as it has finished with it which is helpful when using +lots of transfers or large chunks.

                                                          +

                                                          A mixture of large and small +files

                                                          +

                                                          By default rclone transfers files in roughly the order it finds them. +With a mixture of file sizes this means that at times all the transfers +are large files, which fill the bandwidth but make few requests, and at +other times all the transfers are small files, which make lots of +requests but use little of the bandwidth.

                                                          +

                                                          Using --order-by +size,mixed,50 makes half of the transfers take the smallest +files in the backlog and half of them take the largest. This keeps both +large and small files moving at once so the bandwidth and the request +rate are both kept full for the whole of the run.

                                                          +

                                                          This works best if rclone has lots of files to choose from so use it +with a big --max-backlog, e.g. +--max-backlog 2000000. Each item in the backlog uses in the +order of 1 KiB of memory.

                                                          +

                                                          Doing less work

                                                          +

                                                          Fewer requests to the storage system means a faster transfer.

                                                          +
                                                            +
                                                          • If the source and destination are on the same remote then rclone +will use server-side copy where it is +supported so the data doesn't need to be downloaded and uploaded +again.
                                                          • +
                                                          • --fast-list lists bucket-based remotes with +fewer transactions at the cost of using more memory. This may be faster +or slower than the default so it is worth testing.
                                                          • +
                                                          • --no-traverse stops rclone listing the +destination which helps when copying a small number of files into a +large destination.
                                                          • +
                                                          • --size-only or --checksum avoid reading the modification time. +On some object storage systems (e.g. s3, swift) this needs an extra +request for each file. Alternatively use --use-server-modtime with +--update.
                                                          • +
                                                          • --no-check-dest skips checking the +destination entirely. Only use this if you know that none of the files +are there already.
                                                          • +
                                                          +

                                                          Options

                                                          Rclone has a number of options to control its behaviour. These are documented below, and in the flags page.

                                                          Options that take parameters can have the values passed in two ways, @@ -15221,7 +16701,7 @@ valid:

                                                        • M - Months
                                                        • y - Years
                                                        -

                                                        Examples: "10", "300ms", "-1.5h" or "2h45m".

                                                        +

                                                        Examples: "10", "300ms", "-1.5h", "2h45m" or "1d12h".

                                                        Size options

                                                        Options that take a SizeSuffix parameter can be specified as an integer value, which will then be assumed to represent a KiB value @@ -15232,6 +16712,17 @@ and P for PiB. These are the binary units, e.g. 1, 2**10, 2**20, 2**30 respectively.

                                                        See also --human-readable.

                                                        Main options

                                                        +

                                                        --allow-https-downgrade

                                                        +

                                                        By default rclone refuses to follow a redirect from an +https:// URL to a plain http:// URL, as any +credentials or other headers in the request would then be sent +unencrypted, and the response could be altered by anyone on the network +path. The request fails with an error which mentions this flag.

                                                        +

                                                        Set --allow-https-downgrade to follow such redirects, +for example when downloading from a mirror which redirects to plain +HTTP. Some backends still refuse to follow them, as doing so would send +their credentials in cleartext.

                                                        +

                                                        This option defaults to false.

                                                        --backup-dir string

                                                        When using sync, week. So this example:

                                                        --bwlimit "Mon-00:00,512 12:00,1M Sun-20:00,off"

                                                        Is equivalent to this:

                                                        -
                                                        --bwlimit "Mon-00:00,512Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off"
                                                        +
                                                        --bwlimit "Mon-00:00,512 Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off"

                                                        Bandwidth limit apply to the data transfer for all backends. For most backends the directory listing bandwidth is also included (exceptions being the non HTTP backends, ftp, sftp and @@ -15360,7 +16851,7 @@ effect at the start of the transfer.

                                                        --transfer will use this much memory for buffering.

                                                        When using mount or cmount each open file descriptor will use this much memory for buffering. See the mount +href="https://rclone.org/commands/rclone_mount/#vfs-file-buffering">mount documentation for more details.

                                                        Set to 0 to disable the buffering for the minimum memory usage.

                                                        @@ -15544,11 +17035,11 @@ value is the internal lowercase name as returned by command rclone help backends. Comments are indicated by ; or # at the beginning of a line.

                                                        Example:

                                                        -
                                                        [megaremote]
                                                        -type = mega
                                                        -user = you@example.com
                                                        -pass = PDPcQVVjVtzFY-GTdDFozqBhTdsPg3qH
                                                        +
                                                        [megaremote]
                                                        +type = mega
                                                        +user = you@example.com
                                                        +pass = PDPcQVVjVtzFY-GTdDFozqBhTdsPg3qH

                                                        Note that passwords are in obscured form. Also, many storage systems uses token-based authentication instead of @@ -15608,8 +17099,8 @@ interactive|skip|first|newest|oldest|largest|smallest|rename|list href="https://rclone.org/commands/rclone_dedupe/">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.

                                                        +

                                                        If a file or directory does not 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 time options.

                                                        @@ -15739,6 +17230,11 @@ downloads use --header-download.

                                                        supported by --header-upload and --header-download so may be used as a workaround for those with care.

                                                        +

                                                        The headers are only sent to the host of the original request. If the +server redirects to another host (including a subdomain or a different +port), or redirects an https request to http, +the headers are not sent to it, or to any further hop in that redirect +chain. Rclone logs this at debug level (-vv).

                                                        rclone ls remote:test --header "X-Rclone: Foo" --header "X-LetMeIn: Yes"

                                                        --header-download stringArray

                                                        Add an HTTP header for all download transactions. The flag can be @@ -15892,6 +17388,11 @@ the transfer fails.

                                                        --inplace hard links (Unix only) will be broken. And if you do use --inplace you won't be able to update in use executables.

                                                        +

                                                        On macOS, if rclone clones a file (see --local-no-clone) +and the destination already exists, the existing file is replaced with a +new one, even with --inplace, so hard links to it will be +broken. Use --local-no-clone to keep them.

                                                        Note also that versions of rclone prior to v1.63.0 behave as if the --inplace flag is always supplied.

                                                        -i, --interactive

                                                        @@ -15935,7 +17436,7 @@ empty.

                                                        like symlinks under Windows). Ignored files won't be copied, moved or deleted in a sync.

                                                        If you supply this flag then rclone will copy symbolic links from any -supported backend backend, and store them as text files, with a +supported backend, and store them as text files, with a .rclonelink suffix in the destination.

                                                        The text file will contain the target of the symbolic link.

                                                        The --links / -l flag enables this feature @@ -16069,49 +17570,49 @@ complete log file is not strictly valid JSON and needs a parser that can handle it.

                                                        The JSON logs will be printed on a single line, but are shown expanded here for clarity.

                                                        -
                                                        {
                                                        -  "time": "2025-05-13T17:30:51.036237518+01:00",
                                                        -  "level": "debug",
                                                        -  "msg": "4 go routines active\n",
                                                        -  "source": "cmd/cmd.go:298"
                                                        -}
                                                        +
                                                        {
                                                        +  "time": "2025-05-13T17:30:51.036237518+01:00",
                                                        +  "level": "debug",
                                                        +  "msg": "4 go routines active\n",
                                                        +  "source": "cmd/cmd.go:298"
                                                        +}

                                                        Completed data transfer logs will have extra size information. Logs which are about a particular object will have object and objectType fields also.

                                                        -
                                                        {
                                                        -  "time": "2025-05-13T17:38:05.540846352+01:00",
                                                        -  "level": "info",
                                                        -  "msg": "Copied (new) to: file2.txt",
                                                        -  "size": 6,
                                                        -  "object": "file.txt",
                                                        -  "objectType": "*local.Object",
                                                        -  "source": "operations/copy.go:368"
                                                        -}
                                                        +
                                                        {
                                                        +  "time": "2025-05-13T17:38:05.540846352+01:00",
                                                        +  "level": "info",
                                                        +  "msg": "Copied (new) to: file2.txt",
                                                        +  "size": 6,
                                                        +  "object": "file.txt",
                                                        +  "objectType": "*local.Object",
                                                        +  "source": "operations/copy.go:368"
                                                        +}

                                                        Stats logs will contain a stats field which is the same as returned from the rc call core/stats.

                                                        -
                                                        {
                                                        -  "time": "2025-05-13T17:38:05.540912847+01:00",
                                                        -  "level": "info",
                                                        -  "msg": "...text version of the stats...",
                                                        -  "stats": {
                                                        -    "bytes": 6,
                                                        -    "checks": 0,
                                                        -    "deletedDirs": 0,
                                                        -    "deletes": 0,
                                                        -    "elapsedTime": 0.000904825,
                                                        -    ...truncated for clarity...
                                                        -    "totalBytes": 6,
                                                        -    "totalChecks": 0,
                                                        -    "totalTransfers": 1,
                                                        -    "transferTime": 0.000882794,
                                                        -    "transfers": 1
                                                        -  },
                                                        -  "source": "accounting/stats.go:569"
                                                        -}
                                                        +
                                                        {
                                                        +  "time": "2025-05-13T17:38:05.540912847+01:00",
                                                        +  "level": "info",
                                                        +  "msg": "...text version of the stats...",
                                                        +  "stats": {
                                                        +    "bytes": 6,
                                                        +    "checks": 0,
                                                        +    "deletedDirs": 0,
                                                        +    "deletes": 0,
                                                        +    "elapsedTime": 0.000904825,
                                                        +    ...truncated for clarity...
                                                        +    "totalBytes": 6,
                                                        +    "totalChecks": 0,
                                                        +    "totalTransfers": 1,
                                                        +    "transferTime": 0.000882794,
                                                        +    "transfers": 1
                                                        +  },
                                                        +  "source": "accounting/stats.go:569"
                                                        +}

                                                        --low-level-retries int

                                                        This controls the number of low level retries rclone does.

                                                        A low level retry is used to retry a failing operation - typically @@ -16266,63 +17767,63 @@ known.

                                                      • Metadata is the backend specific metadata as described in the backend docs.
                                                      -
                                                      {
                                                      -  "SrcFs": "gdrive:",
                                                      -  "SrcFsType": "drive",
                                                      -  "DstFs": "newdrive:user",
                                                      -  "DstFsType": "onedrive",
                                                      -  "Remote": "test.txt",
                                                      -  "Size": 6,
                                                      -  "MimeType": "text/plain; charset=utf-8",
                                                      -  "ModTime": "2022-10-11T17:53:10.286745272+01:00",
                                                      -  "IsDir": false,
                                                      -  "ID": "xyz",
                                                      -  "Metadata": {
                                                      -    "btime": "2022-10-11T16:53:11Z",
                                                      -    "content-type": "text/plain; charset=utf-8",
                                                      -    "mtime": "2022-10-11T17:53:10.286745272+01:00",
                                                      -    "owner": "user1@domain1.com",
                                                      -    "permissions": "...",
                                                      -    "description": "my nice file",
                                                      -    "starred": "false"
                                                      -  }
                                                      -}
                                                      +
                                                      {
                                                      +  "SrcFs": "gdrive:",
                                                      +  "SrcFsType": "drive",
                                                      +  "DstFs": "newdrive:user",
                                                      +  "DstFsType": "onedrive",
                                                      +  "Remote": "test.txt",
                                                      +  "Size": 6,
                                                      +  "MimeType": "text/plain; charset=utf-8",
                                                      +  "ModTime": "2022-10-11T17:53:10.286745272+01:00",
                                                      +  "IsDir": false,
                                                      +  "ID": "xyz",
                                                      +  "Metadata": {
                                                      +    "btime": "2022-10-11T16:53:11Z",
                                                      +    "content-type": "text/plain; charset=utf-8",
                                                      +    "mtime": "2022-10-11T17:53:10.286745272+01:00",
                                                      +    "owner": "user1@domain1.com",
                                                      +    "permissions": "...",
                                                      +    "description": "my nice file",
                                                      +    "starred": "false"
                                                      +  }
                                                      +}

                                                      The program should then modify the input as desired and send it to STDOUT. The returned Metadata field will be used in its entirety for the destination object. Any other fields will be ignored. Note in this example we translate user names and permissions and add something to the description:

                                                      -
                                                      {
                                                      -  "Metadata": {
                                                      -    "btime": "2022-10-11T16:53:11Z",
                                                      -    "content-type": "text/plain; charset=utf-8",
                                                      -    "mtime": "2022-10-11T17:53:10.286745272+01:00",
                                                      -    "owner": "user1@domain2.com",
                                                      -    "permissions": "...",
                                                      -    "description": "my nice file [migrated from domain1]",
                                                      -    "starred": "false"
                                                      -  }
                                                      -}
                                                      +
                                                      {
                                                      +  "Metadata": {
                                                      +    "btime": "2022-10-11T16:53:11Z",
                                                      +    "content-type": "text/plain; charset=utf-8",
                                                      +    "mtime": "2022-10-11T17:53:10.286745272+01:00",
                                                      +    "owner": "user1@domain2.com",
                                                      +    "permissions": "...",
                                                      +    "description": "my nice file [migrated from domain1]",
                                                      +    "starred": "false"
                                                      +  }
                                                      +}

                                                      Metadata can be removed here too.

                                                      An example python program might look something like this to implement the above transformations.

                                                      -
                                                      import sys, json
                                                      -
                                                      -i = json.load(sys.stdin)
                                                      -metadata = i["Metadata"]
                                                      -# Add tag to description
                                                      -if "description" in metadata:
                                                      -    metadata["description"] += " [migrated from domain1]"
                                                      -else:
                                                      -    metadata["description"] = "[migrated from domain1]"
                                                      -# Modify owner
                                                      -if "owner" in metadata:
                                                      -    metadata["owner"] = metadata["owner"].replace("domain1.com", "domain2.com")
                                                      -o = { "Metadata": metadata }
                                                      -json.dump(o, sys.stdout, indent="\t")
                                                      +
                                                      import sys, json
                                                      +
                                                      +i = json.load(sys.stdin)
                                                      +metadata = i["Metadata"]
                                                      +# Add tag to description
                                                      +if "description" in metadata:
                                                      +    metadata["description"] += " [migrated from domain1]"
                                                      +else:
                                                      +    metadata["description"] = "[migrated from domain1]"
                                                      +# Modify owner
                                                      +if "owner" in metadata:
                                                      +    metadata["owner"] = metadata["owner"].replace("domain1.com", "domain2.com")
                                                      +o = { "Metadata": metadata }
                                                      +json.dump(o, sys.stdout, indent="\t")

                                                      You can find this example (slightly expanded) in the rclone source code at bin/test_metadata_mapper.py.

                                                      @@ -16377,7 +17878,7 @@ rclone will use multiple threads to transfer the file (default href="https://rclone.org/overview/#optional-features">overview as MultithreadUpload. (They need to implement either the OpenWriterAt or OpenChunkWriter internal -interfaces). These include include, local, s3, +interfaces). These include local, s3, azureblob, b2, oracleobjectstorage and smb at the time of writing.

                                                      @@ -16405,7 +17906,7 @@ at maximum --transfers * --multi-thread-chunk-size * --multi-thread-streams or specifically for the s3 backend --transfers * --s3-chunk-size * ---s3-concurrency. However you can use the the --s3-concurrency
                                                      . However you can use the --max-buffer-memory flag to control the maximum memory used here.

                                                      NB that this only works with @@ -16509,8 +18010,10 @@ describes what aspect is being measured:

                                                    • name - order by the full path of the files
                                                    • modtime - order by the modification date of the files
                                                    • +
                                                    • pattern - order by a list of path glob patterns
                                                    -

                                                    This can have a modifier appended with a comma:

                                                    +

                                                    The size, name and modtime +comparisons can have a modifier appended with a comma:

                                                    • ascending or asc - order so that the smallest (or oldest) is processed first
                                                    • @@ -16530,6 +18033,13 @@ and small files - the large files are guaranteed upload threads and bandwidth and the small files will be processed continuously.

                                                      If no modifier is supplied then the order is ascending.

                                                      +

                                                      For pattern, append one or more comma-separated +patterns. Patterns use the filter pattern syntax. +Files matching the first pattern are processed first, followed by files +matching the second pattern, and so on. Files which do not match a +pattern are processed last. Within each group, files are ordered by full +path. Patterns cannot contain a comma.

                                                      For example

                                                      • --order-by size,desc - send the largest files @@ -16538,6 +18048,8 @@ first
                                                      • first
                                                      • --order-by name - send the files with alphabetically by path first
                                                      • +
                                                      • --order-by 'pattern,*.tar.gz,*.md5' - send archives +before checksum files

                                                      If the --order-by flag is not supplied or it is supplied with an empty string then the default ordering will be used which is as @@ -16576,12 +18088,15 @@ when setting the config password for the first time.

                                                      of arguments. If one of the arguments has a space in then enclose it in ", if you want a literal " in an argument then enclose the argument in " and double the ". -See CSV encoding for more +This includes the command itself: if the path to the executable contains +a space, it must be quoted too. See CSV encoding for more info.

                                                      Eg

                                                      --password-command "echo hello"
                                                       --password-command 'echo "hello with space"'
                                                      ---password-command 'echo "hello with ""quotes"" and space"'
                                                      +--password-command 'echo "hello with ""quotes"" and space"' +--password-command '"/path with a space/get-password.sh"'

                                            Note that when changing the configuration password the environment variable RCLONE_PASSWORD_CHANGE=1 will be set. This can be used to distinguish initial decryption of the config file from the new @@ -17137,11 +18652,11 @@ password, in which case it will be used for decrypting the configuration.

                                            You can set this for a session from a script. For unix like systems save this to a file called set-rclone-password:

                                            -
                                            #!/bin/echo Source this file don't run it
                                            -
                                            -read -s RCLONE_CONFIG_PASS
                                            -export RCLONE_CONFIG_PASS
                                            +
                                            #!/bin/echo Source this file don't run it
                                            +
                                            +read -s RCLONE_CONFIG_PASS
                                            +export RCLONE_CONFIG_PASS

                                            Then source the file when you want to use it. From the shell you would do source set-rclone-password. It will then ask you for the password and set it in the environment variable.

                                            @@ -17213,11 +18728,11 @@ a password store: pass init rclone.

                                            Windows

                                            • Generate and store a password

                                              -
                                              New-Object -TypeName PSCredential -ArgumentList "rclone", (ConvertTo-SecureString -String ([System.Web.Security.Membership]::GeneratePassword(40, 10)) -AsPlainText -Force) | Export-Clixml -Path "rclone-credential.xml"
                                            • +
                                              New-Object -TypeName PSCredential -ArgumentList "rclone", (ConvertTo-SecureString -String ([System.Web.Security.Membership]::GeneratePassword(40, 10)) -AsPlainText -Force) | Export-Clixml -Path "rclone-credential.xml"
                                            • Add the password retrieval instruction

                                              -
                                              [Environment]::SetEnvironmentVariable("RCLONE_PASSWORD_COMMAND", "[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR((Import-Clixml -Path "rclone-credential.xml").Password))")
                                            • +
                                              [Environment]::SetEnvironmentVariable("RCLONE_PASSWORD_COMMAND", "[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR((Import-Clixml -Path "rclone-credential.xml").Password))")

                                            Encrypt the config file (all systems)

                                            @@ -17423,7 +18938,7 @@ 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 @@ -17488,10 +19003,14 @@ 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. 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.

                                            +config file option and make it all uppercase. Note that the name of the +remote is only converted to uppercase - characters such as +- and . are not changed to _ - so +a remote called my-remote needs +RCLONE_CONFIG_MY-REMOTE_TYPE. Many shells only allow +letters, digits and _ (underscore) in environment variable +names, so it is best to use only those characters in the name of a +remote you want to configure this way.

                                            For example, to configure an S3 remote named mys3: without a config file (using unix ways of setting environment variables):

                                            @@ -17712,7 +19231,7 @@ href="#examples">examples are below.

                                            *         matches any sequence of non-separator (/) characters
                                             **        matches any sequence of characters including / separators
                                             ?         matches any single non-separator (/) character
                                            -[ [ ! ] { character-range } ]
                                            +[ [ ! | ^ ] { character-range } ]
                                                       character class (must be non-empty)
                                             { pattern-list }
                                                       pattern alternatives
                                            @@ -18648,6 +20167,9 @@ will open.
                                             
                                          • The URL already contains the username & password, in which case the GUI will use those values and log you in automatically.
                                          +

                                          The rc address is passed to the GUI via the url query +parameter (the URL printed in the terminal); append +?url=http://... to point it at a different rc server.

                                          Security

                                          It's important to think first about what rclone has access to and what you might be sharing.

                                          @@ -18668,7 +20190,7 @@ different ports.

                                          If you want to access it remotely but want to avoid running a proxy and exposing ports, you can use Cloudflare Tunnels or localhost.run or Tailscale (all free).

                                          -

                                          Options

                                          +

                                          Options

                                                --addr stringArray       IPaddress:Port for the GUI server (default auto-chosen localhost port)
                                                 --api-addr stringArray   IPaddress:Port for the RC API server (default auto-chosen localhost port)
                                                 --enable-metrics         Enable OpenMetrics/Prometheus compatible endpoint at /metrics
                                          @@ -18727,8 +20249,7 @@ control. The default bind is loopback
                                           reason to change it.
                                           
                                        • Do not use --rc-no-auth on a non-loopback bind. It disables authentication on the endpoints that access -remotes — see --rc-no-auth.
                                        • +remotes — see --rc-no-auth.
                                        • Use authentication and TLS (--rc-user/--rc-pass or --rc-htpasswd, plus @@ -18820,9 +20341,18 @@ rclone.

                                          Default Off.

                                          --rc-allow-origin

                                          Set the allowed Access-Control-Allow-Origin for rc requests.

                                          -

                                          Can be used with --rc-web-gui if the rclone is running on different -IP than the web-gui.

                                          -

                                          Default is IP address on which rc is running.

                                          +

                                          This enables cross-origin (CORS) requests from browsers on the origin +given, for example +--rc-allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without authentication +as browsers never send credentials with them. All other requests, +including other OPTIONS requests, must be authenticated when +authentication is enabled.

                                          +

                                          The rclone gui command sets this automatically to the +origin the GUI is served from if it is not set explicitly.

                                          +

                                          Setting this to * allows any origin which is a security +risk on an authenticated server.

                                          +

                                          Default is off (no CORS).

                                          --rc-web-fetch-url

                                          Set the URL to fetch the rclone-web-gui files from.

                                          Default 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.

                                          +

                                          Without authorisation or this flag, POST request bodies are limited +to 64 KiB.

                                          Default Off.

                                          --rc-baseurl

                                          Prefix for URLs.

                                          @@ -18902,6 +20434,25 @@ simplifies the command line.

                                          rclone rc operations/list fs=/tmp remote=test opt='{"showHash": true}'

                                          Rather than

                                          rclone rc operations/list --json '{"fs": "/tmp", "remote": "test", "opt": {"showHash": true}}'
                                          +

                                          Paths on Windows

                                          +

                                          Prefer forward slashes (/) in Windows paths passed to +the rc API, for example C:/path1/path2. If you use +backslashes (\) in a JSON string, escape each one as +\\. These JSON objects contain equivalent Windows +paths:

                                          +
                                          {"remote": "C:/path1/path2"}
                                          +
                                          {"remote": "C:\\path1\\path2"}
                                          +

                                          This applies to JSON request bodies and to JSON-encoded object +parameters, such as parameters in +config/create, even when that JSON is sent in a query +string or form data. An unescaped backslash can cause a JSON parsing +error or be interpreted as an escape sequence, such as \t +for a tab.

                                          +

                                          String parameters sent directly in a query string or form data, +without JSON encoding, do not need JSON escaping. Use your HTTP client's +URL encoding for query strings and form data.

                                          Special parameters

                                          The rc interface supports some special parameters which apply to all commands. These start with _ to show @@ -19006,11 +20557,11 @@ href="#option-blocks">the options blocks section for more info).

                                          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}
                                          +
                                          "_config":{"CheckSum": true}

                                          Or pass it flat at the top level:

                                          -
                                          "checksum": true
                                          +
                                          "checksum": true

                                          If using rclone rc this could be passed as

                                          rclone rc sync/sync ... _config='{"CheckSum": true}'

                                          Or simply flat:

                                          @@ -19024,16 +20575,22 @@ which were set with command line flags or environment variables.

                                          see data types for more info. Here is an example setting the equivalent of --buffer-size in string or integer format.

                                          -
                                          "_config":{"BufferSize": "42M"}
                                          -"_config":{"BufferSize": 44040192}
                                          +
                                          "_config":{"BufferSize": "42M"}
                                          +"_config":{"BufferSize": 44040192}

                                          Or flat:

                                          -
                                          "buffer_size": "42M"
                                          -"buffer_size": 44040192
                                          +
                                          "buffer_size": "42M"
                                          +"buffer_size": 44040192

                                          If you wish to check the _config assignment has worked properly then calling options/local will show what the value got set to.

                                          +

                                          Setting LogLevel sets the log level for the logs made by +the rc call only, for example to debug a single call.

                                          +
                                          "_config":{"LogLevel": "DEBUG"}
                                          +

                                          Note that not all of rclone's logs support this yet. In particular +the backends log at the global log level.

                                          Setting filter flags with _filter

                                          If you wish to set filters for the duration of an rc call only then @@ -19052,11 +20609,11 @@ href="#option-blocks">the options blocks section for more info).

                                          For example, if you wished to run a sync with these flags

                                          --max-size 1M --max-age 42s --include "a" --include "b"

                                          you would pass this parameter in your JSON blob.

                                          -
                                          "_filter":{"MaxSize":"1M", "IncludeRule":["a","b"], "MaxAge":"42s"}
                                          +
                                          "_filter":{"MaxSize":"1M", "IncludeRule":["a","b"], "MaxAge":"42s"}

                                          Or pass them flat at the top level:

                                          -
                                          "max_size":"1M", "include":["a","b"], "max_age":"42s"
                                          +
                                          "max_size":"1M", "include":["a","b"], "max_age":"42s"

                                          If using rclone rc this could be passed as

                                          rclone rc ... _filter='{"MaxSize":"1M", "IncludeRule":["a","b"], "MaxAge":"42s"}'

                                          Or simply flat:

                                          @@ -19070,12 +20627,12 @@ which were set with command line flags or environment variables.

                                          see data types for more info. Here is an example setting the equivalent of --buffer-size in string or integer format.

                                          -
                                          "_filter":{"MinSize": "42M"}
                                          -"_filter":{"MinSize": 44040192}
                                          +
                                          "_filter":{"MinSize": "42M"}
                                          +"_filter":{"MinSize": 44040192}

                                          Or flat:

                                          -
                                          "min_size": "42M"
                                          +
                                          "min_size": "42M"

                                          If you wish to check the _filter assignment has worked properly then calling options/local will show what the value got set to.

                                          @@ -19255,36 +20812,36 @@ allowed unless Required or Default is set)

                                          An example of this might be the --log-level flag. Note that the Name of the option becomes the command line flag with _ replaced with -.

                                          -
                                          {
                                          -    "Advanced": false,
                                          -    "Default": 5,
                                          -    "DefaultStr": "NOTICE",
                                          -    "Examples": [
                                          -        {
                                          -            "Help": "",
                                          -            "Value": "EMERGENCY"
                                          -        },
                                          -        {
                                          -            "Help": "",
                                          -            "Value": "ALERT"
                                          -        },
                                          -        ...
                                          -    ],
                                          -    "Exclusive": true,
                                          -    "FieldName": "LogLevel",
                                          -    "Groups": "Logging",
                                          -    "Help": "Log level DEBUG|INFO|NOTICE|ERROR",
                                          -    "Hide": 0,
                                          -    "IsPassword": false,
                                          -    "Name": "log_level",
                                          -    "NoPrefix": true,
                                          -    "Required": true,
                                          -    "Sensitive": false,
                                          -    "Type": "LogLevel",
                                          -    "Value": null,
                                          -    "ValueStr": "NOTICE"
                                          -},
                                          +
                                          {
                                          +    "Advanced": false,
                                          +    "Default": 5,
                                          +    "DefaultStr": "NOTICE",
                                          +    "Examples": [
                                          +        {
                                          +            "Help": "",
                                          +            "Value": "EMERGENCY"
                                          +        },
                                          +        {
                                          +            "Help": "",
                                          +            "Value": "ALERT"
                                          +        },
                                          +        ...
                                          +    ],
                                          +    "Exclusive": true,
                                          +    "FieldName": "LogLevel",
                                          +    "Groups": "Logging",
                                          +    "Help": "Log level DEBUG|INFO|NOTICE|ERROR",
                                          +    "Hide": 0,
                                          +    "IsPassword": false,
                                          +    "Name": "log_level",
                                          +    "NoPrefix": true,
                                          +    "Required": true,
                                          +    "Sensitive": false,
                                          +    "Type": "LogLevel",
                                          +    "Value": null,
                                          +    "ValueStr": "NOTICE"
                                          +},

                                          Note that the Help may be multiple lines separated by \n. The first line will always be a short sentence and this is the sentence shown when running rclone help flags.

                                          @@ -19310,25 +20867,25 @@ set. If the local backend is desired then type should be set to local. If _root isn't specified then it defaults to the root of the remote.

                                          For example this JSON is equivalent to remote:/tmp

                                          -
                                          {
                                          -    "_name": "remote",
                                          -    "_root": "/tmp"
                                          -}
                                          +
                                          {
                                          +    "_name": "remote",
                                          +    "_root": "/tmp"
                                          +}

                                          And this is equivalent to :sftp,host='example.com':/tmp

                                          -
                                          {
                                          -    "type": "sftp",
                                          -    "host": "example.com",
                                          -    "_root": "/tmp"
                                          -}
                                          +
                                          {
                                          +    "type": "sftp",
                                          +    "host": "example.com",
                                          +    "_root": "/tmp"
                                          +}

                                          And this is equivalent to /tmp/dir

                                          -
                                          {
                                          -    "type": "local",
                                          -    "_root": "/tmp/dir"
                                          -}
                                          +
                                          {
                                          +    "type": "local",
                                          +    "_root": "/tmp/dir"
                                          +}

                                          Supported commands

                                          backend/command: Runs a backend command.

                                          @@ -19740,6 +21297,7 @@ returned.

                                          "totalTransfers": total number of transfers in the group, "transferTime" : total time spent on running jobs, "transfers": number of transferred files, + "updatedDirs": number of directories updated (modtime or metadata set), "transferring": an array of currently active file transfers: [ { @@ -19928,12 +21486,12 @@ concurrently.
                                        • inputs - an list of inputs to the commands with an extra _path parameter
                                        -
                                        {
                                        -    "_path": "rc/path",
                                        -    "param1": "parameter for the path as documented",
                                        -    "param2": "parameter for the path as documented, etc",
                                        -}
                                        +
                                        {
                                        +    "_path": "rc/path",
                                        +    "param1": "parameter for the path as documented",
                                        +    "param2": "parameter for the path as documented, etc",
                                        +}

                                        The inputs may use _async, _group, _config and _filter as normal when using the rc.

                                        @@ -19943,37 +21501,37 @@ rc.

                                        each in inputs.

                                      For example:

                                      -
                                      rclone rc job/batch --json '{
                                      -  "inputs": [
                                      -    {
                                      -      "_path": "rc/noop",
                                      -      "parameter": "OK"
                                      -    },
                                      -    {
                                      -      "_path": "rc/error",
                                      -      "parameter": "BAD"
                                      -    }
                                      -  ]
                                      -}
                                      -'
                                      +
                                      rclone rc job/batch --json '{
                                      +  "inputs": [
                                      +    {
                                      +      "_path": "rc/noop",
                                      +      "parameter": "OK"
                                      +    },
                                      +    {
                                      +      "_path": "rc/error",
                                      +      "parameter": "BAD"
                                      +    }
                                      +  ]
                                      +}
                                      +'

                                      Gives the result:

                                      -
                                      {
                                      -  "results": [
                                      -    {
                                      -      "parameter": "OK"
                                      -    },
                                      -    {
                                      -      "error": "arbitrary error on input map[parameter:BAD]",
                                      -      "input": {
                                      -        "parameter": "BAD"
                                      -      },
                                      -      "path": "rc/error",
                                      -      "status": 500
                                      -    }
                                      -  ]
                                      -}
                                      +
                                      {
                                      +  "results": [
                                      +    {
                                      +      "parameter": "OK"
                                      +    },
                                      +    {
                                      +      "error": "arbitrary error on input map[parameter:BAD]",
                                      +      "input": {
                                      +        "parameter": "BAD"
                                      +      },
                                      +      "path": "rc/error",
                                      +      "status": 500
                                      +    }
                                      +  ]
                                      +}

                                      job/list: Lists the IDs of the running jobs

                                      Parameters: None.

                                      Results:

                                      @@ -19985,7 +21543,6 @@ restart)
                                    • runningIds - array of integer job ids that are running
                                    • finishedIds - array of integer job ids that are finished
                                    -

                                    Authentication is not required for this call.

                                    job/status: Reads the status of the job ID

                                    Parameters:

                                      @@ -20009,7 +21566,6 @@ with id uniquely identifies a job synchronously
                                    • progress - output of the progress related to the underlying job
                                    -

                                    Authentication is not required for this call.

                                    job/stop: Stop the running job

                                    Parameters:

                                      @@ -20327,6 +21883,30 @@ the remote

                                      This command does not have a command line equivalent so use this instead:

                                      rclone rc --loopback operations/fsinfo fs=remote:
                                      +

                                      operations/getfile: Get a single file into a +JSON response.

                                      +

                                      This takes the following parameters:

                                      +
                                        +
                                      • fs - a remote name string e.g. "drive:path/to/file" or +"drive:path/to/dir"
                                      • +
                                      • remote - (optional) a path within that remote e.g. "file.txt"
                                      • +
                                      • offset - (optional) start reading at offset N (or from end if +negative) (default 0)
                                      • +
                                      • count - (optional) only read N bytes (default -1)
                                      • +
                                      • head - (optional) only read the first N bytes (default 0)
                                      • +
                                      • tail - (optional) only read the last N bytes (default 0)
                                      • +
                                      • maxSize - (optional) maximum size limit in bytes (can only lower the +built-in maximum) (default 2097152 / 2MiB)
                                      • +
                                      • base64 - (optional) if true, returns the file contents +base64-encoded (default false)
                                      • +
                                      +

                                      Returns:

                                      +
                                        +
                                      • result - contents of the file as string or base64-encoded +string
                                      • +
                                      +

                                      For streaming file content over HTTP with Range support, use the +--rc-serve flag instead.

                                      operations/hashsum: Produces a hashsum file for all the objects in the path.

                                      Produces a hash file for all the objects in the path using the hash @@ -20398,6 +21978,35 @@ data.

                                      See the hashsum command for more information on the above.

                                      +

                                      operations/index: Write static directory +listings into a remote

                                      +

                                      This takes the following parameters:

                                      +
                                        +
                                      • fs - a remote name string e.g. "drive:"
                                      • +
                                      • opt - a dictionary of options to control the indexing (optional) +
                                          +
                                        • output - list of listings to write in each directory as +"NAME=FORMAT" (default ["index.html=html"])
                                        • +
                                        • rules - which directories get listings, e.g. {"ExcludeRule": +["/private/**"]}
                                        • +
                                        • maxDepth - only make listings this many directories deep (default -1 +for no limit)
                                        • +
                                        • linkIndex - link to "dir/NAME" rather than "dir/"
                                        • +
                                        • dirTime - how to work out directory times: "newest", "dir" or +"none"
                                        • +
                                        • noModTime - don't show modification times
                                        • +
                                        • rewrite - write every listing even if it is unchanged
                                        • +
                                        • changed - list of changed paths for a partial run, directories +ending in "/"
                                        • +
                                        • changedFrom - list of files of changed paths, one per line
                                        • +
                                        • changedCombined - list of files in the sync --combined report +format
                                        • +
                                        • changedMaxDirs - do a full run if a partial one would list more +directories than this
                                        • +
                                      • +
                                      +

                                      See the index +command for more information on the above.

                                      operations/list: List the given remote and path in JSON format

                                      This takes the following parameters:

                                      @@ -20621,76 +22230,6 @@ rclone rc options/set --json '{"main": {"LogLevel": 8}}&
                                      rclone rc options/set --json '{"main": {"LogLevel": "INFO"}}'

                                      And this sets NOTICE level logs (normal without -v)

                                      rclone rc options/set --json '{"main": {"LogLevel": "NOTICE"}}'
                                      -

                                      pluginsctl/addPlugin: Add a plugin using -url

                                      -

                                      Used for adding a plugin to the webgui.

                                      -

                                      This takes the following parameters:

                                      -
                                        -
                                      • url - http url of the github repo where the plugin is hosted -(http://github.com/rclone/rclone-webui-react).
                                      • -
                                      -

                                      Example:

                                      -

                                      rclone rc pluginsctl/addPlugin

                                      -

                                      pluginsctl/getPluginsForType: Get -plugins with type criteria

                                      -

                                      This shows all possible plugins by a mime type.

                                      -

                                      This takes the following parameters:

                                      -
                                        -
                                      • type - supported mime type by a loaded plugin e.g. (video/mp4, -audio/mp3).
                                      • -
                                      • pluginType - filter plugins based on their type e.g. (DASHBOARD, -FILE_HANDLER, TERMINAL).
                                      • -
                                      -

                                      Returns:

                                      -
                                        -
                                      • loadedPlugins - list of current production plugins.
                                      • -
                                      • testPlugins - list of temporarily loaded development plugins, -usually running on a different server.
                                      • -
                                      -

                                      Example:

                                      -

                                      rclone rc pluginsctl/getPluginsForType type=video/mp4

                                      -

                                      pluginsctl/listPlugins: Get the list of -currently loaded plugins

                                      -

                                      This allows you to get the currently enabled plugins and their -details.

                                      -

                                      This takes no parameters and returns:

                                      -
                                        -
                                      • loadedPlugins - list of current production plugins.
                                      • -
                                      • testPlugins - list of temporarily loaded development plugins, -usually running on a different server.
                                      • -
                                      -

                                      E.g.

                                      -

                                      rclone rc pluginsctl/listPlugins

                                      -

                                      pluginsctl/listTestPlugins: Show -currently loaded test plugins

                                      -

                                      Allows listing of test plugins with the rclone.test set to true in -package.json of the plugin.

                                      -

                                      This takes no parameters and returns:

                                      -
                                        -
                                      • loadedTestPlugins - list of currently available test plugins.
                                      • -
                                      -

                                      E.g.

                                      -
                                      rclone rc pluginsctl/listTestPlugins
                                      -

                                      pluginsctl/removePlugin: Remove a -loaded plugin

                                      -

                                      This allows you to remove a plugin using it's name.

                                      -

                                      This takes parameters:

                                      -
                                        -
                                      • name - name of the plugin in the format -author/plugin_name.
                                      • -
                                      -

                                      E.g.

                                      -

                                      rclone rc pluginsctl/removePlugin name=rclone/video-plugin

                                      -

                                      pluginsctl/removeTestPlugin: Remove -a test plugin

                                      -

                                      This allows you to remove a plugin using it's name.

                                      -

                                      This takes the following parameters:

                                      -
                                        -
                                      • name - name of the plugin in the format -author/plugin_name.
                                      • -
                                      -

                                      Example:

                                      -
                                      rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react

                                      rc/error: This returns an error

                                      This returns an error with the input as part of its error string. Useful for testing error handling.

                                      @@ -20731,25 +22270,25 @@ Useful for testing error handling.

                                      Eg

                                      rclone rc serve/list

                                      Returns

                                      -
                                      {
                                      -    "list": [
                                      -        {
                                      -            "addr": "[::]:4321",
                                      -            "id": "nfs-ffc2a4e5",
                                      -            "params": {
                                      -                "fs": "remote:",
                                      -                "opt": {
                                      -                    "ListenAddr": ":4321"
                                      -                },
                                      -                "type": "nfs",
                                      -                "vfsOpt": {
                                      -                    "CacheMode": "full"
                                      -                }
                                      -            }
                                      -        }
                                      -    ]
                                      -}
                                      +
                                      {
                                      +    "list": [
                                      +        {
                                      +            "addr": "[::]:4321",
                                      +            "id": "nfs-ffc2a4e5",
                                      +            "params": {
                                      +                "fs": "remote:",
                                      +                "opt": {
                                      +                    "ListenAddr": ":4321"
                                      +                },
                                      +                "type": "nfs",
                                      +                "vfsOpt": {
                                      +                    "CacheMode": "full"
                                      +                }
                                      +            }
                                      +        }
                                      +    ]
                                      +}

                                      serve/start: Create a new server

                                      Create a new server with the specified parameters.

                                      This takes the following parameters:

                                      @@ -20782,11 +22321,11 @@ above.

                                      rclone rc serve/start --json '{"type":"nfs","fs":"remote:","addr":":1234","vfs_cache_mode":"full"}' rclone rc serve/start type=webdav fs=remote: vfsOpt='{"CacheMode": 2}' proxyOpt='{"AuthProxy": "http://127.0.0.1:8080"}'

                                    This will give the reply

                                    -
                                    {
                                    -    "addr": "[::]:4321", // Address the server was started on
                                    -    "id": "nfs-ecfc6852" // Unique identifier for the server instance
                                    -}
                                    +
                                    {
                                    +    "addr": "[::]:4321", // Address the server was started on
                                    +    "id": "nfs-ecfc6852" // Unique identifier for the server instance
                                    +}

                                    Or an error if it failed to start.

                                    Stop the server with serve/stop and list the running servers with serve/list.

                                    @@ -20815,14 +22354,14 @@ be passed to serve/start as the serveType parameter.

                                    Eg

                                    rclone rc serve/types

                                    Returns

                                    -
                                    {
                                    -    "types": [
                                    -        "http",
                                    -        "sftp",
                                    -        "nfs"
                                    -    ]
                                    -}
                                    +
                                    {
                                    +    "types": [
                                    +        "http",
                                    +        "sftp",
                                    +        "nfs"
                                    +    ]
                                    +}

                                    sync/bisync: Perform bidirectional synchronization between two paths.

                                    @@ -20833,6 +22372,9 @@ between two paths.
                                  • path2 (required) - (string) a remote directory string e.g. drive:path2
                                  • dryRun - (bool) dry-run mode
                                  • +
                                  • maxDelete - (int) Safety check on maximum percentage of deleted +files allowed. If exceeded, the bisync run will abort. (default: +50%)
                                  • backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote.
                                  • @@ -20879,6 +22421,9 @@ Consider using with --verbose
                                    (add --ignore- checksum to additionally skip post-copy checksum checks)
                                    +
                                  • maxDeleteRenamesAware - (bool) Exclude tracked renames from the +--max-delete safety check (requires --track-renames)
                                    +
                                  • maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m)
                                  • @@ -20922,7 +22467,35 @@ destination remote destination
                                  • createEmptySrcDirs - create empty src directories on destination if set
                                  • +
                                  • combined - make a combined report of changes (default false)
                                  • +
                                  • missingOnSrc - report all files missing from the source (default +false)
                                  • +
                                  • missingOnDst - report all files missing from the destination +(default false)
                                  • +
                                  • match - report all matching files (default false)
                                  • +
                                  • differ - report all non-matching files (default false)
                                  • +
                                  • error - report all files with errors (hashing or reading) (default +false)
                                  • +
                                  • destAfter - report all files that exist on the destination post-copy +(default false)
                                  +

                                  Returns:

                                  +
                                    +
                                  • combined - array of strings of combined report of changes
                                  • +
                                  • missingOnSrc - array of strings of all files missing from the +source
                                  • +
                                  • missingOnDst - array of strings of all files missing from the +destination
                                  • +
                                  • match - array of strings of all matching files
                                  • +
                                  • differ - array of strings of all non-matching files
                                  • +
                                  • error - array of strings of all files with errors (hashing or +reading)
                                  • +
                                  • destAfter - array of strings of all files that exist on the +destination post-copy
                                  • +
                                  +

                                  Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output.

                                  See the copy command for more information on the above.

                                  sync/move: move a directory from source remote to @@ -20935,7 +22508,35 @@ destination
                                • createEmptySrcDirs - create empty src directories on destination if set
                                • deleteEmptySrcDirs - delete empty src directories if set
                                • +
                                • combined - make a combined report of changes (default false)
                                • +
                                • missingOnSrc - report all files missing from the source (default +false)
                                • +
                                • missingOnDst - report all files missing from the destination +(default false)
                                • +
                                • match - report all matching files (default false)
                                • +
                                • differ - report all non-matching files (default false)
                                • +
                                • error - report all files with errors (hashing or reading) (default +false)
                                • +
                                • destAfter - report all files that exist on the destination post-move +(default false)
                                +

                                Returns:

                                +
                                  +
                                • combined - array of strings of combined report of changes
                                • +
                                • missingOnSrc - array of strings of all files missing from the +source
                                • +
                                • missingOnDst - array of strings of all files missing from the +destination
                                • +
                                • match - array of strings of all matching files
                                • +
                                • differ - array of strings of all non-matching files
                                • +
                                • error - array of strings of all files with errors (hashing or +reading)
                                • +
                                • destAfter - array of strings of all files that exist on the +destination post-move
                                • +
                                +

                                Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output.

                                See the move command for more information on the above.

                                sync/sync: sync a directory from source remote to @@ -20947,7 +22548,35 @@ destination remote

                                destination
                              • createEmptySrcDirs - create empty src directories on destination if set
                              • +
                              • combined - make a combined report of changes (default false)
                              • +
                              • missingOnSrc - report all files missing from the source (default +false)
                              • +
                              • missingOnDst - report all files missing from the destination +(default false)
                              • +
                              • match - report all matching files (default false)
                              • +
                              • differ - report all non-matching files (default false)
                              • +
                              • error - report all files with errors (hashing or reading) (default +false)
                              • +
                              • destAfter - report all files that exist on the destination post-sync +(default false)
                              +

                              Returns:

                              +
                                +
                              • combined - array of strings of combined report of changes
                              • +
                              • missingOnSrc - array of strings of all files missing from the +source
                              • +
                              • missingOnDst - array of strings of all files missing from the +destination
                              • +
                              • match - array of strings of all matching files
                              • +
                              • differ - array of strings of all non-matching files
                              • +
                              • error - array of strings of all files with errors (hashing or +reading)
                              • +
                              • destAfter - array of strings of all files that exist on the +destination post-sync
                              • +
                              +

                              Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output.

                              See the sync command for more information on the above.

                              vfs/forget: Forget files or directories in the @@ -21119,16 +22748,16 @@ formatted to be reasonably human-readable.

                              If an error occurs then there will be an HTTP error status (e.g. 500) and the body of the response will contain a JSON encoded error object, e.g.

                              -
                              {
                              -    "error": "Expecting string value for key \"remote\" (was float64)",
                              -    "input": {
                              -        "fs": "/tmp",
                              -        "remote": 3
                              -    },
                              -    "status": 400,
                              -    "path": "operations/rmdir"
                              -}
                              +
                              {
                              +    "error": "Expecting string value for key \"remote\" (was float64)",
                              +    "input": {
                              +        "fs": "/tmp",
                              +        "remote": 3
                              +    },
                              +    "status": 400,
                              +    "path": "operations/rmdir"
                              +}

                              The keys in the error response are:

                              CORS

                              -

                              The sever implements basic CORS support and allows all origins for -that. The response to a preflight OPTIONS request will echo the -requested "Access-Control-Request-Headers" back.

                              +

                              The server implements basic CORS support when +--rc-allow-origin is set. Browser CORS preflight OPTIONS +requests are then answered by rclone without authentication with the +Access-Control-* headers. Without +--rc-allow-origin no CORS headers are sent and a preflight +request is authenticated like any other request.

                              Using POST with URL parameters only

                              curl -X POST 'http://localhost:5572/rc/noop?potato=1&sausage=2'

                              Response

                              -
                              {
                              -    "potato": "1",
                              -    "sausage": "2"
                              -}
                              +
                              {
                              +    "potato": "1",
                              +    "sausage": "2"
                              +}

                              Here is what an error response looks like:

                              curl -X POST 'http://localhost:5572/rc/error?potato=1&sausage=2'
                              -
                              {
                              -    "error": "arbitrary error on input map[potato:1 sausage:2]",
                              -    "input": {
                              -        "potato": "1",
                              -        "sausage": "2"
                              -    }
                              -}
                              +
                              {
                              +    "error": "arbitrary error on input map[potato:1 sausage:2]",
                              +    "input": {
                              +        "potato": "1",
                              +        "sausage": "2"
                              +    }
                              +}

                              Note that curl doesn't return errors to the shell unless you use the -f option

                              $ curl -f -X POST 'http://localhost:5572/rc/error?potato=1&sausage=2'
                              @@ -21168,38 +22800,38 @@ $ echo $?
                               

                              Using POST with a form

                              curl --data "potato=1" --data "sausage=2" http://localhost:5572/rc/noop

                              Response

                              -
                              {
                              -    "potato": "1",
                              -    "sausage": "2"
                              -}
                              +
                              {
                              +    "potato": "1",
                              +    "sausage": "2"
                              +}

                              Note that you can combine these with URL parameters too with the POST parameters taking precedence.

                              curl --data "potato=1" --data "sausage=2" "http://localhost:5572/rc/noop?rutabaga=3&sausage=4"

                              Response

                              -
                              {
                              -    "potato": "1",
                              -    "rutabaga": "3",
                              -    "sausage": "4"
                              -}
                              +
                              {
                              +    "potato": "1",
                              +    "rutabaga": "3",
                              +    "sausage": "4"
                              +}

                              Using POST with a JSON blob

                              curl -H "Content-Type: application/json" -X POST -d '{"potato":2,"sausage":1}' http://localhost:5572/rc/noop

                              response

                              -
                              {
                              -    "password": "xyz",
                              -    "username": "xyz"
                              -}
                              +
                              {
                              +    "password": "xyz",
                              +    "username": "xyz"
                              +}

                              This can be combined with URL parameters too if required. The JSON blob takes precedence.

                              curl -H "Content-Type: application/json" -X POST -d '{"potato":2,"sausage":1}' 'http://localhost:5572/rc/noop?rutabaga=3&potato=4'
                              -
                              {
                              -    "potato": 2,
                              -    "rutabaga": "3",
                              -    "sausage": 1
                              -}
                              +
                              {
                              +    "potato": 2,
                              +    "rutabaga": "3",
                              +    "sausage": 1
                              +}

                              Debugging rclone with pprof

                              If you use the --rc flag this will also enable the use of the go profiling tools on the same port.

                              @@ -21207,7 +22839,7 @@ of the go profiling tools on the same port.

                              rest of the rc: they are only served if authentication has been set up (--rc-user/--rc-pass or --rc-htpasswd) or the --rc-no-auth flag is in use. For +href="#rc-no-auth">--rc-no-auth flag is in use. For debugging on the default localhost port the easiest thing is to use --rc --rc-no-auth (but see the warning about using --rc-no-auth on a non-loopback bind).

                              @@ -22272,7 +23904,8 @@ split into groups.

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

                              Networking

                              Flags for general networking and HTTP stuff.

                              -
                                    --bind string                        Local address to bind to for outgoing connections, IPv4, IPv6 or name
                              +
                                    --allow-https-downgrade              Follow redirects from HTTPS to HTTP (insecure)
                              +      --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
                              @@ -22295,8 +23928,8 @@ split into groups.

                              --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.75.0")
                              -

                              Performance

                              + --user-agent string Set the user-agent to a specified string (default "rclone/v1.76.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)
                              @@ -22427,12 +24060,7 @@ split into groups.

                              --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-user-from-header string User name from a defined HTTP header - --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
                              + --rc-user-from-header string User name from a defined HTTP header

                              Metrics

                              Flags to control the Metrics HTTP endpoint..

                                    --metrics-addr stringArray                IPaddress:Port or :Port to bind server to
                              @@ -22482,8 +24110,10 @@ split into groups.

                              --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -22496,6 +24126,7 @@ split into groups.

                              --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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as 'true' @@ -22628,6 +24259,12 @@ split into groups.

                              --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under "API keys" + --dosya-api-url string API base URL (default "https://api.dosya.dev") + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -22850,6 +24487,8 @@ split into groups.

                              --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don't use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn't end directories with / --http-url string URL of HTTP host to connect to --huaweidrive-auth-url string Auth server URL @@ -22909,6 +24548,17 @@ split into groups.

                              --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) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -22994,6 +24644,7 @@ split into groups.

                              --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal's tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default "v2.0") --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -23008,7 +24659,7 @@ split into groups.

                              --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don't store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -23203,7 +24854,7 @@ split into groups.

                              --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-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -23218,6 +24869,7 @@ split into groups.

                              --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -23280,7 +24932,8 @@ split into groups.

                              --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default "$USER") + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --storj-access-grant string Access grant --storj-api-key string API key --storj-description string Description of the remote @@ -23355,6 +25008,7 @@ split into groups.

                              --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id @@ -23473,30 +25127,30 @@ to the Swarm cluster and save as every node. By default this location is accessible only to the root user so you will need appropriate privileges. The resulting config will look like this:

                              -
                              [gdrive]
                              -type = drive
                              -scope = drive
                              -drive_id = 1234567...
                              -root_folder_id = 0Abcd...
                              -token = {"access_token":...}
                              +
                              [gdrive]
                              +type = drive
                              +scope = drive
                              +drive_id = 1234567...
                              +root_folder_id = 0Abcd...
                              +token = {"access_token":...}

                              Now create the file named example.yml with a swarm stack description like this:

                              -
                              version: '3'
                              -services:
                              -  heimdall:
                              -    image: linuxserver/heimdall:latest
                              -    ports: [8080:80]
                              -    volumes: [configdata:/config]
                              -volumes:
                              -  configdata:
                              -    driver: rclone
                              -    driver_opts:
                              -      remote: 'gdrive:heimdall'
                              -      allow_other: 'true'
                              -      vfs_cache_mode: full
                              -      poll_interval: 0
                              +
                              version: '3'
                              +services:
                              +  heimdall:
                              +    image: linuxserver/heimdall:latest
                              +    ports: [8080:80]
                              +    volumes: [configdata:/config]
                              +volumes:
                              +  configdata:
                              +    driver: rclone
                              +    driver_opts:
                              +      remote: 'gdrive:heimdall'
                              +      allow_other: 'true'
                              +      vfs_cache_mode: full
                              +      poll_interval: 0

                              and run the stack:

                              docker stack deploy example -c ./example.yml

                              After a few seconds docker will spread the parsed stack description @@ -23620,16 +25274,16 @@ volume and have at least two elements, the self-explanatory driver: rclone value and the driver_opts: structure playing the same role as -o key=val CLI flags:

                              -
                              volumes:
                              -  volume_name_1:
                              -    driver: rclone
                              -    driver_opts:
                              -      remote: 'gdrive:'
                              -      allow_other: 'true'
                              -      vfs_cache_mode: full
                              -      token: '{"type": "borrower", "expires": "2021-12-31"}'
                              -      poll_interval: 0
                              +
                              volumes:
                              +  volume_name_1:
                              +    driver: rclone
                              +    driver_opts:
                              +      remote: 'gdrive:'
                              +      allow_other: 'true'
                              +      vfs_cache_mode: full
                              +      token: '{"type": "borrower", "expires": "2021-12-31"}'
                              +      poll_interval: 0

                              Notice a few important details:

                              • YAML prefers _ in option names instead of @@ -23781,16 +25435,16 @@ docker plugin inspect rclone
                              to inform the docker daemon that a volume is (un-)available. As a workaround you can setup a healthcheck to verify that the mount is responding, for example:

                              -
                              services:
                              -  my_service:
                              -    image: my_image
                              -    healthcheck:
                              -      test: ls /path/to/rclone/mount || exit 1
                              -      interval: 1m
                              -      timeout: 15s
                              -      retries: 3
                              -      start_period: 15s
                              +
                              services:
                              +  my_service:
                              +    image: my_image
                              +    healthcheck:
                              +      test: ls /path/to/rclone/mount || exit 1
                              +      interval: 1m
                              +      timeout: 15s
                              +      retries: 3
                              +      start_period: 15s

                              Running Plugin under Systemd

                              In most cases you should prefer managed mode. Moreover, MacOS and Windows do not support native Docker plugins. Please use managed mode on @@ -23984,6 +25638,7 @@ Optional Flags: --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -24049,7 +25704,7 @@ href="https://github.com/rclone/rclone/issues/5681#issuecomment-938761815">NOT entirely symmetrical, and more symmetrical options can be specified with the --resync-mode flag.) Carefully evaluate deltas using --dry-run.

                              +href="https://rclone.org/docs/#n-dry-run">--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.

                              @@ -24205,7 +25860,7 @@ 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.

                              +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 @@ -24380,6 +26035,25 @@ different delete percentage limit, e.g. --max-delete 75 check.

                              Also see the all files changed check.

                              +

                              --max-delete-renames-aware

                              +

                              When --track-renames is in use, +--max-delete-renames-aware can exclude files that are +guaranteed to match as tracked renames from the deletion count. If the +initial deletion count exceeds --max-delete, bisync +performs a rename matching preflight before starting either sync +direction. The run still aborts if the remaining unmatched deletions +exceed the limit.

                              +

                              The preflight uses the selected --track-renames-strategy +and the attributes stored in the normal bisync listings. A hash strategy +forces both listings to use a common hash and is incompatible with +--ignore-listing-checksum. The option only exempts matches +when the destination supports server-side moves or copies and the +selected strategy is supported by both paths. It requires +--track-renames and is disabled by default because hashing +may add listing time. --force bypasses both the safety +check and this preflight. The preflight is also disabled during +--resync, when rename tracking is unavailable.

                              --filters-file

                              By using rclone filter features you can exclude file types or directory sub-trees from the sync. See the bisync @@ -24591,7 +26265,8 @@ the run. This is normal, and any differences will be detected and synced on the next run.

                              For a robust integrity check of the current state of the remotes (as opposed to just their listing snapshots), consider using check (or check +(or cryptcheck, if at least one path is a crypt remote) instead of --check-sync, keeping in mind that differences are expected @@ -24935,10 +26610,10 @@ 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 duplicates, as before. This behavior -also check.) +If bisync concludes that the files are identical, it will skip them and +move on. Otherwise, it will create renamed 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 @@ -24953,7 +26628,7 @@ 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 times

                              +

                              Modification times

                              By default, bisync compares files by modification time and size. If you or your application should change the content of a file without changing the modification time and size, then bisync will not @@ -25061,22 +26736,35 @@ href="https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-Te

                            • TestBisyncRemoteLocal/extended_filenames
                            • TestBisyncRemoteLocal/normalization
                            • -
                            • TestBisyncLocalRemote/ext_paths
                            • TestBisyncLocalRemote/extended_filenames
                            • -
                            • 4 +
                            • TestBisyncLocalRemote/normalization
                            • +
                            • 3 more
                          • TestPcloud (pcloud)
                          • -
                          • Updated: 2026-07-31-010017 +
                          • TestYandex (yandex) +
                          • +
                          • Updated: 2026-11-06-010024

                          The following backends either have not been tested recently or have @@ -25096,6 +26784,10 @@ known issues that are deemed unfixable for the time being:

                        • TestFilesCom (filescom)
                        • TestImageKit (imagekit)
                        • TestJottacloud (jottacloud)
                        • +
                        • TestKdrive (kdrive) +
                            +
                          • TestBisyncRemoteRemote/normalization
                          • +
                        • TestLinkbox (linkbox)
                        • TestMailru (mailru)
                        • TestMega (mega)
                        • @@ -25110,8 +26802,9 @@ known issues that are deemed unfixable for the time being:

                        • TestS3GCS (s3)
                          • TestBisyncRemoteRemote/extended_filenames
                          • +
                          • TestBisyncRemoteLocal/extended_filenames
                          • +
                          • TestBisyncLocalRemote/extended_filenames
                        • -
                        • TestS3Rclone (s3)
                        • TestSFTPRsyncNet (sftp)
                        • TestStorj (storj)
                        • TestWebdavNextcloud (webdav)
                        • @@ -25199,11 +26892,12 @@ 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.)

                          -

                          Note that although the flag --track-renames ensures that -renamed/moved files won't be deleted and uploaded again, they are still -counted as deleted files for purposes of the --max-delete flag (as this -check happens before the rename detection operation). See this issue.

                          +

                          By default, renamed or moved files are still counted as deleted files +for purposes of --max-delete, because the safety check +happens before rename detection. Use +--max-delete-renames-aware together with +--track-renames to run a rename preflight and exclude +guaranteed matches from this count.

                          --fast-list used by default

                          Unlike most other rclone commands, bisync uses The Dropbox client then syncs the changes with Dropbox.

                        rclone.conf snippet

                        -
                        [Dropbox]
                        -type = dropbox
                        -...
                        -
                        -[Dropcrypt]
                        -type = crypt
                        -remote = /path/to/DBoxroot/crypt          # on the Linux server
                        -remote = C:\Users\MyLogin\Dropbox\crypt   # on the Windows notebook
                        -filename_encryption = standard
                        -directory_name_encryption = true
                        -password = ...
                        -...
                        +
                        [Dropbox]
                        +type = dropbox
                        +...
                        +
                        +[Dropcrypt]
                        +type = crypt
                        +remote = /path/to/DBoxroot/crypt          # on the Linux server
                        +remote = C:\Users\MyLogin\Dropbox\crypt   # on the Windows notebook
                        +filename_encryption = standard
                        +directory_name_encryption = true
                        +password = ...
                        +...

                        Testing

                        You should read this section only if you are developing for rclone. You need to have rclone source code locally to work with bisync @@ -25990,146 +27684,11 @@ article.

                        href="http://www.cis.upenn.edu/%7Ebcpierce/papers/index.shtml#File%20Synchronization">Benjamin Pierce about Unison and synchronization in general.

                        Changelog

                        -

                        v1.74.2

                        -
                          -
                        • Fixed an issue causing --conflict-loser pathname to -produce unexpected behavior if using a non-default ---conflict-resolve value.
                        • -
                        -

                        v1.74

                        -
                          -
                        • Added several missing rc parameters.
                        • -
                        • Optional rc parameters are now truly optional.
                        • -
                        • rc output now provides more structured -information.
                        • -
                        -

                        v1.71

                        -
                          -
                        • bisync is now officially released from -beta.

                        • -
                        • Fixed an issue causing hash type to be set incorrectly if -path2 had slow hashes and --no-slow-hash or ---slow-hash-sync-only was in use.

                        • -
                        • Fixed an issue causing errors when running concurrent bisync runs -through the rc.

                        • -
                        -

                        v1.69.1

                        -
                          -
                        • Fixed an issue causing listings to not capture concurrent -modifications under certain conditions
                        • -
                        -

                        v1.68

                        -
                          -
                        • Fixed an issue affecting backends that round modtimes to a lower -precision.
                        • -
                        -

                        v1.67

                        -
                          -
                        • Added integration tests against all backends.
                        • -
                        -

                        v1.66

                        -
                          -
                        • Copies and deletes are now handled in one operation instead of -two

                        • -
                        • --track-renames and --backup-dir are -now supported

                        • -
                        • Partial uploads known issue on -local/ftp/sftp has been resolved -(unless using --inplace)

                        • -
                        • Final listings are now generated from sync results, to avoid -needing to re-list

                        • -
                        • Bisync is now much more resilient to changes that happen during a -bisync run, and far less prone to critical errors / undetected -changes

                        • -
                        • Bisync is now capable of rolling a file listing back in cases of -uncertainty, essentially marking the file as needing to be rechecked -next time.

                        • -
                        • A few basic terminal colors are now supported, controllable with ---color -(AUTO|NEVER|ALWAYS)

                        • -
                        • Initial listing snapshots of Path1 and Path2 are now generated -concurrently, using the same "march" infrastructure as -check and sync, for performance improvements -and less risk -of error.

                        • -
                        • Fixed handling of unicode normalization and case insensitivity, -support for --fix-case, --ignore-case-sync, --no-unicode-normalization

                        • -
                        • --resync is now much more efficient (especially for -users of --create-empty-src-dirs)

                        • -
                        • Google Docs (and other files of unknown size) are now supported -(with the same options as in sync)

                        • -
                        • Equality checks before a sync conflict rename now fall back to -cryptcheck (when possible) or --download, -instead of of --size-only, when check is not -available.

                        • -
                        • Bisync no longer fails to find the correct listing file when -configs are overridden with backend-specific flags.

                        • -
                        • Bisync now fully supports comparing based on any combination of -size, modtime, and checksum, lifting the prior restriction on backends -without modtime support.

                        • -
                        • Bisync now supports a "Graceful Shutdown" mode to cleanly cancel -a run early without requiring --resync.

                        • -
                        • New --recover flag allows robust recovery in the -event of interruptions, without requiring ---resync.

                        • -
                        • A new --max-lock setting allows lock files to -automatically renew and expire, for better automatic recovery when a run -is interrupted.

                        • -
                        • Bisync now supports auto-resolving sync conflicts and customizing -rename behavior with new --conflict-resolve, --conflict-loser, and --conflict-suffix -flags.

                        • -
                        • A new --resync-mode flag -allows more control over which version of a file gets kept during a ---resync.

                        • -
                        • Bisync now supports --retries -and --retries-sleep -(when --resilient is -set.)

                        • -
                        -

                        v1.64

                        - +

                        Changes to bisync are listed in the rclone changelog. The changelog +this page kept until v1.76 is archived +on GitHub.

                        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 @@ -26232,14 +27791,13 @@ 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
                        +

                        Extract the signed data with:

                        +
                        $ gpg --output SHA256SUMS.signed --decrypt SHA256SUMS
                        +

                        Then check the binaries:

                        +
                        $ sha256sum -c --ignore-missing SHA256SUMS.signed
                         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 hashsum sha256 -C SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip
                         = 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
                        @@ -26597,8 +28155,10 @@ existing remote).

                      • Alibaba Cloud (Aliyun) Object Storage System (OSS)
                      • Ceph
                      • China Mobile Ecloud Elastic Object Storage (EOS)
                      • +
                      • Clever Cloud Cellar
                      • Cloudflare R2
                      • Arvan Cloud Object Storage (AOS)
                      • +
                      • Autonomys Auto Drive
                      • Bizfly Cloud Simple Storage
                      • Cubbit DS3
                      • DigitalOcean Spaces
                      • @@ -26613,6 +28173,7 @@ existing remote).

                      • IBM COS S3
                      • IDrive e2
                      • Impossible Cloud
                      • +
                      • Infomaniak Swiss Backup
                      • Intercolo Object Storage
                      • IONOS Cloud
                      • Leviia Object Storage
                      • @@ -26621,6 +28182,7 @@ existing remote).

                      • Magalu Object Storage
                      • MEGA S4 Object Storage
                      • Minio
                      • +
                      • Neon Object Storage
                      • Outscale
                      • OVHcloud
                      • Petabox
                      • @@ -26629,6 +28191,7 @@ existing remote).

                      • Rabata Cloud Storage
                      • RackCorp Object Storage
                      • Rclone Serve S3
                      • +
                      • RelAix.Storage
                      • Scaleway
                      • Scality (RING / ARTESCA)
                      • Seagate Lyve Cloud
                      • @@ -26863,7 +28426,7 @@ d) Delete this remote y/e/d>

                        Modification times and hashes

                        -

                        Modification times

                        +

                        Modification times

                        The modified time is stored as metadata on the object as X-Amz-Meta-Mtime as floating point since the epoch, accurate to 1 ns.

                        @@ -27345,24 +28908,24 @@ An external ID is provided for additional security as required by the role's trust policy

                        The target role's trust policy in the destination account must allow the source account or user to assume it. Example trust policy:

                        -
                        {
                        -  "Version": "2012-10-17",
                        -  "Statement": [
                        -    {
                        -      "Effect": "Allow",
                        -      "Principal": {
                        -        "AWS": "arn:aws:iam::SOURCE-ACCOUNT-ID:root"
                        -      },
                        -      "Action": "sts:AssumeRole",
                        -      "Condition": {
                        -        "StringEquals": {
                        -          "sts:ExternalID": "unique-role-external-id-12345"
                        -        }
                        -      }
                        -    }
                        -  ]
                        -}
                        +
                        {
                        +  "Version": "2012-10-17",
                        +  "Statement": [
                        +    {
                        +      "Effect": "Allow",
                        +      "Principal": {
                        +        "AWS": "arn:aws:iam::SOURCE-ACCOUNT-ID:root"
                        +      },
                        +      "Action": "sts:AssumeRole",
                        +      "Condition": {
                        +        "StringEquals": {
                        +          "sts:ExternalID": "unique-role-external-id-12345"
                        +        }
                        +      }
                        +    }
                        +  ]
                        +}

                        S3 Permissions

                        When using the sync subcommand of rclone the following minimum permissions are required to be available on the @@ -27379,34 +28942,34 @@ href="#s3-no-check-bucket">s3-no-check-bucket)

                        When using the lsd subcommand, the ListAllMyBuckets permission is required.

                        Example policy:

                        -
                        {
                        -  "Version": "2012-10-17",
                        -  "Statement": [
                        -    {
                        -      "Effect": "Allow",
                        -      "Principal": {
                        -        "AWS": "arn:aws:iam::USER_SID:user/USER_NAME"
                        -      },
                        -      "Action": [
                        -        "s3:ListBucket",
                        -        "s3:DeleteObject",
                        -        "s3:GetObject",
                        -        "s3:PutObject",
                        -        "s3:PutObjectAcl"
                        -      ],
                        -      "Resource": [
                        -        "arn:aws:s3:::BUCKET_NAME/*",
                        -        "arn:aws:s3:::BUCKET_NAME"
                        -      ]
                        -    },
                        -    {
                        -      "Effect": "Allow",
                        -      "Action": "s3:ListAllMyBuckets",
                        -      "Resource": "arn:aws:s3:::*"
                        -    }
                        -  ]
                        -}
                        +
                        {
                        +  "Version": "2012-10-17",
                        +  "Statement": [
                        +    {
                        +      "Effect": "Allow",
                        +      "Principal": {
                        +        "AWS": "arn:aws:iam::USER_SID:user/USER_NAME"
                        +      },
                        +      "Action": [
                        +        "s3:ListBucket",
                        +        "s3:DeleteObject",
                        +        "s3:GetObject",
                        +        "s3:PutObject",
                        +        "s3:PutObjectAcl"
                        +      ],
                        +      "Resource": [
                        +        "arn:aws:s3:::BUCKET_NAME/*",
                        +        "arn:aws:s3:::BUCKET_NAME"
                        +      ]
                        +    },
                        +    {
                        +      "Effect": "Allow",
                        +      "Action": "s3:ListAllMyBuckets",
                        +      "Resource": "arn:aws:s3:::*"
                        +    }
                        +  ]
                        +}

                        Notes on above:

                        1. This is a policy that can be used when creating bucket. It assumes @@ -27436,6 +28999,8 @@ policy. The bucket can still be synced or copied into normally, but if rclone tries to access data from the glacier storage class you will see an error like below.

                          2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file
                          +

                          The message shows the object's actual storage class, for example +DEEP_ARCHIVE.

                          In this case you need to restore the object(s) in question before accessing object contents. The

                          Standard options

                          Here are the Standard options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other).

                          +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other).

                          --s3-provider

                          Choose your S3 provider.

                          Properties:

                          @@ -27534,10 +29100,18 @@ Zadara, Zata, ZeroServices, Other).

                          • Arvan Cloud Object Storage (AOS)
                        2. +
                        3. "Autonomys" +
                            +
                          • Autonomys Auto Drive
                          • +
                        4. "BizflyCloud"
                          • Bizfly Cloud Simple Storage
                        5. +
                        6. "Cellar" +
                            +
                          • Clever Cloud Cellar Object Storage
                          • +
                        7. "Ceph"
                          • Ceph Object Storage
                          • @@ -27606,6 +29180,10 @@ Zadara, Zata, ZeroServices, Other).

                            • Impossible Cloud Object Storage
                            +
                          • "Infomaniak" +
                              +
                            • Infomaniak Swiss Backup
                            • +
                          • "Intercolo"
                            • Intercolo Object Storage
                            • @@ -27642,6 +29220,10 @@ Zadara, Zata, ZeroServices, Other).

                              • Minio Object Storage
                              +
                            • "Neon" +
                                +
                              • Neon Object Storage
                              • +
                            • "Netease"
                              • Netease Object Storage (NOS)
                              • @@ -27674,6 +29256,10 @@ Zadara, Zata, ZeroServices, Other).

                                • Rclone S3 Server
                                +
                              • "RelAix" +
                                  +
                                • RelAix.Storage
                                • +
                              • "Scaleway"
                                • Scaleway Object Storage
                                • @@ -27787,7 +29373,7 @@ region.

                                • Config: region
                                • Env Var: RCLONE_S3_REGION
                                • Provider: -AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,LyveCloud,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other
                                • +AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,LyveCloud,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other
                                • Type: string
                                • Required: false
                                • Examples: @@ -27994,6 +29580,11 @@ centers for low latency.
                                • EU Central
                                • Provider: Fastly
                              • +
                              • "eu-central-1" +
                                  +
                                • EU Central 1
                                • +
                                • Provider: Fastly
                                • +
                              • "eu-south-1"
                                • EU South 1
                                • @@ -28079,11 +29670,21 @@ centers for low latency.
                                • Nuremberg
                                • Provider: Hetzner
                              • +
                              • "af-north-1" +
                                  +
                                • AF-Cairo
                                • +
                                • Provider: HuaweiOBS
                                • +
                              • "af-south-1"
                                • AF-Johannesburg
                                • Provider: HuaweiOBS
                              • +
                              • "ap-southeast-1" +
                                  +
                                • CN-Hong Kong
                                • +
                                • Provider: HuaweiOBS
                                • +
                              • "ap-southeast-2"
                                • AP-Bangkok
                                • @@ -28094,9 +29695,14 @@ centers for low latency.
                                • AP-Singapore
                                • Provider: HuaweiOBS
                              • -
                              • "cn-east-3" +
                              • "ap-southeast-4"
                                  -
                                • CN East-Shanghai1
                                • +
                                • AP-Jakarta
                                • +
                                • Provider: HuaweiOBS
                                • +
                              • +
                              • "ap-southeast-5" +
                                  +
                                • AP-Manila
                                • Provider: HuaweiOBS
                              • "cn-east-2" @@ -28104,34 +29710,94 @@ centers for low latency.
                              • CN East-Shanghai2
                              • Provider: HuaweiOBS
                            • +
                            • "cn-east-3" +
                                +
                              • CN East-Shanghai1
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "cn-east-4" +
                                +
                              • CN East-Qingdao
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "cn-east-5" +
                                +
                              • CN East-Suzhou
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • "cn-north-1"
                              • CN North-Beijing1
                              • Provider: HuaweiOBS
                            • +
                            • "cn-north-2" +
                                +
                              • CN North-Beijing2
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • "cn-north-4"
                              • CN North-Beijing4
                              • Provider: HuaweiOBS
                            • +
                            • "cn-north-9" +
                                +
                              • CN North-Ulanqab
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "cn-north-11" +
                                +
                              • CN North-Hebei
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "cn-north-12" +
                                +
                              • CN North-Hohhot
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • "cn-south-1"
                              • CN South-Guangzhou
                              • Provider: HuaweiOBS
                            • -
                            • "ap-southeast-1" +
                            • "cn-south-2"
                                -
                              • CN-Hong Kong
                              • +
                              • CN South-Shenzhen
                              • Provider: HuaweiOBS
                            • -
                            • "sa-argentina-1" +
                            • "cn-south-4"
                                -
                              • LA-Buenos Aires1
                              • +
                              • CN South-Guangzhou-InvitationOnly
                              • Provider: HuaweiOBS
                            • -
                            • "sa-peru-1" +
                            • "cn-southwest-2"
                                -
                              • LA-Lima1
                              • +
                              • CN Southwest-Guiyang1
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "cn-southwest-3" +
                                +
                              • CN Southwest-Chongqing
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "eu-west-101" +
                                +
                              • EU-Dublin
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "la-north-2" +
                                +
                              • LA-Mexico City2
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "la-south-2" +
                                +
                              • LA-Santiago
                              • +
                              • Provider: HuaweiOBS
                              • +
                            • +
                            • "me-east-1" +
                                +
                              • ME-Riyadh
                              • Provider: HuaweiOBS
                            • "na-mexico-1" @@ -28139,9 +29805,14 @@ centers for low latency.
                            • LA-Mexico City1
                            • Provider: HuaweiOBS
                          • -
                          • "sa-chile-1" +
                          • "ru-northwest-2"
                              -
                            • LA-Santiago2
                            • +
                            • RU-Moscow2
                            • +
                            • Provider: HuaweiOBS
                            • +
                          • +
                          • "sa-argentina-1" +
                              +
                            • LA-Buenos Aires1
                            • Provider: HuaweiOBS
                          • "sa-brazil-1" @@ -28149,9 +29820,19 @@ centers for low latency.
                          • LA-Sao Paulo1
                          • Provider: HuaweiOBS
                        8. -
                        9. "ru-northwest-2" +
                        10. "sa-chile-1"
                            -
                          • RU-Moscow2
                          • +
                          • LA-Santiago2
                          • +
                          • Provider: HuaweiOBS
                          • +
                        11. +
                        12. "sa-peru-1" +
                            +
                          • LA-Lima1
                          • +
                          • Provider: HuaweiOBS
                          • +
                        13. +
                        14. "tr-west-1" +
                            +
                          • TR-Istanbul
                          • Provider: HuaweiOBS
                        15. "eu-central-2" @@ -28189,6 +29870,12 @@ centers for low latency.
                        16. New York, USA
                        17. Provider: ImpossibleCloud
                      +
                    • "us-east-1" +
                        +
                      • Default region for compatibility.
                      • +
                      • All data is stored in Switzerland.
                      • +
                      • Provider: Infomaniak
                      • +
                    • "de-fra"
                      • Frankfurt, Germany
                      • @@ -28224,6 +29911,26 @@ centers for low latency.
                      • Lenexa, USA
                      • Provider: IONOS
                    • +
                    • "us-east-1" +
                        +
                      • US East (N. Virginia)
                      • +
                      • Provider: Neon,Petabox,Rabata
                      • +
                    • +
                    • "us-east-2" +
                        +
                      • US East (Ohio)
                      • +
                      • Provider: Neon
                      • +
                    • +
                    • "eu-central-1" +
                        +
                      • Europe (Frankfurt)
                      • +
                      • Provider: Neon,Petabox
                      • +
                    • +
                    • "ap-southeast-1" +
                        +
                      • Asia Pacific (Singapore)
                      • +
                      • Provider: Neon,Petabox
                      • +
                    • "eu-west-2"
                      • Paris, France
                      • @@ -28319,21 +30026,6 @@ centers for low latency.
                      • Roubaix, France (Cold Archive)
                      • Provider: OVHcloud
                    • -
                    • "us-east-1" -
                        -
                      • US East (N. Virginia)
                      • -
                      • Provider: Petabox,Rabata
                      • -
                    • -
                    • "eu-central-1" -
                        -
                      • Europe (Frankfurt)
                      • -
                      • Provider: Petabox
                      • -
                    • -
                    • "ap-southeast-1" -
                        -
                      • Asia Pacific (Singapore)
                      • -
                      • Provider: Petabox
                      • -
                    • "me-south-1"
                      • Middle East (Bahrain)
                      • @@ -28507,6 +30199,11 @@ centers for low latency.
                      • Warsaw, Poland
                      • Provider: Scaleway
                    • +
                    • "it-mil" +
                        +
                      • Milan, Italy
                      • +
                      • Provider: Scaleway
                      • +
                    • "ru-1"
                      • St. Petersburg
                      • @@ -28608,7 +30305,7 @@ centers for low latency.
                      • Config: endpoint
                      • Env Var: RCLONE_S3_ENDPOINT
                      • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other
                      • +AWS,Alibaba,ArvanCloud,Autonomys,BizflyCloud,Cellar,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,RelAix,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other
                      • Type: string
                      • Required: false
                      • Examples: @@ -28749,6 +30446,11 @@ AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOce
                      • Tabriz Iran (Shahriar)
                      • Provider: ArvanCloud
                    • +
                    • "s3.auto-drive.autonomys.xyz" +
                        +
                      • Auto Drive mainnet S3 endpoint
                      • +
                      • Provider: Autonomys
                      • +
                    • "hn.ss.bfcplatform.vn"
                      • Hanoi endpoint
                      • @@ -28759,6 +30461,11 @@ AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOce
                      • Ho Chi Minh endpoint
                      • Provider: BizflyCloud
                    • +
                    • "cellar-c2.services.clever-cloud.com" +
                        +
                      • Paris, France
                      • +
                      • Provider: Cellar
                      • +
                    • "eos-wuxi-1.cmecloud.cn"
                      • The default endpoint - a good choice if you are unsure.
                      • @@ -28986,6 +30693,11 @@ tenant name. Do not select this directly
                      • EU Central
                      • Provider: Fastly
                    • +
                    • "eu-central-1.object.fastlystorage.app" +
                        +
                      • EU Central 1
                      • +
                      • Provider: Fastly
                      • +
                    • "eu-south-1.object.fastlystorage.app"
                      • EU South 1
                      • @@ -29076,11 +30788,21 @@ tenant name. Do not select this directly
                      • Nuremberg
                      • Provider: Hetzner
                    • +
                    • "obs.af-north-1.myhuaweicloud.com" +
                        +
                      • AF-Cairo
                      • +
                      • Provider: HuaweiOBS
                      • +
                    • "obs.af-south-1.myhuaweicloud.com"
                      • AF-Johannesburg
                      • Provider: HuaweiOBS
                    • +
                    • "obs.ap-southeast-1.myhuaweicloud.com" +
                        +
                      • CN-Hong Kong
                      • +
                      • Provider: HuaweiOBS
                      • +
                    • "obs.ap-southeast-2.myhuaweicloud.com"
                      • AP-Bangkok
                      • @@ -29091,9 +30813,14 @@ tenant name. Do not select this directly
                      • AP-Singapore
                      • Provider: HuaweiOBS
                    • -
                    • "obs.cn-east-3.myhuaweicloud.com" +
                    • "obs.ap-southeast-4.myhuaweicloud.com"
                        -
                      • CN East-Shanghai1
                      • +
                      • AP-Jakarta
                      • +
                      • Provider: HuaweiOBS
                      • +
                    • +
                    • "obs.ap-southeast-5.myhuaweicloud.com" +
                        +
                      • AP-Manila
                      • Provider: HuaweiOBS
                    • "obs.cn-east-2.myhuaweicloud.com" @@ -29101,34 +30828,94 @@ tenant name. Do not select this directly
                    • CN East-Shanghai2
                    • Provider: HuaweiOBS
                    +
                  • "obs.cn-east-3.myhuaweicloud.com" +
                      +
                    • CN East-Shanghai1
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.cn-east-4.myhuaweicloud.com" +
                      +
                    • CN East-Qingdao
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.cn-east-5.myhuaweicloud.com" +
                      +
                    • CN East-Suzhou
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • "obs.cn-north-1.myhuaweicloud.com"
                    • CN North-Beijing1
                    • Provider: HuaweiOBS
                  • +
                  • "obs.cn-north-2.myhuaweicloud.com" +
                      +
                    • CN North-Beijing2
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • "obs.cn-north-4.myhuaweicloud.com"
                    • CN North-Beijing4
                    • Provider: HuaweiOBS
                  • +
                  • "obs.cn-north-9.myhuaweicloud.com" +
                      +
                    • CN North-Ulanqab
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.cn-north-11.myhuaweicloud.com" +
                      +
                    • CN North-Hebei
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.cn-north-12.myhuaweicloud.com" +
                      +
                    • CN North-Hohhot
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • "obs.cn-south-1.myhuaweicloud.com"
                    • CN South-Guangzhou
                    • Provider: HuaweiOBS
                  • -
                  • "obs.ap-southeast-1.myhuaweicloud.com" +
                  • "obs.cn-south-2.myhuaweicloud.com"
                      -
                    • CN-Hong Kong
                    • +
                    • CN South-Shenzhen
                    • Provider: HuaweiOBS
                  • -
                  • "obs.sa-argentina-1.myhuaweicloud.com" +
                  • "obs.cn-south-4.myhuaweicloud.com"
                      -
                    • LA-Buenos Aires1
                    • +
                    • CN South-Guangzhou-InvitationOnly
                    • Provider: HuaweiOBS
                  • -
                  • "obs.sa-peru-1.myhuaweicloud.com" +
                  • "obs.cn-southwest-2.myhuaweicloud.com"
                      -
                    • LA-Lima1
                    • +
                    • CN Southwest-Guiyang1
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.cn-southwest-3.myhuaweicloud.com" +
                      +
                    • CN Southwest-Chongqing
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.eu-west-101.myhuaweicloud.eu" +
                      +
                    • EU-Dublin
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.la-north-2.myhuaweicloud.com" +
                      +
                    • LA-Mexico City2
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.la-south-2.myhuaweicloud.com" +
                      +
                    • LA-Santiago
                    • +
                    • Provider: HuaweiOBS
                    • +
                  • +
                  • "obs.me-east-1.myhuaweicloud.com" +
                      +
                    • ME-Riyadh
                    • Provider: HuaweiOBS
                  • "obs.na-mexico-1.myhuaweicloud.com" @@ -29136,9 +30923,14 @@ tenant name. Do not select this directly
                  • LA-Mexico City1
                  • Provider: HuaweiOBS
                  -
                • "obs.sa-chile-1.myhuaweicloud.com" +
                • "obs.ru-northwest-2.myhuaweicloud.com"
                    -
                  • LA-Santiago2
                  • +
                  • RU-Moscow2
                  • +
                  • Provider: HuaweiOBS
                  • +
                • +
                • "obs.sa-argentina-1.myhuaweicloud.com" +
                    +
                  • LA-Buenos Aires1
                  • Provider: HuaweiOBS
                • "obs.sa-brazil-1.myhuaweicloud.com" @@ -29146,9 +30938,19 @@ tenant name. Do not select this directly
                • LA-Sao Paulo1
                • Provider: HuaweiOBS
                -
              • "obs.ru-northwest-2.myhuaweicloud.com" +
              • "obs.sa-chile-1.myhuaweicloud.com"
                  -
                • RU-Moscow2
                • +
                • LA-Santiago2
                • +
                • Provider: HuaweiOBS
                • +
              • +
              • "obs.sa-peru-1.myhuaweicloud.com" +
                  +
                • LA-Lima1
                • +
                • Provider: HuaweiOBS
                • +
              • +
              • "obs.tr-west-1.myhuaweicloud.com" +
                  +
                • TR-Istanbul
                • Provider: HuaweiOBS
              • "s3.us.cloud-object-storage.appdomain.cloud" @@ -29496,6 +31298,26 @@ tenant name. Do not select this directly
              • New York, USA
              • Provider: ImpossibleCloud
              +
            • "s3.swiss-backup01.infomaniak.com" +
                +
              • Swiss Backup Location 01
              • +
              • Provider: Infomaniak
              • +
            • +
            • "s3.swiss-backup02.infomaniak.com" +
                +
              • Swiss Backup Location 02
              • +
              • Provider: Infomaniak
              • +
            • +
            • "s3.swiss-backup03.infomaniak.com" +
                +
              • Swiss Backup Location 03
              • +
              • Provider: Infomaniak
              • +
            • +
            • "s3.swiss-backup04.infomaniak.com" +
                +
              • Swiss Backup Location 04
              • +
              • Provider: Infomaniak
              • +
            • "de-fra.i3storage.com"
              • Frankfurt, Germany
              • @@ -29668,59 +31490,74 @@ tenant name. Do not select this directly
              • Fortaleza, CE (BR), br-ne1
              • Provider: Magalu
            • -
            • "s3.eu-amsterdam.megas4.com" +
            • "s3.eu-luxembourg-1.megas4.com"
                -
              • Mega S4 Amsterdam
              • +
              • Mega S4 Luxembourg 1
              • Provider: Mega
            • -
            • "s3.eu-luxembourg.megas4.com" +
            • "s3.eu-luxembourg-2.megas4.com"
                -
              • Mega S4 Luxembourg
              • +
              • Mega S4 Luxembourg 2
              • Provider: Mega
            • -
            • "s3.eu-paris.megas4.com" +
            • "s3.eu-amsterdam-1.megas4.com"
                -
              • Mega S4 Paris
              • +
              • Mega S4 Amsterdam 1
              • Provider: Mega
            • -
            • "s3.eu-barcelona.megas4.com" +
            • "s3.eu-amsterdam-2.megas4.com"
                -
              • Mega S4 Barcelona
              • +
              • Mega S4 Amsterdam 2
              • Provider: Mega
            • -
            • "s3.ca-montreal.megas4.com" +
            • "s3.eu-paris-1.megas4.com"
                -
              • Mega S4 Montreal
              • +
              • Mega S4 Paris 1
              • Provider: Mega
            • -
            • "s3.ca-vancouver.megas4.com" +
            • "s3.eu-paris-2.megas4.com"
                -
              • Mega S4 Vancouver
              • +
              • Mega S4 Paris 2
              • Provider: Mega
            • -
            • "s3.ap-tokyo.megas4.com" +
            • "s3.eu-barcelona-1.megas4.com"
                -
              • Mega S4 Tokyo
              • +
              • Mega S4 Barcelona 1
              • Provider: Mega
            • -
            • "s3.eu-central-1.s4.mega.io" +
            • "s3.eu-barcelona-2.megas4.com"
                -
              • Mega S4 eu-central-1 (Amsterdam, legacy)
              • +
              • Mega S4 Barcelona 2
              • Provider: Mega
            • -
            • "s3.eu-central-2.s4.mega.io" +
            • "s3.ca-montreal-1.megas4.com"
                -
              • Mega S4 eu-central-2 (Bettembourg, legacy)
              • +
              • Mega S4 Montreal 1
              • Provider: Mega
            • -
            • "s3.ca-central-1.s4.mega.io" +
            • "s3.ca-montreal-2.megas4.com"
                -
              • Mega S4 ca-central-1 (Montreal, legacy)
              • +
              • Mega S4 Montreal 2
              • Provider: Mega
            • -
            • "s3.ca-west-1.s4.mega.io" +
            • "s3.ca-vancouver-1.megas4.com"
                -
              • Mega S4 ca-west-1 (Vancouver, legacy)
              • +
              • Mega S4 Vancouver 1
              • +
              • Provider: Mega
              • +
            • +
            • "s3.ca-vancouver-2.megas4.com" +
                +
              • Mega S4 Vancouver 2
              • +
              • Provider: Mega
              • +
            • +
            • "s3.ap-tokyo-1.megas4.com" +
                +
              • Mega S4 Tokyo 1
              • +
              • Provider: Mega
              • +
            • +
            • "s3.ap-tokyo-2.megas4.com" +
                +
              • Mega S4 Tokyo 2
              • Provider: Mega
            • "oos.eu-west-2.outscale.com" @@ -29998,6 +31835,16 @@ tenant name. Do not select this directly
            • Auckland (New Zealand) Endpoint
            • Provider: RackCorp
          • +
          • "s3-gw1.relaix.net" +
              +
            • Aachen-1, Germany
            • +
            • Provider: RelAix
            • +
          • +
          • "s3-gw2.relaix.net" +
              +
            • Aachen-2, Germany
            • +
            • Provider: RelAix
            • +
          • "s3.nl-ams.scw.cloud"
            • Amsterdam Endpoint
            • @@ -30013,6 +31860,11 @@ tenant name. Do not select this directly
            • Warsaw Endpoint
            • Provider: Scaleway
          • +
          • "s3.it-mil.scw.cloud" +
              +
            • Milan Endpoint
            • +
            • Provider: Scaleway
            • +
          • "localhost:8333"
            • SeaweedFS S3 localhost
            • @@ -30398,7 +32250,7 @@ tenant name. Do not select this directly
            • Config: location_constraint
            • Env Var: RCLONE_S3_LOCATION_CONSTRAINT
            • Provider: -AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other
            • +AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,Infomaniak,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other
            • Type: string
            • Required: false
            • Examples: @@ -31016,7 +32868,7 @@ the default (private) will be used.

            • Config: acl
            • Env Var: RCLONE_S3_ACL
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
            • Type: string
            • Required: false
            • Examples: @@ -31026,14 +32878,14 @@ AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhos
            • Owner gets FULL_CONTROL.
            • No one else has access rights (default).
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other
          • "public-read"
            • Owner gets FULL_CONTROL.
            • The AllUsers group gets READ access.
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
          • "public-read-write"
              @@ -31041,14 +32893,14 @@ AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhos
            • The AllUsers group gets READ and WRITE access.
            • Granting this on a bucket is generally not recommended.
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
          • "authenticated-read"
            • Owner gets FULL_CONTROL.
            • The AuthenticatedUsers group gets READ access.
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
          • "bucket-owner-read"
              @@ -31057,7 +32909,7 @@ AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhos
            • If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
          • "bucket-owner-full-control"
              @@ -31066,7 +32918,7 @@ object.
            • If you specify this canned ACL when creating a bucket, Amazon S3 ignores it.
            • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
            • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other
          • "private"
              @@ -31333,14 +33185,15 @@ id="s3-bucket-object-lock-enabled">--s3-bucket-object-lock-enabled

            Advanced options

            Here are the Advanced options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other).

            +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other).

            --s3-bucket-acl

            Canned ACL used when creating buckets.

            For more info visit @@ -31354,7 +33207,7 @@ header is added and the default (private) will be used.

          • Config: bucket_acl
          • Env Var: RCLONE_S3_BUCKET_ACL
          • Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
          • +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other
          • Type: string
          • Required: false
          • Examples: @@ -31399,7 +33252,7 @@ storing this object in S3.

        This command does not obey the filters.

        It returns a list of status dictionaries:

        -
        [
        -    {
        -        "Remote": "file.txt",
        -        "VersionID": null,
        -        "RestoreStatus": {
        -            "IsRestoreInProgress": true,
        -            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
        -        },
        -        "StorageClass": "GLACIER"
        -    },
        -    {
        -        "Remote": "test.pdf",
        -        "VersionID": null,
        -        "RestoreStatus": {
        -            "IsRestoreInProgress": false,
        -            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
        -        },
        -        "StorageClass": "DEEP_ARCHIVE"
        -    },
        -    {
        -        "Remote": "test.gz",
        -        "VersionID": null,
        -        "RestoreStatus": {
        -            "IsRestoreInProgress": true,
        -            "RestoreExpiryDate": "null"
        -        },
        -        "StorageClass": "INTELLIGENT_TIERING"
        -    }
        -]
        +
        [
        +    {
        +        "Remote": "file.txt",
        +        "VersionID": null,
        +        "RestoreStatus": {
        +            "IsRestoreInProgress": true,
        +            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
        +        },
        +        "StorageClass": "GLACIER"
        +    },
        +    {
        +        "Remote": "test.pdf",
        +        "VersionID": null,
        +        "RestoreStatus": {
        +            "IsRestoreInProgress": false,
        +            "RestoreExpiryDate": "2023-09-06T12:29:19+01:00"
        +        },
        +        "StorageClass": "DEEP_ARCHIVE"
        +    },
        +    {
        +        "Remote": "test.gz",
        +        "VersionID": null,
        +        "RestoreStatus": {
        +            "IsRestoreInProgress": true,
        +            "RestoreExpiryDate": "null"
        +        },
        +        "StorageClass": "INTELLIGENT_TIERING"
        +    }
        +]

        Options:

        • "all": If set then show all objects, not just ones with restore @@ -32562,27 +34451,27 @@ format.

          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": []
          -}
          +
          {
          +    "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>+]
          @@ -32638,10 +34527,10 @@ will default to those currently in use.

          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
          +
          [anons3]
          +type = s3
          +provider = AWS

          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.

          @@ -32655,15 +34544,15 @@ href="#configuration">configuration section above.

          From rclone v1.69 Directory Buckets are supported.

          -

          You will need to set the directory_buckets = true config -parameter or use --s3-directory-buckets.

          +

          You will need to set the directory_bucket = true config +parameter or use --s3-directory-bucket.

          Note that rclone cannot yet:

          • Create directory buckets
          • List directory buckets
          -

          See the --s3-directory-buckets -flag for more info

          +

          See the --s3-directory-bucket flag +for more info

          AWS Snowball Edge

          AWS Snowball is a hardware appliance used for transferring bulk data back to AWS. Its main @@ -32677,14 +34566,14 @@ 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
          +
          [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

          Alibaba OSS

          Here is an example of making an Alibaba Cloud (Aliyun) @@ -32879,19 +34768,96 @@ e) Edit this remote d) Delete this remote y/e/d> y

    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 =
    +
    [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 =
    +

    Autonomys Auto Drive

    +

    Auto Drive is permanent storage on +the Autonomys Network, with an S3-compatible API. Deleting an object +hides it, but its data and every earlier version are kept. Buckets are +created by the first upload into them.

    +

    Use your Auto Drive API key as the access_key_id, and +any value as the secret_access_key.

    +

    Here is an example of making a 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
    +
    +Enter name for new remote.
    +name> autodrive
    +
    +Option Storage.
    +Type of storage to configure.
    +Storage> s3
    +
    +Option provider.
    +Choose your S3 provider.
    +provider> Autonomys
    +
    +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.
    +env_auth> false
    +
    +Option access_key_id.
    +AWS Access Key ID.
    +access_key_id> YOUR_API_KEY
    +
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +secret_access_key> ANY_VALUE
    +
    +Option endpoint.
    +Endpoint for S3 API.
    +Choose a number from below, or type in your own value.
    + 1 / Auto Drive mainnet S3 endpoint
    +   \ (s3.auto-drive.autonomys.xyz)
    +endpoint> 1
    +
    +Option bucket_object_lock_enabled.
    +Enable Object Lock when creating new buckets.
    +Enter a boolean value (true or false). Press Enter for the default (false).
    +bucket_object_lock_enabled>
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: Autonomys
    +- access_key_id: YOUR_API_KEY
    +- secret_access_key: ANY_VALUE
    +- endpoint: s3.auto-drive.autonomys.xyz
    +Keep this "autodrive" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    The resulting configuration file should look like:

    +
    [autodrive]
    +type = s3
    +provider = Autonomys
    +access_key_id = YOUR_API_KEY
    +secret_access_key = ANY_VALUE
    +endpoint = s3.auto-drive.autonomys.xyz

    BizflyCloud

    Bizfly Cloud Simple Storage is an S3-compatible service with regions in Hanoi (HN) and @@ -32902,19 +34868,19 @@ Ho Chi Minh City (HCM).

  • HCM: hcm.ss.bfcplatform.vn
  • A minimal configuration looks like this.

    -
    [bizfly]
    -type = s3
    -provider = BizflyCloud
    -env_auth = false
    -access_key_id = YOUR_ACCESS_KEY
    -secret_access_key = YOUR_SECRET_KEY
    -region = HN
    -endpoint = hn.ss.bfcplatform.vn
    -location_constraint =
    -acl =
    -server_side_encryption =
    -storage_class =
    +
    [bizfly]
    +type = s3
    +provider = BizflyCloud
    +env_auth = false
    +access_key_id = YOUR_ACCESS_KEY
    +secret_access_key = YOUR_SECRET_KEY
    +region = HN
    +endpoint = hn.ss.bfcplatform.vn
    +location_constraint =
    +acl =
    +server_side_encryption =
    +storage_class =

    Switch region and endpoint to HCM and hcm.ss.bfcplatform.vn for Ho Chi Minh City.

    @@ -32926,24 +34892,30 @@ 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 =
    +
    [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.

    +

    Rclone defaults sign_accept_encoding to false for the +Ceph provider. That avoids SignatureDoesNotMatch errors +when a reverse proxy (for example Cloudflare) rewrites the +Accept-Encoding request header. You can override this with +--s3-sign-accept-encoding / +sign_accept_encoding if needed.

    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 @@ -32951,25 +34923,25 @@ tools you will get a JSON blob with the / escaped as 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"
    -        }
    -    ],
    -}
    +
    {
    +    "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.

    China Mobile Ecloud Elastic Object Storage (EOS)

    Here is an example of making an China +href="https://ecloud.10086.cn/home/product-introduction/eos/">China Mobile Ecloud Elastic Object Storage (EOS) configuration. First run:

    rclone config
    @@ -33212,6 +35184,107 @@ y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y +

    Clever Cloud Cellar

    +

    Cellar +is the S3-compatible object storage service of Clever Cloud, hosted in France. +Credentials and the endpoint are shown in the Cellar add-on dashboard, +or in the CELLAR_ADDON_KEY_ID, +CELLAR_ADDON_KEY_SECRET and CELLAR_ADDON_HOST +environment variables of applications linked to it.

    +

    Cellar does not apply Object Lock headers sent when initiating a +multipart upload. When setting Object Lock retention or legal hold +options, also set --s3-object-lock-set-after-upload: the +lock is then applied with separate API calls after the upload, so the +object is not protected by these settings until those calls succeed.

    +

    Cellar supports server-side encryption with customer-provided keys +(SSE-C), set with sse_customer_algorithm and +sse_customer_key_base64. It rejects server-side copies of +SSE-C objects unless they are done as multipart copies, so use +--no-update-modtime to avoid modification time updates, and +expect server-side moves and renames of encrypted objects smaller than +--s3-copy-cutoff to fail. See the Cellar +SSE-C documentation.

    +

    First run:

    +
    rclone config
    +
    This will guide you through an interactive setup process:
    +
    +n) New remote
    +n/s/q> n
    +
    +Enter name for new remote.
    +name> cellar
    +
    +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, ..., Cellar, ... and others
    +   \ (s3)
    +Storage> s3
    +
    +Option provider.
    +Choose your S3 provider.
    +[snip]
    +XX / Clever Cloud Cellar Object Storage
    +   \ (Cellar)
    +provider> Cellar
    +
    +Option env_auth.
    +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
    + 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.
    +access_key_id> ACCESS_KEY
    +
    +Option secret_access_key.
    +AWS Secret Access Key (password).
    +secret_access_key> SECRET_KEY
    +
    +Option endpoint.
    +Endpoint for S3 API.
    + 1 / Paris, France
    +   \ (cellar-c2.services.clever-cloud.com)
    +endpoint> 1
    +
    +Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +[snip]
    +acl> 1
    +
    +Option bucket_object_lock_enabled.
    +Enable Object Lock when creating new buckets.
    +bucket_object_lock_enabled>
    +
    +Edit advanced config?
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: Cellar
    +- access_key_id: ACCESS_KEY
    +- secret_access_key: SECRET_KEY
    +- endpoint: cellar-c2.services.clever-cloud.com
    +- acl: private
    +Keep this "cellar" remote?
    +y/e/d> y
    +

    This will leave the config file looking like this.

    +
    [cellar]
    +type = s3
    +provider = Cellar
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +endpoint = cellar-c2.services.clever-cloud.com
    +acl = private

    Cloudflare R2

    Cloudflare R2 Storage allows developers to store large amounts of unstructured data @@ -33289,15 +35362,15 @@ 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
    +
    [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.

    For R2 tokens with the "Object Read & Write" permission, you may @@ -33335,14 +35408,14 @@ region> eu-west-1 (or leave empty) endpoint> s3.cubbit.eu (or s3.{tenant_name}.cubbit.eu) acl>

    The resulting configuration file should look like:

    -
    [cubbit-ds3]
    -type = s3
    -provider = Cubbit
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_KEY
    -region = eu-west-1
    -endpoint = s3.cubbit.eu
    +
    [cubbit-ds3]
    +type = s3
    +provider = Cubbit
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +region = eu-west-1
    +endpoint = s3.cubbit.eu

    You can then start using Cubbit DS3 with rclone. For example, to create a new bucket and copy files into it, you can run:

    rclone mkdir cubbit-ds3:my-bucket
    @@ -33377,19 +35450,19 @@ 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 =
    +
    [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
    @@ -33401,19 +35474,19 @@ 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 =
    +
    [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 =

    Exaba

    Exaba is an on-premises, S3-compatible storage for service providers and large enterprises. It is @@ -33474,13 +35547,13 @@ y) Yes n) No (default) y/n> n

    And the config generated will end up looking like this:

    -
    [exaba]
    -type = s3
    -provider = Exaba
    -access_key_id = XXX
    -secret_access_key = XXX
    -endpoint = http://127.0.0.1:9000/
    +
    [exaba]
    +type = s3
    +provider = Exaba
    +access_key_id = XXX
    +secret_access_key = XXX
    +endpoint = http://127.0.0.1:9000/

    Fastly Object Storage

    Fastly Object Storage is an S3-compatible object storage service from Fastly. It @@ -33546,14 +35619,14 @@ e) Edit this remote d) Delete this remote y/e/d> y

    The resulting configuration file should look like:

    -
    [fastly]
    -type = s3
    -provider = Fastly
    -access_key_id = YOUR_ACCESS_KEY
    -secret_access_key = YOUR_SECRET_KEY
    -region = us-east
    -endpoint = us-east.object.fastlystorage.app
    +
    [fastly]
    +type = s3
    +provider = Fastly
    +access_key_id = YOUR_ACCESS_KEY
    +secret_access_key = YOUR_SECRET_KEY
    +region = us-east
    +endpoint = us-east.object.fastlystorage.app

    Google Cloud Storage

    GoogleCloudStorage is @@ -33564,13 +35637,13 @@ object storage service from Google Cloud Platform.

    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
    +
    [gs]
    +type = s3
    +provider = GCS
    +access_key_id = your_access_key
    +secret_access_key = your_secret_key
    +endpoint = https://storage.googleapis.com

    Note that --s3-versions does not work with GCS when it needs to do directory paging. Rclone will return the error:

    @@ -33702,15 +35775,15 @@ s) Set configuration password q) Quit config e/n/d/r/c/s/q>

    This will leave the config file looking like this.

    -
    [my-hetzner]
    -type = s3
    -provider = Hetzner
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_KEY
    -region = hel1
    -endpoint = hel1.your-objectstorage.com
    -acl = private
    +
    [my-hetzner]
    +type = s3
    +provider = Hetzner
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +region = hel1
    +endpoint = hel1.your-objectstorage.com
    +acl = private

    Hitachi Content Platform (HCP)

    Here is an example of making a Hitachi @@ -33797,13 +35870,13 @@ s) Set configuration password q) Quit config e/n/d/r/c/s/q>

    This will leave the config file looking like this.

    -
    [my-hcp]
    -type = s3
    -provider = HCP
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_KEY
    -endpoint = https://hcp.example.com
    +
    [my-hcp]
    +type = s3
    +provider = HCP
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +endpoint = https://hcp.example.com

    Known limitations

    These limitations have been observed with HCP version 9.7.x.

    Automatic directory objects

    @@ -33831,15 +35904,15 @@ 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
    +
    [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
    @@ -34068,15 +36141,15 @@ Choose a number from below, or type in your own value
     acl> 1
  • Review the displayed configuration and accept to save the "remote" then quit. The config file should look like this

    -
    [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
  • +
    [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
  • Execute rclone commands

  • 1) Create a bucket.
    @@ -34377,15 +36450,121 @@ s) Set configuration password
     q) Quit config
     e/n/d/r/c/s/q> 

    This will leave the config file looking like this.

    -
    [my-impossible-cloud]
    -type = s3
    -provider = ImpossibleCloud
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_KEY
    -region = eu-central-2
    -endpoint = eu-central-2.storage.impossibleapi.net
    -acl = private
    +
    [my-impossible-cloud]
    +type = s3
    +provider = ImpossibleCloud
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +region = eu-central-2
    +endpoint = eu-central-2.storage.impossibleapi.net
    +acl = private
    +

    Infomaniak Swiss Backup

    +

    Infomaniak +Swiss Backup is a cloud backup space in Switzerland that you can use +however you want with the script or software of your choice that is +compatible with Swift, S3 or SFTP.

    +

    Prerequisites

    +

    Create and setup your Swiss Backup product following this +documentation. Memorize the generated Endpoint, +Access Key, and Secret Key:

    +

    Configuration

    +

    To configure access to an S3 location on Swiss Backup, 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 +'swissbackup'.
    2. +
    +
      name> swissbackup
    +
      +
    1. Select s3 storage.
    2. +
    +
      Type of storage to configure.
    +  XX / Amazon S3 Compliant Storage Providers including AWS, ... - Tier 1
    +    \ (s3)
    +  Storage> s3
    +
      +
    1. Select Infomaniak provider.
    2. +
    +
     Choose your S3 provider.
    + xx / Infomaniak Swiss Backup
    +    \ (Infomaniak)
    + provider> Infomaniak
    +
      +
    1. Enter your Access Key and Secret Key. You can generate new ones +by clicking 'Generate new keys' on your Swiss Backup product +dashboard.
    2. +
    +
      Option env_auth.
    +  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.
    +  access_key_id> {YOUR-ACCESS-ID}
    +
    +  AWS Secret Access Key (password)
    +  secret_access_key> {YOUR-ACCESS-SECRET}
    +
      +
    1. Select us-east-1 region for compatibility.
    2. +
    +
      Region to connect to.
    +    / Default region for compatibility.
    +  1 | All data is stored in Switzerland.
    +    \ (us-east-1)
    +  region> 1
    +
      +
    1. Select the endpoint corresponding to the one generated with your +Access and Secret Keys.
    2. +
    +
      Endpoint for S3 API.
    +  1 / Swiss Backup Location 01
    +    \ (s3.swiss-backup01.infomaniak.com)
    +  2 / Swiss Backup Location 02
    +    \ (s3.swiss-backup02.infomaniak.com)
    +  3 / Swiss Backup Location 03
    +    \ (s3.swiss-backup03.infomaniak.com)
    +  4 / Swiss Backup Location 04
    +    \ (s3.swiss-backup04.infomaniak.com)
    +  endpoint> 1
    +
      +
    1. Adjust other parameters and advanced config at your convenience. +Leave blank if not sure.

    2. +
    3. You should obtain something like this.

    4. +
    +
      Configuration complete.
    +  Options:
    +  - type: s3
    +  - provider: Infomaniak
    +  - access_key_id: xxxxxxxxxx
    +  - secret_access_key: xxxxxxxxxx
    +  - region: us-east-1
    +  - endpoint: s3.swiss-backup01.infomaniak.com
    +
      +
    1. Press y to validate. Then q to quit.
    2. +

    Intercolo Object Storage

    Intercolo Object Storage offers GDPR-compliant, transparently priced, S3-compatible @@ -34496,14 +36675,14 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [intercolo]
    -type = s3
    -provider = Intercolo
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_KEY
    -region = de-fra
    -endpoint = de-fra.i3storage.com
    +
    [intercolo]
    +type = s3
    +provider = Intercolo
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +region = de-fra
    +endpoint = de-fra.i3storage.com

    IONOS Cloud

    IONOS S3 Object Storage is a service offered by IONOS for storing and @@ -34811,19 +36990,19 @@ e) Edit this remote d) Delete this remote y/e/d> y

    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 =
    +
    [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 =

    Linode

    Here is an example of making a Linode Object @@ -34963,13 +37142,17 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [linode]
    -type = s3
    -provider = Linode
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_ACCESS_KEY
    -endpoint = eu-central-1.linodeobjects.com
    +
    [linode]
    +type = s3
    +provider = Linode
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_ACCESS_KEY
    +endpoint = eu-central-1.linodeobjects.com
    +

    Linode Object Storage is Ceph-backed. Rclone defaults +sign_accept_encoding to false for this provider so SigV4 +requests do not fail with SignatureDoesNotMatch (see the Ceph section).

    Magalu

    Here is an example of making a Magalu Object Storage @@ -35071,13 +37254,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [magalu]
    -type = s3
    -provider = Magalu
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_ACCESS_KEY
    -endpoint = br-ne1.magaluobjects.com
    +
    [magalu]
    +type = s3
    +provider = Magalu
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_ACCESS_KEY
    +endpoint = br-ne1.magaluobjects.com

    MEGA S4

    MEGA S4 Object Storage is an S3 compatible object storage system. It has a single pricing tier @@ -35170,13 +37353,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [megas4]
    -type = s3
    -provider = Mega
    -access_key_id = XXX
    -secret_access_key = XXX
    -endpoint = s3.eu-central-1.s4.mega.io
    +
    [megas4]
    +type = s3
    +provider = Mega
    +access_key_id = XXX
    +secret_access_key = XXX
    +endpoint = s3.eu-central-1.s4.mega.io

    Minio

    Minio is an object storage server built for cloud application developers and devops.

    @@ -35215,19 +37398,163 @@ 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 =
    +
    [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
    +

    Neon Object Storage

    +

    Neon Object +Storage is S3 compatible object storage in a Neon project. Each +branch of the project has its own copy of the buckets and its own S3 +endpoint. The endpoint looks like +https://<branch_id>.storage.<cell>.<region>.aws.neon.tech.

    +

    In the Neon Console, click Connect, open the +Storage tab and choose Parameters +only. Use AWS_ACCESS_KEY_ID, +AWS_SECRET_ACCESS_KEY, AWS_ENDPOINT_URL_S3 and +AWS_REGION as access_key_id, +secret_access_key, endpoint and +region. To make a separate credential, use +Settings > Credentials or run +neon credentials create --scope storage:read --scope storage:write.

    +

    A credential works on the branch it was made on and on that branch's +child branches. To use a child branch, change only +endpoint.

    +

    Neon also has these limits (see the S3 compatibility +docs):

    + +

    Here is an example of making a Neon Object Storage 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
    +
    +Enter name for new remote.
    +name> neon
    +
    +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, ... Neon, ...
    +   \ (s3)
    +[snip]
    +Storage> s3
    +
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    +XX / Neon Object Storage
    +   \ (Neon)
    +[snip]
    +provider> Neon
    +
    +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> NEON_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> NEON_SECRET_ACCESS_KEY
    +
    +Option region.
    +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.
    + 1 / US East (N. Virginia)
    +   \ (us-east-1)
    + 2 / US East (Ohio)
    +   \ (us-east-2)
    + 3 / Europe (Frankfurt)
    +   \ (eu-central-1)
    + 4 / Asia Pacific (Singapore)
    +   \ (ap-southeast-1)
    +region> us-east-2
    +
    +Option endpoint.
    +Endpoint for S3 API.
    +Required when using an S3 clone.
    +Enter a value. Press Enter to leave empty.
    +endpoint> https://<branch_id>.storage.<cell>.<region>.aws.neon.tech
    +
    +Option bucket_object_lock_enabled.
    +Enable Object Lock when creating new buckets.
    +Enter a boolean value (true or false). Press Enter for the default (false).
    +bucket_object_lock_enabled>
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: Neon
    +- access_key_id: NEON_ACCESS_KEY_ID
    +- secret_access_key: NEON_SECRET_ACCESS_KEY
    +- region: us-east-2
    +- endpoint: https://<branch_id>.storage.<cell>.<region>.aws.neon.tech
    +Keep this "neon" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    This will leave the config file looking like this.

    +
    [neon]
    +type = s3
    +provider = Neon
    +access_key_id = NEON_ACCESS_KEY_ID
    +secret_access_key = NEON_SECRET_ACCESS_KEY
    +region = us-east-2
    +endpoint = https://<branch_id>.storage.<cell>.<region>.aws.neon.tech

    Netease NOS

    For Netease NOS configure as per the configurator rclone config setting the provider Netease. @@ -35243,16 +37570,16 @@ href="https://docs.outscale.com/en/userguide/OUTSCALE-Object-Storage-OOS.html">o documentation.

    Here is an example of an OOS configuration that you can paste into your rclone configuration file:

    -
    [outscale]
    -type = s3
    -provider = Outscale
    -env_auth = false
    -access_key_id = ABCDEFGHIJ0123456789
    -secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    -region = eu-west-2
    -endpoint = oos.eu-west-2.outscale.com
    -acl = private
    +
    [outscale]
    +type = s3
    +provider = Outscale
    +env_auth = false
    +access_key_id = ABCDEFGHIJ0123456789
    +secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    +region = eu-west-2
    +endpoint = oos.eu-west-2.outscale.com
    +acl = private

    You can also run rclone config to go through the interactive setup process:

    No remotes found, make a new one\?
    @@ -35546,15 +37873,15 @@ e) Edit this remote
     d) Delete this remote
     y/e/d> y

    Your configuration file should now look like this:

    -
    [ovhcloud-rbx]
    -type = s3
    -provider = OVHcloud
    -access_key_id = my_access
    -secret_access_key = my_secret
    -region = rbx
    -endpoint = s3.rbx.io.cloud.ovh.net
    -acl = private
    +
    [ovhcloud-rbx]
    +type = s3
    +provider = OVHcloud
    +access_key_id = my_access
    +secret_access_key = my_secret
    +region = rbx
    +endpoint = s3.rbx.io.cloud.ovh.net
    +acl = private

    Petabox

    Here is an example of making a Petabox configuration. First run:

    @@ -35695,14 +38022,14 @@ e) Edit this remote d) Delete this remote y/e/d> y

    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
    +
    [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

    Pure Storage FlashBlade

    Pure @@ -35797,13 +38124,13 @@ d) Delete this remote y/e/d> y

    This results in the following configuration being stored in ~/.config/rclone/rclone.conf:

    -
    [flashblade]
    -type = s3
    -provider = FlashBlade
    -access_key_id = ACCESS_KEY_ID
    -secret_access_key = SECRET_ACCESS_KEY
    -endpoint = https://s3.flashblade.example.com
    +
    [flashblade]
    +type = s3
    +provider = FlashBlade
    +access_key_id = ACCESS_KEY_ID
    +secret_access_key = SECRET_ACCESS_KEY
    +endpoint = https://s3.flashblade.example.com

    Note: The FlashBlade endpoint should be the S3 data VIP. For virtual-hosted style requests, ensure proper DNS configuration: subdomains of the endpoint hostname should resolve to a FlashBlade data @@ -36080,13 +38407,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [s5lu]
    -type = s3
    -provider = FileLu
    -access_key_id = XXX
    -secret_access_key = XXX
    -endpoint = s5lu.com
    +
    [s5lu]
    +type = s3
    +provider = FileLu
    +access_key_id = XXX
    +secret_access_key = XXX
    +endpoint = s5lu.com

    Rabata

    Rabata is an S3-compatible secure cloud storage service that offers flat, transparent pricing (no API @@ -36223,16 +38550,16 @@ 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
    +
    [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

    Rclone Serve S3

    Rclone can serve any remote over the S3 protocol. For details see the rclone serve @@ -36242,18 +38569,133 @@ server like this:

    rclone serve s3 --auth-key ACCESS_KEY_ID,SECRET_ACCESS_KEY remote:path

    This will be compatible with an rclone remote which is defined like this:

    -
    [serves3]
    -type = s3
    -provider = Rclone
    -endpoint = http://127.0.0.1:8080/
    -access_key_id = ACCESS_KEY_ID
    -secret_access_key = SECRET_ACCESS_KEY
    -use_multipart_uploads = false
    +
    [serves3]
    +type = s3
    +provider = Rclone
    +endpoint = http://127.0.0.1:8080/
    +access_key_id = ACCESS_KEY_ID
    +secret_access_key = SECRET_ACCESS_KEY
    +use_multipart_uploads = false

    Note that setting use_multipart_uploads = false is to work around a bug which will be fixed in due course.

    +

    RelAix.Storage

    +

    RelAix.Storage is S3 compatible object storage from RelAix Networks, operated in its own +data centres in Aachen, Germany. There are two locations, Aachen-1 and +Aachen-2, each with its own endpoint. Buckets and data stay at the +location of the endpoint you use.

    +

    You get an access key and a secret key from RelAix Networks. 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
    +
    +Enter name for new remote.
    +name> my-relaix
    +
    +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, ...
    +   \ (s3)
    +[snip]
    +Storage> s3
    +
    +Option provider.
    +Choose your S3 provider.
    +Choose a number from below, or type in your own value.
    +Press Enter to leave empty.
    +[snip]
    +XX / RelAix.Storage
    +   \ (RelAix)
    +[snip]
    +provider> RelAix
    +
    +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> 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_KEY
    +
    +Option endpoint.
    +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 / Aachen-1, Germany
    +   \ (s3-gw1.relaix.net)
    + 2 / Aachen-2, Germany
    +   \ (s3-gw2.relaix.net)
    +endpoint> 1
    +
    +Option acl.
    +Canned ACL used when creating buckets and storing or copying objects.
    +[snip]
    +acl>
    +
    +Option bucket_object_lock_enabled.
    +Enable Object Lock when creating new buckets.
    +Enter a boolean value (true or false). Press Enter for the default (false).
    +bucket_object_lock_enabled>
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: s3
    +- provider: RelAix
    +- access_key_id: ACCESS_KEY
    +- secret_access_key: SECRET_KEY
    +- endpoint: s3-gw1.relaix.net
    +Keep this "my-relaix" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    This will leave the config file looking like this.

    +
    [my-relaix]
    +type = s3
    +provider = RelAix
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_KEY
    +endpoint = s3-gw1.relaix.net
    +

    Object Lock can only be enabled when a bucket is created. To create +buckets with Object Lock, set +bucket_object_lock_enabled = true before running +rclone mkdir.

    +

    To lock objects on upload with object_lock_mode, also +set object_lock_set_after_upload = true. RelAix.Storage +does not yet apply Object Lock headers sent with multipart uploads, so +rclone needs to set the lock in a separate call after the upload.

    Scaleway

    Scaleway The Object Storage platform allows you to store anything from backups, logs @@ -36262,20 +38704,20 @@ 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 = nl-ams
    -acl = private
    -upload_cutoff = 5M
    -chunk_size = 5M
    -copy_cutoff = 5M
    +
    [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 = nl-ams
    +acl = private
    +upload_cutoff = 5M
    +chunk_size = 5M
    +copy_cutoff = 5M

    Scaleway Glacier is the low-cost S3 Glacier alternative from Scaleway and it works the same way as on S3 by accepting the "GLACIER" @@ -36390,13 +38832,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [scality]
    -type = s3
    -provider = Scality
    -access_key_id = S3_ACCESS_KEY
    -secret_access_key = S3_SECRET_KEY
    -endpoint = https://s3.example.com
    +
    [scality]
    +type = s3
    +provider = Scality
    +access_key_id = S3_ACCESS_KEY
    +secret_access_key = S3_SECRET_KEY
    +endpoint = https://s3.example.com

    Seagate Lyve Cloud

    Seagate @@ -36489,13 +38931,13 @@ Press Enter to leave empty. [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
    +
    [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, @@ -36531,13 +38973,13 @@ such:

    }

    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
    +
    [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

    Selectel

    @@ -36640,14 +39082,14 @@ e) Edit this remote d) Delete this remote y/e/d> y

    And your config should end up looking like this:

    -
    [selectel]
    -type = s3
    -provider = Selectel
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_ACCESS_KEY
    -region = ru-1
    -endpoint = s3.ru-1.storage.selcloud.ru
    +
    [selectel]
    +type = s3
    +provider = Selectel
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_ACCESS_KEY
    +region = ru-1
    +endpoint = s3.ru-1.storage.selcloud.ru

    Servercore

    Servercore Object Storage is an S3 compatible object storage system that @@ -36840,13 +39282,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    And your config should end up looking like this:

    -
    [spectratest]
    -type = s3
    -provider = SpectraLogic
    -access_key_id = ACCESS_KEY
    -secret_access_key = SECRET_ACCESS_KEY
    -endpoint = https://bp.example.com
    +
    [spectratest]
    +type = s3
    +provider = SpectraLogic
    +access_key_id = ACCESS_KEY
    +secret_access_key = SECRET_ACCESS_KEY
    +endpoint = https://bp.example.com

    Storj

    Storj is a decentralized cloud storage which can be used through its native protocol or an S3 compatible gateway.

    @@ -37395,19 +39837,19 @@ 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 =
    +
    [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 =

    Zadara Object Storage

    Zadara Object Storage is a fully-managed, enterprise-grade, S3-compatible storage solution that @@ -37507,13 +39949,13 @@ e) Edit this remote d) Delete this remote y/e/d> y

    This will leave the config file looking like this.

    -
    [Zadara-Object-Storage]
    -type = s3
    -provider = Zadara
    -access_key_id = S3_ACCESS_KEY
    -secret_access_key = S3_SECRET_KEY
    -endpoint = https://vsa-00000001-public-zadara-cloud-01.zadarazios.com
    +
    [Zadara-Object-Storage]
    +type = s3
    +provider = Zadara
    +access_key_id = S3_ACCESS_KEY
    +secret_access_key = S3_SECRET_KEY
    +endpoint = https://vsa-00000001-public-zadara-cloud-01.zadarazios.com

    Zata Object Storage

    Zata Object Storage provides a secure, S3-compatible cloud storage solution designed for scalability and @@ -37649,14 +40091,14 @@ e) Edit this remote d) Delete this remote y/e/d>

    This will leave the config file looking like this.

    -
    [my zata storage]
    -type = s3
    -provider = Zata
    -access_key_id = xxx
    -secret_access_key = xxx
    -region = us-east-1
    -endpoint = idr01.zata.ai
    +
    [my zata storage]
    +type = s3
    +provider = Zata
    +access_key_id = xxx
    +secret_access_key = xxx
    +region = us-east-1
    +endpoint = idr01.zata.ai

    Zero Services (ZERO-Z3)

    Zero Services GmbH offers ZERO-Z3, S3-compatible object storage hosted in the EU on its own @@ -37805,7 +40247,7 @@ archive extract

    These commands supports a wider range of non cloud friendly archives (but not squashfs) but can't be used for rclone mount or any other rclone commands (eg rclone check).

    -

    Configuration

    +

    Configuration

    This backend is best used without configuration.

    Use it by putting the string :archive: in front of another remote, say remote:dir to make @@ -37851,7 +40293,7 @@ gigi hevupaz5z kacak/ ... -

    Modification times

    +

    Modification times

    Modification times are preserved with an accuracy depending on the archive type.

    $ rclone lsl --max-depth 1 :archive:s3:rclone/dir/100files.zip
    @@ -37928,6 +40370,21 @@ number"
     

    Rclone works fastest with large squashfs block sizes. For example:

    mksquashfs 100files 100files.sqfs -comp zstd -b 1M
    + +

    Symlinks stored in an archive are skipped unless the +-l/--links flag is supplied, as they are on the other +backends. With the flag they are listed with a .rclonelink +suffix and read back as the path they point at, the same convention the +local +backend uses, so they can be copied back as symlinks:

    +
    $ rclone lsl --links :archive:/tmp/test.zip
    +        5 2026-09-28 14:16:59.000000000 src/file.txt
    +        8 2026-09-28 14:16:59.000000000 src/link.txt.rclonelink
    +$ rclone cat --links :archive:/tmp/test.zip/src/link.txt.rclonelink
    +file.txt
    +$ rclone copy --links :archive:/tmp/test.zip /tmp/out
    +$ ls -l /tmp/out/src/link.txt
    +lrwxr-xr-x 1 user user 8 Sep 28 14:16 /tmp/out/src/link.txt -> file.txt

    Limitations

    Files in the archive backend are read only. It isn't possible to create archives with the archive backend yet. However you @@ -38098,7 +40555,7 @@ 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

    +

    Configuration

    Here is an example of making a b2 configuration. First run

    rclone config

    This will guide you through an interactive setup process. To @@ -38165,7 +40622,7 @@ then B2 will return 401 errors.

    fewer transactions in exchange for more memory. See the rclone docs for more details.

    -

    Modification times

    +

    Modification times

    The modification 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 @@ -38528,6 +40985,10 @@ 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.

    +

    Rclone will not follow a redirect from this endpoint which downgrades +HTTPS to HTTP, and will not send the "Authorization" header or the SSE-C +key headers once a redirect has left the host and port of this +endpoint.

    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}".

    @@ -38614,7 +41075,7 @@ storing this object in B2.

    --b2-sse-customer-key

    To use SSE-C, you may provide the secret encryption key encoded in a UTF-8 compatible string to encrypt/decrypt your data

    -

    Alternatively you can provide --sse-customer-key-base64.

    +

    Alternatively you can provide --b2-sse-customer-key-base64.

    Properties:

    • Config: sse_customer_key
    • @@ -38632,7 +41093,7 @@ UTF-8 compatible string to encrypt/decrypt your data

      --b2-sse-customer-key-base64

      To use SSE-C, you may provide the secret encryption key encoded in Base64 format to encrypt/decrypt your data

      -

      Alternatively you can provide --sse-customer-key.

      +

      Alternatively you can provide --b2-sse-customer-key.

      Properties:

      • Config: sse_customer_key_base64
      • @@ -38693,15 +41154,15 @@ bucket.

        To show the current lifecycle rules:

        rclone backend lifecycle b2:bucket

        This will dump something like this showing the lifecycle rules.

        -
        [
        -    {
        -        "daysFromHidingToDeleting": 1,
        -        "daysFromUploadingToHiding": null,
        -        "daysFromStartingToCancelingUnfinishedLargeFiles": null,
        -        "fileNamePrefix": ""
        -    }
        -]
        +
        [
        +    {
        +        "daysFromHidingToDeleting": 1,
        +        "daysFromUploadingToHiding": null,
        +        "daysFromStartingToCancelingUnfinishedLargeFiles": null,
        +        "fileNamePrefix": ""
        +    }
        +]

        If there are no lifecycle rules (the default) then it will just return [].

        To reset the current lifecycle rules:

        @@ -38765,7 +41226,7 @@ href="https://rclone.org/commands/rclone_about/">rclone about.

        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

        +

        Configuration

        Here is an example of how to make a remote called remote. First run:

        rclone config
        @@ -38853,10 +41314,11 @@ using the same procedure detailed above in the, using the password you have just set.

        Invalid refresh token

        According to the box +href="https://developer.box.com/guides/authentication/tokens/refresh/">box docs:

        -

        Each refresh_token is valid for one use in 60 days.

        +

        A Refresh Token is valid for 60 days and can be used to obtain a new +Access Token and Refresh Token only once.

        This means that if you

          @@ -39266,7 +41728,7 @@ 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

          +

          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 @@ -39878,7 +42340,7 @@ href="https://rclone.org/rc/#backend-command">backend/command.

          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

          +

          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.

          @@ -40090,7 +42552,7 @@ 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.

          -

          Modification times

          +

          Modification times

          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 @@ -40366,7 +42828,7 @@ pricing details.

          Securing Your Credentials

          Please refer to the docs

          -

          Configuration

          +

          Configuration

          Here is an example of making a Cloudinary configuration.

          First, create a cloudinary.com @@ -40561,7 +43023,7 @@ ts u3ma usdz wdp webm webp wmv]

          Citrix ShareFile

          Citrix ShareFile is a secure file sharing and transfer service aimed as business.

          -

          Configuration

          +

          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.

          @@ -40970,7 +43432,7 @@ 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 be turned off.

          -

          Configuration

          +

          Configuration

          Here is an example of how to make a remote called secret.

          To use crypt, first set up the underlying remote. Follow @@ -41620,6 +44082,14 @@ on the cloud storage system.

        • filenames with the same name will encrypt the same
        • filenames which start the same won't have a common prefix
        +

        A version string of the form -vYYYY-MM-DD-HHMMSS-NNN on +the end of a file name (as added by --b2-versions / +--s3-versions) is left in plain text so that versioned +files can be found. Directory names are encrypted in full. Rclone before +v1.76 left such a suffix in plain text on directory names too, so a +directory named like this created by an older rclone will appear in +listings with a warning but can't be opened or removed until renamed on +the underlying remote to the name given in the warning.

        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 @@ -41640,7 +44110,7 @@ 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

        +

        See Also

        • rclone cryptdecode - Show forward/reverse mapping of encrypted @@ -41655,7 +44125,7 @@ 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

          +

          Configuration

          To use this remote, all you need to do is specify another remote and a compression mode to use:

          $ rclone config
          @@ -41875,7 +44345,7 @@ the config like this

          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

          +

          Configuration

          Here is an example of how to make a combine called remote for the example above. First run:

          rclone config
          @@ -41921,18 +44391,18 @@ the shared drives you have access to.

          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:"
          +
          [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.

          @@ -41998,7 +44468,7 @@ repositories
        • Paths are specified as remote:path

          Paths may be as deep as required, e.g. remote:directory/subdirectory.

          -

          Configuration

          +

          Configuration

          Here is an example of how to make a remote called remote. First run:

          rclone config
          @@ -42133,6 +44603,255 @@ 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.

          +

          dosya.dev

          +

          dosya.dev is a cloud file storage, +sharing, and synchronization platform with workspace-based +multi-tenancy, file versioning, and team collaboration features.

          +

          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
          +
          +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 / dosya.dev
          +   \ (dosya)
          +Storage> dosya
          +
          +Option api_key.
          +Your API Key, get it from https://dosya.dev/profile under "API keys".
          +Enter a value.
          +api_key> dos_YOURAPIKEY
          +
          +Option workspace_id.
          +Your workspace ID.
          +
          +Leave this blank to use the one workspace the API key can reach, which
          +is what a key restricted to a single workspace does. If the key can
          +reach several, rclone will refuse and list their IDs for you to choose
          +from.
          +Enter a value. Press Enter to leave empty.
          +workspace_id>
          +
          +Edit advanced config?
          +y) Yes
          +n) No (default)
          +y/n> n
          +
          +Configuration complete.
          +Options:
          +- type: dosya
          +- api_key: dos_YOURAPIKEY
          +Keep this "remote" remote?
          +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 +(replace remote with the name you gave your remote):

          +

          List directories and files in the top level of your dosya +workspace

          +
          rclone lsf remote:
          +

          To copy a local directory to a dosya directory called backup

          +
          rclone copy /home/source remote:backup
          +

          The dosya backend uploads large files in parts and stores them as +single files that remain accessible through the web app and other +clients. If you previously used a WebDAV remote with a chunker overlay +for large uploads, you can use this backend without the overlay.

          +

          Getting your API key

          +
            +
          1. Log in to dosya.dev
          2. +
          3. Go to Profile > +API keys
          4. +
          5. Create a new API key
          6. +
          7. Copy the key (starts with dos_)
          8. +
          +

          A key can be restricted to a single workspace when you create it, +which is the simplest thing to do for rclone: workspace_id +can then be left out of the config entirely.

          +

          Workspaces

          +

          Leave workspace_id blank and rclone asks which +workspaces the key can reach. A key restricted to one workspace, and an +account that has only one, both resolve without any configuration. If +the key can reach several, rclone refuses and lists their IDs so you can +set the one you want:

          +
          this API key can reach 2 workspaces, so workspace_id must be set to one of:
          +    ws_AAAAAAAA (Work)
          +    ws_BBBBBBBB (Personal)
          +

          To access several workspaces at once, create a separate remote for +each:

          +
          rclone config create work dosya api_key=dos_XXX workspace_id=ws_WORK
          +rclone config create personal dosya api_key=dos_XXX workspace_id=ws_PERSONAL
          +

          Then use them independently:

          +
          rclone ls work:
          +rclone copy work:docs/ personal:backup/
          +

          Modification times and +hashes

          +

          dosya.dev supports modification times with a resolution of 1 second. +The modification time is sent with the upload, so a copied or synced +file keeps its original timestamp. Modification times cannot be changed +after upload without re-uploading the file.

          +

          dosya.dev supports SHA-256 checksums. The server computes the hash of +a single-shot (small file) upload from the bytes it receives, so +rclone check and hash-based sync work without downloading. +Large files uploaded in multiple parts have no server-side hash (the +parts are never re-read to hash the whole object), the same limitation +the S3 backend has for multipart objects; those objects report an empty +hash.

          +

          Restricted filename +characters

          +

          In addition to the default +restricted characters set the following characters are also +replaced:

          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
          CharacterValueReplacement
          "0x22"
          '0x27'
          <0x3C<
          >0x3E>
          \0x5C\
          +

          Invalid UTF-8 bytes will also be replaced, as they +can't be used in JSON strings.

          + +

          dosya.dev supports rclone link to create public share +links to files. You can use the --expire flag to specify +how long the link should be valid.

          +
          rclone link remote:path/to/file.txt
          +rclone link --expire 7d remote:path/to/file.txt
          + + +

          Standard options

          +

          Here are the Standard options specific to dosya (dosya.dev).

          +

          --dosya-api-key

          +

          Your API Key, get it from https://dosya.dev/profile under "API +keys".

          +

          Properties:

          +
            +
          • Config: api_key
          • +
          • Env Var: RCLONE_DOSYA_API_KEY
          • +
          • Type: string
          • +
          • Required: true
          • +
          +

          --dosya-workspace-id

          +

          Your workspace ID.

          +

          Leave this blank to use the one workspace the API key can reach, +which is what a key restricted to a single workspace does. If the key +can reach several, rclone will refuse and list their IDs for you to +choose from.

          +

          Properties:

          +
            +
          • Config: workspace_id
          • +
          • Env Var: RCLONE_DOSYA_WORKSPACE_ID
          • +
          • Type: string
          • +
          • Required: false
          • +
          +

          Advanced options

          +

          Here are the Advanced options specific to dosya (dosya.dev).

          +

          --dosya-api-url

          +

          API base URL.

          +

          Properties:

          +
            +
          • Config: api_url
          • +
          • Env Var: RCLONE_DOSYA_API_URL
          • +
          • Type: string
          • +
          • Default: "https://api.dosya.dev"
          • +
          +

          --dosya-upload-concurrency

          +

          Concurrency for multipart uploads.

          +

          This is the number of parts of the same file that are uploaded +concurrently. The first part is always uploaded on its own, because the +server creates the upload when it receives it.

          +

          Each part in flight is held in memory, so memory use grows with this +value times the part size the server chooses.

          +

          If you are uploading 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_DOSYA_UPLOAD_CONCURRENCY
          • +
          • Type: int
          • +
          • Default: 4
          • +
          +

          --dosya-encoding

          +

          The encoding for the backend.

          +

          See the encoding +section in the overview for more info.

          +

          Properties:

          +
            +
          • Config: encoding
          • +
          • Env Var: RCLONE_DOSYA_ENCODING
          • +
          • Type: Encoding
          • +
          • Default: +Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot
          • +
          +

          --dosya-description

          +

          Description of the remote.

          +

          Properties:

          +
            +
          • Config: description
          • +
          • Env Var: RCLONE_DOSYA_DESCRIPTION
          • +
          • Type: string
          • +
          • Required: false
          • +
          + +

          Limitations

          +

          dosya.dev only supports filenames up to 255 characters in length.

          +

          Empty files (0 bytes) cannot be uploaded to dosya.dev.

          +

          Upload requires knowing the file size in advance, so streaming +uploads of unknown-size files are not supported.

          +

          Each workspace limits the number of uploads a user can have in flight +at once (5 by default, configurable in the workspace settings). When +--transfers is set higher than that limit, rclone waits for +a free upload slot rather than failing the transfer, retrying every 5 +seconds for up to 10 minutes.

          +

          Deleting files and +directories

          +

          rclone deletes files and directories permanently, in a single request +(DELETE ?permanent=1), bypassing the workspace trash. +Removing a directory also asks the server whether it is empty +(?if_empty=1) rather than listing it first.

          Drime

          Drime is a cloud storage and transfer service focused on fast, resilient file delivery. It offers @@ -42141,7 +44860,7 @@ sharing.

          To setup Drime you need to log in, navigate to Settings, Developer, and create a token to use as an API access key. Give it a sensible name and copy the token for use in the config.

          -

          Configuration

          +

          Configuration

          Here is a run through of rclone config to make a remote called remote.

          Firstly run:

          @@ -42189,7 +44908,7 @@ y/e/d> y
    rclone lsf remote:

    To copy a local directory to a Drime directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Drime does not support modification times or hashes.

    This means that by default syncs will only use the size of the file @@ -42198,7 +44917,7 @@ to determine if it needs updating.

    the object was uploaded. For many operations this is sufficient to determine if it has changed. However files created with timestamps in the past will be missed by the sync if using --update.

    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -42263,7 +44982,7 @@ set

    To restrict rclone to the Files directory.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to drime (Drime).

    --drime-access-token

    API Access token

    @@ -42275,7 +44994,7 @@ set

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to drime (Drime).

    --drime-root-folder-id

    ID of the root folder

    @@ -42390,14 +45109,14 @@ Slash,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot
  • Required: false
  • -

    Limitations

    +

    Limitations

    Drime only supports filenames up to 255 bytes in length, where filenames are encoded in UTF8.

    Dropbox

    Paths are specified as remote:path

    Dropbox paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    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.

    @@ -42465,7 +45184,7 @@ and show you all Team Folders and your User Folder.

    A leading / for a Dropbox personal account will do nothing, but it will take an extra HTTP transaction so it should be avoided.

    -

    Modification times and +

    Modification times and hashes

    Dropbox supports modified times, but the only way to set a modification time is to re-upload the file.

    @@ -42477,7 +45196,7 @@ don't want this to happen use --size-only or

    Dropbox supports its own hash type which is checked for all transfers.

    -

    Restricted filename +

    Restricted filename characters

    @@ -42641,7 +45360,7 @@ supported formats at any time.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to dropbox (Dropbox).

    --dropbox-client-id

    OAuth Client Id.

    @@ -42663,7 +45382,7 @@ supported formats at any time.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to dropbox (Dropbox).

    --dropbox-token

    OAuth Access Token as a JSON blob.

    @@ -42974,7 +45693,7 @@ default based on the batch_mode in use.

  • Required: false
  • -

    Limitations

    +

    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 @@ -43048,7 +45767,7 @@ href="https://storagemadeeasy.com/about/">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

    +

    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.

    @@ -43126,14 +45845,14 @@ y/e/d> y

    To copy a local directory to an Enterprise File Fabric directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times 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 +

    Restricted filename characters

    The default @@ -43168,7 +45887,7 @@ for example

    The ID for "S3 Storage" would be 120673761.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to filefabric (Enterprise File Fabric).

    --filefabric-url

    @@ -43222,7 +45941,7 @@ https://docs.storagemadeeasy.com/organisationcloud/api-tokens

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to filefabric (Enterprise File Fabric).

    --filefabric-token

    @@ -43288,7 +46007,7 @@ upload and back up files from any internet-connected device.

    Note FileLu now has a fully featured S3 backend FileLu S5, an industry standard S3 compatible object store.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called filelu. First, run:

    rclone config
    @@ -43366,7 +46085,7 @@ two or three folders named "test_folders," the system may become confused and won't know which folder to move. In large storage systems, some clients have hundred of thousands of folders and a few millions of files, duplicate folder names or paths are quite common.

    -

    Modification Times and +

    Modification Times and Hashes

    FileLu supports both modification times and MD5 hashes.

    FileLu only supports filenames and folder names up to 255 characters @@ -43394,7 +46113,7 @@ running rclone has sufficient memory and CPU to handle these operations.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to filelu (FileLu Cloud Storage).

    --filelu-key

    @@ -43406,7 +46125,7 @@ Storage).

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to filelu (FileLu Cloud Storage).

    --filelu-upload-cutoff

    @@ -43450,7 +46169,7 @@ Slash,LtGt,DoubleQuote,SingleQuote,BackQuote,Dollar,Colon,Question,Asterisk,Pipe
  • Required: false
  • -

    Limitations

    +

    Limitations

    This backend uses a custom library implementing the FileLu API. While it supports file transfers, some advanced features may not yet be available. Please report any issues to the

    For further information, visit FileLu's website.

    Filen

    -

    Configuration

    +

    Configuration

    The initial setup for Filen requires that you get an API key for your account, currently this is only possible using the Filen CLI. @@ -43534,19 +46253,19 @@ y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y -

    Modification times and +

    Modification times and hashes

    Modification times are fully supported for files, for directories, only the creation time matters.

    Filen supports Blake3 hashes.

    -

    Restricted filename +

    Restricted filename characters

    Invalid UTF-8 bytes will be replaced

    API Key

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to filen (Filen).

    --filen-email

    Email of your Filen account

    @@ -43583,7 +46302,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to filen (Filen).

    --filen-upload-concurrency

    Concurrency for chunked uploads.

    @@ -43676,7 +46395,7 @@ username, and password. Alternatively, you can authenticate using an API Key from Files.com. rclone config walks you through it.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -43747,6 +46466,75 @@ y/e/d> y

    Sync /home/local/directory to the remote directory, deleting any excess files in the directory.

    rclone sync --interactive /home/local/directory remote:dir
    +

    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␠
    LF0x0A␊
    CR0x0D␍
    HT0x09␉
    VT0x0B␋
    +

    Invalid UTF-8 bytes will also be replaced.

    +

    Files.com treats the replacements / and \ +as if they were / and \, and the names +. and .. as if they were . and +.., and rejects them with Invalid path. This +means that files with / or \ in their names, +or which are called . or .., can't be stored +on Files.com.

    Hashes

    In December 2024 files.com started supporting @@ -43761,7 +46549,7 @@ selecting more checksums will not affect rclone's operations.

    can do an end to end integrity check.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to filescom (Files.com).

    --filescom-site

    Your site subdomain (e.g. mysite) or custom domain (e.g. @@ -43794,7 +46582,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to filescom (Files.com).

    --filescom-api-key

    The API key used to authenticate with Files.com.

    @@ -43837,7 +46625,7 @@ package.

    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

    +

    Configuration

    To create an FTP configuration named remote, run

    rclone config

    Rclone config guides you through an interactive setup process. A @@ -43915,7 +46703,8 @@ 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 or Using on-the-fly or connection string remotes makes it easy to access such servers, without requiring any configuration in advance. The following are examples of that:

    @@ -43953,7 +46742,7 @@ FTP backend then use the override syntax, eg

    override.ca_cert = XXX
     override.client_cert = XXX
     override.client_key = XXX
    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -44002,7 +46791,7 @@ of sensible encoding settings for major FTP servers: ProFTPd, PureFTPd, VsFTPd. Just hit a selection number when prompted.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to ftp (FTP).

    --ftp-host

    FTP host to connect to.

    @@ -44069,7 +46858,7 @@ an encrypted one. Cannot be used in combination with implicit FTPS.

  • Type: bool
  • Default: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to ftp (FTP).

    --ftp-concurrency

    Maximum number of FTP simultaneous connections, 0 for unlimited.

    @@ -44303,7 +47092,7 @@ section in the overview
    for more info.

  • Required: false
  • -

    Limitations

    +

    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 @@ -44331,7 +47120,7 @@ is).

    present.

    The ftp_proxy environment variable is not currently supported.

    -

    Modification times

    +

    Modification times

    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 @@ -44361,7 +47150,7 @@ and going to the "My Profile" section. Copy the "Account API token" for use in the config file.

    Note that if you wish to connect rclone to Gofile you will need a premium account.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -44408,12 +47197,12 @@ y/e/d> y
    rclone lsf remote:

    To copy a local directory to an Gofile directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Gofile supports modification times with a resolution of 1 second.

    Gofile supports MD5 hashes, so you can use the --checksum flag.

    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -44497,7 +47286,7 @@ name:

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    - +

    Gofile supports rclone link to make public links to files or directories. If you specify a directory it will download as a zip file. You can use the --expire flag to @@ -44525,7 +47314,7 @@ set

    To restrict rclone to the Files directory.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to gofile (Gofile).

    --gofile-access-token

    API Access token

    @@ -44537,7 +47326,7 @@ set

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to gofile (Gofile).

    --gofile-root-folder-id

    ID of the root folder

    @@ -44592,7 +47381,7 @@ Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,LeftPeriod
  • Required: false
  • -

    Limitations

    +

    Limitations

    Gofile only supports filenames up to 255 characters in length, where a character is a unicode character.

    Directories should not be cached for more than 24h otherwise files in @@ -44617,7 +47406,7 @@ messages in the log about duplicates.

    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

    +

    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.

    @@ -44891,7 +47680,7 @@ 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 times

    +

    Modification times

    Google Cloud Storage stores md5sum natively. Google's gsutil tool stores modification time with one-second precision as @@ -44908,7 +47697,7 @@ 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 +

    Restricted filename characters

    @@ -44946,7 +47735,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).

    --gcs-client-id

    @@ -45334,7 +48123,7 @@ is blank.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).

    --gcs-token

    @@ -45481,7 +48270,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    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 @@ -45493,7 +48282,7 @@ href="https://rclone.org/commands/rclone_about/">rclone about.

    Paths are specified as drive:path

    Drive paths may be as deep as required, e.g. drive:directory/subdirectory.

    -

    Configuration

    +

    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.

    @@ -45837,13 +48626,13 @@ gives:

  • without --fast-list: 22:05 min
  • with --fast-list: 58s
  • -

    Modification times and +

    Modification times and hashes

    Google drive stores modification times accurate to 1 ms.

    Hash algorithms MD5, SHA1 and SHA256 are supported. Note, however, that a small fraction of files uploaded may not have SHA1 or SHA256 hashes especially if they were uploaded before 2018.

    -

    Restricted filename +

    Restricted filename characters

    Only Invalid UTF-8 bytes will be replaced, as they @@ -46236,7 +49025,7 @@ available Google Documents.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to drive (Google Drive).

    --drive-client-id

    Google Application Client Id Leave blank to use rclone's shared @@ -46314,7 +49103,7 @@ environment variables such as ${RCLONE_CONFIG_DIR}.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to drive (Google Drive).

    --drive-token

    OAuth Access Token as a JSON blob.

    @@ -46656,7 +49445,7 @@ consequences.

    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.

    +need to use --ignore-size also.

    Properties:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to google photos (Google Photos).

    --gphotos-token

    @@ -47949,7 +50746,7 @@ default based on the batch_mode in use.

  • Required: false
  • -

    Limitations

    +

    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 @@ -48007,7 +50804,7 @@ uploaded an image to upload then uploaded the same image to 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.

    -

    Modification times

    +

    Modification times

    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.

    @@ -48130,18 +50927,18 @@ y/e/d> y 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
    +
    [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:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to hasher (Better checksums for other remotes).

    --hasher-auto-size

    @@ -48363,14 +51160,14 @@ shared between multiple rclone processes.

    Paths are specified as huaweidrive:path

    Huawei Drive paths may be as deep as required, e.g. huaweidrive:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    The initial setup for Huawei Drive involves getting a token from Huawei 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
    +
    rclone config

    This will guide you through an interactive setup process:

    No remotes found, make a new one?
     n) New remote
    @@ -48426,14 +51223,14 @@ 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:
    +
    rclone lsd remote:

    List all the files in your drive

    -
    rclone ls remote:
    +
    rclone ls remote:

    To copy a local directory to a drive directory called backup

    -
    rclone copy /home/source remote:backup
    +
    rclone copy /home/source remote:backup

    Getting your own Client ID and Secret

    When you use rclone with Huawei Drive in its default configuration @@ -48466,14 +51263,19 @@ Development Guide".

    Enable Drive Application Switch

      -
    1. Log in to the AppGallery Connect website and click "My -Projects".
    2. -
    3. Find your project in the project list, select the application that -needs to access Drive in the project, and click "API Management".
    4. -
    5. In the "API Management" area of the "Project Settings" page, click -the switch on the right side of Drive Kit to ensure the switch is in the -open state.
    6. +
    7. Log in to AppGallery Connect with your Huawei account.
    8. +
    9. Create a project or select an existing project.
    10. +
    11. Add a web application to the project.
    12. +
    13. Open "Project settings" for the application and copy the OAuth 2.0 +Client ID and Client Secret from the "General" tab.
    14. +
    15. Open "API Management" for the project and enable "Cloud Drive".
    16. +
    17. Add http://127.0.0.1:53682/ as a redirect URI for the +OAuth 2.0 Client ID.
    +

    The older Huawei Developer Console may show some of the same +credential information, but AppGallery Connect is the place to create +the project, application, API permission, and redirect URI used by +rclone.

    Sign Huawei Cloud Drive Privacy Notice and User Agreement

    Guide users to visit

    Key steps summary:

      -
    1. Log into the Huawei Developer -Console with your Huawei account.

    2. -
    3. Create a new project or select an existing project.

    4. -
    5. Go to "Manage APIs" and enable the "Drive Kit" API.

    6. -
    7. Click on "Credentials" in the left side panel.

    8. -
    9. Click "Create Credentials" and choose "OAuth client ID".

    10. -
    11. Choose "Web application" as the application type.

    12. -
    13. Add http://localhost:53682/ to the "Authorized -redirect URIs".

    14. -
    15. Click "Create" and note down the Client ID and Client -Secret.

    16. -
    17. Provide the noted client ID and client secret to rclone during -configuration.

    18. +
    19. Create or select a project in AppGallery Connect.
    20. +
    21. Add a web application to the project.
    22. +
    23. Enable Cloud Drive in API Management.
    24. +
    25. Configure http://127.0.0.1:53682/ as the OAuth redirect +URI.
    26. +
    27. Copy the OAuth 2.0 Client ID and Client Secret from the +application.
    28. +
    29. Provide the client ID and client secret to rclone during +configuration.

    Scopes

    Rclone uses the following OAuth2 scopes when accessing Huawei @@ -48529,7 +51326,7 @@ Read-only access to file metadata only

    The default scopes provide read/write access to all files in your Huawei Drive.

    -

    Modification times and +

    Modification times and hashes

    Huawei Drive does not support setting modification times. The API always uses server-side timestamps, so file modification times from the @@ -48537,7 +51334,7 @@ source are not preserved during upload. Modification times are available as read-only metadata (mtime, btime).

    Hash algorithm SHA256 is supported for file integrity verification.

    -

    Restricted filename +

    Restricted filename characters

    Huawei Drive has strict restrictions on file and directory names:

      @@ -48569,7 +51366,7 @@ for recovery from network interruptions.

      and quota information.

      -

      Standard options

      +

      Standard options

      Here are the Standard options specific to huaweidrive (Huawei Drive).

      --huaweidrive-client-id

      @@ -48592,7 +51389,7 @@ Drive).

    • Type: string
    • Required: false
    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to huaweidrive (Huawei Drive).

    --huaweidrive-token

    @@ -48800,7 +51597,7 @@ backend.

    See the metadata docs for more info.

    -

    Limitations

    +

    Limitations

    Huawei Drive has some rate limiting which may cause rclone to slow down transfers to avoid hitting the limits.

    File name restrictions

    @@ -48921,7 +51718,7 @@ is a distributed file-system, part of the Apache Hadoop framework.

    Paths are specified as remote: or remote:path/to/dir.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -49006,22 +51803,22 @@ docker build --rm -t 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
    +
    [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.)

    -

    Modification times

    +

    Modification times

    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 +

    Restricted filename characters

    In addition to the default @@ -49047,7 +51844,7 @@ replaced:

    href="https://rclone.org/overview/#invalid-utf8">replaced.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to hdfs (Hadoop distributed file system).

    --hdfs-namenode

    @@ -49077,7 +51874,7 @@ namenodes at port 8020.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to hdfs (Hadoop distributed file system).

    --hdfs-service-principal-name

    @@ -49136,7 +51933,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to hidrive (HiDrive).

    --hidrive-token

    OAuth Access Token as a JSON blob.

    @@ -49545,7 +52342,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    HiDrive is able to store symbolic links (symlinks) by design, for example, when unpacked from a zip archive.

    @@ -49580,12 +52377,14 @@ remote url https://beta.rclone.org/branch and path 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.

    +resolved from the root of the domain. The path can't change the scheme, +host or user of the configured url, so a path such as +//other.example.com/fix is rejected.

    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 -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 @@ -49594,7 +52393,7 @@ 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

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -49671,7 +52470,7 @@ an unparseable response for https://example.com/path/:

    If you just want to download a file or multiple files by URL then using copyurl is more efficient.

    -

    Modification times

    +

    Modification times

    Most HTTP servers store time accurate to 1 second.

    Checksum

    No checksums are stored.

    @@ -49683,7 +52482,7 @@ without a config file:

    rclone lsd :http,url='https://beta.rclone.org':
    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to http (HTTP).

    --http-url

    URL of HTTP host to connect to.

    @@ -49705,7 +52504,7 @@ a username and password.

  • Type: bool
  • Default: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to http (HTTP).

    --http-headers

    Set HTTP headers for all transactions.

    @@ -49717,6 +52516,12 @@ used.

    '"Cookie","name=value"'.

    You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'.

    +

    The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. When headers are set, a redirect from https to http is +refused as it would send them in cleartext, even with +--allow-https-downgrade.

    Properties:

    +

    --http-no-head-size

    +

    Set the reported file size for --http-no-head.

    +

    When HEAD requests are disabled, rclone normally reports an unknown +file size. Set this option to a non-negative value to report that size +for every file, including 0. Leave it unset (the default, shown as +"off") to keep reporting an unknown size.

    +

    The configured size is authoritative. If it does not match the actual +file size, transfers may fail their size check and retry unless +--ignore-size is used. It can also make multi-thread transfers request +incorrect ranges and make mounted files unreadable past the reported +size.

    +

    Properties:

    + +

    --http-no-head-time

    +

    Set a default modification time for --http-no-head.

    +

    When HEAD requests are disabled, rclone normally reports an unset +modification time. Set this option to report the specified time for +every file instead. Changing the configured time later makes every file +appear modified to a sync.

    +

    Properties:

    +

    --http-description

    Description of the remote.

    Properties:

    @@ -49865,7 +52701,7 @@ 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.

    -

    Limitations

    +

    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 @@ -49885,7 +52721,7 @@ href="https://imagekit.io/registration/">create an account on ImageKit. Start with a free plan with generous usage limits. Then, as your requirements grow, upgrade to a plan that best fits your needs. See the pricing details.

    -

    Configuration

    +

    Configuration

    Here is an example of making an imagekit configuration.

    Firstly create a ImageKit.io account and choose a plan.

    @@ -49956,7 +52792,7 @@ y/e/d> y

    No checksums are supported.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to imagekit (ImageKit.io).

    --imagekit-endpoint

    You can find your ImageKit.io URL endpoint in your dashboard

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to imagekit (ImageKit.io).

    --imagekit-only-signed

    If you have configured Restrict unsigned image URLs in @@ -50153,7 +52989,7 @@ image for more info.

    iCloud Drive and Photos

    -

    Configuration

    +

    Configuration

    The initial setup for an iCloud backend involves getting a trust token/session. This uses your regular Apple ID password plus 2FA, either from a trusted device prompt or an SMS code sent to a trusted phone @@ -50331,7 +53167,7 @@ videos to local disk for fast repeated access

    The first listing of a very large album (e.g. 75,000 items in "All Photos") can take several minutes due to API pagination limits. This happens once — subsequent listings use the disk cache.

    -

    Limitations

    +

    Limitations

    iCloud Photos is read-only. Upload, delete, rename, and move operations are not supported.

    Advanced Data Protection

    @@ -50354,7 +53190,7 @@ prompt on your trusted device.

    or delete and recreate the remote.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to iclouddrive (iCloud Drive and Photos).

    --iclouddrive-service

    @@ -50398,7 +53234,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to iclouddrive (iCloud Drive and Photos).

    --iclouddrive-client-id

    @@ -50572,7 +53408,7 @@ filtering.

    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

    +

    Configuration

    Here is an example of making an internetarchive configuration. Most applies to the other providers as well, any differences are described below.

    @@ -50645,7 +53481,7 @@ d) Delete this remote y/e/d> y -

    Standard options

    +

    Standard options

    Here are the Standard options specific to internetarchive (Internet Archive).

  • Type: bool
  • Default: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to internetarchive (Internet Archive).

    --internetarchive-endpoint

    @@ -50905,13 +53741,13 @@ encrypted cloud storage service.

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Limitations

    +

    Limitations

    Note: The Internxt backend may not work with all account types. Please refer to Internxt plan details or contact Internxt support to verify rclone compatibility with your subscription.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called internxt. Run rclone config and follow the prompts:

    @@ -50979,20 +53815,20 @@ rclone mount internxt: /path/to/mountpoint # Check storage usage rclone about internxt: -

    Modification times and +

    Modification times and hashes

    The Internxt backend does not support hashes.

    Modification times are read from the server but cannot be set. The backend reports ModTimeNotSupported precision, so modification times will not be used for sync comparisons.

    -

    Restricted filename +

    Restricted filename characters

    The Internxt backend replaces the default restricted characters set.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to internxt (Internxt Drive).

    --internxt-email

    @@ -51016,7 +53852,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to internxt (Internxt Drive).

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote with the default setup. First run:

    rclone config
    @@ -51398,7 +54234,7 @@ to long wait time before the first results are shown.

    MIME types and metadata item utime are not available when using --fast-list.

    -

    Modification times and +

    Modification times 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 @@ -51416,7 +54252,7 @@ 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 +

    Restricted filename characters

    In addition to the default @@ -51500,7 +54336,7 @@ available in the remote.

    limit (unless it is unlimited) and the current usage.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to jottacloud (Jottacloud).

    --jottacloud-client-id

    @@ -51523,7 +54359,7 @@ limit (unless it is unlimited) and the current usage.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to jottacloud (Jottacloud).

    --jottacloud-token

    @@ -51696,7 +54532,7 @@ backend

    See the metadata docs for more info.

    -

    Limitations

    +

    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 @@ -51710,11 +54546,297 @@ length.

    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.

    +

    kDrive

    +

    Paths are specified as remote:path

    +

    Paths may be as deep as required, e.g. +remote:directory/subdirectory.

    +

    Configuration

    +

    The initial setup for kDrive involves getting an OAuth2 token which +you need to do in your browser. rclone config walks you +through it.

    +

    kDrive uses the PKCE OAuth2 flow (RFC 7636), which means no +client_secret is required. The client_id is +optional and defaults to rclone's built-in application credentials.

    +

    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 / Infomaniak kDrive
    +   \ "kdrive"
    +[snip]
    +Storage> kdrive
    +
    +Option client_id.
    +OAuth Client Id.
    +Leave blank normally.
    +Enter a value. Press Enter to leave empty.
    +client_id> 
    +
    +Option drive_id.
    +ID of the kDrive to use.
    +When showing a folder on kdrive, you can find the drive_id here:
    +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/...
    +Enter a value. Press Enter to leave empty.
    +drive_id> 0654321
    +
    +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
    +
    +Waiting for code...
    +Got code
    +
    +Configuration complete.
    +Options:
    +- type: kdrive
    +- drive_id: 0654321
    +
    +Keep this "remote" remote?
    +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 +(replace remote with the name you gave your remote):

    +

    List directories in top level of your rclone

    +
    rclone lsd remote:
    +

    Note that by default the top level directory of a +private kDrive storage is your "Private" folder. When used with a Pro +account, a second folder "Common documents" is also available, which can +be used as the root by setting root_folder_id to +common. These top-level folders cannot be +modified.

    +

    List all the files in your kDrive

    +
    rclone ls remote:
    +

    To copy a local directory to a kDrive directory called backup

    +
    rclone copy /home/source remote:backup
    +

    Modification times and +hashes

    +

    kDrive allows modification times to be set on objects accurate to 1 +second. These will be used to detect whether objects need syncing or +not.

    +

    kDrive supports the XXH3 checksum hash, so you can use the +--checksum flag. XXH3 is only available for files uploaded +as a single chunk: files uploaded in chunks (by rclone when larger than +--kdrive-chunk-size, or by the kDrive apps which chunk +files at their own sizes) have a "nested" hash which can't be compared +with a plain XXH3, and rclone reports no hash for those files.

    +

    Restricted filename +characters

    +

    In addition to the default +restricted characters set the following characters are also +replaced:

    + + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    LeftSpace0x20␠
    RightSpace0x20␠
    +

    Invalid UTF-8 bytes will also be replaced, as they +can't be used in JSON strings.

    +

    Overwriting files

    +

    When rclone overwrites an existing file, kDrive keeps the replaced +content as a new version of the file. Old versions count against the +drive quota, so repeatedly overwriting large files grows the storage +usage. Manage old versions from the kDrive web app.

    +

    Uploading files of unknown +size

    +

    kDrive can't upload files of unknown size, so +rclone rcat and streaming uploads are not supported.

    +

    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 numeric Folder ID) that rclone +considers to be the root of your kDrive drive.

    +

    Normally you will leave this blank and rclone will use your private +directory. You can also use one of the convenience shortcuts:

    + +

    Or the numeric Folder ID of any directory in your drive. +The root of the drive only contains the Private and +Common documents folders, so a numeric ID is needed to use +any other directory as root. In order to find the +Folder ID, list the parent directory of the folder you wish +rclone to use with rclone lsf; the first column of the +output is the folder ID:

    +

    Example:

    +
    $ rclone lsf --dirs-only -Fip --csv remote:Documents
    +456,Sub folder/
    +789,Photos/
    +

    So if the folder you want rclone to use is "Photos/", then use the +returned id from rclone lsf command (ex. 789) +as the root_folder_id variable value in the config +file.

    + + +

    Standard options

    +

    Here are the Standard options specific to kdrive (Infomaniak +kDrive).

    +

    --kdrive-client-id

    +

    OAuth Client Id.

    +

    Leave blank normally.

    +

    Properties:

    + +

    --kdrive-drive-id

    +

    ID of the kDrive to use.

    +

    When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/...

    +

    Properties:

    + +

    Advanced options

    +

    Here are the Advanced options specific to kdrive (Infomaniak +kDrive).

    +

    --kdrive-token

    +

    OAuth Access Token as a JSON blob.

    +

    Properties:

    + +

    --kdrive-auth-url

    +

    Auth server URL.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --kdrive-token-url

    +

    Token server url.

    +

    Leave blank to use the provider defaults.

    +

    Properties:

    + +

    --kdrive-encoding

    +

    The encoding for the backend.

    +

    See the encoding +section in the overview for more info.

    +

    Properties:

    + +

    --kdrive-root-folder-id

    +

    The folder to use as root.

    +

    You may use either one of the convenience shortcuts [private or +common] or an explicit folder ID.

    + +

    Properties:

    + +

    --kdrive-chunk-size

    +

    Files above this size are uploaded in chunks of this size.

    +

    The kDrive API accepts chunks between 1 MB and 1 GB, up to 10,000 +chunks per file and a total file size of 1 TiB. The chunk size is raised +automatically for very large files to stay within the 10,000 chunks +limit.

    +

    Properties:

    + +

    --kdrive-upload-concurrency

    +

    Concurrency for chunked uploads.

    +

    Properties:

    + +

    --kdrive-endpoint

    +

    The API endpoint to use.

    +

    Leave blank normally. There is no reason to change the endpoint +except for internal use or beta-testing.

    +

    Properties:

    + +

    --kdrive-description

    +

    Description of the remote.

    +

    Properties:

    + +

    Koofr

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    The initial setup for Koofr involves creating an application password for rclone. You can do that by opening the Koofr web @@ -51789,7 +54911,7 @@ choose an alternative mount instead of your primary storage.

    rclone ls koofr:

    To copy a local directory to an Koofr directory called backup

    rclone copy /home/source koofr:backup
    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -51816,7 +54938,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in XML strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).

    --koofr-provider

    @@ -51876,7 +54998,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to koofr (Koofr, Digi Storage and other Koofr-compatible storage providers).

    --koofr-mountid

    @@ -51921,7 +55043,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    Note that Koofr is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    Providers

    @@ -52061,7 +55183,7 @@ y/e/d> y

    Linkbox

    Linkbox is a private cloud drive.

    -

    Configuration

    +

    Configuration

    Here is an example of making a remote for Linkbox.

    You will need: - An API token from https://www.linkbox.to/admin/account - The email and password for your @@ -52120,7 +55242,7 @@ y/e/d> y -

    Standard options

    +

    Standard options

    Here are the Standard options specific to linkbox (Linkbox).

    Token from https://www.linkbox.to/admin/account

    @@ -52152,7 +55274,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to linkbox (Linkbox).

    Description of the remote.

    @@ -52164,10 +55286,18 @@ obscure.

  • Required: false
  • -

    Limitations

    +

    Limitations

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    +

    Linkbox converts file extensions to lower case on upload, so a file +uploaded as file.TXT is stored as +file.txt.

    +

    Linkbox renames an uploaded file to name(1) if its name +is the start of the name of a file already in the same directory, for +example when uploading apple to a directory containing +applebanana. rclone then can't find the file it uploaded +and the upload fails with object not found.

    Mail.ru Cloud

    Mail.ru Cloud is a cloud storage provided by a Russian internet company Mail.Ru @@ -52192,7 +55322,7 @@ deduplication, the hash algorithm is a modified SHA1 submit file hash instead of long file upload (this optimization is supported by rclone) -

    Configuration

    +

    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 @@ -52283,7 +55413,7 @@ You can use the configured backend as shown below:

    Sync /home/local/directory to the remote path, deleting any excess files in the path.

    rclone sync --interactive /home/local/directory remote:directory
    -

    Modification times and +

    Modification times and hashes

    Files support a modification time attribute with up to 1 second precision. Directories do not have a modification time, which is shown @@ -52304,7 +55434,7 @@ command does not take any path arguments.

    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 +

    Restricted filename characters

    In addition to the default @@ -52366,7 +55496,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to mailru (Mail.ru Cloud).

    --mailru-client-id

    OAuth Client Id.

    @@ -52441,7 +55571,7 @@ this optimization.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to mailru (Mail.ru Cloud).

    --mailru-token

    OAuth Access Token as a JSON blob.

    @@ -52613,7 +55743,7 @@ Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,InvalidUtf
  • Required: false
  • -

    Limitations

    +

    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.

    @@ -52633,7 +55763,7 @@ recommended for new projects.

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -52684,10 +55814,10 @@ use the credentials in rclone will fail.

    rclone ls remote:

    To copy a local directory to an Mega directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Mega does not support modification times or hashes yet.

    -

    Restricted filename +

    Restricted filename characters

    @@ -52787,7 +55917,7 @@ 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

    +

    Standard options

    Here are the Standard options specific to mega (Mega).

    --mega-user

    User name.

    @@ -52820,7 +55950,7 @@ one

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to mega (Mega).

    --mega-debug

    Output more debug from Mega.

    @@ -52888,7 +56018,7 @@ type has sufficient memory/CPU to execute the commands. Use the resource monitoring tools to inspect after sending the commands. Look at this issue.

    -

    Limitations

    +

    Limitations

    This backend uses the go-mega go library which is an opensource go library implementing the Mega API. There doesn't @@ -52902,7 +56032,7 @@ there are likely quite a few errors still remaining in this library.

    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

    +

    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\?
    @@ -52936,18 +56066,18 @@ testing or with an rclone server or rclone mount, e.g.

    rclone mount :memory: /mnt/tmp
     rclone serve webdav :memory:
     rclone serve sftp :memory:
    -

    Modification times and +

    Modification times and hashes

    The memory backend supports MD5 hashes and modification times accurate to 1 nS.

    -

    Restricted filename +

    Restricted filename characters

    The memory backend replaces the default restricted characters set.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to memory (In memory object storage system.).

    --memory-discard

    @@ -52996,7 +56126,7 @@ code:

    The initial setup for Netstorage involves getting an account and secret. Use rclone config to walk you through the setup process.

    -

    Configuration

    +

    Configuration

    Here's an example of how to make a remote called ns1.

      @@ -53166,7 +56296,7 @@ using quick-delete method will not delete the tree immediately and objects targeted for quick-delete may still be accessible.

      -

      Standard options

      +

      Standard options

      Here are the Standard options specific to netstorage (Akamai NetStorage).

      --netstorage-host

      @@ -53203,7 +56333,7 @@ obscure.

    1. Type: string
    2. Required: true
    3. -

      Advanced options

      +

      Advanced options

      Here are the Advanced options specific to netstorage (Akamai NetStorage).

      --netstorage-protocol

      @@ -53268,7 +56398,7 @@ applicable.

      remote: for the lsd command.) You may put subdirectories in too, e.g. remote:container/path/to/dir.

      -

      Configuration

      +

      Configuration

      Here is an example of making a Microsoft Azure Blob Storage configuration. For a remote called remote. First run:

      rclone config
      @@ -53318,7 +56448,7 @@ deleting any excess files in the container.

      fewer transactions in exchange for more memory. See the rclone docs for more details.

      -

      Modification times and +

      Modification times and hashes

      The modification time is stored as metadata on the object with the mtime key. It is stored using RFC3339 Format time with @@ -53360,14 +56490,29 @@ ignores the override.

      Notes: - Rclone ignores reserved x-ms-* keys (except x-ms-tags) for user metadata.

      -

      Performance

      +

      Hierarchical namespace

      +

      Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories. On these accounts rclone supports +empty directories, creating them with rclone mkdir and +removing them with rclone rmdir, whatever the +--azureblob-directory-markers setting.

      +

      Note that deleting the last file in a directory leaves the directory +behind. Use rclone rmdirs or +--delete-empty-src-dirs to remove empty directories.

      +

      Rclone reads whether the storage account has a hierarchical namespace +when it first uses the remote and saves it as the hns +option in the config file. Set --azureblob-hns to override +this.

      +

      Blob tags (x-ms-tags metadata) aren't supported on these +accounts.

      +

      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 +

      Restricted filename characters

      In addition to the default @@ -53598,14 +56743,14 @@ 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 +msi_mi_res_id is set, this is equivalent to using env_auth.

      Federated Identity Credentials

      If these variables are set, rclone will authenticate with federated identity.

      -

      Advanced options

      +

      Advanced options

      Here are the Advanced options specific to azureblob (Microsoft Azure Blob Storage).

    4. Type: int
    5. Default: 5000
    6. +

      --azureblob-use-arrow-list

      +

      Use the Apache Arrow listing format.

      +

      If set, directory listings are fetched using the ListBlobs Apache +Arrow response format instead of XML. Arrow responses are smaller and +much cheaper to parse, making listings of large containers several times +faster. Combine with "list_parallelism" for the biggest gains.

      +

      "Blob Listing with Apache Arrow" is in public preview at Microsoft +and is only supported on flat namespace accounts. On accounts with a +hierarchical namespace (ADLS Gen2), or where the feature is otherwise +unavailable, the server returns XML and the listing transparently falls +back to the normal XML path (logged at debug level).

      +

      Properties:

      +
        +
      • Config: use_arrow_list
      • +
      • Env Var: RCLONE_AZUREBLOB_USE_ARROW_LIST
      • +
      • Type: bool
      • +
      • Default: false
      • +
      +

      --azureblob-list-parallelism

      +

      Number of parallel shards to list a directory with.

      +

      If set greater than 1, the blob name keyspace of each directory is +split into ranges which are listed concurrently using the Arrow +startFrom/endBefore range parameters. This can dramatically speed up +listing containers with millions of objects, for both recursive (ListR) +and single directory listings. Speed keeps improving up to a parallelism +of around 30.

      +

      This has no effect unless "use_arrow_list" is also set, as Arrow is +the only listing path that supports server-side name ranges. If the +account does not support range listing (e.g. it has a hierarchical +namespace) the listing falls back to sequential. The default of 0 (or 1) +lists sequentially.

      +

      Properties:

      +
        +
      • Config: list_parallelism
      • +
      • Env Var: RCLONE_AZUREBLOB_LIST_PARALLELISM
      • +
      • Type: int
      • +
      • Default: 0
      • +

      --azureblob-access-tier

      Access tier of blob: hot, cool, cold or archive.

      Archived blobs can be restored by setting access tier to hot, cool or @@ -54132,6 +57315,8 @@ created

      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.

      +

      This is not needed on storage accounts with a hierarchical namespace +(see the hns option) as these always support empty directories.

      Properties:

      • Config: directory_markers
      • @@ -54139,6 +57324,19 @@ the Microsoft standard.

      • Type: bool
      • Default: false
      +

      --azureblob-hns

      +

      Set if the storage account has a hierarchical namespace.

      +

      Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories which can be empty.

      +

      If this is unset then rclone will read it from the storage account +and save it in the config file.

      +

      Properties:

      +
        +
      • Config: hns
      • +
      • Env Var: RCLONE_AZUREBLOB_HNS
      • +
      • Type: Tristate
      • +
      • Default: unset
      • +

      --azureblob-no-check-container

      If set, don't attempt to check the container exists or create it.

      @@ -54300,7 +57498,7 @@ for more info.

      Eg --header-upload "Content-Type: text/potato" or --header-upload "X-MS-Tags: foo=bar".

      -

      Limitations

      +

      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 @@ -54330,7 +57528,7 @@ in the advanced settings, setting it to Storage

      Paths are specified as remote: You may put subdirectories in too, e.g. remote:path/to/dir.

      -

      Configuration

      +

      Configuration

      Here is an example of making a Microsoft Azure Files Storage configuration. For a remote called remote. First run:

      rclone config
      @@ -54411,14 +57609,14 @@ deleting any excess files in the directory.

      Modified time

      The modified time is stored as the SMB LastWriteTime property on files. It has a precision of 100 ns.

      -

      Performance

      +

      Performance

      When uploading large files, increasing the value of --azurefiles-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 +

      Restricted filename characters

      In addition to the default @@ -54666,14 +57864,14 @@ 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 +msi_mi_res_id is set, this is equivalent to using env_auth.

      Federated Identity Credentials

      If these variables are set, rclone will authenticate with federated identity.

      -

      Advanced options

      +

      Advanced options

      Here are the Advanced options specific to azurefiles (Microsoft Azure Files).

      --azurefiles-chunk-size

      Upload chunk size.

      Note that this is stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory.

      Properties:

        @@ -55014,7 +58212,7 @@ concurrently.

        links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers.

        Note that chunks are stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory.

        Properties:

          @@ -55077,14 +58275,17 @@ Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Del,Ctl,RightPerio
        • Content-Type

        Eg --header-upload "Content-Type: text/potato"

        -

        Limitations

        +

        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.

        Microsoft OneDrive

        Paths are specified as remote:path

        Paths may be as deep as required, e.g. remote:directory/subdirectory.

        -

        Configuration

        +

        Note: OneDrive for Business and SharePoint users +need rclone v1.76 or later from April 1, 2027 - see Pre-authenticated URLs.

        +

        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.

        @@ -55310,7 +58511,7 @@ Business OneDrive

        If you do not have admin access to your organization's OneDrive for Business, you can still connect by manually providing the SharePoint tenant URL and drive ID. This works by overriding the base API URL from -the standard Microsoft Graph endpoint to the SharePoint v2.0 +the standard Microsoft Graph endpoint to the SharePoint API endpoint.

        Steps to manually obtain credentials

        @@ -55322,22 +58523,32 @@ credentials
      • Search for driveAccessToken in the network requests.

      • Extract the following information from the response:

        -
        ".driveUrl": "{tenant_url}/v2.0/drives/{drive_id}",
        -".driveAccessToken": "access_token={access_token}"
      • +
        ".driveUrl": "{tenant_url}/v2.0/drives/{drive_id}",
        +".driveAccessToken": "access_token={access_token}"
        +

        In some guest access scenarios SharePoint may also expose a matching +v2.1 URL and token pair:

        +
        ".driveUrlV21": "{tenant_url}/v2.1/drives/{drive_id}",
        +".driveAccessTokenV21": "access_token={access_token}"

    Rclone configuration

    Use the extracted values to configure your remote:

    -
    type = onedrive
    -token = {"access_token":"{access_token}","token_type":"Bearer","refresh_token":"","expiry":"2045-12-31T23:59:59Z"}
    -drive_id = {drive_id}
    -tenant_url = {tenant_url}
    -drive_type = business
    +
    type = onedrive
    +token = {"access_token":"{access_token}","token_type":"Bearer","refresh_token":"","expiry":"2045-12-31T23:59:59Z"}
    +drive_id = {drive_id}
    +tenant_url = {tenant_url}
    +drive_type = business
    +

    If you use a v2.1 token, set the matching SharePoint API version:

    +
    tenant_api_version = v2.1
    +

    If tenant_api_version is omitted, rclone defaults to +v2.0.

    Since the exact expiry time cannot be determined from web traffic, set the expiry to a future date. Note that the token will eventually expire and you will need to repeat the process to obtain a new one.

    -

    Modification times and +

    Modification times 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 @@ -55372,15 +58583,15 @@ recommended way of reading all the file information from a drive.

    href="https://rclone.org/rc/#vfs-refresh">rclone rc vfs/refresh recursive=true) to very quickly fill the mount with information about all the files.

    -

    The API used for the recursive listing (ListR) only -supports listing from the root of the drive. This will become -increasingly inefficient the further away you get from the root as -rclone will have to discard files outside of the directory you are -using.

    +

    Rclone asks for the delta listing of the directory being listed. Some +drives only support delta listings from the root of the drive, in which +case rclone lists the whole drive and discards the files outside of the +directory you are using, which is increasingly inefficient the further +away from the root you get.

    Some commands (like rclone lsf -R) will use ListR by default - you can turn this off with --disable ListR if you need to.

    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -55486,14 +58697,14 @@ only get replaced if they are the first character in the name:

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Deleting files

    +

    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

    +

    Standard options

    Here are the Standard options specific to onedrive (Microsoft OneDrive).

    --onedrive-client-id

    @@ -55555,7 +58766,7 @@ ID.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to onedrive (Microsoft OneDrive).

    --onedrive-token

    @@ -55617,7 +58828,7 @@ new version.

    --onedrive-tenant-url

    The tenant URL for non-admin OneDrive access.

    -

    Set this to your SharePoint tenant URL to use the SharePoint v2.0 API +

    Set this to your SharePoint tenant URL to use the SharePoint API endpoint instead of the standard Microsoft Graph API. This allows accessing business OneDrive without admin consent.

    The URL can be found in your browser's developer tools by searching @@ -55631,6 +58842,19 @@ field which contains the tenant URL and drive ID.

  • Type: string
  • Required: false
  • +

    --onedrive-tenant-api-version

    +

    The SharePoint API version to use with tenant_url.

    +

    Set this to the SharePoint API version matching the browser-extracted +access token. For example, use v2.1 with a driveAccessTokenV21 +token.

    +

    This only applies when tenant_url is set.

    +

    Properties:

    +
      +
    • Config: tenant_api_version
    • +
    • Env Var: RCLONE_ONEDRIVE_TENANT_API_VERSION
    • +
    • Type: string
    • +
    • Default: "v2.0"
    • +

    --onedrive-chunk-size

    Chunk size to upload files with - must be multiple of 320k (327,680 bytes).

    @@ -55753,13 +58977,11 @@ will be slightly slower).

    --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.

    +

    Onedrive 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
    • @@ -55771,9 +58993,8 @@ so don't use this flag there.

      Permanently delete files on removal.

      Normally files will get sent to the recycle bin on deletion. Setting this flag causes them to be permanently deleted. Use with care.

      -

      OneDrive personal accounts do not support the permanentDelete API, it -only applies to OneDrive for Business and SharePoint document -libraries.

      +

      This works with OneDrive for Business, SharePoint document libraries, +and OneDrive personal accounts, including free accounts.

      Properties:

      • Config: hard_delete
      • @@ -55826,13 +59047,16 @@ get access.
      • "embed"
        • Creates an embeddable link to the item.
        • +
        • Only available in OneDrive personal.

    Set the password for links created by the link command.

    -

    At the time of writing this only works with OneDrive personal paid -accounts.

    +

    At the time of writing this works with OneDrive for Business and +OneDrive personal paid accounts.

    +

    OneDrive personal free accounts can't set a password or an expiry +time (with --expire) on links.

    Properties:

    • Config: link_password
    • @@ -55922,20 +59146,11 @@ listings.

      rclone lsf -R onedrive:
       rclone size onedrive:
       rclone rc vfs/refresh recursive=true
      -

      However the delta listing API only -works at the root of the drive. If you use it not at the root then it -recurses from the root and discards all the data that is not under the -directory you asked for. So it will be correct but may not be very -efficient.

      -

      This is why this flag is not set as the default.

      -

      As a rule of thumb if nearly all of your data is under rclone's root -directory (the root/directory in -onedrive:root/directory) then using this flag will be a big -performance win. If your data is mostly not under the root then using -this flag will be a big performance loss.

      -

      It is recommended if you are mounting your onedrive at the root (or -near the root when using crypt) and using rclone -rc vfs/refresh.

      +

      Rclone asks for the delta listing of the directory being listed. If +the drive only supports delta listings at the root of the drive (as some +older OneDrive for Business and SharePoint drives do) then rclone lists +from the root and discards all the data that is not under the directory +you asked for. So it will be correct but may not be very efficient.

      Properties:

      • Config: delta
      • @@ -56020,69 +59235,69 @@ href="https://learn.microsoft.com/en-us/onedrive/developer/rest-api/resources/pe API, which differs slightly between OneDrive Personal and Business.

        Example for OneDrive Personal:

        -
        [
        -    {
        -        "id": "1234567890ABC!123",
        -        "grantedTo": {
        -            "user": {
        -                "id": "ryan@contoso.com"
        -            },
        -            "application": {},
        -            "device": {}
        -        },
        -        "invitation": {
        -            "email": "ryan@contoso.com"
        -        },
        -        "link": {
        -            "webUrl": "https://1drv.ms/t/s!1234567890ABC"
        -        },
        -        "roles": [
        -            "read"
        -        ],
        -        "shareId": "s!1234567890ABC"
        -    }
        -]
        +
        [
        +    {
        +        "id": "1234567890ABC!123",
        +        "grantedTo": {
        +            "user": {
        +                "id": "ryan@contoso.com"
        +            },
        +            "application": {},
        +            "device": {}
        +        },
        +        "invitation": {
        +            "email": "ryan@contoso.com"
        +        },
        +        "link": {
        +            "webUrl": "https://1drv.ms/t/s!1234567890ABC"
        +        },
        +        "roles": [
        +            "read"
        +        ],
        +        "shareId": "s!1234567890ABC"
        +    }
        +]

        Example for OneDrive Business:

        -
        [
        -    {
        -        "id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
        -        "grantedToIdentities": [
        -            {
        -                "user": {
        -                    "displayName": "ryan@contoso.com"
        -                },
        -                "application": {},
        -                "device": {}
        -            }
        -        ],
        -        "link": {
        -            "type": "view",
        -            "scope": "users",
        -            "webUrl": "https://contoso.sharepoint.com/:w:/t/design/a577ghg9hgh737613bmbjf839026561fmzhsr85ng9f3hjck2t5s"
        -        },
        -        "roles": [
        -            "read"
        -        ],
        -        "shareId": "u!LKj1lkdlals90j1nlkascl"
        -    },
        -    {
        -        "id": "5D33DD65C6932946",
        -        "grantedTo": {
        -            "user": {
        -                "displayName": "John Doe",
        -                "id": "efee1b77-fb3b-4f65-99d6-274c11914d12"
        -            },
        -            "application": {},
        -            "device": {}
        -        },
        -        "roles": [
        -            "owner"
        -        ],
        -        "shareId": "FWxc1lasfdbEAGM5fI7B67aB5ZMPDMmQ11U"
        -    }
        -]
        +
        [
        +    {
        +        "id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
        +        "grantedToIdentities": [
        +            {
        +                "user": {
        +                    "displayName": "ryan@contoso.com"
        +                },
        +                "application": {},
        +                "device": {}
        +            }
        +        ],
        +        "link": {
        +            "type": "view",
        +            "scope": "users",
        +            "webUrl": "https://contoso.sharepoint.com/:w:/t/design/a577ghg9hgh737613bmbjf839026561fmzhsr85ng9f3hjck2t5s"
        +        },
        +        "roles": [
        +            "read"
        +        ],
        +        "shareId": "u!LKj1lkdlals90j1nlkascl"
        +    },
        +    {
        +        "id": "5D33DD65C6932946",
        +        "grantedTo": {
        +            "user": {
        +                "displayName": "John Doe",
        +                "id": "efee1b77-fb3b-4f65-99d6-274c11914d12"
        +            },
        +            "application": {},
        +            "device": {}
        +        },
        +        "roles": [
        +            "owner"
        +        ],
        +        "shareId": "FWxc1lasfdbEAGM5fI7B67aB5ZMPDMmQ11U"
        +    }
        +]

        To write permissions, pass in a "permissions" metadata key using this same format. The --metadata-mapper @@ -56096,12 +59311,12 @@ for a user. Creating a Public Link is also supported, if Link.Scope is set to "anonymous".

        Example request to add a "read" permission with --metadata-mapper:

        -
        {
        -    "Metadata": {
        -        "permissions": "[{\"grantedToIdentities\":[{\"user\":{\"id\":\"ryan@contoso.com\"}}],\"roles\":[\"read\"]}]"
        -    }
        -}
        +
        {
        +    "Metadata": {
        +        "permissions": "[{\"grantedToIdentities\":[{\"user\":{\"id\":\"ryan@contoso.com\"}}],\"roles\":[\"read\"]}]"
        +    }
        +}

        Note that adding a permission can fail if a conflicting permission already exists for the file/folder.

        To update an existing permission, include both the Permission ID and @@ -56145,8 +59360,7 @@ backend.

    - + @@ -56210,8 +59424,7 @@ supported by Microsoft. - + @@ -56259,15 +59472,14 @@ organization, or users. - + - + @@ -56309,7 +59521,7 @@ hopefully give you a message of URL of the format https://{tenant}-my.sharepoint.com/personal/{user_name_domain_tld}/Documents

    -

    Limitations

    +

    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 @@ -56356,10 +59568,6 @@ remove all old versions.

    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

    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

    +

    Pre-authenticated URLs

    +

    Microsoft is retiring +pre-authenticated (tempauth) URLs in OneDrive for Business and +SharePoint from April 1, 2027.

    +

    Upgrade to rclone v1.76 or later before April 1, +2027. Earlier versions rely on pre-authenticated URLs, so after +that date their downloads, chunked uploads and server-side copies will +fail with OneDrive for Business and SharePoint. Rclone v1.76 and later +keep working with the existing configuration, apart from the client +credentials flow with a client secret (see below).

    +

    Rclone uses these URLs when downloading files, when uploading files +bigger than --onedrive-upload-cutoff in chunks and when +doing server-side copies. When SharePoint returns them without +pre-authentication rclone authenticates them with a SharePoint token +which it gets using the existing login, so no reconfiguration is needed. +OneDrive Personal is not affected.

    +

    If rclone can't get a SharePoint token, or SharePoint refuses it, you +will see the error +SharePoint refused to authenticate a request. In this case +rclone uploads files smaller than 250 MiB in a single request instead +and copies files by downloading and uploading them, but bigger files +can't be uploaded and downloads may fail.

    +

    SharePoint does not accept tokens from the client credentials flow +which were got with a client secret, so this affects +client_credentials users.

    Excessive throttling or blocked on SharePoint

    If you experience excessive throttling or is being blocked on @@ -56468,8 +59700,8 @@ 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

    +href="https://rclone.org/webdav/#sharepoint-online" +class="uri">https://rclone.org/webdav/#sharepoint-online

    invalid_grant (AADSTS50076)

    Error: invalid_grant
     Code: AADSTS50076
    @@ -56511,6 +59743,22 @@ src="https://i.imgur.com/0S8H3li.png" title="Screenshot (My Files)"
     alt="in_my_files" /> rclone_mount
     
    +

    Listing such a shortcut may still fail with

    +
    invalidRequest: The provided drive id appears to be malformed, or does not represent a valid drive.
    +

    as the drive it points to can't always be read with the drive ID the +API supplies. Personal Vault is a shortcut of the same kind +and fails to list in the same way, though it reports +invalidResourceId: ObjectHandle is Invalid.

    +

    A normal listing reports the error for that folder and carries on, so +the rest of the drive is still listed, and excluding the folder (for +example with --exclude "/Personal Vault/**") avoids the +error.

    +

    A recursive listing with --fast-list stops at the first +error, so listing the root of a drive which has one of these shortcuts +in it will fail. Filters don't help here as the folder is listed by the +backend before the filters are applied - use +--disable ListR (or don't use --fast-list) on +such a drive.

    Live Photos uploaded from iOS (small video clips in .heic files)

    @@ -56552,7 +59800,7 @@ ERROR : 20230203_123826234_iOS.heic: vfs cache: failed to download: vfs reader:

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -56595,13 +59843,13 @@ y/e/d> y
    rclone ls remote:

    To copy a local directory to an OpenDrive directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    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.

    The MD5 hash algorithm is supported.

    -

    Restricted filename +

    Restricted filename characters

    btimeTime of file birth (creation) with S accuracy (mS for OneDrive -Personal).Time of file birth (creation) with S accuracy. RFC 3339 2006-01-02T15:04:05Z N
    mtimeTime of last modification with S accuracy (mS for OneDrive -Personal).Time of last modification with S accuracy. RFC 3339 2006-01-02T15:04:05Z N
    shared-timeTime when the item was shared, with S accuracy (mS for OneDrive -Personal).Time when the item was shared, with S accuracy. RFC 3339 2006-01-02T15:04:05Z Y
    utimeTime of upload with S accuracy (mS for OneDrive Personal).Time of upload with S accuracy. RFC 3339 2006-01-02T15:04:05Z Y
    @@ -56708,7 +59956,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to opendrive (OpenDrive).

    --opendrive-username

    Username.

    @@ -56731,7 +59979,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to opendrive (OpenDrive).

    --opendrive-encoding

    The encoding for the backend.

    @@ -56796,7 +60044,7 @@ access the contents
  • Required: false
  • -

    Limitations

    +

    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 @@ -56828,7 +60076,7 @@ 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

    +

    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 @@ -56956,15 +60204,15 @@ 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
    +
    [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:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to oracleobjectstorage (Oracle Cloud Infrastructure Object Storage).

    --oos-storage-tier

    @@ -57350,7 +60598,7 @@ section in the overview for more info.

  • Config: encoding
  • Env Var: RCLONE_OOS_ENCODING
  • Type: Encoding
  • -
  • Default: Slash,InvalidUtf8,Dot
  • +
  • Default: Slash,CrLf,InvalidUtf8,Dot
  • --oos-leave-parts-on-error

    If true avoid calling abort upload on a failure, leaving all @@ -57621,26 +60869,26 @@ format.

    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.
    -
    -```console
    -rclone backend cleanup remote: [options] [<arguments>+]
    +
    {
    +    "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.
    +
    +```console
    +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 @@ -57669,17 +60917,17 @@ rclone backend restore oos:bucket -o hours=HOURS

    It returns a list of status dictionaries with Object Name and Status keys. The Status will be "RESTORED"" if it was successful or an error message if not.

    -
    [
    -    {
    -        "Object": "test.txt"
    -        "Status": "RESTORED",
    -    },
    -    {
    -        "Object": "test/file4.txt"
    -        "Status": "RESTORED",
    -    }
    -]
    +
    [
    +    {
    +        "Object": "test.txt"
    +        "Status": "RESTORED",
    +    },
    +    {
    +        "Object": "test/file4.txt"
    +        "Status": "RESTORED",
    +    }
    +]

    Options:

    -

    Restricted filename +

    Restricted filename characters

    The control characters 0x00-0x1F and / are replaced as in the default @@ -57819,7 +61067,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to qingstor (QingCloud Object Storage).

    --qingstor-env-auth

    @@ -57903,7 +61151,7 @@ IAM). -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to qingstor (QingCloud Object Storage).

    --qingstor-connection-retries

    @@ -57979,7 +61227,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    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 @@ -58003,7 +61251,7 @@ class="uri">https://docs.maytech.net/quatrix/quatrix-api/api-explorer#/API-Key/p

    See complete Swagger documentation for Quatrix.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -58093,14 +61341,14 @@ y) Yes this is OK e) Edit this remote d) Delete this remote y/e/d> y -

    Modification times and +

    Modification times 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 +

    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 @@ -58123,14 +61371,14 @@ 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

    +

    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

    +

    Standard options

    Here are the Standard options specific to quatrix (Quatrix by Maytech).

    --quatrix-api-key

    @@ -58151,7 +61399,7 @@ Maytech).

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to quatrix (Quatrix by Maytech).

    --quatrix-encoding

    @@ -58250,7 +61498,7 @@ 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 +href="https://docs.sia.tech/">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 @@ -58292,7 +61540,7 @@ it on localhost with command line argument --authorize-api=false, but this is insecure and strongly discouraged. -

    Configuration

    +

    Configuration

    Here is an example of how to make a sia remote called mySia. First, run:

    rclone config
    @@ -58352,7 +61600,7 @@ y/e/d> y -

    Standard options

    +

    Standard options

    Here are the Standard options specific to sia (Sia Decentralized Cloud).

    --sia-api-url

    @@ -58381,7 +61629,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to sia (Sia Decentralized Cloud).

    --sia-user-agent

    @@ -58416,7 +61664,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    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

    +

    Configuration

    Here is an example of making a swift configuration. First run

    rclone config

    This will guide you through an interactive setup process.

    @@ -58560,29 +61811,29 @@ 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
    +

    An OpenStack credentials file typically looks 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
    +
    [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 @@ -58611,11 +61862,11 @@ OpenStack installation.

    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:
    +
    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 --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.

    -

    Modification times and +

    Modification times and hashes

    The modified time is stored as metadata on the object as X-Object-Meta-Mtime as floating point since the epoch @@ -58641,7 +61892,7 @@ 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.

    The MD5 hash algorithm is supported.

    -

    Restricted filename +

    Restricted filename characters

    @@ -58669,7 +61920,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to swift (OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)).

    --swift-env-auth

    @@ -58750,6 +62001,22 @@ OpenStack form.

    +
  • "https://swiss-backup01.infomaniak.com/identity/v3" +
  • +
  • "https://swiss-backup02.infomaniak.com/identity/v3" +
  • +
  • "https://swiss-backup03.infomaniak.com/identity/v3" +
  • +
  • "https://swiss-backup04.infomaniak.com/identity/v3" +
  • --swift-user-id

    @@ -58921,7 +62188,7 @@ provider.

    -

    Advanced options

    +

    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

    @@ -59081,7 +62348,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    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.

    @@ -59093,7 +62360,7 @@ gives Failed to create file system for "remote:": Bad Request 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.

    +investigate further with the --dump bodies flag.

    This may also be caused by specifying the region when you shouldn't have (e.g. OVH).

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    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.

    @@ -59193,7 +62460,7 @@ you to unblock it temporarily if you are running a host firewall.

    rclone ls remote:

    To copy a local directory to a pCloud directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times 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 @@ -59202,7 +62469,7 @@ 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 +

    Restricted filename characters

    In addition to the default @@ -59227,7 +62494,7 @@ replaced:

    Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings.

    -

    Deleting files

    +

    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.

    @@ -59237,7 +62504,7 @@ 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

    +

    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.

    @@ -59280,12 +62547,12 @@ without manual refreshes.

    If you want to debug or verify notifications, you can use the helper command:

    -
    rclone test changenotify remote:
    +
    rclone test changenotify remote:

    This will log incoming change notifications for the given remote.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to pcloud (Pcloud).

    --pcloud-client-id

    OAuth Client Id.

    @@ -59307,7 +62574,7 @@ class="sourceCode bash">Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to pcloud (Pcloud).

    --pcloud-token

    OAuth Access Token as a JSON blob.

    @@ -59434,7 +62701,7 @@ obscure
    .

    drive.

    Paths are specified as remote:path, and may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    Here is an example of making a remote for PikPak.

    First run:

    rclone config
    @@ -59487,7 +62754,7 @@ y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
    -

    Modification times and +

    Modification times and hashes

    PikPak keeps modification times on objects, and updates them when uploading objects, but it does not support changing only the @@ -59495,7 +62762,7 @@ modification time

    The MD5 hash algorithm is supported.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to pikpak (PikPak).

    --pikpak-user

    Pikpak username.

    @@ -59518,7 +62785,7 @@ obscure.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to pikpak (PikPak).

    --pikpak-device-id

    Device ID used for authorization.

    @@ -59590,6 +62857,7 @@ download speeds.

    --pikpak-hash-memory-limit

    Files bigger than this will be cached on disk to calculate hash if required.

    +

    Files of unknown size are always cached on disk.

    Properties:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to pixeldrain (Pixeldrain Filesystem).

    --pixeldrain-api-url

    @@ -59912,7 +63180,7 @@ for more info.

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    The initial setup for premiumize.me involves getting a token from premiumize.me which you need to do in your browser. @@ -59975,12 +63243,12 @@ you to unblock it temporarily if you are running a host firewall.

    To copy a local directory to an premiumize.me directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times 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 +

    Restricted filename characters

    In addition to the default @@ -60012,7 +63280,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to premiumizeme (premiumize.me).

    --premiumizeme-client-id

    @@ -60035,7 +63303,7 @@ can't be used in JSON strings.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to premiumizeme (premiumize.me).

    --premiumizeme-token

    @@ -60101,7 +63369,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    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 @@ -60183,12 +63451,12 @@ attempting to use the credentials in rclone will fail.

    To copy a local directory to an Proton Drive directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Proton Drive Bridge does not support updating modification times yet.

    The SHA1 hash algorithm is supported.

    -

    Restricted filename +

    Restricted filename characters

    Invalid UTF-8 bytes will be replaced, also left @@ -60213,7 +63481,7 @@ clients accessing the same mount point, then we might have a problem with caching the stale data.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to protondrive (Proton Drive).

    --protondrive-username

    @@ -60265,7 +63533,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to protondrive (Proton Drive).

  • Required: false
  • -

    Limitations

    +

    Limitations

    This backend uses the Proton-API-Bridge, which is based on

    Paths are specified as remote:path

    put.io paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    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.

    @@ -60483,7 +63751,7 @@ mode.

    rclone ls remote:

    To copy a local directory to a put.io directory called backup

    rclone copy /home/source remote:backup
    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -60510,7 +63778,7 @@ href="https://rclone.org/overview/#invalid-utf8">replaced, as they can't be used in JSON strings.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to putio (Put.io).

    --putio-client-id

    OAuth Client Id.

    @@ -60532,7 +63800,7 @@ can't be used in JSON strings.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to putio (Put.io).

    --putio-token

    OAuth Access Token as a JSON blob.

    @@ -60596,7 +63864,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    put.io has rate limiting. When you hit a limit, rclone automatically retries after waiting the amount of time requested by the server.

    If you want to avoid ever hitting these limits, you may use the @@ -60677,12 +63945,12 @@ attempting to use the credentials in rclone will fail.

    To copy a local directory to an Proton Drive directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Proton Drive Bridge does not support updating modification times yet.

    The SHA1 hash algorithm is supported.

    -

    Restricted filename +

    Restricted filename characters

    Invalid UTF-8 bytes will be replaced, also left @@ -60707,7 +63975,7 @@ clients accessing the same mount point, then we might have a problem with caching the stale data.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to protondrive (Proton Drive).

    --protondrive-username

    @@ -60759,7 +64027,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to protondrive (Proton Drive).

  • Required: false
  • -

    Limitations

    +

    Limitations

    This backend uses the Proton-API-Bridge, which is based on

  • It supports 2FA enabled users
  • Using a Library API Token is not supported
  • -

    Configuration

    +

    Configuration

    There are two distinct modes you can setup your remote:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to seafile (seafile).

    --seafile-create-library

    Should rclone create a library if it doesn't exist.

    @@ -61293,7 +64566,7 @@ users to OMIT the leading /.

    Note that by default rclone will try to execute shell commands on the server, see shell access considerations.

    -

    Configuration

    +

    Configuration

    Here is an example of making an SFTP configuration. First run

    rclone config

    This will guide you through an interactive setup process.

    @@ -61400,13 +64673,13 @@ provide the path to the user certificate public key file in 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
    +
    [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.

    @@ -61431,13 +64704,13 @@ automatically with --sftp-pin-host-key.

    Using the OpenSSH known_hosts file

    Using the OpenSSH known_hosts file looks like this:

    -
    [remote]
    -type = sftp
    -host = example.com
    -user = sftpuser
    -pass = 
    -known_hosts_file = ~/.ssh/known_hosts
    +
    [remote]
    +type = sftp
    +host = example.com
    +user = sftpuser
    +pass = 
    +known_hosts_file = ~/.ssh/known_hosts

    Alternatively you can create your own known hosts file like this:

    ssh-keyscan -t dsa,rsa,ecdsa,ed25519 example.com >> known_hosts

    There are some limitations:

    @@ -61489,13 +64762,13 @@ server operator.

    --sftp-pin-host-key is ignored.

    After the first successful connection the config will contain a new line:

    -
    [remote]
    -type = sftp
    -host = example.com
    -user = sftpuser
    -pass = 
    -host_keys = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA...
    +
    [remote]
    +type = sftp
    +host = example.com
    +user = sftpuser
    +pass = 
    +host_keys = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA...

    The host_keys field is always validated against the offered host key when non-empty, so you can also pin a known key by hand without ever running with the flag. Each entry is the complete public @@ -61518,7 +64791,7 @@ re-run once with the flag:

    rclone --sftp-pin-host-key lsd remote:

    Alternatively edit host_keys directly to replace or add the new entry. Multiple entries (separated by commas) are supported.

    -

    Limitations

    +

    Limitations

    + + + + + + + + + + + + + + + + + + + +
    CharacterValueReplacement
    NUL0x00␀
    /0x2F/
    +

    If the server runs on Windows, which can't store many more +characters, add the Windows restricted characters with +--sftp-encoding, as in the FTP +example:

    +
    --sftp-encoding "Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot"

    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 @@ -61694,7 +64998,7 @@ built-in shell command (see shell access). If none of the above is applicable, about will fail.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to sftp (SSH/SFTP).

    --sftp-host

    SSH host to connect to.

    @@ -61889,7 +65193,7 @@ connection for every hash it calculates.

  • Type: SpaceSepList
  • Default:
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to sftp (SSH/SFTP).

    --sftp-known-hosts-file

    Optional path to known_hosts file.

    @@ -62002,7 +65306,7 @@ section in the overview for more info.

  • Config: encoding
  • Env Var: RCLONE_SFTP_ENCODING
  • Type: Encoding
  • -
  • Default: Slash,Del,Ctl,Dot
  • +
  • Default: Slash,Dot
  • --sftp-set-modtime

    Set the modified time on the remote if set.

    @@ -62210,6 +65514,28 @@ the performance greatly, especially for distant servers.

  • Type: bool
  • Default: false
  • +

    --sftp-multithread-upload

    +

    Set this to use multi-thread (multi-connection) uploads.

    +

    Normally rclone uploads a single large file over one SFTP connection. +With this set rclone uploads large files over several SFTP connections +at once (one per chunk), which greatly improves throughput on high +latency links, the same way multi-thread downloads already work. Each +connection writes a different, non-overlapping byte range of the file, +so this requires a server that allows several handles to the same file +with writes at arbitrary offsets, which OpenSSH does.

    +

    This is off by default because many SFTP servers only accept +sequential writes (for example some object storage backed SFTP gateways) +and would fail large uploads with "truncate failed" or "invalid offset" +style errors.

    +

    This is ignored (uploads stay single-threaded) when +--sftp-disable-concurrent-writes or --sftp-connections is in use.

    +

    Properties:

    +

    --sftp-idle-timeout

    Max time before closing idle connections.

    If no connections have been returned to the connection pool in the @@ -62414,26 +65740,26 @@ as the source and the destination will be the same file.

  • Required: false
  • -

    Limitations

    +

    Limitations

    On some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly. You can either use ---sftp-path-override or +--sftp-path-override or disable_hashcheck.

    +href="#sftp-disable-hashcheck">disable_hashcheck.

    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.

    +href="https://conferences.computer.org/sp/pdfs/sp/2009/oakland2009-01.pdf">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.

    +with it: --dump headers, --dump bodies, +--dump auth.

    Note that --timeout and --contimeout are both supported.

    rsync.net

    @@ -62462,7 +65788,7 @@ can start with a free account and get 20GB of storage for free.

    Paths are specified as remote:path

    Paths may be as deep as required, e.g. remote:directory/subdirectory.

    -

    Configuration

    +

    Configuration

    Here is an example of making a Shade configuration.

    First, create a create a free account account and choose a plan.

    @@ -62472,55 +65798,55 @@ account and created drive respectively.

    Now run

    rclone config

    Follow this interactive process:

    -
    $ rclone config
    -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
    -
    -Enter name for new remote.
    -name> Shade
    -
    -Option Storage.
    -Type of storage to configure.
    -Choose a number from below, or type in your own value.
    -[OTHER OPTIONS]
    -xx / Shade FS
    -   \ (shade)
    -[OTHER OPTIONS]
    -Storage> xx
    -
    -Option drive_id.
    -The ID of your drive, see this in the drive settings. Individual rclone configs must be made per drive.
    -Enter a value.
    -drive_id> [YOUR_ID]
    -
    -Option api_key.
    -An API key for your account.
    -Enter a value.
    -api_key> [YOUR_API_KEY]
    -
    -Edit advanced config?
    -y) Yes
    -n) No (default)
    -y/n> n
    -
    -Configuration complete.
    -Options:
    -- type: shade
    -- drive_id: [YOUR_ID]
    -- api_key: [YOUR_API_KEY]
    -Keep this "Shade" remote?
    -y) Yes this is OK (default)
    -e) Edit this remote
    -d) Delete this remote
    -y/e/d> y
    -

    Modification times and +
    $ rclone config
    +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
    +
    +Enter name for new remote.
    +name> Shade
    +
    +Option Storage.
    +Type of storage to configure.
    +Choose a number from below, or type in your own value.
    +[OTHER OPTIONS]
    +xx / Shade FS
    +   \ (shade)
    +[OTHER OPTIONS]
    +Storage> xx
    +
    +Option drive_id.
    +The ID of your drive, see this in the drive settings. Individual rclone configs must be made per drive.
    +Enter a value.
    +drive_id> [YOUR_ID]
    +
    +Option api_key.
    +An API key for your account.
    +Enter a value.
    +api_key> [YOUR_API_KEY]
    +
    +Edit advanced config?
    +y) Yes
    +n) No (default)
    +y/n> n
    +
    +Configuration complete.
    +Options:
    +- type: shade
    +- drive_id: [YOUR_ID]
    +- api_key: [YOUR_API_KEY]
    +Keep this "Shade" remote?
    +y) Yes this is OK (default)
    +e) Edit this remote
    +d) Delete this remote
    +y/e/d> y
    +

    Modification times and hashes

    Shade does not support hashes and writing mod times.

    Transfers

    @@ -62529,13 +65855,13 @@ be chunked and sent up to Shade concurrently. In order to configure how many simultaneous uploads you want to use, upload the 'concurrency' option in the advanced config section. Note that this uses more memory and initiates more http requests.

    -

    Deleting files

    +

    Deleting files

    Please note that when deleting files in Shade via rclone it will delete the file instantly, instead of sending it to the trash. This means that it will not be recoverable.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to shade (Shade FS).

    --shade-drive-id

    The ID of your drive, see this in the drive settings. Individual @@ -62556,7 +65882,7 @@ rclone configs must be made per drive.

  • Type: string
  • Required: true
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to shade (Shade FS).

    --shade-endpoint

    Endpoint for the service.

    @@ -62643,7 +65969,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    Note that Shade is case insensitive so you can't have a file called "Hello.doc" and one called "hello.doc".

    Shade only supports filenames up to 255 characters in length.

    @@ -62688,7 +66014,7 @@ href="https://rclone.org/local/#paths-on-windows">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

    +

    Configuration

    Here is an example of making a SMB configuration.

    First run

    rclone config
    @@ -62765,7 +66091,7 @@ d) Delete this remote y/e/d> d -

    Standard options

    +

    Standard options

    Here are the Standard options specific to smb (SMB / CIFS).

    --smb-host

    SMB server hostname to connect to.

    @@ -62779,12 +66105,13 @@ y/e/d> d

    --smb-user

    SMB username.

    +

    Leave blank to use the current user name.

    Properties:

    --smb-port

    SMB port number.

    @@ -62843,8 +66170,22 @@ KRB5_CONFIG and KRB5CCNAME environment variables.

  • Type: bool
  • Default: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to smb (SMB / CIFS).

    +

    --smb-workstation

    +

    Workstation name sent in NTLM authentication.

    +

    The NetBIOS name sent as the client workstation in the NTLM +AUTHENTICATE message. Some servers (e.g. domain-joined Windows servers +with per-account workstation restrictions or NTLM allow-lists) require +this to match a specific name. Leave blank to send no workstation name +(the default).

    +

    Properties:

    +

    --smb-idle-timeout

    Max time before closing idle connections.

    If no connections have been returned to the connection pool in the @@ -63035,12 +66376,12 @@ upload gateway -

    Configuration

    +

    Configuration

    To make a new Storj configuration you need one of the following:

    Here is an example of how to make a remote called @@ -63142,7 +66483,7 @@ d) Delete this remote y/e/d> y -

    Standard options

    +

    Standard options

    Here are the Standard options specific to storj (Storj Decentralized Cloud Storage).

    --storj-provider

    @@ -63224,7 +66565,7 @@ passphrase.
  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to storj (Storj Decentralized Cloud Storage).

    --storj-description

    @@ -63311,7 +66652,7 @@ deleted.

    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 --interactive --progress s3:bucket/path/to/dir/ storj:bucket/path/to/dir/
    -

    Limitations

    +

    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 @@ -63340,7 +66681,7 @@ operating system manual.

    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.

    @@ -63413,13 +66754,13 @@ store them, it only uses them to get the initial token.

    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.

    -

    Modification times and +

    Modification times 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 +

    Restricted filename characters

    SugarSync replaces the default @@ -63427,7 +66768,7 @@ 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 @@ -63435,7 +66776,7 @@ or set the config parameter hard_delete = true if you would like files to be deleted straight away.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to sugarsync (Sugarsync).

    --sugarsync-app-id

    Sugarsync App ID.

    @@ -63478,7 +66819,7 @@ files.

  • Type: bool
  • Default: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to sugarsync (Sugarsync).

    --sugarsync-refresh-token

    Sugarsync refresh token.

    @@ -63562,7 +66903,7 @@ section in the overview for more info.

  • Required: false
  • -

    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 @@ -63576,7 +66917,7 @@ href="https://rclone.org/commands/rclone_about/">rclone about.

    remote:directory/subdirectory.

    The initial setup for Uloz.to involves filling in the user credentials. rclone config walks you through it.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a remote called remote. First run:

    rclone config
    @@ -63641,7 +66982,7 @@ y/e/d> y and password. Uloz.to offers an API key as well, but it's reserved for the use of Uloz.to's in-house application and using it in different circumstances is unreliable.

    -

    Modification times and +

    Modification times and hashes

    Uloz.to doesn't allow the user to set a custom modification time, or retrieve the hashes after upload. As a result, the integration uses a @@ -63651,7 +66992,7 @@ and hashes. Timestamps are stored with microsecond precision.

    Afterwards, the backend only serves the client-side calculated hashes. Hashes can also be retrieved upon creating a file download link, but it's impractical for list-like use cases.

    -

    Restricted filename +

    Restricted filename characters

    In addition to the default @@ -63681,12 +67022,12 @@ can't be used in JSON strings.

    uploading large files a stable connection is necessary. Rclone will upload up to --transfers chunks at the same time (shared among all uploads).

    -

    Deleting files

    +

    Deleting files

    By default, files are moved to the recycle bin whereas folders are deleted immediately. Trashed files are permanently deleted after 30 days in the recycle bin.

    Emptying the trash is currently not implemented in rclone.

    -

    Root folder ID

    +

    Root folder ID

    You can set the root_folder_slug for rclone. This is the folder (identified by its Folder slug) that rclone considers to be the root of your Uloz.to drive.

    @@ -63707,7 +67048,7 @@ in the remote path. For example, if your remote's ABSOLUTE_ULOZTO_ROOT/foo/bar/baz/qux.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to ulozto (Uloz.to).

    --ulozto-app-token

    The application token identifying the app. An app API key can be @@ -63741,7 +67082,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to ulozto (Uloz.to).

    --ulozto-root-folder-slug

    If set, rclone will use this folder as the root folder for all @@ -63784,7 +67125,7 @@ section in the overview for more info.

  • Required: false
  • -

    Limitations

    +

    Limitations

    Uloz.to file names can't have the \ character in. rclone maps this to and from an identical looking unicode equivalent \ (U+FF3C Fullwidth Reverse Solidus).

    @@ -63831,7 +67172,7 @@ named backup with the remotes segments. Invoking rclone mkdir backup:../desktop is exactly the same as invoking rclone mkdir mydrive:private/backup/../desktop.

    -

    Configuration

    +

    Configuration

    Here is an example of how to make a union called remote for local folders. First run:

    rclone config
    @@ -63992,7 +67333,7 @@ used only if your upstreams support the respective quota fields.

    To check if your upstream supports the field, run rclone about remote: [flags] and see if the required field exists.

    -

    Filters

    +

    Filters

    Policies basically search upstream remotes and create a list of files / paths for functions to work on. The policy is responsible for filtering and sorting. The policy type defines the sorting but filtering @@ -64110,13 +67451,13 @@ upstream.

    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
    +
    [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 @@ -64133,7 +67474,7 @@ 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

    +

    Standard options

    Here are the Standard options specific to union (Union merges the contents of several upstream fs).

    --union-upstreams

    @@ -64184,7 +67525,7 @@ dir" upstreamb:', etc.

  • Type: int
  • Default: 120
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to union (Union merges the contents of several upstream fs).

    --union-min-free-space

    @@ -64217,7 +67558,7 @@ for more info.

    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.

    @@ -64295,7 +67636,7 @@ y/e/d> y
    rclone ls remote:

    To copy a local directory to an WebDAV directory called backup

    rclone copy /home/source remote:backup
    -

    Modification times and +

    Modification times and hashes

    Plain WebDAV does not support modified times. However when used with Fastmail Files, ownCloud or Nextcloud rclone will support modified @@ -64304,10 +67645,12 @@ times.

    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.

    +with them. With Nextcloud, rclone asks the server to calculate the SHA1 +of uploads which had no hash to send, such as streamed uploads, and +after setting the modification time, which discards the stored hash.

    -

    Standard options

    +

    Standard options

    Here are the Standard options specific to webdav (WebDAV).

    --webdav-url

    URL of http host to connect to.

    @@ -64397,7 +67740,7 @@ obscure.

  • Type: string
  • Required: false
  • -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to webdav (WebDAV).

    --webdav-bearer-token-command

    Command to run to get a bearer token.

    @@ -64432,6 +67775,12 @@ used.

    '"Cookie","name=value"'.

    You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'.

    +

    The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. The exception is the directory listing and file download +requests when auth_redirect is set, as that keeps all credentials across +redirects.

    Properties:

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to yandex (Yandex Disk).

    --yandex-token

    OAuth Access Token as a JSON blob.

    @@ -64896,6 +68256,22 @@ normally enough to stop them, at the cost of slowing down uploads.

  • Type: Duration
  • Default: 0s
  • +

    --yandex-app-folder

    +

    Use the application folder as the root.

    +

    If you registered your own OAuth application with Yandex with only +the "Application Folder" permission (cloud_api:disk.app_folder) instead +of full disk access, then rclone needs to address paths with the "app:/" +prefix instead of the usual "disk:/" prefix, otherwise all requests fail +with a 403 Forbidden error.

    +

    Set this to true if your OAuth token only has access to the +application folder.

    +

    Properties:

    +

    --yandex-description

    Description of the remote.

    Properties:

    @@ -64906,7 +68282,7 @@ normally enough to stop them, at the cost of slowing down uploads.

  • Required: false
  • -

    Limitations

    +

    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) @@ -64933,7 +68309,7 @@ Rclone won't be able to complete any actions.

    Zoho WorkDrive is a cloud storage solution created by Zoho.

    -

    Configuration

    +

    Configuration

    Here is an example of making a zoho configuration. First run

    rclone config

    This will guide you through an interactive setup process:

    @@ -65016,7 +68392,7 @@ any excess files in the path.

    rclone sync --interactive /home/local/directory remote:directory

    Zoho paths may be as deep as required, eg remote:directory/subdirectory.

    -

    Modification times and +

    Modification times and hashes

    Modified times are currently not supported for Zoho Workdrive

    No hash algorithms are supported.

    @@ -65024,14 +68400,14 @@ hashes

    To view your current quota you can use the rclone about remote: command which will display your current usage.

    -

    Restricted filename +

    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

    +

    Standard options

    Here are the Standard options specific to zoho (Zoho).

    --zoho-client-id

    OAuth Client Id.

    @@ -65092,7 +68468,7 @@ browser.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to zoho (Zoho).

    --zoho-token

    OAuth Access Token as a JSON blob.

    @@ -65297,12 +68673,12 @@ enable it in other regions.

    rclone sync --interactive /home/source /tmp/destination

    Will sync /home/source to /tmp/destination.

    -

    Configuration

    +

    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.

    -

    Modification times

    +

    Modification times

    Rclone reads and writes the modification times using an accuracy determined by the OS. Typically this is 1ns on Linux, 10 ns on Windows and 1 Second on OS X.

    @@ -65594,7 +68970,7 @@ These only get replaced if they are the last character in the name:

    Invalid UTF-8 bytes will also be replaced, as they can't be converted to UTF-16.

    -

    Paths on Windows

    +

    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 @@ -65628,15 +69004,15 @@ drivers like EncFS. To disable UNC conversion globally, add this to your .rclone.conf file:

    -
    [local]
    -nounc = true
    +
    [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
    +
    [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 @@ -65671,6 +69047,8 @@ this

    6 two/three 6 b/two 6 b/one +

    Symlinks which point to a parent directory would loop forever, so +rclone reports them as errors and skips them.

    Normally rclone will ignore symlinks or junction points (which behave like symlinks under Windows).

    @@ -65705,6 +69083,9 @@ $ tree /tmp/b /tmp/b ├── file1 -> ./file4 └── file2 -> /home/user/file3 +

    A .rclonelink file whose contents are too long to be a +path (more than 128 KiB) is refused rather than turned into a +symlink.

    However, if copied back without '-l'

    $ rclone copyto remote:/tmp/a/ /tmp/b/
     
    @@ -65781,7 +69162,7 @@ systems. On systems where it isn't supported (e.g. Windows) it will be
     ignored.

    -

    Advanced options

    +

    Advanced options

    Here are the Advanced options specific to local (Local Disk).

    --local-nounc

    Disable UNC (long path names) conversion on Windows.

    @@ -65959,6 +69340,12 @@ deduplicated by default (i.e. having two identical files does not consume more storage than having just one.) However, for use cases where data redundancy is preferable, --local-no-clone can be used to disable cloning and force "deep" copies.

    +

    Cloning also preserves macOS-specific metadata such as extended +attributes, which a normal copy does not, so this metadata is lost when +cloning is disabled.

    +

    If the destination file already exists, cloning replaces it with a +new file, even with --inplace, so hard links to it are broken. Use +--local-no-clone to update existing files in place.

    Currently, cloning is only supported when using APFS on macOS (support for other platforms may be added in the future.)

    Properties:

    @@ -66033,10 +69420,10 @@ set this flag.

    --local-fatal-if-no-space

    Make out-of-space errors fatal during transfers.

    -

    When enabled, an ENOSPC error during a write returns a fatal error so -that rclone aborts rather than retrying the operation. Useful for backup -scripts that should halt loudly on a full disk rather than spin -retrying.

    +

    When enabled, an out of space error while writing, creating a +directory, or creating a file returns a fatal error so that rclone +aborts rather than retrying the operation. Useful for backup scripts +that should halt loudly on a full disk rather than spin retrying.

    Properties:

    • Config: fatal_if_no_space
    • @@ -66130,8 +69517,10 @@ supported by all file systems) under the "user.*" prefix.

      When restoring metadata with --metadata rclone applies the "mode", "uid" and "gid" from the source. These come from the source remote which may not be trusted, so restoring metadata as root from an -untrusted source can change file ownership and is not recommended. The -setuid, setgid and sticky bits are not restored by default - see the +untrusted source can change file ownership and is not recommended. A +user other than root keeps its own uid and sets the gid only to a group +it is a member of, as rsync does. The setuid, setgid and sticky bits are +not restored by default - see the --local-metadata-restore-special-bits flag.

      Here are the possible system metadata items for the local backend.

      @@ -66229,6 +69618,1330 @@ the output.

      Changelog

      +

      v1.76.0 - 2026-11-06

      +

      See +commits

      +
        +
      • New backends +
      • +
      • New S3 Providers +
      • +
      • New commands +
          +
        • index: Write +static directory listings into a remote (Nick Craig-Wood)
        • +
      • +
      • Security +
          +
        • build +
            +
          • Disable Multipath TCP listeners by default to mitigate +CVE-2026-98432 (Nick Craig-Wood)
          • +
          • Fix multiple CVEs including CVE-2026-111943 by upgrading to go1.27.3 +(Nick Craig-Wood)
          • +
          • Update golang.org/x/net to v0.62.0 to fix multiple CVEs +(Nick Craig-Wood)
          • +
          • Update github.com/andybalholm/brotli to v1.2.7 to fix +CVE-2026-111497 (Nick Craig-Wood)
          • +
        • +
        • fshttp: Refuse HTTPS to HTTP redirects unless +--allow-https-downgrade GHSA-m97j-7x65-wh93 CVE-PENDING +(Nick Craig-Wood)
        • +
        • lib/http: Stop --htpasswd and --user +revealing which usernames exist through timing GHSA-hwj7-wp9g-wrv9 +CVE-PENDING (Nick Craig-Wood)
        • +
        • local +
            +
          • Fix user metadata escaping the root through a planted symlink +GHSA-r5wv-vqqh-2r9c CVE-PENDING (Nick Craig-Wood)
          • +
          • Fix MkdirMetadata finding directories outside the root through a +planted symlink (Nick Craig-Wood)
          • +
          • Fix Remove and Rmdir deleting outside the root through a planted +symlink (Nick Craig-Wood)
          • +
          • Fix DirMove creating the destination parent through a planted +symlink (Nick Craig-Wood)
          • +
        • +
        • netstorage: Fix API auth headers leaking to other hosts on redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood)
        • +
        • rc +
            +
          • Limit request size when the rc server has no authentication +GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood)
          • +
          • Reject unauthorised and unknown calls before reading the request +GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood)
          • +
        • +
        • seafile: Fix HTTPS to HTTP redirects leaking credentials +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood)
        • +
        • serve: Make auth proxy revocation take effect within 5 minutes +GHSA-vmgx-g9c5-669p CVE-PENDING (Nick Craig-Wood)
        • +
        • serve sftp +
            +
          • Fix auth proxy letting a public key be used as a password +GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood)
          • +
          • Fix auth proxy running for public keys the client can't use +GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood)
          • +
        • +
        • swift +
            +
          • Fix auth token leaking to other hosts or over plaintext on redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood)
          • +
          • Fix password being resent to another host on auth redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood)
          • +
        • +
        • ulozto: Fix auth tokens leaking on redirects from download links +GHSA-3xpx-hjg2-vrjh CVE-PENDING (Nick Craig-Wood)
        • +
      • +
      • New Features +
          +
        • accounting +
            +
          • Stop --max-transfer overshooting the limit (Nick +Craig-Wood)
          • +
          • Add "Updated dirs" count of directory modtime/metadata updates to +the stats (Nick Craig-Wood)
          • +
        • +
        • batcher: Log when committing uploads has finished (phatlc)
        • +
        • bisync +
            +
          • Make --max-delete aware of --track-renames +(Morax)
          • +
          • Fall back to --download when a checksum is missing +(nielash)
          • +
          • Reject --max-delete above 100 (nielash)
          • +
        • +
        • build +
            +
          • Update to go1.27 and make go1.26 the minimum required version (Nick +Craig-Wood)
          • +
          • Update all dependencies (Nick Craig-Wood)
          • +
        • +
        • cmd: Complete enum flag values from their choices (Demiao +Huang)
        • +
        • config: Only run --password-command once when using +--daemon (phatlc)
        • +
        • doc fixes (ashwinibailangadi, ferrumclaudepilgrim, frodleTian, +FTCHD, gomitrah, Nick Craig-Wood, qodelicious, Satvik Mishra, +ZainnQureshii)
        • +
        • docker: Make container user UID and GID configurable via build ARGs +(Vaibhav Mashal)
        • +
        • filter +
            +
          • Speed up large --include-from lists of directories +(kaii9)
          • +
          • Make [!...] in globs a negated character class +(kevin9327)
          • +
          • Make [^...] in globs exclude / and +document it (kevin9327)
          • +
        • +
        • fs +
            +
          • Reject sizes too large for SizeSuffix instead of silently disabling +the limit (KBS)
          • +
          • Stop writing config for on the fly and environment variable remotes +into the config file (Nick Craig-Wood)
          • +
          • Reject durations like 300y that overflow instead of wrapping +(kevin9327)
          • +
          • Accept multi-unit relative times like 1d12h in Time options +(kevin)
          • +
          • Reject NaN sizes and CountSuffix values that overflow +(kevin9327)
          • +
          • Reject --bwlimit times without a colon or with signed +digits (kevin9327)
          • +
          • Reject NaN durations instead of wrapping (Soujas K)
          • +
          • Add MIME type for JPEG XL (.jxl) files (Seth Westphal)
          • +
        • +
        • gui +
            +
          • Take the GUI out of beta (Nick Craig-Wood)
          • +
          • Update embedded release to 1.2.1 (Nick Craig-Wood)
          • +
        • +
        • hash: Add CRC-32C (Castagnoli) support (Dirk Petersen)
        • +
        • index: Add partial runs which only re-index changed directories +(Nick Craig-Wood)
        • +
        • lib/http +
            +
          • Return 416 for ranges --rc-serve and serve restic can't +satisfy (Rohit Behera)
          • +
          • Replace github.com/abbot/go-http-auth with built in +htpasswd support (Nick Craig-Wood)
          • +
          • Accept the Basic auth scheme in any case (kevin)
          • +
        • +
        • lib/proxy: Send the decoded user and password in Proxy-Authorization +(kevin)
        • +
        • lib/transform: Make titlecase capitalise words instead of +upper-casing them (kevin)
        • +
        • ncdu: Show progress and the item count when deleting a selection +(Lev Devaev)
        • +
        • operations +
            +
          • Check checksums in rcat with known size (phatlc)
          • +
          • Speed up checksum by hashing files in parallel (Teddy Tennant)
          • +
          • Fall back to a single stream when a multi-thread source ignores +ranges (Morax)
          • +
          • Show directory operations in the --progress display +(Nick Craig-Wood)
          • +
          • Add operations/getfile remote control API endpoint +(Hakan İSMAİL)
          • +
          • Make --immutable work with copyto, moveto and single +file copy (phatlc)
          • +
          • Respect --backup-dir in deletefile (Cao Yuhang)
          • +
        • +
        • rc +
            +
          • Deprecate --rc-web-gui flag (Nick Craig-Wood)
          • +
          • Add sync report parameters to sync/sync, +sync/copy and sync/move (Nick Craig-Wood)
          • +
        • +
        • rest: Reject negative sizes in HTTP response headers (Yousef +Issa)
        • +
        • serve http +
            +
          • Sort directory listings in the browser (Nick Craig-Wood)
          • +
          • Redesign the directory listing page (Nick Craig-Wood)
          • +
        • +
        • serve s3 +
            +
          • Report the object's modtime as Last-Modified after a PUT +(kevin9327)
          • +
          • Support changing object tags (Nick Craig-Wood)
          • +
          • Quote the ETags of objects in listings (Nick Craig-Wood)
          • +
          • Support listing with delimiters other than "/" (Nick +Craig-Wood)
          • +
          • Support directory markers and refuse file/directory conflicts (Nick +Craig-Wood)
          • +
          • Make the ETag of multipart uploads agree with HEAD and support +partNumber (Nick Craig-Wood)
          • +
          • Make conditional writes atomic against other writes through the +server (Nick Craig-Wood)
          • +
          • Make the ETag returned on upload agree with HEAD for any +--etag-hash (Nick Craig-Wood)
          • +
          • List empty directories as directory markers (Nick Craig-Wood)
          • +
          • Allow copying directory markers (Nick Craig-Wood)
          • +
          • Remove the directories made for a failed upload (Nick +Craig-Wood)
          • +
          • Keep the MD5 ETag of objects on remotes without MD5 (Nick +Craig-Wood)
          • +
          • Don't read directories needlessly when listing with a delimiter +(Nick Craig-Wood)
          • +
          • Don't compute the MD5 of multipart uploads unless the ETag is MD5 +(Nick Craig-Wood)
          • +
          • List the directory markers put for directories holding other keys +(Nick Craig-Wood)
          • +
          • Let a failed CompleteMultipartUpload be retried (Nick +Craig-Wood)
          • +
          • List objects with the storage class they were put with (Nick +Craig-Wood)
          • +
          • Add --directory-markers to list every directory as a +marker (Nick Craig-Wood)
          • +
          • Remove a directory with its last key after its marker is deleted +(Nick Craig-Wood)
          • +
          • Make --no-cleanup a deprecated alias of +--directory-markers (Nick Craig-Wood)
          • +
          • Document which S3 features are supported and the design goals (Nick +Craig-Wood)
          • +
        • +
        • serve webdav +
            +
          • Sort directory listings in the browser (Nick Craig-Wood)
          • +
          • Redesign the directory listing page (Nick Craig-Wood)
          • +
        • +
        • size: Include source in JSON output (Jiacheng Xu)
        • +
        • sync: Add pattern-based transfer ordering (Shurong Cao)
        • +
        • touch: Parse documented timestamp formats (Nicholas Velten)
        • +
      • +
      • Bug Fixes +
          +
        • accounting: Fix totalBytes counting server-side copies and moves +twice (ilya lavrenov)
        • +
        • bisync +
            +
          • Fix conflict winner missing from listings when Path2 wins +(nielash)
          • +
          • Fix --conflict-resolve comparing a zero size or modtime +(nielash)
          • +
          • Fix endless retry loop for skipped files (nielash)
          • +
          • Fix listings ignoring a modtime less than 1s older (nielash)
          • +
          • Fix rc ignoring global --dry-run and +--max-delete settings (nielash)
          • +
          • Fix rc ignoring legacy backupdir1/2 and invalid values +(nielash)
          • +
          • Fix internal error when a conflict rename reuses deleted names +(TastyHeadphones)
          • +
        • +
        • fs: Fix durations like 1d12h being rejected (Rohit Behera)
        • +
        • lib/encoder: Fix decoding a trailing character after an escaped +quote (kevin9327)
        • +
        • list: Fix ext sort error sometimes being ignored at the end of a +listing (Nick Craig-Wood)
        • +
        • ncdu: Update to tcell v3 which fixes duplicated keys on Windows +(Nick Craig-Wood)
        • +
        • operations +
            +
          • Fix making a directory with modtime asking twice with +--interactive (Nick Craig-Wood)
          • +
          • Fix case- or Unicode-only renames deleting the file (nielash)
          • +
          • Fix moving a file onto its own name deleting it (nielash)
          • +
          • Fix cat --offset before the start of a file printing +its end (b84330808)
          • +
          • Fix oversized getfile tail requests (唐僧洗发用飘柔)
          • +
        • +
        • rc: Fix LogLevel in _config being ignored (Nick +Craig-Wood)
        • +
        • rest: Fix retries reading the request body after the request has +finished (Nick Craig-Wood)
        • +
        • serve dlna: Fix crash on Browse with a negative StartingIndex or +RequestedCount (phatlc)
        • +
        • serve restic: Fix temporary errors confusing restic into leaving +locks behind (Azhar)
        • +
        • serve s3 +
            +
          • Update to gofakes3 v0.0.8 which fixes 500 errors with go1.27 (Nick +Craig-Wood)
          • +
          • Upgrade gofakes3 to v0.0.11 to fix IsTruncated and Docker +Distribution Registry (DEVN)
          • +
          • Fix buckets being undeletable after an aborted multipart upload +(Nick Craig-Wood)
          • +
          • Fix CopyObject metadata including the source's and an mtime (Nick +Craig-Wood)
          • +
        • +
        • serve sftp: Fix rmdir deleting a file instead of returning an error +(phatlc)
        • +
        • sync +
            +
          • Fix directory modtimes being set twice (Nick Craig-Wood)
          • +
          • Fix --delete-empty-src-dirs disabled by a prior error +in a reused stats group (ghwany)
          • +
        • +
        • walk: Fix duplicate directories with --fast-list when +directories are listed after their contents (Nick Craig-Wood)
        • +
      • +
      • Mount +
          +
        • Fix VFS instance leaks on mount failures and unmounts (Hakan +İSMAİL)
        • +
      • +
      • VFS +
          +
        • Preserve shrinking truncate on uncached files (47th)
        • +
        • Fix crash renaming a directory while the dir cache expires +(Shreyansh Jain)
        • +
        • Fix virtual entries leak in removed directory (Biagio +Peccerillo)
        • +
        • Fix renamed items listed twice after a case or Unicode-only match +(nielash)
        • +
        • Fix uploads never starting while a dirty file keeps being read (Neil +Cawse)
        • +
      • +
      • Local +
          +
        • Speed up default checksummed copies by writing in larger blocks +(Dominik Sander)
        • +
        • Make out of space errors fatal during multi-thread transfers +(ferrumclaudepilgrim)
        • +
        • Stop --copy-links following symlink loops (phatlc)
        • +
        • Limit the size of symlink targets read from .rclonelink files (Nick +Craig-Wood)
        • +
        • Fix server-side copy on macOS when the destination exists (Ayush +Sharma)
        • +
        • Set only the ownership a non-root user may set (Dirk Petersen)
        • +
      • +
      • Crypt +
          +
        • Fix nil pointer panic in ObjectInfo.Hash (fixfon)
        • +
      • +
      • Archive +
          +
        • Read symlinks stored in zip and squashfs archives (Lev Devaev)
        • +
        • Fix reading an archive in the root of a remote (Oshino Penguin)
        • +
      • +
      • Azure Blob +
          +
        • Enable on Solaris (acoeur)
        • +
        • Fix directories on storage accounts with hierarchical namespace +(Nick Craig-Wood)
        • +
        • Fix NewObject on a directory returning "is not a regular file" (Nick +Craig-Wood)
        • +
        • Fix listing a file as a directory on hierarchical namespace accounts +(Nick Craig-Wood)
        • +
        • Fix sync at the root failing on soft deleted containers (Ludovic +Bondon)
        • +
      • +
      • Box +
          +
        • Reuse multipart upload part buffers via the global pool (Nick +Craig-Wood)
        • +
        • Fix ~ and environment variables not being expanded in +box_config_file (Nick Craig-Wood)
        • +
      • +
      • Chunker +
          +
        • Clean stale chunks after server-side overwrite +(hahahahahayesyeseys)
        • +
      • +
      • Compress +
          +
        • Buffer small uploads in the global memory pool (Nick +Craig-Wood)
        • +
        • Stop buffering the compressibility check output in memory (Nick +Craig-Wood)
        • +
      • +
      • Drime +
          +
        • Fix endless listing of directories with more than 20,000 entries +(Maksym Tymoshyk)
        • +
      • +
      • Drive +
          +
        • Fetch metadata permissions concurrently (Loi Nguyen)
        • +
        • Reuse resumable-upload chunk buffers via the global memory pool +(SillyZir)
        • +
        • Stop a fast-list error from hanging the sync (Sash)
        • +
      • +
      • Dropbox +
          +
        • Reuse upload chunk buffers via the global memory pool (Nick +Craig-Wood)
        • +
      • +
      • Filelu +
          +
        • Reuse multipart upload buffers via the global pool and retry failed +parts (Nick Craig-Wood)
        • +
        • Encode multipart init paths (wjc)
        • +
      • +
      • FTP +
          +
        • Discard connections that fail with non-FTP errors (Daniel Bae)
        • +
        • Fix ranged reads failing when the server answers 425 to an early +close (Robert Kubiś)
        • +
      • +
      • Hasher +
          +
        • Keep cached hash when only the modtime changes (Aniket)
        • +
      • +
      • Hidrive +
          +
        • Stop copying every upload chunk a second time (Nick Craig-Wood)
        • +
        • Buffer the start of each upload from the global memory pool (Nick +Craig-Wood)
        • +
        • Reuse chunked upload buffers via the global memory pool (Nick +Craig-Wood)
        • +
        • Buffer small file updates from the global memory pool (Nick +Craig-Wood)
        • +
        • Fix truncated file left behind when an upload hits +--max-transfer (Nick Craig-Wood)
        • +
      • +
      • HTTP +
          +
        • Add metadata defaults for --http-no-head +(Giridhar)
        • +
      • +
      • Huaweidrive +
          +
        • Build small uploads in pooled memory instead of a growing buffer +(Nick Craig-Wood)
        • +
        • Reuse resumable-upload chunk buffers via the global pool (Nick +Craig-Wood)
        • +
        • Fix creating, copying and renaming files with non-ASCII names (Nick +Craig-Wood)
        • +
      • +
      • Iclouddrive +
          +
        • Mark the backend as case insensitive (berce)
        • +
      • +
      • Imagekit +
          +
        • Stop multipart writers after failed uploads (Florian Josef +Altendorfer)
        • +
      • +
      • Jottacloud +
          +
        • Buffer MD5 pre-reads in the global memory pool (Nick +Craig-Wood)
        • +
        • Fix server-side copy onto a trashed file failing as corrupted (Nick +Craig-Wood)
        • +
        • Fix server-side copy onto a trashed file keeping the old name case +(Nick Craig-Wood)
        • +
        • Fix authentication with whitelabel services elkjop and elko +(albertony)
        • +
        • Fix traditional authentication failing with invalid_client +(albertony)
        • +
      • +
      • Linkbox +
          +
        • Buffer the hashed 10 MiB file prefix in the global memory pool (Nick +Craig-Wood)
        • +
      • +
      • Mailru +
          +
        • Buffer speedup hashing in the global memory pool and fix upload +retries (Nick Craig-Wood)
        • +
      • +
      • Onedrive +
          +
        • OneDrive for Business and SharePoint users must upgrade to v1.76+ +before April 1, 2027 (Nick Craig-Wood)
        • +
        • Authenticate SharePoint downloads, uploads and copies after tempauth +retirement (Nick Craig-Wood)
        • +
        • Return an error if a ranged download doesn't return the requested +range (Nick Craig-Wood)
        • +
        • Reuse upload chunk buffers via the global memory pool (Nick +Craig-Wood)
        • +
        • Allow --onedrive-upload-cutoff up to the documented +limit of 250 MiB (Can Arslan)
        • +
        • Add configurable SharePoint tenant API version (Mattias +Michaux)
        • +
        • Make --onedrive-delta quicker when not listing from the +drive root (Nick Craig-Wood)
        • +
        • Keep the delta token when a ChangeNotify poll fails +(xiaozou-wine)
        • +
        • Show the size of directories in listings (GingerAdonis)
        • +
        • Poll async copy status with the configured HTTP client (Soujas +K)
        • +
      • +
      • Opendrive +
          +
        • Reuse upload chunk buffers via the global memory pool (Nick +Craig-Wood)
        • +
      • +
      • Oracleobjectstorage +
          +
        • Add server-side object moves (tomaszni)
        • +
        • Encode carriage returns and line feeds (tomaszni)
        • +
        • Purge objects in batches (tomaszni)
        • +
        • Retry 409 ConcurrentObjectUpdate errors (berce)
        • +
      • +
      • Pcloud +
          +
        • Stop multipart writers after failed uploads (Florian Josef +Altendorfer)
        • +
      • +
      • Pikpak +
          +
        • Share upload chunk buffers with the global memory pool (Nick +Craig-Wood)
        • +
        • Use pooled memory for the gcid hash buffer and spool unknown-size +uploads to disk (Nick Craig-Wood)
        • +
        • Fix downloads that return an HTTP error page as the file +(Cestercian)
        • +
        • Stop multipart writers after failed uploads (Florian Josef +Altendorfer)
        • +
        • Fix uploads failing when the server is slow to complete them (Nick +Craig-Wood)
        • +
      • +
      • Putio +
          +
        • Reuse upload chunk buffers via the global memory pool (Nick +Craig-Wood)
        • +
      • +
      • S3 +
          +
        • Avoid buffering Object Lock uploads when the source MD5 is known +(Nick Craig-Wood)
        • +
        • Add backend link command with signed response header overrides +(eliotee)
        • +
        • Add Fastly EU Central 1 region (Leon Brocard)
        • +
        • Add the MD5 of multipart chunks to the debug log +(interested.tortoise)
        • +
        • Report the real storage class when an object needs restoring (Dirk +Petersen)
        • +
        • Speed up multi-thread uploads by checksumming chunks in 1 MiB reads +(Roman Butor)
        • +
        • Add IT-MIL region to Scaleway (Alessio Margelli)
        • +
        • Add missing Huawei OBS regions (Enbiya Göral)
        • +
        • Fix rmdir of the root directory with +--s3-directory-markers (Nick Craig-Wood)
        • +
        • Fix presigned URLs for GCS, Linode and Ceph (Leon Brocard)
        • +
      • +
      • Seafile +
          +
        • Fix operations on files whose names are not in Unicode NFC form +(Fred)
        • +
        • Stop multipart writers after failed uploads (Florian Josef +Altendorfer)
        • +
        • Fix double slash in the URL when getting a 2FA token (Nick +Craig-Wood)
        • +
      • +
      • SFTP +
          +
        • Implement multi-thread uploads (Splainte)
        • +
        • Fix data race when using --sftp-ssh (Dirk +Petersen)
        • +
        • Fix hash check for names starting with "-" with relative +--sftp-path-override (Dirk Einecke)
        • +
        • Fix sync deleting files with control characters in their names +(nielash)
        • +
        • Fix hashing files with a newline in their name on rsync.net (Nick +Craig-Wood)
        • +
      • +
      • Shade +
          +
        • Stop copying each upload chunk into a second heap buffer (Nick +Craig-Wood)
        • +
      • +
      • Smb +
          +
        • Add workstation field to smb backend (Kalin Stoyanov)
        • +
      • +
      • Swift +
          +
        • Add Infomaniak Swiss Backup provider (Louis)
        • +
      • +
      • WebDAV +
          +
        • Reject ranged responses which ignore the range (Morax)
        • +
        • Retry Nextcloud chunk uploads individually (Stochastic)
        • +
        • Fix Nextcloud public share access by sending X-Requested-With +(drakeo338)
        • +
        • Fix memory leak uploading to Infinite Scale (jxj)
        • +
      • +
      • Yandex +
          +
        • Add app_folder option to support +cloud_api:disk.app_folder OAuth scope (Sanjay Kanth A)
        • +
      • +
      • Zoho +
          +
        • Stop multipart writers after failed uploads (Florian Josef +Altendorfer)
        • +
      • +
      +

      v1.75.2 - 2026-10-09

      +

      See +commits

      +
        +
      • Security +
          +
        • b2: Fix account token and SSE-C key leaking on redirects from +--b2-download-url GHSA-gpw7-77cq-9f72 CVE-2026-116196 (Nick +Craig-Wood)
        • +
        • build +
            +
          • Fix multiple CVEs by upgrading to go1.26.9 (Nick Craig-Wood) +
              +
            • CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder +race
            • +
            • CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to +Trailer headers
            • +
            • CVE-2026-97031: crypto/tls: reject malformed ECH outer extension +references
            • +
            • CVE-2026-94444: cmd/go: checksum bypass for golang.org/fips140
            • +
            • CVE-2026-94447: cmd/go: checksum database bypass for +golang.org/toolchain
            • +
            • CVE-2026-94448: html/template: reset context tracking on consecutive +template expressions
            • +
            • CVE-2026-97030: html/template: recognize |yield| as regexp preceder +keyword
            • +
            • CVE-2026-94440: net/textproto, mime/multipart: memory limit bypass +when parsing MIME headers
            • +
            • CVE-2026-56866: net/http: HTTP/1 client connection desynchronization +after CONNECT rejection
            • +
            • CVE-2026-94439: net/http: HTTP/1 server connection desynchronization +after 2xx CONNECT response
            • +
            • CVE-2026-78669: net/http: excessive CPU consumption from repeated +initial window changes
            • +
            • CVE-2026-78660: net/http: HTTP/2 transport accepts malformed +framing-related headers
            • +
            • CVE-2026-56857: os: Root.Mkdir(All) can follow junctions out of the +root on Windows
            • +
            • CVE-2026-78667: net/http: lack of limit on size of parsed Range +headers
            • +
            • CVE-2026-78663: net/http: double flow control refund on HTTP/2 +server streams
            • +
          • +
          • Update golang.org/x/net to v0.60.0 to fix multiple CVEs (Nick +Craig-Wood) +
              +
            • CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to +Trailer headers
            • +
            • CVE-2026-78669: net/http: excessive CPU consumption from repeated +initial window changes
            • +
            • CVE-2026-78663: net/http: double flow control refund on HTTP/2 +server streams
            • +
            • CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder +race
            • +
          • +
          • Update google.golang.org/grpc to fix CVE-2026-84445 +(dependabot[bot]) +
              +
            • CVE-2026-84445: xds: server panic on a request missing both +:authority and Host headers
            • +
          • +
        • +
        • fshttp: Drop --header values over HTTP after HTTPS +downgrade GHSA-rrwf-2qr6-p832 CVE-PENDING (Nick Craig-Wood)
        • +
        • http: Stop a path starting with // moving the remote to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood)
        • +
        • lib/http: Require authentication for OPTIONS requests +GHSA-gj73-fh6v-92fj CVE-2026-116193 (Nick Craig-Wood)
        • +
        • local: Fix .rclonelink names escaping the root with +--links GHSA-55qp-jrwr-x827 CVE-2026-116195 (Nick +Craig-Wood)
        • +
        • netstorage +
            +
          • Stop a path starting with // moving the remote to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood)
          • +
          • Stop a listing resume token moving signed requests to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood)
          • +
        • +
        • pcloud +
            +
          • Fix OAuth config accepting callbacks without state +GHSA-hvpr-p4pv-4f46 CVE-2026-116194 (Nick Craig-Wood)
          • +
          • Only accept pCloud hosts from the hostname in the OAuth callback +GHSA-hvpr-p4pv-4f46 (Nick Craig-Wood)
          • +
        • +
        • selfupdate +
            +
          • Fix hash check trusting unsigned data in the signed SHA256SUMS +GHSA-w33h-3qgq-8mv8 CVE-2026-116189 (Nick Craig-Wood)
          • +
          • Fix release verification instructions trusting unsigned hashes +GHSA-w33h-3qgq-8mv8 (Nick Craig-Wood)
          • +
        • +
        • serve nfs: Fix path traversal by refusing unsafe file names in the +VFS GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood)
        • +
        • serve s3 +
            +
          • Fix presigned URL being turned into a copy of any object +GHSA-w3h7-jxxq-vfrp CVE-PENDING (Nick Craig-Wood)
          • +
          • Stop auth proxy users listing or using each other's multipart +uploads and metadata GHSA-35g6-9fjv-rmx5 CVE-2026-116187 (Nick +Craig-Wood)
          • +
          • Fix multipart buffer limits being bypassed by overflowing part sizes +GHSA-qjw8-8hmp-c3m6 CVE-2026-116188 (Nick Craig-Wood)
          • +
          • Add --multipart-max-uploads to limit uploads in +progress (Nick Craig-Wood)
          • +
          • Add --multipart-streaming-buffer-total to limit memory +across uploads (Nick Craig-Wood)
          • +
          • Add --metadata-max-objects to limit the metadata kept +in memory (Nick Craig-Wood)
          • +
        • +
        • serve webdav: Fix path traversal above the served directory +GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood)
        • +
        • webdav: Fix headers option leaking to other hosts on redirect +GHSA-3rqf-7h69-gg5v CVE-2026-116190 (Nick Craig-Wood)
        • +
      • +
      • Bug Fixes +
          +
        • accounting +
            +
          • Stop averaging when the last check finishes (Kunpeng Xie)
          • +
          • Keep speed averaging active when transfers overlap (kaii9)
          • +
        • +
        • dedupe: Fix rename mode giving up after 100 names and make it faster +(Nick Craig-Wood)
        • +
        • doc fixes (Dhevenddra K G, enkvadrat, GhostCoder6969, James Truitt, +maximilize, n4n5, Nick Craig-Wood, PSR94, Rohit Behera, shaurya, +subomi)
        • +
        • docker: Fix files uploaded with the wrong mime type (hsdfat)
        • +
        • fs +
            +
          • Fix about showing a negative total when a quota reaches the int64 +maximum (youdie006)
          • +
          • Fix bandwidth limits below 1 KiB being multiplied by 1024 +(Roland)
          • +
          • Fix --bwlimit timetables written out of order using the +wrong limit (Rohit Behera)
          • +
          • Make BwTimetable.Set replace the timetable instead of appending to +it (youdie006)
          • +
          • Retry "network is unreachable" and "network is down" errors +(nielash)
          • +
        • +
        • fserrors: Fix out of space detection on Windows +(ferrumclaudepilgrim)
        • +
        • lib/rest: Limit the size of HTTP response bodies read into memory +(Nick Craig-Wood)
        • +
        • log: Fix race when adding a log output while logging (Nick +Craig-Wood)
        • +
        • oauthutil: Fix Renew.Shutdown nil timer panic and race +(TastyHeadphones)
        • +
        • operations +
            +
          • Stop --copy-dest replacing files with +--immutable (phatlc)
          • +
          • Fix ignored error in rcat probe reads (Wang Chencheng)
          • +
          • Fix hang when deleting files and a fatal error occurs (Nick +Craig-Wood)
          • +
          • Fix hang and lost context when moving a directory file by file (Nick +Craig-Wood)
          • +
          • Don't sleep for a Retry-After error when the transfer is cancelled +(Nick Craig-Wood)
          • +
        • +
        • rc +
            +
          • Make job/status and job/list require authentication (Nick +Craig-Wood)
          • +
          • Fix rc API accepting an out of range number and overflowing 64 bits +(KBS)
          • +
          • Reject out of range integer parameters instead of truncating them +(Nick Craig-Wood)
          • +
          • Fix large numeric parameters being rejected on 32 bit builds (Jeremy +Schoemaker)
          • +
        • +
        • selfupdate: Fix --version X.Y depending on ./ in the +download site links (Nick Craig-Wood)
        • +
        • serve +
            +
          • Fix --auth-proxy stopping VFS cache uploads after 5 +minutes (Nick Craig-Wood)
          • +
          • Fix --auth-proxy backends never being shut down after +simultaneous logins (Nick Craig-Wood)
          • +
        • +
        • serve dlna: Log unescaped paths (phatlc)
        • +
        • serve docker: Fix volume path being lost when the plugin restarts +(phatlc)
        • +
        • serve ftp +
            +
          • Fix transfers failing after 5 minutes with --auth-proxy +(Nick Craig-Wood)
          • +
          • Fix VFS leak when the server fails to start (Nick Craig-Wood)
          • +
        • +
        • serve http +
            +
          • Fix downloads failing after 5 minutes with --auth-proxy +(Nick Craig-Wood)
          • +
          • Escape filename in zip download Content-Disposition header (Harsh +Raj Singhania)
          • +
        • +
        • serve restic +
            +
          • Fix repositories named data (kaii9)
          • +
          • Prevent concurrent append-only overwrites (Vasek Sraier)
          • +
        • +
        • serve s3 +
            +
          • Apply the multipart upload limits and +--metadata-max-objects to each user separately (Nick +Craig-Wood)
          • +
          • Stream in-order multipart parts without buffering them (Nick +Craig-Wood)
          • +
          • Start the upload to the backend on the first multipart part (Nick +Craig-Wood)
          • +
          • Don't buffer re-uploads of multipart parts already streamed (Nick +Craig-Wood)
          • +
          • Count buffered multipart parts in whole memory pages (Nick +Craig-Wood)
          • +
          • Time out multipart parts waiting for buffer space (Nick +Craig-Wood)
          • +
          • Limit the memory requests can use (Nick Craig-Wood)
          • +
          • Forget expired multipart uploads completely (Nick Craig-Wood)
          • +
          • Forget the metadata of deleted objects (Nick Craig-Wood)
          • +
          • List objects lazily so paging a deep hierarchy is fast (Nick +Craig-Wood)
          • +
          • Fix multipart upload corruption if the backend write of an early +part fails (Nick Craig-Wood)
          • +
          • Fix uploads failing when the auth proxy expires the user's backend +(Nick Craig-Wood)
          • +
          • Fix stale metadata being returned for objects changed elsewhere +(Nick Craig-Wood)
          • +
          • Fix --etag-hash auto crashing or using the wrong hash +with --auth-proxy (Nick Craig-Wood)
          • +
          • Fix CopyObject of a missing object not returning NoSuchKey (Nick +Craig-Wood)
          • +
          • Fix log messages with bad format strings (Nick Craig-Wood)
          • +
          • Document memory use and bring the docs up to date (Nick +Craig-Wood)
          • +
        • +
        • serve webdav +
            +
          • Fix transfers failing after 5 minutes with --auth-proxy +(Nick Craig-Wood)
          • +
          • Fix crash when the server fails to start (Nick Craig-Wood)
          • +
          • Escape filename in zip download Content-Disposition header (Harsh +Raj Singhania)
          • +
        • +
        • vfscache: Fix hang when the cache cleaner is disabled +(ferrumclaudepilgrim)
        • +
      • +
      • Mount +
          +
        • Fix --daemon failing when --rc is enabled +(somaz)
        • +
        • Ignore com.apple.* xattrs on the macOS FSKit backend (Eugene)
        • +
      • +
      • VFS +
          +
        • Fix reads returning zeros after a file changes during handle caching +(Neil Cawse)
        • +
        • Stop setting a file's modtime from discarding its cached data (Neil +Cawse)
        • +
        • Fix crash reading the metadata of a file which is being written +(Nick Craig-Wood)
        • +
        • Fix a VFS being reused while it is being shut down (Nick +Craig-Wood)
        • +
        • Fix AddVirtual ignoring isDir (phatlc)
        • +
        • Stop --links objects called "...rclonelink" appearing +as ".." in directory listings (Nick Craig-Wood)
        • +
      • +
      • Local +
          +
        • Fix directories named *.rclonelink being treated as links with +--links (Nick Craig-Wood)
        • +
      • +
      • Archive +
          +
        • Fix corrupt listings when listing a zip directory more than once +(Nick Craig-Wood)
        • +
        • Fix zip file entries named for a directory causing confusion (Nick +Craig-Wood)
        • +
        • Fix listing entries with a leading slash as if they were in the root +(Nick Craig-Wood)
        • +
        • Fix crash when creating archive to stdout (Vladimir Babin)
        • +
        • Fix a squashfs path to a single file listing its whole directory +(Nick Craig-Wood)
        • +
      • +
      • Azure Blob +
          +
        • Use the released Azure SDK for Apache Arrow listing (Nick +Craig-Wood)
        • +
      • +
      • Box +
          +
        • Fix log messages with bad format strings (Nick Craig-Wood)
        • +
      • +
      • Chunker +
          +
        • Fix panic listing a directory after an interrupted upload with +meta_format none (Nick Craig-Wood)
        • +
      • +
      • Compress +
          +
        • Fix crash on ranged reads when gzip metadata is corrupted +(Acts1631)
        • +
      • +
      • Drime +
          +
        • Fix server-side copy over an existing file leaving a "name (1)" copy +(Nick Craig-Wood)
        • +
        • Fix deleted files and directories still being listed with +hard_delete (Nick Craig-Wood)
        • +
      • +
      • Drive +
          +
        • Document the Branding step needed to publish your own client_id +(Sanjay Kanth A)
        • +
      • +
      • Dropbox +
          +
        • Fix shared folder mount for roots nested more than one level deep +(phatlc)
        • +
        • Match shared-folder and received-file names case-insensitively +(phatlc)
        • +
      • +
      • Filescom +
          +
        • Fix corrupted uploads after a retried upload error (Nick +Craig-Wood)
        • +
        • Document that names with / or  in can't be stored (Nick +Craig-Wood)
        • +
      • +
      • HTTP +
          +
        • Fix crash when the server fails to start (Nick Craig-Wood)
        • +
      • +
      • Iclouddrive +
          +
        • Fix potential crash looking up items (Nick Craig-Wood)
        • +
      • +
      • Imagekit +
          +
        • Fix potential crash in rmdir and purge (Nick Craig-Wood)
        • +
      • +
      • Internxt +
          +
        • Fix lookups of files starting with a dot and dropped uploads +(jzunigax2)
        • +
        • Fix sync with --backup-dir or --suffix +deleting the backed up file (Nick Craig-Wood)
        • +
        • Fix server-side moves failing with "Not Found" or "already exists" +(Nick Craig-Wood)
        • +
        • Fix "directory not empty" and stale directories after moves and +deletes (Nick Craig-Wood)
        • +
        • Fix server-side directory move failing after a gateway timeout (Nick +Craig-Wood)
        • +
      • +
      • Onedrive +
          +
        • Update docs for versions, links and time precision on personal +accounts (Nick Craig-Wood)
        • +
        • Document that shared with me shortcuts may fail to list on personal +(Nick Craig-Wood)
        • +
        • Update --onedrive-hard-delete docs to mention personal +account support (foecmke)
        • +
      • +
      • Oracleobjectstorage +
          +
        • Fix SSE-C server-side copies (tomaszni)
        • +
        • Upload empty streams without multipart (tomaszni)
        • +
      • +
      • Pixeldrain +
          +
        • Fix corrupted uploads after a retried upload error (Nick +Craig-Wood)
        • +
      • +
      • Premiumizeme +
          +
        • Fix uploading files with ";" in their names (Nick Craig-Wood)
        • +
      • +
      • S3 +
          +
        • Disable signing Accept-Encoding for Ceph and Linode (Aditya)
        • +
        • Fix version-at listings with URL encoded keys (jxj)
        • +
        • Fix storage class missing from --s3-versions listings +(Dirk Petersen)
        • +
      • +
      • Seafile +
          +
        • Fix corrupted uploads after a retried upload error (Nick +Craig-Wood)
        • +
      • +
      • SFTP +
          +
        • Fix failed uploads leaving disk space in use on the server (Nick +Craig-Wood)
        • +
      • +
      • Shade +
          +
        • Fix potential crash in directory move (Nick Craig-Wood)
        • +
      • +
      • Smb +
          +
        • Save the user name in the config even if it matches the current user +(phatlc)
        • +
      • +
      • WebDAV +
          +
        • Fix duplicated listing entries after retried PROPFIND (ZRHann)
        • +
        • Fix "XML syntax error" on paths which don't exist with ownCloud +10.16 (Nick Craig-Wood)
        • +
      • +
      +

      v1.75.1 - 2026-09-04

      +

      See +commits

      +
        +
      • Security +
          +
        • archive +
            +
          • Fix zip slip path traversal in untrusted zip files +GHSA-66hp-wgxq-6f5q CVE-2026-88014 (Nick Craig-Wood)
          • +
          • Hide any archive entry which escapes the directory being listed +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood)
          • +
          • Reject unsafe entry names when mounting squashfs images +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood)
          • +
          • Fix zip subdirectory root matching sibling directories +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood)
          • +
          • Fix zip entry named "." hiding every other file GHSA-66hp-wgxq-6f5q +(Nick Craig-Wood)
          • +
          • Fix "directory not found" for archive paths containing "./" or "//" +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood)
          • +
        • +
        • build +
            +
          • Fix multiple CVEs by upgrading to go1.26.6 (Nick Craig-Wood) +
              +
            • CVE-2026-56860: net/url: quadratic complexity in resolvePath
            • +
            • CVE-2026-56858: html/template: JavaScript regexp context +tracking
            • +
            • CVE-2026-56862: crypto/tls: limit handshake messages accepted +post-handshake
            • +
            • CVE-2026-56853: net/http: apply ReadHeaderTimeout to unencrypted +HTTP/2 check
            • +
            • CVE-2026-56859: encoding/xml: recursion depth guard during +decode
            • +
            • CVE-2026-33818: encoding/asn1: enforce maximum recursion depth
            • +
            • CVE-2026-46600: net: panic parsing an invalid SVCB or HTTPS RR in +dnsmessage
            • +
            • CVE-2026-39821: net/http: reject ASCII-only Punycode-encoded labels +in idna
            • +
          • +
          • Update golang.org/x/crypto to v0.56.0 to fix multiple CVEs (Nick +Craig-Wood) +
              +
            • CVE-2026-56854: ssh: source-address critical option not enforced for +non-public-key auth callbacks
            • +
            • CVE-2026-78662: ssh: a malicious peer could flood an undecided +channel's incoming requests, deadlocking the connection
            • +
            • CVE-2026-56855: ssh: a malicious peer could send crafted messages on +an established channel, deadlocking the connection
            • +
          • +
          • Update golang.org/x/image to v0.45.0 to fix CVE-2026-46603 (Nick +Craig-Wood) +
              +
            • CVE-2026-46603: excessive memory allocation during VP8L +decoding
            • +
          • +
        • +
        • fs: Confine directory listing entries that escape the root +GHSA-3vxh-3pcx-9m8q CVE-2026-93986 GHSA-38xv-hf3p-h7mq CVE-2026-88046 +(Nick Craig-Wood)
        • +
        • fshttp: Don't send --header values to other hosts on +redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood)
        • +
        • http: Don't leak configured headers to other hosts or over plaintext +on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood)
        • +
        • lib/rest: Check HTTPS downgrades against the original request on +redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood)
        • +
        • local +
            +
          • Fix dir metadata escaping the root through a planted symlink +GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood)
          • +
          • Fix btime escaping the root via a planted symlink +GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood)
          • +
          • Fix panic on Range request past the end of a symlink +GHSA-p6m2-r3w9-mpxw CVE-2026-88015 (Nick Craig-Wood)
          • +
        • +
        • serve docker +
            +
          • Reject volume names that escape the base directory +GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood)
          • +
          • Reject volume names resolving to the base directory itself +GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood)
          • +
          • Re-derive volume mountpoint from name when restoring state +GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood)
          • +
        • +
        • serve ftp: Fix auth-proxy sessions sharing credentials by username +GHSA-c476-6w5q-jw77 CVE-2026-88017 (Nick Craig-Wood)
        • +
        • serve s3 +
            +
          • Fix memory exhaustion from client-declared multipart part size +GHSA-2p48-j3qc-rx9f CVE-2026-88045 (Nick Craig-Wood)
          • +
          • Reject bogus multipart part sizes in the reorder buffer +GHSA-2p48-j3qc-rx9f (Nick Craig-Wood)
          • +
          • Fix auth proxy accepting any request signed with an empty secret +GHSA-xwwr-4h3p-r22c CVE-2026-88018 (Nick Craig-Wood) +
              +
            • NB the auth proxy protocol for +serve s3 has changed - the proxy program is now given the +access key ID as user and must return the secret as +_secret_access_key
            • +
          • +
          • Fix each server accepting the --auth-key credentials of +all the others (Nick Craig-Wood)
          • +
          • Fix misleading anonymous access log when using an auth proxy via rc +GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood)
          • +
        • +
        • serve sftp: Fix auth proxy configured via rc being silently ignored +GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood)
        • +
      • +
      • Bug Fixes +
          +
        • accounting +
            +
          • Fix memory leak on long-running rcd (nielash)
          • +
          • Fix memory leak from stats groups on long-running rcd (nielash)
          • +
          • Fix bwlimit burst overflow (Rayan Salhab)
          • +
        • +
        • bisync +
            +
          • Fix memory leak when running via the rc (nielash)
          • +
          • Fix failed transfers of empty files being recorded as synced (Nick +Craig-Wood)
          • +
        • +
        • build: Make go1.26 the minimum required version as needed by +golang.org/x/crypto v0.56.0 (Nick Craig-Wood)
        • +
        • config: Redact env var config values in logs (Pastalikek65)
        • +
        • doc fixes (Anton Karpov, CAOShurong, Dean Chen, Nick Craig-Wood, +Recoordinate, Rodrigo Rodrigues, Shantanav Mukherjee, shaurya)
        • +
        • lib/batcher: Prevent commits racing shutdown (Loi Nguyen)
        • +
        • lib/transform: Fix panic in truncate_keep_extension +(VXNCXNX)
        • +
        • multipart: Fix chunked uploads storing truncated objects when the +source ends early (Nick Craig-Wood)
        • +
        • operations: Fix silent truncation of streaming uploads whose source +ends early (Nick Craig-Wood)
        • +
        • serve +
            +
          • Fix VFS instance leaks on server startup failures and shutdown +(Hakan İSMAİL)
          • +
          • Pass the client IP address to the auth proxy (am-at-enrollvb)
          • +
        • +
        • serve http: Prevent scrolling to the top on page reload (Sune +Mølgaard)
        • +
        • serve nfs: Fix EIO when creating symlinks with +--vfs-links (SillyZir)
        • +
        • serve s3 +
            +
          • Fix failed uploads deleting or corrupting the object at the key +(Nick Craig-Wood)
          • +
          • Fix crash when a multipart upload is aborted while a part is +uploading (Nick Craig-Wood)
          • +
          • Fix modtime not being set when only mtime metadata is supplied on +PUT (Nick Craig-Wood)
          • +
          • Upload all multipart uploads via the VFS so they obey +--bwlimit and show in stats (Nick Craig-Wood)
          • +
          • Reserve the .rclone_temp_ prefix for temporary objects +(Nick Craig-Wood)
          • +
          • Clean up abandoned multipart uploads after +--multipart-expiry (Nick Craig-Wood)
          • +
        • +
        • vfscache +
            +
          • Fix reader deadlock when the item size drops below the read offset +(Dave)
          • +
          • Fix log message growing without bound on repeated write errors +(Vijay Misal)
          • +
        • +
        • walk: Stop directory traversal when the context is cancelled (Rahman +Yilmaz)
        • +
      • +
      • VFS +
          +
        • Synchronize poll updates with shutdown (Loi Nguyen)
        • +
        • Make poll shutdown lifecycle deterministic (Loi Nguyen)
        • +
      • +
      • Crypt +
          +
        • Fix hash mismatches with no_data_encryption on backends +which check upload hashes (Nick Craig-Wood)
        • +
        • Fix directory names which look like versioned file names +(TowyTowy)
        • +
        • Warn about directories with legacy version-like encrypted names +(Nick Craig-Wood)
        • +
      • +
      • Azure Blob +
          +
        • Fix Entra ID server-side copy source authentication (Edward +Klesel)
        • +
        • Fix spurious vfs cache corruption errors during chunked reads (Nick +Craig-Wood)
        • +
      • +
      • Azurefiles +
          +
        • Fix zero padded files being created when the source ends early (Nick +Craig-Wood)
        • +
      • +
      • Box +
          +
        • Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera)
        • +
      • +
      • Compress +
          +
        • Fix corrupted objects being created when the source ends early (Nick +Craig-Wood)
        • +
      • +
      • Drive +
          +
        • Don't list trashed files when removing a directory into the trash +(alliasgher)
        • +
      • +
      • Dropbox +
          +
        • Preserve Paper export paths on lookup (Loi Nguyen)
        • +
        • Fix context cancellation (e.g. --max-duration limit) +not stopping in-flight requests (debaditya)
        • +
        • Fix chunked uploads of truncated files never finishing (Nick +Craig-Wood)
        • +
        • Don't retry chunked upload requests when the upload has been +cancelled (Nick Craig-Wood)
        • +
        • Decode received shared-file names (Sanjay Kanth A)
        • +
        • Fix ChangeNotify when the root's case differs from Dropbox's (Loi +Nguyen)
        • +
      • +
      • Filelu +
          +
        • Fix truncated files being uploaded successfully when the source ends +early (Nick Craig-Wood)
        • +
        • Fix duplicate root path during multipart folder creation +(kingston125)
        • +
      • +
      • Huaweidrive +
          +
        • Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera)
        • +
      • +
      • Iclouddrive +
          +
        • Fix uploads into an app container failing with 412 (Christian De +Santis)
        • +
      • +
      • Internetarchive +
          +
        • Fix corrupted files being created when the source ends early (Nick +Craig-Wood)
        • +
      • +
      • Internxt +
          +
        • Persist rotated token returned by the user info call +(0rangeSeaW0lf)
        • +
      • +
      • Onedrive +
          +
        • Fix 403 Forbidden for configuration personal onedrive (machsix)
        • +
        • Fall back to manual drive ID entry when drive listing fails +(SillyZir)
        • +
        • Don't retry multipart upload chunk on 404 (upload session not found) +(water)
        • +
      • +
      • Overview +
          +
        • Fix "internal error: no overview data found" on 32 bit architectures +(Nick Craig-Wood)
        • +
      • +
      • Pikpak +
          +
        • Fix truncated files being created when the source ends early (Nick +Craig-Wood)
        • +
        • Fix truncated single part uploads reported as ok when source ends +early (Nick Craig-Wood)
        • +
      • +
      • Protondrive +
          +
        • Fix files uploaded with v1.75.0 not being readable in the Proton +apps (Nick Craig-Wood)
        • +
        • Fix corrupted uploads after a retried upload error (Nick +Craig-Wood)
        • +
      • +
      • Quatrix +
          +
        • Fix chunk upload retries and fix memory leak (Nick Craig-Wood)
        • +
      • +
      • S3 +
          +
        • Update Mega endpoints (Nick Craig-Wood)
        • +
        • Treat UploadPart success without ETag as retryable error +(CAOShurong)
        • +
        • Fix server side copy failing with --s3-no-head-object +(Anatoly Tarnavsky)
        • +
      • +
      • Sia +
          +
        • Fix corrupted files being created when the source ends early (Nick +Craig-Wood)
        • +
      • +
      • Smb +
          +
        • Reuse the upload connection for SetModTime (alliasgher)
        • +
      • +
      • WebDAV +
          +
        • Fix SetModTime failing and hashes missing on Nextcloud (Nick +Craig-Wood)
        • +
      • +
      • Yandex +
          +
        • Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera)
        • +
      • +

      v1.75.0 - 2026-07-31

      See @@ -66244,48 +70957,48 @@ ARTESCA)

    • Security
      • archive: Don't crash on malformed squashfs images -GHSA-6jcg-q3wp-x2f4 CVE-PENDING (Nick Craig-Wood)
      • +GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood)
      • ftp: Fix ftp command injection when encoding doesn't include CRLF -GHSA-8c48-q9wj-3w37 CVE-PENDING (Nick Craig-Wood)
      • +GHSA-8c48-q9wj-3w37 CVE-2026-71311 (Nick Craig-Wood)
      • lib/http: Use TLS on all --addr listeners when --cert and --key are set GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood)
      • lib/proxy: Fix unbounded HTTP CONNECT headers causing OOM -GHSA-xhf4-832v-7xcr CVE-PENDING (Nick Craig-Wood)
      • +GHSA-xhf4-832v-7xcr CVE-2026-71310 (Nick Craig-Wood)
      • local: Stop source file names escaping the destination directory -GHSA-7p4m-qxvv-g567 CVE-PENDING (Nick Craig-Wood)
      • +GHSA-7p4m-qxvv-g567 CVE-2026-71313 (Nick Craig-Wood)
      • rc
        • Don't expose pprof debug handlers on an unauthenticated server -GHSA-mfvx-7rcj-9m5g CVE-PENDING (Nick Craig-Wood)
        • +GHSA-mfvx-7rcj-9m5g CVE-2026-79776 (Nick Craig-Wood)
        • Require authentication to list the remotes with --rc-serve GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood)
        • -
        • Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv (Nick -Craig-Wood)
        • +
        • Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv +CVE-2026-79777 (Nick Craig-Wood)
      • s3
        • Fix redirect credential leaks, reject HTTPS->HTTP and strip -secrets GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood)
        • +secrets GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood)
        • Strip S3 Express session token on cross-host redirects -GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood)
        • +GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood)
      • serve ftp: Use constant time comparison for password check GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood)
      • serve restic: Fix path traversal above the served directory -GHSA-45pq-889g-fcgh CVE-PENDING (Nick Craig-Wood)
      • +GHSA-45pq-889g-fcgh CVE-2026-71309 (Nick Craig-Wood)
      • serve sftp: Don't crash the whole server on a bad request -GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood)
      • +GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood)
      • sftp: Fix command injection via crafted filenames on PowerShell -remotes GHSA-2m8m-jhrm-w6j2 CVE-PENDING (Nick Craig-Wood)
      • +remotes GHSA-2m8m-jhrm-w6j2 CVE-2026-71312 (Nick Craig-Wood)
      • vfs: Don't crash the process if a backend panics on a background -goroutine GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood)
      • +goroutine GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood)
      • webdav
        • Fix HTTPS to HTTP redirects leaking credentials GHSA-h4mf-4v27-hggj -(Nick Craig-Wood)
        • -
        • Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv (Nick -Craig-Wood)
        • +CVE-2026-79779 (Nick Craig-Wood) +
        • Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv +CVE-2026-79778 (Nick Craig-Wood)
      • Update google.golang.org/grpc to fix multiple security problems (Nick Craig-Wood)
      • @@ -66766,7 +71479,7 @@ CVE-2026-59733 (Nick Craig-Wood)
        • Fix spurious 404 on HEAD/GET during VFS writeback (max)
        • Fix path traversal letting clients see files in the root -GHSA-8v25-v8p6-qf7v (Nick Craig-Wood)
        • +GHSA-8v25-v8p6-qf7v CVE-2026-79781 (Nick Craig-Wood)
      • serve webdav: Fix MOVE overwrite failing without Overwrite header (Sanjay Santhanam)
      • @@ -66783,7 +71496,7 @@ Craig-Wood)
      • Stop --links symlinks escaping the destination directory CVE-2026-54572 (Nick Craig-Wood)
      • Don't restore setuid/setgid/sticky bits from metadata by default -GHSA-945v-v9p3-v5xw (Nick Craig-Wood)
      • +GHSA-945v-v9p3-v5xw CVE-2026-79783 (Nick Craig-Wood)
    • Drive
        @@ -79275,7 +83988,7 @@ installations
      • Project started

      Bugs and Limitations

      -

      Limitations

      +

      Limitations

      Directory timestamps aren't preserved on some backends

      As of v1.66, rclone supports syncing directory modtimes, @@ -79430,7 +84143,7 @@ want it set for a single backend, eg

      The FTP and SFTP backends have their own http_proxy settings to support an HTTP CONNECT proxy ( --ftp-http-proxy and ---sftp-http-proxy +--sftp-http-proxy )

      Rclone gives x509 SSL root certificates error

      @@ -79485,10 +84198,10 @@ formats

      some.domain.com no such host

      This happens when rclone cannot resolve a domain. Please check that your DNS setup is generally working, e.g.

      -
      # both should print a long list of possible IP addresses
      -dig www.googleapis.com          # resolve using your default DNS
      -dig www.googleapis.com @8.8.8.8 # resolve with Google's DNS server
      +
      # both should print a long list of possible IP addresses
      +dig www.googleapis.com          # resolve using your default DNS
      +dig www.googleapis.com @8.8.8.8 # resolve with Google's DNS server

      If you are using systemd-resolved (default on Arch Linux), ensure it is at version 233 or higher. Previous releases contain a bug which causes not all domains to be resolved properly.

      @@ -79511,8 +84224,8 @@ yyyy/mm/dd hh:mm:ss Fatal error: config failed to refresh token: failed to start with opening the port on the host.

      A simple solution may be restarting the Host Network Service with eg. Powershell

      -
      Restart-Service hns
      +
      Restart-Service hns

      The total size reported in the stats for a sync is wrong and keeps @@ -79582,20 +84295,20 @@ TLS (TLS 1.2/1.3) and ECDHE-based cipher suites you can re-enable legacy ciphers via GODEBUG:

      • Windows (cmd.exe):

        -
        set GODEBUG=tlsrsakex=1
        -rclone copy ...
      • +
        set GODEBUG=tlsrsakex=1
        +rclone copy ...
      • Windows (PowerShell):

        -
        $env:GODEBUG="tlsrsakex=1"
        -rclone copy ...
      • +
        $env:GODEBUG="tlsrsakex=1"
        +rclone copy ...
      • Linux/macOS:

        -
        GODEBUG=tlsrsakex=1 rclone copy ...
      • +
        GODEBUG=tlsrsakex=1 rclone copy ...

      If the server only supports 3DES, try:

      -
      GODEBUG=tls3des=1 rclone ...
      +
      GODEBUG=tls3des=1 rclone ...

      This applies to any rclone feature using TLS (HTTPS, FTPS, WebDAV over TLS, proxies with TLS interception, etc.). Use these workarounds only long enough to get the server/proxy updated.

      @@ -82158,6 +86871,309 @@ class="email">273312799+Socialpranker@users.noreply.github.com

    • class="email">phatle.hsd@gmail.com
    • Punya Jain
    • +
    • acoeur 7315110+forestrock@users.noreply.github.com
    • +
    • SillyZir 269283839+SillyZir@users.noreply.github.com
    • +
    • am-at-enrollvb arthur.melton@enrollvb.com
    • +
    • Loi Nguyen vanloi999@gmail.com
    • +
    • debaditya 82204129+DebadityaHait@users.noreply.github.com
    • +
    • alliasgher alliasgher123@gmail.com
    • +
    • Anton Karpov karpovantonme@gmail.com
    • +
    • Edward Klesel eklesel@bluecove.com
    • +
    • Christian De Santis 41491267+christiandesantis@users.noreply.github.com
    • +
    • Rodrigo Rodrigues 191260313+MVP0TAT0@users.noreply.github.com
    • +
    • Recoordinate 296084221+latent-9@users.noreply.github.com
    • +
    • Jiacheng Xu 169599847+Stardust0831@users.noreply.github.com
    • +
    • Teddy Tennant teddytennant@icloud.com
    • +
    • Dean Chen 862469039@qq.com
    • +
    • Pastalikek65 Pastalikek65@users.noreply.github.com
    • +
    • Morax james20081204@gmail.com
    • +
    • Shurong Cao 170531907+CAOShurong@users.noreply.github.com
    • +
    • Dave davixk83@gmail.com
    • +
    • max max@maxmax.ch
    • +
    • Hakan İSMAİL hakanismail53@gmail.com
    • +
    • Shantanav Mukherjee shantanav7@gmail.com
    • +
    • VXNCXNX VXNCXNX@users.noreply.github.com
    • +
    • Rohit Behera 126186063+r0h1tb@users.noreply.github.com
    • +
    • Rahman Yilmaz 85690773+Sudo-Rahman@users.noreply.github.com
    • +
    • Sanjay Kanth A sanjaykanthsk09@gmail.com
    • +
    • machsix 28209092+machsix@users.noreply.github.com
    • +
    • CAOShurong 3502119616@qq.com
    • +
    • shaurya shauryajaiswal.dev@gmail.com
    • +
    • water 672684719@qq.com
    • +
    • Rayan Salhab r.salhab@aiyexpertsolutions.com
    • +
    • Vijay Misal misalvijay153@gmail.com
    • +
    • Sune Mølgaard sune@molgaard.org
    • +
    • Anatoly Tarnavsky anatolyt@gmail.com
    • +
    • cyphercodes cyphercodes@users.noreply.github.com
    • +
    • shaurya 19599684+no-hup@users.noreply.github.com
    • +
    • no-hup shauryaj.finance@gmail.com
    • +
    • Dhevenddra dhevg20020402@gmail.com
    • +
    • Splainte r.wycke@hotmail.fr
    • +
    • PSR94 88868390+PSR94@users.noreply.github.com
    • +
    • Shane McCarron shane.mccarron@corvexconnect.com
    • +
    • Dhevenddra K G 121691114+Dhevenddra@users.noreply.github.com
    • +
    • Vaibhav Mashal 110161673+vaibhavmashal@users.noreply.github.com
    • +
    • Murat Topcu murat-topcu@outlook.com
    • +
    • tomaszni tomaszni@users.noreply.github.com
    • +
    • eliotee 17210244+eliotee@users.noreply.github.com
    • +
    • Aditya f20220497@goa.bits-pilani.ac.in
    • +
    • Nicholas Velten nikvelten@gmail.com
    • +
    • youdie006 xncb135@korea.ac.kr
    • +
    • subomi 86053854+ubmids@users.noreply.github.com
    • +
    • Can Arslan 138895927+mc2rcanarslan@users.noreply.github.com
    • +
    • Can Arslan carslan@viyaenv.com
    • +
    • ZRHann 2829442630@qq.com
    • +
    • enkvadrat 123565769+enkvadrat@users.noreply.github.com
    • +
    • Vladimir Babin vovababin@gmail.com
    • +
    • Eugene inbox@null.page
    • +
    • Kunpeng Xie 68572236+pentaoa@users.noreply.github.com
    • +
    • foecmke 221832573+foecmke@users.noreply.github.com
    • +
    • Vasek Sraier git@vakabus.cz
    • +
    • Kalin Stoyanov kalin.stoyanov@kiteworks.com
    • +
    • NytePlus nyte_plus@sjtu.edu.cn
    • +
    • Jeremy Schoemaker jeremy@shoemoney.com
    • +
    • solunolab solunolab@outlook.com
    • +
    • Mattias Michaux mattias.michaux@gmail.com
    • +
    • jxj xinjun.jiang@daocloud.io
    • +
    • Harsh Raj Singhania 40535627+HarshRajSinghania@users.noreply.github.com
    • +
    • Roland vv22345@163.com
    • +
    • interested.tortoise interested.tortoise@proton.me
    • +
    • hsdfat 118717478+hsdfat@users.noreply.github.com
    • +
    • Dirk Petersen dirkpetersen@users.noreply.github.com
    • +
    • TastyHeadphones 76083688+TastyHeadphones@users.noreply.github.com
    • +
    • Neil Cawse 8085959+neilcawse@users.noreply.github.com
    • +
    • Lev Devaev 102860715+Exxxxpo@users.noreply.github.com
    • +
    • GhostCoder6969 ahmadbannout191999@gmail.com
    • +
    • bounty-agent bounty@example.com
    • +
    • mygrexit 33792951+mygrexit@users.noreply.github.com
    • +
    • Kaya firat.kaya@mail.com
    • +
    • somaz genius5711@gmail.com
    • +
    • xiaozou-wine 243062178+xiaozou-wine@users.noreply.github.com
    • +
    • Roman Butor rbutor@gmail.com
    • +
    • kaii9 107882135+kaii9@users.noreply.github.com
    • +
    • Stochastic 138764723+Asthenia0412@users.noreply.github.com
    • +
    • James Truitt 80006053+jtruitt1@users.noreply.github.com
    • +
    • firatkaya firat@netiket.com.tr
    • +
    • kevin9327 5299031+kevin9327@users.noreply.github.com
    • +
    • drakeo338 paranoyouz@gmail.com
    • +
    • Alessio Margelli alex9446@gmail.com
    • +
    • Ludovic Bondon ludovic.bondon@360learning.com
    • +
    • fmterrors fmterrors@outlook.com
    • +
    • GingerAdonis 2751672+GingerAdonis@users.noreply.github.com
    • +
    • Satvik Mishra Satvikmishra.ipu146183@maims.ac.in
    • +
    • wjc 2821296948@qq.com
    • +
    • Maksym Tymoshyk maksym.tymoshyk@gmail.com
    • +
    • Aniket aniketkomailkro@gmail.com
    • +
    • Oshino Penguin penguin@oshino.moe
    • +
    • Yousef Issa yousef@u.northwestern.edu
    • +
    • ghwany 9hwany@gmail.com
    • +
    • DEVN nguyenvanthe994@gmail.com
    • +
    • 47th 161213233+flcrom@users.noreply.github.com
    • +
    • Sash sash@ela.city
    • +
    • Shreyansh Jain shreyanshjain646@gmail.com
    • +
    • Biagio Peccerillo biagio.peccerillo@isti.cnr.it
    • +
    • gomitrah bala.c@mitrahsoft.in
    • +
    • Jim Counter jim@autonomys.xyz
    • +
    • Dirk Einecke dirk.einecke@gmail.com
    • +
    • ASRodrigo1 45823308+asrodrigo1@users.noreply.github.com
    • +
    • chaogeshuodiannao chaogeshuodiannao@users.noreply.github.com
    • +
    • David Legrand david.legrand@clever.cloud
    • +
    • Azhar stfuazzo@gmail.com
    • +
    • Daniel Bae rootdevdb@gmail.com
    • +
    • frodleTian 16165444+tianhaotian@users.noreply.github.com
    • +
    • Cestercian yashafaid@gmail.com
    • +
    • Ayush Sharma 175855728+DurdensDream@users.noreply.github.com
    • +
    • Dirk Petersen 1427719+dirkpetersen@users.noreply.github.com
    • +
    • Codex noreply@openai.com
    • +
    • bunnysayzz bunnysayzz@users.noreply.github.com
    • +
    • hahahahahayesyeseys 1145018948@qq.com
    • +
    • qodelicious 162776175+qodelicious@users.noreply.github.com
    • +
    • fixfon 12512757+fixfon@users.noreply.github.com
    • +
    • berce 75228263+bercedev@users.noreply.github.com
    • +
    • Fred 24314560+creativeprojects@users.noreply.github.com
    • +
    • Florian Josef Altendorfer info@altendorfer.dev
    • +
    • ashwinibailangadi ashwinib40@gmail.com
    • +
    • ilya lavrenov 17838283+ilyalavrenov@users.noreply.github.com
    • +
    • Soujas K kudchadkarsoujas@gmail.com
    • +
    • Robert Kubiś robert.h3x@gmail.com
    • +
    • b84330808 b84330808@gmail.com
    • +
    • Guillaume MALLERET guillaume.malleret@infomaniak.com
    • +
    • Louis louis.amoudruz@gmail.com
    • +
    • 唐僧洗发用飘柔 2906266135@qq.com
    • +
    • Seth Westphal westy92@gmail.com
    • +
    • ZainnQureshii 43629888+ZainnQureshii@users.noreply.github.com
    • +
    • Rishi Raj Jain jain71000@gmail.com
    • +
    • Enbiya Göral 100806254+enbiyagoral@users.noreply.github.com
    • +
    • Florian Josef Altendorfer 341419330+florianaltendorfer@users.noreply.github.com

    Contact the rclone project

    Forum

    diff --git a/MANUAL.md b/MANUAL.md index 6d194963b..7b75fda7c 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -1,6 +1,6 @@ % rclone(1) User Manual % Nick Craig-Wood -% Jul 31, 2026 +% Nov 06, 2026 # NAME @@ -39,6 +39,7 @@ Available commands: gui Open the web based GUI. hashsum Produces a hashsum file for all the objects in the path. help Show help for rclone commands, flags and backends. + index Write static directory listings into a remote. link Generate public link to file/folder. listremotes List all the remotes in the config file and defined in environment variables. ls List the objects in the path with size and path. @@ -187,6 +188,7 @@ WebDAV or S3, that work out of the box.) - Akamai Netstorage - Alibaba Cloud (Aliyun) Object Storage System (OSS) - Amazon S3 +- Autonomys Auto Drive - Bizfly Cloud Simple Storage - Backblaze B2 - Box @@ -194,11 +196,13 @@ WebDAV or S3, that work out of the box.) - China Mobile Ecloud Elastic Object Storage (EOS) - Arvan Cloud Object Storage (AOS) - Citrix ShareFile +- Clever Cloud Cellar - Cloudflare R2 - Cloudinary - Cubbit DS3 - DigitalOcean Spaces - Digi Storage +- dosya.dev - Dreamhost - Drime - Dropbox @@ -232,8 +236,11 @@ WebDAV or S3, that work out of the box.) - IBM COS S3 - IDrive e2 - Impossible Cloud +- Infomaniak Swiss Backup (S3) +- Infomaniak Swiss Backup (Swift) - Intercolo Object Storage - IONOS Cloud +- kDrive - Koofr - Leviia Object Storage - Liara Object Storage @@ -249,6 +256,7 @@ WebDAV or S3, that work out of the box.) - Microsoft Azure Files Storage - Microsoft OneDrive - Minio +- Neon Object Storage - Nextcloud - Blomp Cloud Storage - OpenDrive @@ -273,6 +281,7 @@ WebDAV or S3, that work out of the box.) - RackCorp Object Storage - Rackspace Cloud Files - Rclone Serve S3 +- RelAix.Storage - rsync.net - Scaleway - Scality (RING / ARTESCA) @@ -588,12 +597,6 @@ package is here. The rclone developers maintain a [docker image for rclone](https://hub.docker.com/r/rclone/rclone). -**Note:** We also now offer a paid version of rclone with -enterprise-grade security and zero CVEs through our partner -[SecureBuild](https://securebuild.com/blog/introducing-securebuild). -If you are interested, check out their website and the [Rclone -SecureBuild Image](https://securebuild.com/images/rclone). - These images are built as part of the release process based on a minimal Alpine Linux. @@ -707,7 +710,7 @@ not the rclone developers so it may be out of date. Its current version is as be ## Source installation {#source} Make sure you have git and [Go](https://golang.org/) installed. -Go version 1.25 or newer is required, the latest release is recommended. +Go version 1.26 or newer is required, the latest release is recommended. You can get it from your package manager, or download it from [golang.org/dl](https://golang.org/dl/). Then you can run the following: @@ -1051,6 +1054,7 @@ See the following for detailed instructions for - [Crypt](https://rclone.org/crypt/) - to encrypt other remotes - [DigitalOcean Spaces](https://rclone.org/s3/#digitalocean-spaces) - [Digi Storage](https://rclone.org/koofr/#digi-storage) +- [dosya.dev](https://rclone.org/dosya/) - [Drime](https://rclone.org/drime/) - [Dropbox](https://rclone.org/dropbox/) - [Enterprise File Fabric](https://rclone.org/filefabric/) @@ -1072,6 +1076,7 @@ See the following for detailed instructions for - [Internet Archive](https://rclone.org/internetarchive/) - [Internxt](https://rclone.org/internxt/) - [Jottacloud](https://rclone.org/jottacloud/) +- [kDrive](https://rclone.org/kdrive/) - [Koofr](https://rclone.org/koofr/) - [Linkbox](https://rclone.org/linkbox/) - [Mail.ru Cloud](https://rclone.org/mailru/) @@ -2334,6 +2339,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](https://rclone.org/docs/#fast-list) for more details. @@ -2415,7 +2424,7 @@ 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 +not), the modification time (if known, the `--default-time` if not), the number of objects in the directory (if known, -1 if not) and the name of the directory, E.g. @@ -2455,6 +2464,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](https://rclone.org/docs/#fast-list) for more details. @@ -2565,6 +2578,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](https://rclone.org/docs/#fast-list) for more details. @@ -3734,6 +3751,7 @@ rclone bisync remote1:path1 remote2:path2 [flags] --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -4099,6 +4117,8 @@ Output completion script for a given shell. Generates a shell completion script for rclone. Run with `--help` to list the supported shells. +Enum-valued flags such as `--log-level` and `--vfs-cache-mode` +also complete their supported values. ## Options @@ -5479,12 +5499,12 @@ rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,command=e ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}" -// Output: stories/The Quick Brown Fox!-20260731 +// Output: stories/The Quick Brown Fox!-20261106 ``` ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}" -// Output: stories/The Quick Brown Fox!-2026-07-31 0340PM +// Output: stories/The Quick Brown Fox!-2026-11-06 0220PM ``` ```console @@ -6178,9 +6198,11 @@ Remove a single file from remote. ## Synopsis -Remove a single file from remote. Unlike `delete` it cannot be used to +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. +specified file exists, it will always be removed from its original location. + +The `--backup-dir` and `--suffix` flags are honored when set. ``` rclone deletefile remote:path [flags] @@ -6195,6 +6217,26 @@ rclone deletefile remote:path [flags] Options shared with other commands are described next. See the [global flags page](https://rclone.org/flags/) for global options not listed here. +### Sync Options + +Flags used for sync commands + +```text + --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 + --fix-case Force rename of case insensitive dest to match source + --ignore-errors Delete even if there are I/O errors + --list-cutoff int To save memory, sort directory listings on disk above this threshold (default 1000000) + --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 Options Important flags useful for most commands @@ -6448,11 +6490,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also @@ -6502,6 +6539,7 @@ Supported hashes are: - blake3 - xxh3 - xxh128 +- crc32c ``` Then @@ -6577,6 +6615,332 @@ Flags for listing directories * [rclone](https://rclone.org/commands/rclone/) - Show help for rclone commands, flags and backends. + + +# rclone index + +Write static directory listings into a remote. + +## Synopsis + +Write a directory listing, `index.html` by default, into every +directory of `remote:path` so that it can be browsed when it is served +as a static website, for example from an S3 website endpoint, a bucket +behind a CDN, or a plain web server. + +This works like `rclone sync`: each run makes the minimum changes needed +to bring the listings into line with the files. Listings which haven't +changed aren't rewritten, so a run with no changes makes no uploads. The +listings never show the listing files themselves. + +**Note** that `rclone index` treats every file with an output name +(`index.html` by default) in the directories it indexes as its own, and +will overwrite it or delete it without checking where it came from. To +protect a hand-written index, exclude its directory with +`--index-exclude`. + +## Outputs + +`--output NAME=FORMAT` says what to write in each directory and can be +repeated. NAME is the file name, and FORMAT is one of the built-in +formats below or the path of a Go template file. + +| Format | MIME type | Contents | +|:-------|:----------|:---------| +| `html` | `text/html; charset=utf-8` | The HTML listing from the `rclone serve http` template | +| `json` | `application/json` | JSON in the format of `rclone lsjson` for the directory | +| `caddy` | `application/json` | JSON in the format of Caddy's `file_server browse` | + +The default is `--output index.html=html`. The built-in formats are +templates, so they can be printed with `--print-template FORMAT`, copied +and changed. Outputs whose name ends in `.html` or `.htm` are rendered +with Go's `html/template` and everything else with `text/template`, which +has a `json` function for safe encoding. The template data is that of +`rclone serve http` with `.Static` set (see +[rclone serve http](https://rclone.org/commands/rclone_serve_http/#template)). Outputs are +uploaded with the MIME type of the built-in format, or that of the +output name's extension for template outputs, since static hosts serve +the stored type. + +## Filters + +The normal filters (`--include`, `--exclude`, `--filter-from`, `--max-age`, ...) +control what appears in the listings. An excluded file isn't listed, and +an excluded directory isn't listed or indexed. + +The `--index-include`, `--index-exclude`, `--index-filter` flags and their +`-from` variants control which directories get listings. They take the same +patterns as the normal filters, applied to directory paths, and +`--index-include` implies excluding all other directories. A directory +excluded here still appears in its parent's listing, but nothing is written +or deleted inside it, so it can have its own hand-made index. +`--index-max-depth` limits how deep listings are written. + +## Modification times + +Listings show the modification time of each file. When using the s3, +oracleobjectstorage and swift backends rclone stores the modification time as +metadata which isn't returned by the bucket listing, so **every object needs +a HEAD request**, which can mean thousands of transactions per run. Avoid +this with one of: + +- `--use-server-modtime` uses the time the object was uploaded instead, + which is what the web server sends as `Last-Modified`. Recommended for s3 + unless the original modification times matter. +- `--no-modtime` shows no times at all, which is the cheapest option. + +`--dir-time` sets the time shown for directories: + +- `newest` (default): the newest modification time of anything below the + directory. Note that this means one new file changes the listing of + every directory above it. +- `dir`: the directory's own modification time. On most file systems + writing a listing into a directory changes its time, so this can take + more than one run to settle. +- `none`: no time. + +The listing files are given the newest modification time below their +directory, so the `Last-Modified` header of a listing is meaningful. + +## Links + +Directory links are `dir/` by default, which works on hosts that serve +index documents: S3 website endpoints, GCS and Azure static websites, +nginx and Apache, and R2 custom domains with a URL rewrite rule. For +hosts that don't (plain S3 REST URLs, B2 friendly URLs) use +`--link-index` to make directory links `dir/index.html` instead. + +## Partial runs + +After a sync which changed a known set of files there is no need to +walk the whole remote. Tell `rclone index` what changed and it re-indexes +only the directories that could be affected: + + rclone index r2:bucket --changed v1.76.0/ --changed version.txt + rclone index r2:bucket --changed-from changes.txt + rclone sync ./public r2:bucket --exclude index.html --combined - | rclone index r2:bucket --changed-combined - + +- `--changed PATH` names a changed file or directory relative to + `remote:path` and can be repeated. A directory, given with a trailing + slash or found to be one, is re-indexed completely. +- `--changed-from FILE` reads one path per line exactly as written. +- `--changed-combined FILE` reads the `--combined` report of + `rclone sync`: lines starting with `+`, `-`, `*` and `!` are changes and + `=` lines are ignored. +- Both files accept `-` for standard input and all three flags can be + combined. + +A changed file re-indexes its directory and every directory above it, +since their times and their listings can change too, and on bucket +based storage a directory can cease to exist. Each of those is one +directory listing. With `--dir-time newest` the directories above also +need the times of their unchanged subdirectories, which are read from +the modification times of those subdirectories' listings at the cost +of one small request each. With `--use-server-modtime` that is the time +the listing was written rather than the time of the newest file, so +partial runs can drift by the indexing delay until the next full run. +`--dir-time dir` and `none` need no such lookups. + +Directories which are neither named nor above a named path are left +alone, as are directories deeper than `--max-depth`. An empty change +list does nothing, and naming the root does a full run. There is no +automatic cutover to a full run since that depends on the size of the +whole remote: a partial run costs one listing per affected directory, +a full run one request per thousand objects on S3-like storage or one +per directory elsewhere. The number +of directories a partial run will list is logged with `-v`, and +`--changed-max-dirs` makes it fall back to a full run above that +number. A good pattern is a partial run after each upload and a +scheduled full run to catch anything missed. + +## Site icon + +The listings carry no icon or branding of their own. To give a site an +icon, upload a `favicon.ico` to the root of the remote, which browsers +fetch from there for every page. Exclude it from the listings with +`--exclude /favicon.ico` so it stays on the site but isn't shown. + +## Deleting listings + +On backends which can't have empty directories (S3, B2 and other +bucket-based storage) a directory only exists while it has files in it. +Once the last file in a directory has been removed its listing is +deleted, since the directory only existed because of it. Backends which +can have empty directories keep a listing for each empty directory. + +## Using with sync + +A sync from a local build deletes files on the destination which aren't +in the source, which includes the listings. Either index the local build +before syncing: + + rclone index ./public + rclone sync ./public r2:bucket + +or exclude the listings from the sync so it neither uploads nor deletes +them, then index the remote: + + rclone sync ./public r2:bucket --exclude index.html + rclone index r2:bucket + +## Examples + +An S3 website bucket, using the upload times so no object needs a HEAD +request: + + rclone index s3:my-site --use-server-modtime + +HTML and rclone JSON listings, setting `Cache-Control` on them: + + rclone index s3:bucket --output index.html=html --output index.json=json --header-upload "Cache-Control: max-age=300" + +Only list release files, and don't write listings under `/private`: + + rclone index r2:bucket --include "*.{zip,deb,rpm}" --index-exclude "/private/**" + +A B2 bucket served from its friendly URLs: + + rclone index b2:bucket --link-index + +See what would change: + + rclone index r2:bucket --dry-run -v + +Listings which haven't changed aren't normally rewritten, so changing +the headers or metadata set on them needs `--index-rewrite`, which +writes every listing a run would render whether it changed or not: + + rclone index r2:bucket --index-rewrite --header-upload "Cache-Control: max-age=3600" + +``` +rclone index remote:path [flags] +``` + +## Options + +``` + --changed stringArray Only re-index directories affected by this changed path (directories end in /) + --changed-combined stringArray Read changed paths from a sync --combined report (use - to read from stdin) + --changed-from stringArray Read changed paths from file, one per line (use - to read from stdin) + --changed-max-dirs int Do a full index if a partial one would list more than this many directories (0 for no limit) + --dir-time newest|dir|none How to work out the time shown for a directory (default newest) + -h, --help help for index + --index-exclude stringArray Don't write listings in directories matching pattern + --index-exclude-from stringArray Read directory exclude patterns from file (use - to read from stdin) + --index-filter stringArray Add a rule for which directories get listings + --index-filter-from stringArray Read directory rules from a file (use - to read from stdin) + --index-include stringArray Only write listings in directories matching pattern + --index-include-from stringArray Read directory include patterns from file (use - to read from stdin) + --index-max-depth int Only write listings this many directories deep (-1 for no limit) (default -1) + --index-rewrite Write every listing even if it is unchanged + --link-index Link to dir/NAME rather than dir/ for hosts without index documents + --no-modtime Don't show modification times in listings + --output stringArray Listing to write in each directory as NAME=FORMAT (default [index.html=html]) + --print-template string Print the built-in template for FORMAT and exit +``` + +Options shared with other commands are described next. +See the [global flags page](https://rclone.org/flags/) for global options not listed here. + +### Copy Options + +Flags for anything which can copy a file + +```text + --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 server-side paths during comparison + --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination + --cutoff-mode HARD|SOFT|CAUTIOUS 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 modtime or checksum + -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally + --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 + -l, --links Translate symlinks to/from regular files with a '.rclonelink' extension + --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) + --name-transform stringArray Transform paths during the copy process + --no-check-dest Don't check the destination, copy regardless + --no-traverse Don't traverse destination file system on copy + --no-update-dir-modtime Don't update directory modification times + --no-update-modtime Don't update destination modtime if files identical + --order-by string Instructions on how to order the transfers, e.g. 'size,descending' + --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial") + --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 modtime 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 + +```text + -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 + +```text + --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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly @/n + --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 + +```text + --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 Also + + + + +* [rclone](https://rclone.org/commands/rclone/) - Show help for rclone commands, flags and backends. + + # rclone link @@ -6844,6 +7208,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](https://rclone.org/docs/#fast-list) for more details. @@ -7032,6 +7400,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](https://rclone.org/docs/#fast-list) for more details. @@ -7402,6 +7774,11 @@ for all `mount` and `serve` commands on macOS. For details, see [vfs-case-sensit ### NFS mount +For macOS (and other platforms where this path is supported), prefer the dedicated +[rclone nfsmount](https://rclone.org/commands/rclone_nfsmount/) command. It starts the NFS server and +performs the mount for you. `rclone mount` itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using [serve nfs](https://rclone.org/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -7739,7 +8116,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -7794,7 +8171,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -7948,7 +8326,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -8908,6 +9286,11 @@ for all `mount` and `serve` commands on macOS. For details, see [vfs-case-sensit ### NFS mount +For macOS (and other platforms where this path is supported), prefer the dedicated +[rclone nfsmount](https://rclone.org/commands/rclone_nfsmount/) command. It starts the NFS server and +performs the mount for you. `rclone mount` itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using [serve nfs](https://rclone.org/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -9245,7 +9628,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -9300,7 +9683,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -9454,7 +9838,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -10058,6 +10442,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--rc-allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--rc-allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -10127,6 +10518,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -10136,6 +10534,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -10176,8 +10575,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--rc-allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--rc-realm` to set the authentication realm. Use `--rc-salt` to change the password hashing salt from the default. @@ -10226,11 +10637,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also @@ -10534,7 +10940,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -10589,7 +10995,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -10743,7 +11150,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -11210,7 +11617,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -11265,7 +11672,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -11419,7 +11827,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -11839,7 +12247,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -11894,7 +12302,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -12048,7 +12457,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -12291,9 +12700,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -12301,7 +12711,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -12311,10 +12722,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -12340,11 +12785,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -12489,6 +12943,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -12558,6 +13019,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -12567,6 +13035,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -12607,8 +13076,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -12676,7 +13157,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -12731,7 +13212,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -12885,7 +13367,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -13128,9 +13610,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -13138,7 +13621,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -13148,10 +13632,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -13177,11 +13695,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -13456,7 +13983,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -13511,7 +14038,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -13665,7 +14193,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -14095,6 +14623,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -14179,8 +14714,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -14249,6 +14796,21 @@ docs](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)). `--auth-key` is not provided then `serve s3` will allow anonymous access. +Alternatively `--auth-proxy` can be used to look up the secret for each +access key ID and choose the backend it maps to (see [Auth +Proxy](#auth-proxy) below). When an auth proxy is in use `--auth-key` +is ignored and every request must be signed with the secret the proxy +returns for its access key ID. Each access key ID is a separate user, +whose multipart uploads and object metadata are private to it, even if +the proxy maps several access key IDs to the same backend. + +As on AWS, every `x-amz-*` header in an authenticated request must be +in its signed headers list; a request with an unsigned `x-amz-*` +header is refused with `AccessDenied`. S3 clients sign these headers +as a matter of course, but a header added after signing (for example +by a proxy in front of the server, or `x-amz-meta-*` headers sent +with a presigned URL which only signs the host) is refused. + Like all rclone flags `--auth-key` can be set via environment variables, in this case `RCLONE_AUTH_KEY`. Since this flag can be repeated, the input to `RCLONE_AUTH_KEY` is CSV encoded. Because the @@ -14283,6 +14845,14 @@ part of the hostname (such as mybucket.local) Use `--etag-hash` if you want to change the hash uses for the `ETag`. Note that using anything other than `MD5` (the default) is likely to cause problems for S3 clients which rely on the Etag being the MD5. +Use `--etag-hash auto` to use the best hash the backend supports - with +`--auth-proxy` that of each user's backend. + +The `ETag` of an object made by a multipart upload is its hash, like +any other object, rather than the `-N` suffixed `ETag` AWS S3 gives +these. If the remote doesn't have the MD5 of objects, `HeadObject` +and listings only return the MD5 of objects uploaded through `serve +s3` while the object's metadata is kept (see below). ## Quickstart @@ -14324,29 +14894,78 @@ access_key_id = ACCESS_KEY_ID secret_access_key = SECRET_ACCESS_KEY ``` +## Object uploads (PUT) + +A `PutObject` upload only ever changes the object at its key atomically, on +success, a failed or interrupted PUT neither removes nor overwrites the +object already stored at the key, and never leaves a partial object visible +at it. + +Remotes that upload atomically (e.g. object stores such as `s3`) are streamed +straight to the destination. On remotes where a partial upload would +otherwise be visible (e.g. `local`), and whenever `--vfs-cache-mode` is +`writes` or above, the upload is written to a temporary object that is +renamed into place on success; these remotes need to support a server-side +move or copy for this (nearly all do - without move or copy the upload is +written directly and a failed PUT may leave a partial object at the key). If +`serve s3` is killed part-way through an upload the temporary object (named +with a leading `.rclone_temp_put_`) may be left behind; it is hidden from +S3 listings but must be removed manually. + ## Multipart uploads -By default `serve s3` **streams** each multipart upload, in part-number -order, into a single `PutStream` upload to the underlying remote, so the -whole file is never buffered in memory - memory use stays bounded by the -parts in flight. The remote then performs its own internal upload (for -example its own multipart upload, still with bounded memory). This works -for any remote that supports `PutStream`, which is nearly all of them, -including through `crypt`. - -The upload is atomic so the destination object only ever changes on a +Multipart uploads are written, in part-number order, to a temporary +object which is renamed into place, server-side, on completion, so the +upload is atomic. The object at the key only ever changes on a successful completion. A failed or aborted upload never affects any -object already stored under that name. Remotes that upload atomically -already (object stores such as `s3`) are streamed straight to the -destination. On remotes where a partial upload would otherwise be visible -(such as `local`), the parts are streamed to a temporary object that is -moved into place, server-side, on completion; these remotes therefore -also need to support a server-side move or copy. +object already stored under that name and a partly-uploaded object +never becomes visible under it. + +With the default `--vfs-cache-mode off` `serve s3` **streams** each +multipart upload, in part-number order, into a single streaming upload +to the underlying remote, so the whole file is never buffered in +memory: only parts which arrive out of order are buffered, within the +limits described below. The remote then performs its own internal upload (for example its own multipart +upload, still with bounded memory). Remotes that don't support +streaming uploads (those that must know the file size before the +upload starts, such as `onedrive`, `pcloud`, `jottacloud`, `mailru`, +`opendrive`, `putio`, `protondrive` and `zoho`) have the parts spooled +to a temporary file on **local disk** instead, and uploaded with the +size then known on completion, so they need local disk space for the +largest objects in flight rather than memory. + +With `--vfs-cache-mode writes` (or `full`) the parts are written to a +temporary file in the VFS cache and uploaded by the VFS write-back - +see [Multipart uploads and the VFS +cache](#multipart-uploads-and-the-vfs-cache) below. + +The rename into place needs the remote to support a server-side move +or copy, which nearly all do. It is a cheap rename on most remotes, +but on object stores without a real rename (such as `s3` itself) the +move is performed as a server-side copy and delete of the whole +object, which can take time and API calls for large objects. +Concurrent multipart uploads of the same key (which S3 permits) are +safe. Each writes its own temporary object and the last to complete +wins. + +On the few remotes that support neither server side move nor copy, the +parts are written straight to the destination object instead and never +buffered in memory. This is at some cost in atomicity - the incomplete +object is visible under its final name while the upload is in flight, +as it also is for a plain object PUT on such remotes, and concurrent +multipart uploads of the same key write to the same object and can +interleave. A failed or aborted upload still leaves any pre-existing +object untouched provided the remote uploads atomically and the VFS +cache is off; on a remote where partial uploads are visible it may +leave partial data at the key (like a plain PUT there), and with +`--vfs-cache-mode writes` (or `full`) a write to the cache cannot be +abandoned, so an aborted upload's partial data is written back to the +remote as if it had completed. **Features** -- The whole object is never buffered in memory; memory use is bounded by - the parts in flight, not the upload size. +- The whole object is never buffered in memory; only parts arriving out + of order are, within fixed limits, whatever the upload size. - Parts can be any size. Clients that don't produce uniform-sized parts work fine - for example PostgreSQL backup tools such as **pgBarman** and **pgBackRest**, which flush an upload buffer once it grows past @@ -14356,69 +14975,275 @@ also need to support a server-side move or copy. as one continuous stream. - The destination object only ever changes atomically, on completion: an aborted or failed upload leaves any pre-existing object of the same - name untouched, and a partly-uploaded object never becomes visible. -- Backend-agnostic - it only needs the remote to support `PutStream` - (plus a server-side move or copy on remotes that don't upload - atomically). + name untouched, and a partly-uploaded object never becomes visible + (except on the few remotes with no server-side move or copy, as + above). +- Multipart uploads go through the VFS like any other upload, so they + show in rclone's transfer stats and obey `--bwlimit`. +- Backend-agnostic - it only needs the remote to support a server-side + move or copy for the rename into place, which nearly all do; a remote + without streaming upload support spools to local disk as above. **Limitations** -- Parts must arrive in ascending, contiguous part-number order - (1, 2, 3, ...). Parts the client uploads concurrently or out of order - are buffered until their turn. The memory used for this buffering is - capped, per upload, by `--multipart-streaming-buffer-limit` (default - `256M`, `0` for no limit): a part that would take the buffer over the - limit is stalled until the stream drains, so a client that uploads - faster than the remote can accept sees backpressure rather than - unbounded server memory use. Since a stalled part holds its HTTP - request open, clients whose upload concurrency times chunk size - exceeds the limit may need a longer read timeout when the remote is - slow. Non-contiguous part numbers are rejected on completion. - Configure the client to upload in part order, ideally with low - concurrency, for the lowest memory use. +- Parts must arrive in ascending, contiguous part-number order (1, 2, 3, + ...). The part the stream needs next is written straight through as it + arrives, so it is never buffered, whatever its size. Parts the client + uploads concurrently or out of order are buffered until their turn. + The memory used for this buffering is capped, per upload, by + `--multipart-streaming-buffer-limit` (default `256M`, `0` for no + limit), and across all the uploads of each user (each access key) by + `--multipart-streaming-buffer-total` (default `1G`, `0` for no + limit), counting each buffered part in the + whole 1 MiB memory pages it occupies: a part that would take the + buffer over either limit is stalled until the stream drains (or, if it + is bigger than the limits, until it is the next part), so a client + that uploads faster than the remote can accept sees backpressure + rather than unbounded server memory use. A stalled part holds its HTTP + request open, and one stalled for more than a minute is failed with a + `SlowDown` error, which S3 clients retry. Clients whose upload + concurrency times part size exceeds the limits will see these stalls + and retries when the remote is slower than the client. Non-contiguous + part numbers are rejected on completion. Configure the client to + upload in part order, ideally with low concurrency, for the lowest + memory use. - A part uploaded again before completion - typically a client retrying after a timeout - is accepted: if the earlier copy is still buffered it is replaced, and if it has already been streamed an identical - re-upload is a no-op. What isn't possible is replacing a part that has - already been streamed with *different* content - that is rejected. A - failure in the stream to the remote itself still aborts the whole - upload and the client must start it again. (The remote's own upload + re-upload is a no-op (a re-upload which arrives while the part is + being streamed waits for it to finish first). If a part fails part way + through being streamed + (for example the client's connection drops) the client's retry of it + carries on where it stopped, provided it has the same content. What + isn't possible is replacing a part that has already been streamed, + in whole or in part, with *different* content - that is rejected. A + part which arrives in full but is then rejected, for example because + it doesn't match the `Content-MD5` the client declared, has already + been streamed, so the whole upload is failed and the client must + start it again. So is a failure in the stream to the remote itself. (The remote's own upload still retries its internal chunks.) +- A `CompleteMultipartUpload` which fails because the parts it lists + don't match those uploaded, or there is a gap in the part numbers, + leaves the upload open, as on S3, so the client can upload any + missing parts and complete it again. If writing the completed object + to the remote fails, the upload is failed and must be started again. - Parts are serialised into one stream, so ingest from the client is - effectively single-threaded, although the remote's own upload still - runs concurrently. -- On remotes that don't upload atomically (such as `local`), the - completed object is moved into place with a server-side operation. - This is a cheap rename on most such remotes. On these remotes, if - `serve s3` is killed part-way through an upload the temporary object - (named with a leading `.rclone_multipart_upload_`) may be left behind; - it is hidden from S3 listings but must be removed manually. + effectively single-threaded. When streaming, the remote's own upload + runs concurrently with the parts arriving; with the local disk spool + or the VFS cache the upload to the remote only starts on completion. +- If `serve s3` is killed part-way through an upload the temporary + object (named with a leading `.rclone_temp_multipart_`) may be left + behind; it is hidden from S3 listings but must be removed manually. + +### Multipart uploads and the VFS cache + +With `--vfs-cache-mode writes` (or `full`) multipart uploads do not +stream to the remote at all. The parts are written, in part-number +order, to a temporary file in the VFS cache. On completion the file is +renamed into place and uploaded by the VFS write-back, exactly like a +plain object PUT. This needs no streaming upload support from the +remote. The rename normally happens in the cache before the upload has +started, but the VFS requires the remote to support a server-side move +or copy to rename files at all (and uses one if the temporary file has +already been written back, e.g. with `--vfs-write-back 0`). On remotes +without either, the parts are written to the cache directly under the +final key instead: the upload still never touches memory, but it loses +its atomicity - the in-flight upload is visible at the key, and an +aborted upload cannot be abandoned once in the cache, so its partial +data is written back to the remote as if it were a completed object. + +Remotes that benefit from `--vfs-cache-mode writes`: + +- **Remotes over slow or unreliable links.** A failure in a streamed + upload aborts the whole multipart upload and the client must start + again from the first part; a failed write-back upload is retried by + the VFS (see `--vfs-cache-max-age` and friends) without the client + being involved. Ingest from the client also runs at local disk speed + rather than being throttled to the remote's pace. +- **Workloads that read back or overwrite what they just wrote.** The + completed object stays in the cache, so subsequent `GET`/`HEAD` + requests are served locally, and plain PUTs and multipart uploads to + the same key go through the same cache entry so the last write wins + regardless of upload style. + +The trade-offs of the VFS cache: + +- The whole object lands on local disk, so the cache (`--cache-dir`) + needs space for the largest objects in flight; `--vfs-cache-max-size` + cannot evict files which are still being uploaded. +- The `200 OK` for `CompleteMultipartUpload` means the data is safely + in the **local cache**, not yet on the remote - the same durability + the cache gives plain PUTs. If an acknowledgement must mean the data + has reached the remote (for example WAL archiving), use the default + `--vfs-cache-mode off`. +- The upload to the remote only starts on completion, rather than + overlapping with the parts arriving, so the data reaches the remote + later than with streaming. +- If `serve s3` is killed part-way through an upload, the temporary + file survives in the cache and the VFS cache recovery uploads it to + the remote on restart as a temporary object (named with a leading + `.rclone_temp_multipart_`); as with the streaming path, it is + hidden from S3 listings but must be removed manually. + +### Cleaning up temporary objects + +If `serve s3` is killed part-way through an upload it can leave a +temporary object behind, named with a leading `.rclone_temp_`. This +whole prefix is reserved: any object whose name (the last +`/`-separated segment of its key) starts with `.rclone_temp_` is +hidden from S3 listings, so don't give real objects such names - an +existing object with such a name disappears from listings (though it +stays accessible directly by its key: only listings hide reserved +names, `GET`, `HEAD` and `DELETE` of the exact key still work). A +temporary object never holds acknowledged data - uploads whose +temporary object survived were never confirmed to the client - so old +ones are safe to delete: + + rclone delete --min-age 24h --include ".rclone_temp_*" remote:path + +The `--min-age` protects uploads which are still in progress: make sure +it is longer than your longest upload, especially if several `serve s3` +instances share the same remote. + +rclone v1.75 named its temporary multipart objects +`.rclone_multipart_upload_*`; leftovers from an older server are also +hidden from listings and can be cleaned up the same way. + +### Abandoned uploads + +A client which starts a multipart upload and vanishes without either +completing or aborting it would otherwise hold on to its resources +forever. + +An incomplete multipart upload which has had no activity for +`--multipart-expiry` (default `24h`) is therefore aborted and cleaned +up, exactly as if the client had called `AbortMultipartUpload`, and a +`NOTICE` is logged. + +An upload with a part still being received is never expired, however +slowly the part is arriving, and each completed part restarts the +clock, so the expiry only needs to outlast the client's pauses +*between* parts, not the whole upload. + +Late operations on an expired upload fail with `NoSuchUpload`, as they +do on real S3 when a lifecycle rule has aborted the upload. Set +`--multipart-expiry 0` to keep incomplete uploads forever - but note +that abandoned uploads are then never cleaned up and go on counting +towards `--multipart-max-uploads` below, so enough of them will stop +the user starting any new multipart upload until the server is +restarted. + +Each multipart upload in progress holds server resources - for example +the buffers the remote's own upload uses once the first part has +arrived - so each user (each access key) can have no more than +`--multipart-max-uploads` (default `1000`, `0` for no limit) in +progress at once. Starting another fails with a `SlowDown` error, +which S3 clients retry, and a one-off `NOTICE` is logged. ### Disabling streaming -If you pass `--disable-multipart-streaming`, or the remote doesn't -support `PutStream` (or doesn't upload atomically and can't move or copy -server-side), multipart uploads are instead **buffered in memory** -by the underlying S3 library: every part is held in memory and the whole -object is written out in one go when the upload completes (the previous -behaviour). This removes the in-order/contiguous-part restriction above, -so parts can be uploaded in any order, but **memory use grows with the -size of the upload**, so it is only suitable for small objects. A one-off -`NOTICE` is logged the first time this happens. +If you pass `--disable-multipart-streaming`, multipart uploads are +instead **buffered in memory** by the underlying S3 library: every +part is held in memory and the whole object is written out in one go +when the upload completes. This removes the in-order/contiguous-part +restriction above, so parts can be uploaded in any order, but **memory +use grows with the size of the upload**, so it is only suitable for +small objects. A one-off `NOTICE` is logged the first time this +happens. This flag is the only thing that makes multipart uploads +buffer in memory - it is never done because of missing remote +capabilities. The limits on multipart uploads above +(`--multipart-streaming-buffer-limit`, +`--multipart-streaming-buffer-total` and `--multipart-max-uploads`) do +not apply to uploads buffered in memory, so don't use this flag if the +server is open to clients you don't trust. Consider +`--vfs-cache-mode writes` instead, which buffers the upload in the VFS +cache on disk and takes precedence over +`--disable-multipart-streaming`. -Alternatively, if the client is an rclone `s3` remote (like the -`[serves3]` example above), you can set `use_multipart_uploads = false` -on it so it uploads each object as a single stream and skips multipart -uploads altogether. +## Memory use + +`serve s3` never buffers whole objects in memory (except with +`--disable-multipart-streaming`, above), and limits the memory each +kind of request can use, so that a client, even a hostile one, can't +make it use unbounded memory. + +- **Object data.** `PutObject` bodies and multipart parts arriving in + order are streamed straight through to the remote. Parts arriving out + of order are buffered, up to `--multipart-streaming-buffer-limit` + per upload and `--multipart-streaming-buffer-total` per user. +- **Uploads in progress.** Each user can have at most + `--multipart-max-uploads` multipart uploads in progress. An upload + holds little memory until its + first part arrives. After that, with `--vfs-cache-mode off`, it holds + a `--streaming-upload-cutoff` sized buffer plus whatever the remote's + own upload buffers, which for many remotes is up to their chunk size + times their upload concurrency (for example `--s3-chunk-size` times + `--s3-upload-concurrency`). Plain `PutObject` uploads use the same + while they are in progress. +- **Metadata.** The metadata of at most `--metadata-max-objects` + objects of each user is kept, each limited to 2 KB. +- **Request bodies.** The XML bodies of requests such as + `CompleteMultipartUpload` and `DeleteObjects` are limited to 10 MiB, + and `DeleteObjects` to 1000 keys. A browser form (`POST`) upload + holds at most 1 MiB in memory, spooling the rest to a temporary file, + and is limited to 5 GB. +- **Listings.** Each page of a `ListObjects` listing reads only the + directories needed to fill it, and returns at most 1000 keys. + Directory listings are cached by the [VFS directory + cache](#vfs-directory-cache). + +The largest of these is usually the remote's upload buffers, which can +be up to `--multipart-max-uploads` times the buffers of one upload for +each user if clients start many uploads and send part of each. The +limits apply to each user separately, so that one user can't stop +others uploading, which means the memory use grows with the number of +users. To limit it, lower +`--multipart-max-uploads`, the remote's chunk size or upload +concurrency, or set `--max-buffer-memory` to limit the memory used by +the buffers of all uploads to remotes which use rclone's buffer pool +(including `s3`, `azureblob` and `b2`). Buffered multipart parts come +from the same pool, so if you set `--max-buffer-memory` make it +comfortably bigger than `--multipart-streaming-buffer-total` times the +number of users uploading at once, otherwise +buffered parts can use up all the memory the remote needs to upload the +parts which would free them. + +The number of connections is not limited, so if the server is open to +clients you don't trust, use `--auth-key` or `--auth-proxy` and +consider putting it behind a reverse proxy which limits connections. + +## Design goals + +These goals explain many of the limitations below. + +- **Objects are plain files on the remote.** A bucket is a directory + in the root and a key is a path in it, so the remote stays usable by + other tools, such as `rclone mount` or `rclone sync`. So keys must + be paths (see [Object names](#object-names)). +- **No database.** `serve s3` stores nothing but the objects. What the + remote can't hold, such as user metadata, tags, the MD5 `ETag` of an + object on a remote without MD5 and the directory markers put, is + kept in memory as a best effort, and lost on restart. +- **Works with any rclone remote.** What `serve s3` can do depends on + what the remote supports, such as the hashes used for `ETag`s and + modification times, rather than needing a particular backend. +- **Bounded memory.** Uploads, including multipart uploads, are + streamed to the remote and the memory each request can use is + limited (see [Memory use](#memory-use)). Nothing is written to local + disk unless the VFS cache is used or the remote can't stream uploads + (see [Multipart uploads](#multipart-uploads)). +- **Refuse rather than ignore.** Unsupported features are refused, or + answered as S3 answers when the feature isn't configured, so a + client is never told something was done which wasn't (see + [Compatibility](#compatibility)). +- **A storage gateway, not a full S3.** `serve s3` implements the parts + of the S3 API clients use to store and fetch objects. Versioning, + ACLs, bucket policies, lifecycle rules and the like are out of scope. +- **Compatible with rclone's s3 backend.** This includes its directory + markers, which the tests check. ## Bugs -Multipart server side copies do not work (see -[#7454](https://github.com/rclone/rclone/issues/7454)). These take a -very long time and eventually fail. The default threshold for -multipart server side copies is 5G which is the maximum it can be, so -files above this side will fail to be server side copied. - For a current list of `serve s3` bugs see the [serve s3](https://github.com/rclone/rclone/labels/serve%20s3) bug category on GitHub. @@ -14427,57 +15252,124 @@ on GitHub. `serve s3` will treat all directories in the root as buckets and ignore all files in the root. You can use `CreateBucket` to create -folders under the root, but you can't create empty folders under other -folders not in the root. +folders under the root, and put a directory marker to create an empty +folder below them (see [Object names](#object-names)). When using `PutObject` or `DeleteObject`, rclone will automatically create or clean up empty folders. If you don't want to clean up empty -folders automatically, use `--no-cleanup`. +folders automatically, use `--directory-markers` (see [Object +names](#object-names)). The deprecated `--no-cleanup` does the same. -When using `ListObjects`, rclone will use `/` when the delimiter is -empty. This reduces backend requests with no effect on most -operations, but if the delimiter is something other than `/` and -empty, rclone will do a full recursive search of the backend, which -can take some time. +When using `ListObjects` with the delimiter `/`, rclone lists the +directory the prefix is in, showing its subdirectories as common +prefixes, including empty ones. Without a delimiter the listing is +recursive: rclone walks the directory tree below the prefix, reading +only as many directories as it needs to fill each page, and lists +empty directories as their directory markers (see below). Any other +delimiter is supported too, but needs the whole directory tree below +the prefix walking, unless the delimiter is in the directory names. -Versioning is not currently supported. +Versioning is not supported (see [Design goals](#design-goals)). -Metadata will only be saved in memory other than the rclone `mtime` -metadata which will be set as the modification time of the file. +Conditional writes, `PutObject` and `CompleteMultipartUpload` with +`If-None-Match` or `If-Match`, are supported. The conditions are +checked before the object is written, and again as it is moved into +place when it is written to a temporary object first. This happens for +multipart uploads and, for `PutObject`, with remotes which can upload +partial files (such as local disk) or with `--vfs-cache-mode minimal` +or above. The second check is atomic against other writes through +`serve s3`, but neither is atomic against changes made to the remote +some other way. If the remote doesn't support the `--etag-hash`, +objects have no `ETag` so `If-Match` with an `ETag` always fails. + +Metadata will only be saved in memory (see [Design +goals](#design-goals)) other than the rclone `mtime` metadata which +will be set as the modification time of the file. The +metadata of at most `--metadata-max-objects` objects (default `100000`, +`0` for no limit) of each user (each access key) is kept; after that +the metadata of the user's least recently used object is forgotten. The metadata of an object is +ignored once the object has been changed some other way, for example +by another `--auth-proxy` user or directly on the backend. Object tags +are kept with the metadata in the same way. ## Object names `serve s3` stores objects as files in the backend, so object keys are mapped to file paths rather than treated as the opaque strings AWS S3 allows. Keys must be in canonical path form: keys that contain `..` or -`.` path segments, repeated slashes (`//`), or a leading or trailing -slash are rejected with a `400 Bad Request` (`InvalidArgument`) -instead of being normalised, since normalising them could alias two -distinct keys to the same file or resolve a key outside its bucket. -This matches the behaviour of other S3 servers such as MinIO. +`.` path segments, repeated slashes (`//`), or a leading slash are +rejected with a `400 Bad Request` (`InvalidArgument`) instead of being +normalised, since normalising them could alias two distinct keys to +the same file or resolve a key outside its bucket. This matches the +behaviour of other S3 servers such as MinIO. -## Supported operations +A key ending in `/`, such as `dir/`, is a directory marker, standing +for the directory `dir`. Putting an empty directory marker creates the +directory (one with data is rejected with `400 Bad Request`), and +deleting it removes the directory if it is empty. Directory markers +are found by `HeadObject`, `GetObject` and `CopyObject` for any +directory, but only the markers of empty directories, and of the +directories a marker was put for, are listed as objects, as other +directories may not have been made by putting a marker. The markers +put are remembered in memory with the metadata (see +[Limitations](#limitations)), so after a restart, or once forgotten, +the marker of a directory holding other keys is no longer listed. +While a marker is remembered its directory isn't removed when the +last key below it is deleted. -`serve s3` currently supports the following operations. +With `--directory-markers` every directory is listed as a directory +marker, so the markers are listed after a restart too, as needed by +clients which rely on them, such as rclone's s3 backend with +`--s3-directory-markers`. As every directory has a marker, a directory +isn't removed when the last key below it is deleted. Deleting the +marker of a directory which holds other keys stops it being listed, +and the directory is then removed with the last key below it, but this +is only remembered in memory, like the markers put without +`--directory-markers`. -- Bucket - - `ListBuckets` - - `CreateBucket` - - `DeleteBucket` -- Object - - `HeadObject` - - `ListObjects` - - `GetObject` - - `PutObject` - - `DeleteObject` - - `DeleteObjects` - - `CreateMultipartUpload` - - `CompleteMultipartUpload` - - `AbortMultipartUpload` - - `CopyObject` - - `UploadPart` +As keys are file paths, a key can't be both an object and a directory +holding other objects, for example `a/b` and `a/b/c`. Writing an +object which would need this fails with `400 Bad Request` +(`InvalidRequest`). -Other operations will return error `Unimplemented`. +## Compatibility + +`serve s3` implements the parts of the S3 API that S3 clients commonly +use to store and fetch objects. Features it doesn't support are +refused with `501 NotImplemented`, or answered as AWS S3 answers for a +bucket without that feature configured, rather than being silently +ignored. + +| Feature | Supported | Notes | +| ------- | --------- | ----- | +| `ListBuckets`, `CreateBucket`, `DeleteBucket`, `HeadBucket`, `GetBucketLocation` | Yes | Buckets are the directories in the root of the remote. | +| `ListObjects`, `ListObjectsV2` | Yes | Prefixes, delimiters, markers, `start-after`, continuation tokens, `fetch-owner` and `encoding-type=url` all work. Delimiters other than `/` need the whole directory tree walking. | +| `HeadObject`, `GetObject` | Yes | Including `Range`, `partNumber`, the `response-*` header overrides and the `If-Match`, `If-None-Match`, `If-Modified-Since` and `If-Unmodified-Since` conditions. | +| `PutObject` | Yes | Including `Content-MD5`, `aws-chunked` uploads and uploads with no `Content-Length`. | +| `CopyObject` | Yes | Including the metadata and tagging directives and the `x-amz-copy-source-if-*` conditions. | +| `DeleteObject`, `DeleteObjects` | Yes | | +| Multipart uploads | Yes | `CreateMultipartUpload`, `UploadPart`, `UploadPartCopy`, `CompleteMultipartUpload`, `AbortMultipartUpload`, `ListMultipartUploads` and `ListParts`. The `ETag` of the object is its hash, not the `-N` suffixed one AWS gives. The 5 MiB minimum part size isn't enforced. | +| Conditional writes | Partial | `If-Match` and `If-None-Match` on `PutObject` and `CompleteMultipartUpload` are checked, but not atomically against changes made to the remote some other way (see [Limitations](#limitations)). | +| Authentication | Partial | AWS Signature Version 4, in headers, presigned URLs and browser form (`POST`) uploads. Signature Version 2 isn't supported. | +| Anonymous access | Partial | All requests are allowed without `--auth-key` or `--auth-proxy`, and none are with them, as buckets and objects can't be made public. | +| Metadata | Partial | `x-amz-meta-*`, the storage class and the standard headers such as `Content-Type` are kept in memory only (see [Limitations](#limitations)), except the modification time. The storage class is only recorded, so doesn't change how the object is stored. | +| Directory markers | Partial | Keys ending in `/` are stored as directories, so can't hold data. A marker put for a directory holding other keys is only listed while it is remembered in memory, unless `--directory-markers` is set (see [Object names](#object-names)). | +| Checksums | Partial | The `x-amz-checksum-*` of a `PutObject` (CRC32, CRC32C, CRC64NVME, SHA1 or SHA256) is checked and returned with the metadata. The `Content-MD5` and `x-amz-checksum-*` of the bodies of other requests, such as `DeleteObjects`, are checked. The checksums of multipart uploads aren't supported. | +| `GetObjectAttributes` | Partial | Everything but the checksums of multipart uploads. | +| Object tagging | Partial | `GetObjectTagging`, `PutObjectTagging` and `DeleteObjectTagging` work, but tags are kept in memory with the metadata. | +| Bucket owner | No | `serve s3` has no AWS account IDs, so `x-amz-expected-bucket-owner` and `x-amz-source-expected-bucket-owner` are ignored. | +| ACLs | Partial | `GetBucketAcl` and `GetObjectAcl` give the owner full control. Only the `private` ACL can be set. | +| CORS | Partial | Preflight (`OPTIONS`) requests are answered, allowing any origin. CORS configuration (`PutBucketCors`) isn't supported. | +| Server side encryption | No | SSE-S3 (`AES256`) is accepted but the data isn't encrypted. SSE-KMS and SSE-C are refused. | +| Versioning | No | Buckets are reported as unversioned and `ListObjectVersions` lists each object as version `null`. Enabling versioning is refused. | +| Object lock, retention and legal hold | No | | +| Bucket configuration | No | Bucket policies, tagging, lifecycle, logging, encryption, website, replication, notifications and the like. Getting them fails as for a bucket without them configured. | +| `SelectObjectContent`, `RestoreObject`, torrents | No | | + +The [ceph s3-tests](https://github.com/ceph/s3-tests) can be run +against `serve s3` to check its compatibility. See +[cmd/serve/s3/s3tests](https://github.com/rclone/rclone/tree/master/cmd/serve/s3/s3tests) +for how. ### Authentication @@ -14507,8 +15399,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -14540,6 +15444,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -14659,7 +15570,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -14714,7 +15625,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -14868,680 +15780,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links -or very high bandwidth links to high performance object stores. - -Some experimentation will be needed to find the optimum values of -`--vfs-read-chunk-size` and `--vfs-read-chunk-streams` as these will -depend on the backend in use and the latency to the backend. - -For high performance object stores (eg AWS S3) a reasonable place to -start might be `--vfs-read-chunk-streams 16` and -`--vfs-read-chunk-size 4M`. In testing with AWS S3 the performance -scaled roughly as the `--vfs-read-chunk-streams` setting. - -Similar settings should work for high latency links, but depending on -the latency they may need more `--vfs-read-chunk-streams` in order to -get the throughput. - -## VFS Performance - -These flags may be used to enable/disable features of the VFS for -performance or other reasons. See also the [chunked reading](#vfs-chunked-reading) -feature. - -In particular S3 and Swift benefit hugely from the `--no-modtime` flag -(or use `--use-server-modtime` for a slightly different effect) as each -read of the modification time takes a transaction. - -```text - --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 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. - -```text - --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 the cache (the related global flag `--checkers` has no -effect on the VFS). - -```text - --transfers int Number of file transfers to run in parallel (default 4) -``` - -## Symlinks - -By default the VFS does not support symlinks. However this may be -enabled with either of the following flags: - -```text - --links Translate symlinks to/from regular files with a '.rclonelink' extension. - --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS -``` - -As most cloud storage systems do not support symlinks directly, rclone -stores the symlink as a normal file with a special extension. So a -file which appears as a symlink `link-to-file.txt` would be stored on -cloud storage as `link-to-file.txt.rclonelink` and the contents would -be the path to the symlink destination. - -Note that `--links` enables symlink translation globally in rclone - -this includes any backend which supports the concept (for example the -local backend). `--vfs-links` just enables it for the VFS layer. - -This scheme is compatible with that used by the -[local backend with the --local-links flag](https://rclone.org/local/#symlinks-junction-points). - -The `--vfs-links` flag has been designed for `rclone mount`, `rclone -nfsmount` and `rclone serve nfs`. - -It hasn't been tested with the other `rclone serve` commands yet. - -A limitation of the current implementation is that it expects the -caller to resolve sub-symlinks. For example given this directory tree - -```text -. -├── dir -│   └── file.txt -└── linked-dir -> dir -``` - -The VFS will correctly resolve `linked-dir` but not -`linked-dir/file.txt`. This is not a problem for the tested commands -but may be for other commands. - -**Note** that there is an outstanding issue with symlink support -[issue #8245](https://github.com/rclone/rclone/issues/8245) with duplicate -files being created when symlinks are moved into directories where -there is a file of the same name (or vice versa). - -## 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` 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". - -The `--no-unicode-normalization` flag controls whether a similar "fixup" is -performed for filenames that differ but are [canonically -equivalent](https://en.wikipedia.org/wiki/Unicode_equivalence) with respect to -unicode. Unicode normalization can be particularly helpful for users of macOS, -which prefers form NFD instead of the NFC used by most other platforms. It is -therefore highly recommended to keep the default of `false` on macOS, to avoid -encoding compatibility issues. - -In the (probably unlikely) event that a directory has multiple duplicate -filenames after applying case and unicode normalization, the `--vfs-block-norm-dupes` -flag allows hiding these duplicates. This comes with a performance tradeoff, as -rclone will have to scan the entire directory for duplicates when listing a -directory. For this reason, it is recommended to leave this disabled if not -needed. However, macOS users may wish to consider using it, as otherwise, if a -remote directory contains both NFC and NFD versions of the same filename, an odd -situation will occur: both versions of the file will be visible in the mount, -and both will appear to be editable, however, editing either version will -actually result in only the NFD version getting edited under the hood. `--vfs-block- -norm-dupes` prevents this confusion by detecting this scenario, hiding the -duplicates, and logging an error, similar to how this is handled in `rclone -sync`. - -## 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. - -```text - --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. - -## VFS Metadata - -If you use the `--vfs-metadata-extension` flag you can get the VFS to -expose files which contain the [metadata](https://rclone.org/docs/#metadata) as a JSON -blob. These files will not appear in the directory listing, but can be -`stat`-ed and opened and once they have been they **will** appear in -directory listings until the directory cache expires. - -Note that some backends won't create metadata unless you pass in the -`--metadata` flag. - -For example, using `rclone mount` with `--metadata --vfs-metadata-extension .metadata` -we get - -```console -$ ls -l /mnt/ -total 1048577 --rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G - -$ cat /mnt/1G.metadata -{ - "atime": "2025-03-04T17:34:22.317069787Z", - "btime": "2025-03-03T16:03:37.708253808Z", - "gid": "1000", - "mode": "100664", - "mtime": "2025-03-03T16:03:39.640238323Z", - "uid": "1000" -} - -$ ls -l /mnt/ -total 1048578 --rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G --rw-rw-r-- 1 user user 185 Mar 3 16:03 1G.metadata -``` - -If the file has no metadata it will be returned as `{}` and if there -is an error reading the metadata the error will be returned as -`{"error":"error string"}`. - -``` -rclone serve s3 remote:path [flags] -``` - -## 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-key stringArray Set key pair for v4 authorization: access_key_id,secret_access_key - --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 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-perms FileMode Directory permissions (default 777) - --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend (see the Multipart uploads docs section) - --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") - --file-perms FileMode File permissions (default 666) - --force-path-style If true use path style access if false use virtual hosted style (default true) - --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000) - -h, --help help for s3 - --htpasswd string A htpasswd file - if not provided no authentication is done - --key string TLS PEM Private key - --link-perms FileMode Link permissions (default 666) - --max-header-bytes int Maximum size of request header (default 4096) - --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") - --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (see the Multipart uploads docs section) (default 256Mi) - --no-checksum Don't compare checksums on up/download - --no-cleanup Not to cleanup empty folder after object is deleted - --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 Only allow read-only access - --realm string Realm for authentication - --response-header stringArray Set HTTP header for all responses, overriding existing values - --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) - --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) - --umask FileMode Override the permission bits set by the filesystem (not supported on Windows) (default 002) - --user string User name for authentication - --user-from-header string User name from a defined HTTP header - --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost) - --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-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-handle-caching Duration Time to keep file handle and downloaders alive after last close (default 5s) - --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS - --vfs-metadata-extension string Set the extension to read metadata from - --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-chunk-streams int The number of parallel streams to read at once - --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) - --vfs-refresh Refreshes the directory cache recursively in the background on start - --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) -``` - -Options shared with other commands are described next. -See the [global flags page](https://rclone.org/flags/) for global options not listed here. - -### Filter Options - -Flags for filtering directory listings - -```text - --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) - --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) - --hash-filter string Partition filenames by hash k/n or randomly @/n - --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 Also - - - - -* [rclone serve](https://rclone.org/commands/rclone_serve/) - Serve a remote over a protocol. - - - - -# rclone serve sftp - -Serve the remote over SFTP. - -## 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](/sftp) to use with it. - -You can use the [filter](/filtering) 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](https://rclone.org/sftp/#sftp-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. - -This also supports being run with socket activation, in which case it will -listen on the first passed FD. -It can be configured with .socket and .service unit files as described in -. - -Socket activation can be tested ad-hoc with the `systemd-socket-activate`command: - -```console -systemd-socket-activate -l 2222 -- rclone serve sftp :local:vfs/ -``` - -This will socket-activate rclone on the first connection to port 2222 over TCP. - -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: - -```text -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 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 VFS will appear immediately or -invalidate the cache. - -```text - --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: - -```console -kill -SIGHUP $(pidof rclone) -``` - -If you configure rclone with a [remote control](/rc) then you can use -rclone rc to flush the whole directory cache: - -```console -rclone rc vfs/forget -``` - -Or individual files or directories: - -```console -rclone rc vfs/forget file=path/to/file dir=path/to/dir -``` - -## VFS File Buffering - -The `--buffer-size` flag determines the amount of memory, -that will be used to buffer data in advance. - -Each open file will try to keep the specified amount of data in memory -at all times. The buffered data is bound to one open file and won't be -shared. - -This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not -yet read. If the buffer is empty, only a small amount of memory will -be used. - -The maximum memory used by rclone for buffering can be up to -`--buffer-size * open files`. - -## 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. - -```text - --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` or `--vfs-cache-min-free-space` 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-space` 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. - -This will mean some operations are not possible - -- Files can't be opened for both read AND write -- Files opened for write can't be seeked -- Existing files opened for write must have O_TRUNC set -- Files open for read with O_TRUNC will be opened write only -- Files open for write only will behave as if O_TRUNC was supplied -- Open modes O_APPEND, O_TRUNC are ignored -- If an upload fails it can't be retried - -### --vfs-cache-mode minimal - -This is very similar to "off" except that files opened for read AND -write will be buffered to disk. This means that files opened for -write will be a lot more compatible, but uses the minimal disk space. - -These operations are not possible - -- Files opened for write only can't be seeked -- Existing files opened for write must have O_TRUNC set -- Files opened for write only will ignore O_APPEND, O_TRUNC -- If an upload fails it can't be retried - -### --vfs-cache-mode writes - -In this mode files opened for read only are still read directly from -the remote, write only and read/write files are buffered to disk -first. - -This mode should support all normal file system operations. - -If an upload fails it will be retried at exponentially increasing -intervals up to 1 minute. - -### --vfs-cache-mode full - -In this mode all reads and writes are buffered to and from disk. When -data is read from the remote this is buffered to disk as well. - -In this mode the files in the cache will be sparse files and rclone -will keep track of which bits of the files it has downloaded. - -So if an application only reads the starts of each file, then rclone -will only buffer the start of the file. These files will appear to be -their full size in the cache, but they will be sparse files with only -the data that has been downloaded present in them. - -This mode should support all normal file system operations and is -otherwise identical to `--vfs-cache-mode` writes. - -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: - -```text - --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M) - --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off) - --vfs-read-chunk-streams int The number of parallel streams to read at once -``` - -The chunking behaves differently depending on the `--vfs-read-chunk-streams` parameter. - -### `--vfs-read-chunk-streams` == 0 - -Rclone will start reading a chunk of size `--vfs-read-chunk-size`, -and then double the size for each read. When `--vfs-read-chunk-size-limit` is -specified, and greater than `--vfs-read-chunk-size`, the chunk size for each -open file will get doubled only until the specified value is reached. If the -value is "off", which is the default, the limit is disabled and the chunk size -will grow indefinitely. - -With `--vfs-read-chunk-size 100M` and `--vfs-read-chunk-size-limit 0` -the following parts will be downloaded: 0-100M, 100M-200M, 200M-300M, 300M-400M -and so on. When `--vfs-read-chunk-size-limit 500M` is specified, the result would -be 0-100M, 100M-300M, 300M-700M, 700M-1200M, 1200M-1700M and so on. - -Setting `--vfs-read-chunk-size` to `0` or "off" disables chunked reading. - -The chunks will not be buffered in memory. - -### `--vfs-read-chunk-streams` > 0 - -Rclone reads `--vfs-read-chunk-streams` chunks of size -`--vfs-read-chunk-size` concurrently. The size for each read will stay -constant. - -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -15784,9 +16023,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -15794,7 +16034,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -15804,10 +16045,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -15833,11 +16108,828 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. + +This can be used to build general purpose proxies to any kind of +backend that rclone supports. + +``` +rclone serve s3 remote:path [flags] +``` + +## 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-key stringArray Set key pair for v4 authorization: access_key_id,secret_access_key + --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 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-perms FileMode Directory permissions (default 777) + --directory-markers List every directory as a directory marker object + --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend + --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") + --file-perms FileMode File permissions (default 666) + --force-path-style If true use path style access if false use virtual hosted style (default true) + --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000) + -h, --help help for s3 + --htpasswd string A htpasswd file - if not provided no authentication is done + --key string TLS PEM Private key + --link-perms FileMode Link permissions (default 666) + --max-header-bytes int Maximum size of request header (default 4096) + --metadata-max-objects int Maximum number of objects of a user whose metadata is kept in memory, 0 for unlimited (default 100000) + --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") + --multipart-expiry Duration Abort incomplete multipart uploads idle for longer than this, 0 to keep forever (default 1d) + --multipart-max-uploads int Maximum number of streamed multipart uploads a user can have in progress at once, 0 for unlimited (default 1000) + --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (default 256Mi) + --multipart-streaming-buffer-total SizeSuffix Maximum memory buffered by all the streamed multipart uploads of a user for parts arriving out of order, 0 for unlimited (default 1Gi) + --no-checksum Don't compare checksums on up/download + --no-cleanup Deprecated: use --directory-markers instead + --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 Only allow read-only access + --realm string Realm for authentication + --response-header stringArray Set HTTP header for all responses, overriding existing values + --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) + --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) + --umask FileMode Override the permission bits set by the filesystem (not supported on Windows) (default 002) + --user string User name for authentication + --user-from-header string User name from a defined HTTP header + --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost) + --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-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-handle-caching Duration Time to keep file handle and downloaders alive after last close (default 5s) + --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS + --vfs-metadata-extension string Set the extension to read metadata from + --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-chunk-streams int The number of parallel streams to read at once + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-refresh Refreshes the directory cache recursively in the background on start + --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) +``` + +Options shared with other commands are described next. +See the [global flags page](https://rclone.org/flags/) for global options not listed here. + +### Filter Options + +Flags for filtering directory listings + +```text + --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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly @/n + --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 Also + + + + +* [rclone serve](https://rclone.org/commands/rclone_serve/) - Serve a remote over a protocol. + + + + +# rclone serve sftp + +Serve the remote over SFTP. + +## 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](/sftp) to use with it. + +You can use the [filter](/filtering) 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](https://rclone.org/sftp/#sftp-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. + +This also supports being run with socket activation, in which case it will +listen on the first passed FD. +It can be configured with .socket and .service unit files as described in +. + +Socket activation can be tested ad-hoc with the `systemd-socket-activate`command: + +```console +systemd-socket-activate -l 2222 -- rclone serve sftp :local:vfs/ +``` + +This will socket-activate rclone on the first connection to port 2222 over TCP. + +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: + +```text +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 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 VFS will appear immediately or +invalidate the cache. + +```text + --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: + +```console +kill -SIGHUP $(pidof rclone) +``` + +If you configure rclone with a [remote control](/rc) then you can use +rclone rc to flush the whole directory cache: + +```console +rclone rc vfs/forget +``` + +Or individual files or directories: + +```console +rclone rc vfs/forget file=path/to/file dir=path/to/dir +``` + +## VFS File Buffering + +The `--buffer-size` flag determines the amount of memory, +that will be used to buffer data in advance. + +Each open file will try to keep the specified amount of data in memory +at all times. The buffered data is bound to one open file and won't be +shared. + +This flag is a upper limit for the used memory per open file. The +buffer will only use memory for data that is downloaded but not +yet read. If the buffer is empty, only a small amount of memory will +be used. + +The maximum memory used by rclone for buffering can be up to +`--buffer-size * open files`. + +## 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. + +```text + --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` or `--vfs-cache-min-free-space` 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-space` 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; it is based on access time, +not on when the file was first added to the cache. 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. + +This will mean some operations are not possible + +- Files can't be opened for both read AND write +- Files opened for write can't be seeked +- Existing files opened for write must have O_TRUNC set +- Files open for read with O_TRUNC will be opened write only +- Files open for write only will behave as if O_TRUNC was supplied +- Open modes O_APPEND, O_TRUNC are ignored +- If an upload fails it can't be retried + +### --vfs-cache-mode minimal + +This is very similar to "off" except that files opened for read AND +write will be buffered to disk. This means that files opened for +write will be a lot more compatible, but uses the minimal disk space. + +These operations are not possible + +- Files opened for write only can't be seeked +- Existing files opened for write must have O_TRUNC set +- Files opened for write only will ignore O_APPEND, O_TRUNC +- If an upload fails it can't be retried + +### --vfs-cache-mode writes + +In this mode files opened for read only are still read directly from +the remote, write only and read/write files are buffered to disk +first. + +This mode should support all normal file system operations. + +If an upload fails it will be retried at exponentially increasing +intervals up to 1 minute. + +### --vfs-cache-mode full + +In this mode all reads and writes are buffered to and from disk. When +data is read from the remote this is buffered to disk as well. + +In this mode the files in the cache will be sparse files and rclone +will keep track of which bits of the files it has downloaded. + +So if an application only reads the starts of each file, then rclone +will only buffer the start of the file. These files will appear to be +their full size in the cache, but they will be sparse files with only +the data that has been downloaded present in them. + +This mode should support all normal file system operations and is +otherwise identical to `--vfs-cache-mode` writes. + +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: + +```text + --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M) + --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off) + --vfs-read-chunk-streams int The number of parallel streams to read at once +``` + +The chunking behaves differently depending on the `--vfs-read-chunk-streams` parameter. + +### `--vfs-read-chunk-streams` == 0 + +Rclone will start reading a chunk of size `--vfs-read-chunk-size`, +and then double the size for each read. When `--vfs-read-chunk-size-limit` is +specified, and greater than `--vfs-read-chunk-size`, the chunk size for each +open file will get doubled only until the specified value is reached. If the +value is "off", which is the default, the limit is disabled and the chunk size +will grow indefinitely. + +With `--vfs-read-chunk-size 100M` and `--vfs-read-chunk-size-limit 0` +the following parts will be downloaded: 0-100M, 100M-200M, 200M-300M, 300M-400M +and so on. When `--vfs-read-chunk-size-limit 500M` is specified, the result would +be 0-100M, 100M-300M, 300M-700M, 700M-1200M, 1200M-1700M and so on. + +Setting `--vfs-read-chunk-size` to `0` or "off" disables chunked reading. + +The chunks will not be buffered in memory. + +### `--vfs-read-chunk-streams` > 0 + +Rclone reads `--vfs-read-chunk-streams` chunks of size +`--vfs-read-chunk-size` concurrently. The size for each read will stay +constant. + +This improves performance massively on high latency links +or very high bandwidth links to high performance object stores. + +Some experimentation will be needed to find the optimum values of +`--vfs-read-chunk-size` and `--vfs-read-chunk-streams` as these will +depend on the backend in use and the latency to the backend. + +For high performance object stores (eg AWS S3) a reasonable place to +start might be `--vfs-read-chunk-streams 16` and +`--vfs-read-chunk-size 4M`. In testing with AWS S3 the performance +scaled roughly as the `--vfs-read-chunk-streams` setting. + +Similar settings should work for high latency links, but depending on +the latency they may need more `--vfs-read-chunk-streams` in order to +get the throughput. + +## VFS Performance + +These flags may be used to enable/disable features of the VFS for +performance or other reasons. See also the [chunked reading](#vfs-chunked-reading) +feature. + +In particular S3 and Swift benefit hugely from the `--no-modtime` flag +(or use `--use-server-modtime` for a slightly different effect) as each +read of the modification time takes a transaction. + +```text + --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 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. + +```text + --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 the cache (the related global flag `--checkers` has no +effect on the VFS). + +```text + --transfers int Number of file transfers to run in parallel (default 4) +``` + +## Symlinks + +By default the VFS does not support symlinks. However this may be +enabled with either of the following flags: + +```text + --links Translate symlinks to/from regular files with a '.rclonelink' extension. + --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS +``` + +As most cloud storage systems do not support symlinks directly, rclone +stores the symlink as a normal file with a special extension. So a +file which appears as a symlink `link-to-file.txt` would be stored on +cloud storage as `link-to-file.txt.rclonelink` and the contents would +be the path to the symlink destination. + +Note that `--links` enables symlink translation globally in rclone - +this includes any backend which supports the concept (for example the +local backend). `--vfs-links` just enables it for the VFS layer. + +This scheme is compatible with that used by the +[local backend with the --local-links flag](https://rclone.org/local/#symlinks-junction-points). + +The `--vfs-links` flag has been designed for `rclone mount`, `rclone +nfsmount` and `rclone serve nfs`. + +It hasn't been tested with the other `rclone serve` commands yet. + +A limitation of the current implementation is that it expects the +caller to resolve sub-symlinks. For example given this directory tree + +```text +. +├── dir +│   └── file.txt +└── linked-dir -> dir +``` + +The VFS will correctly resolve `linked-dir` but not +`linked-dir/file.txt`. This is not a problem for the tested commands +but may be for other commands. + +**Note** that there is an outstanding issue with symlink support +[issue #8245](https://github.com/rclone/rclone/issues/8245) with duplicate +files being created when symlinks are moved into directories where +there is a file of the same name (or vice versa). + +## 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` 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". + +The `--no-unicode-normalization` flag controls whether a similar "fixup" is +performed for filenames that differ but are [canonically +equivalent](https://en.wikipedia.org/wiki/Unicode_equivalence) with respect to +unicode. Unicode normalization can be particularly helpful for users of macOS, +which prefers form NFD instead of the NFC used by most other platforms. It is +therefore highly recommended to keep the default of `false` on macOS, to avoid +encoding compatibility issues. + +In the (probably unlikely) event that a directory has multiple duplicate +filenames after applying case and unicode normalization, the `--vfs-block-norm-dupes` +flag allows hiding these duplicates. This comes with a performance tradeoff, as +rclone will have to scan the entire directory for duplicates when listing a +directory. For this reason, it is recommended to leave this disabled if not +needed. However, macOS users may wish to consider using it, as otherwise, if a +remote directory contains both NFC and NFD versions of the same filename, an odd +situation will occur: both versions of the file will be visible in the mount, +and both will appear to be editable, however, editing either version will +actually result in only the NFD version getting edited under the hood. `--vfs-block- +norm-dupes` prevents this confusion by detecting this scenario, hiding the +duplicates, and logging an error, similar to how this is handled in `rclone +sync`. + +## 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. + +```text + --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. + +## VFS Metadata + +If you use the `--vfs-metadata-extension` flag you can get the VFS to +expose files which contain the [metadata](https://rclone.org/docs/#metadata) as a JSON +blob. These files will not appear in the directory listing, but can be +`stat`-ed and opened and once they have been they **will** appear in +directory listings until the directory cache expires. + +Note that some backends won't create metadata unless you pass in the +`--metadata` flag. + +For example, using `rclone mount` with `--metadata --vfs-metadata-extension .metadata` +we get + +```console +$ ls -l /mnt/ +total 1048577 +-rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G + +$ cat /mnt/1G.metadata +{ + "atime": "2025-03-04T17:34:22.317069787Z", + "btime": "2025-03-03T16:03:37.708253808Z", + "gid": "1000", + "mode": "100664", + "mtime": "2025-03-03T16:03:39.640238323Z", + "uid": "1000" +} + +$ ls -l /mnt/ +total 1048578 +-rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G +-rw-rw-r-- 1 user user 185 Mar 3 16:03 1G.metadata +``` + +If the file has no metadata it will be returned as `{}` and if there +is an error reading the metadata the error will be returned as +`{"error":"error string"}`. + +## 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](https://github.com/rclone/rclone/blob/master/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 these parameters + +- `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) + +If password authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this: + +```json +{ + "user": "me", + "pass": "mypassword", + "client_ip": "192.168.1.1" +} +``` + +If public-key authentication was used by the client, input to the +proxy process (on STDIN) would look similar to this: + +```json +{ + "user": "me", + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" +} +``` + +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + +And as an example return this on STDOUT + +```json +{ + "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. + +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -16059,6 +17151,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -16128,6 +17227,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -16137,6 +17243,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -16177,8 +17284,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -16246,7 +17365,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -16301,7 +17420,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -16455,7 +17575,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -16698,9 +17818,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -16708,7 +17829,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -16718,10 +17840,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -16747,11 +17903,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -17180,7 +18345,7 @@ This command runs a series of uploads and downloads to the remote, measuring and printing the speed of each test using varying file sizes and numbers of files. -Test time can be innaccurate with small file caps and large files. As it +Test time can be inaccurate with small file caps and large files. As it uses the results of an initial test to determine how many files to use in each subsequent test. @@ -17247,9 +18412,11 @@ This will touch `--transfers` files concurrently. If `--timestamp` is used then sets the modification time to that time instead of the current time. Times may be specified as one of: -- 'YYMMDD' - e.g. 17.10.30 +- 'YYMMDD' - e.g. 171030 +- 'YYYY-MM-DD' - e.g. 2006-01-02 - 'YYYY-MM-DDTHH:MM:SS' - e.g. 2006-01-02T15:04:05 - 'YYYY-MM-DDTHH:MM:SS.SSS' - e.g. 2006-01-02T15:04:05.123456789 +- 'YYYY-MM-DDTHH:MM:SSZ' - e.g. 2006-01-02T15:04:05Z Note that value of `--timestamp` is in UTC. If you want local time then add the `--localtime` flag. @@ -17707,6 +18874,11 @@ 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". +If you want to configure a remote using environment variables then its name +becomes part of the environment variable name, which in practice restricts the +characters you can use in it. See the [Config file](#config-file) section +under Environment variables for details. + 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. @@ -17753,6 +18925,7 @@ Not all global variables make sense to be overridden like this as the config is only applied during the remote creation. Here is a non exhaustive list of ones which might be useful: +- `allow_https_downgrade` - `bind_addr` - `ca_cert` - `client_cert` @@ -18043,6 +19216,135 @@ modification time of the source object. Hashes are not included in system metadata as there is a well defined way of reading those already. +## Performance {#performance} + +Rclone's defaults are fairly conservative. They are chosen to work on +small machines, slow links and with cloud providers which rate limit +heavily. If you have plenty of bandwidth, memory and a fast storage +system then rclone can usually be made to run a great deal faster by +adjusting a few flags. + +The right values depend on the size of your files, your network and +the storage systems at each end, so treat the numbers below as +starting points. Change one thing at a time and measure the result. + +### Measuring + +Use `rclone copy` with [-P/--progress](#p-progress) to watch the +transfer rate while you are experimenting. For unattended runs log the +stats instead, e.g. `--stats 1m --stats-one-line --stats-log-level +NOTICE`. + +A transfer is always limited by something: the network bandwidth, the +rate at which the storage system will accept requests, disk IO, CPU or +memory. Tuning is working out which limit you are hitting and raising +it until you hit the next one. Watch the network, disk, CPU and memory +use of the machine rclone is running on as well as rclone's stats. + +### Lots of files + +The time taken to transfer small files is dominated by the round trip +time of the requests rather than by the bandwidth, so the way to make +them go faster is to do more of them at once. + +[--transfers](#transfers-int) sets the number of files transferred in +parallel. The default is 4. Double this until the transfer rate stops +increasing or the storage system starts returning errors. Values of 32 +to 64 are common and values in the hundreds work well with the large +object storage systems (e.g. s3, azureblob, googlecloudstorage, b2) +when transferring lots of small files. + +[--checkers](#checkers-int) sets the number of directory listings and +file comparisons done in parallel. The default is 8. Raising this +speeds up syncs where most of the files are already present on the +destination and stops the checking being the bottleneck when +`--transfers` is large. 16 to 64 is a reasonable range. + +Not all storage systems like lots of parallel requests. If you see rate +limiting errors (e.g. HTTP 429 or 503 errors) or lots of low level +retries in the log then you have gone too far, so reduce `--transfers` +and `--checkers` or use [--tpslimit](#tpslimit-float) to cap the +request rate. Local disks, especially spinning ones, and network file +systems may get slower rather than faster with too much parallelism. + +### Large files + +A single stream often won't fill a fast link, so rclone can transfer a +large file as several chunks in parallel. These are called multi-thread +transfers and are used for files bigger than +[--multi-thread-cutoff](#multi-thread-cutoff) on backends which +support them. + +The number of chunks transferred in parallel is set by +[--multi-thread-streams](#multi-thread-streams-int) (default 4) and +this works for all backends so increase this first to make large files +transfer faster. + +The size of the chunks is set by the backend, usually with a +`--backend-chunk-size` flag, e.g. `--s3-chunk-size`. Backends without +a natural chunk size (e.g. local, smb) use +[--multi-thread-chunk-size](#multi-thread-chunk-size-sizesuffix). +Larger chunks mean fewer requests which increases throughput on big +files. See the docs for the backend you are using for details. + +Chunked uploads are usually buffered in memory, so in the worst case +rclone will use + +```text +--transfers * upload concurrency * chunk size +``` + +of memory for buffers. For example `--transfers 256` with an upload +concurrency of 8 and a chunk size of 16 MiB could use up to 32 GiB. +When you raise `--transfers` to speed up small files you may therefore +need to lower the upload concurrency, or set +[--max-buffer-memory](#max-buffer-memory) which limits the total +memory used for buffers and makes transfers wait when the limit is +reached. + +[--use-mmap](#use-mmap) makes rclone return buffer memory to the OS as +soon as it has finished with it which is helpful when using lots of +transfers or large chunks. + +### A mixture of large and small files + +By default rclone transfers files in roughly the order it finds them. +With a mixture of file sizes this means that at times all the +transfers are large files, which fill the bandwidth but make few +requests, and at other times all the transfers are small files, which +make lots of requests but use little of the bandwidth. + +Using [--order-by](#order-by-string) `size,mixed,50` makes half of the +transfers take the smallest files in the backlog and half of them take +the largest. This keeps both large and small files moving at once so +the bandwidth and the request rate are both kept full for the whole of +the run. + +This works best if rclone has lots of files to choose from so use it +with a big [--max-backlog](#max-backlog-int), e.g. `--max-backlog +2000000`. Each item in the backlog uses in the order of 1 KiB of memory. + +### Doing less work + +Fewer requests to the storage system means a faster transfer. + +- If the source and destination are on the same remote then rclone + will use [server-side copy](#server-side-copy) where it is supported + so the data doesn't need to be downloaded and uploaded again. +- [--fast-list](#fast-list) lists bucket-based remotes with fewer + transactions at the cost of using more memory. This may be faster or + slower than the default so it is worth testing. +- [--no-traverse](#no-traverse) stops rclone listing the destination + which helps when copying a small number of files into a large + destination. +- [--size-only](#size-only) or [--checksum](#c-checksum) avoid reading + the modification time. On some object storage systems (e.g. s3, + swift) this needs an extra request for each file. Alternatively use + [--use-server-modtime](#use-server-modtime) with `--update`. +- [--no-check-dest](#no-check-dest) skips checking the destination + entirely. Only use this if you know that none of the files are + there already. + ## Options Rclone has a number of options to control its behaviour. These are @@ -18110,7 +19412,7 @@ as a number of seconds. The following suffixes are valid: - `M` - Months - `y` - Years -Examples: "10", "300ms", "-1.5h" or "2h45m". +Examples: "10", "300ms", "-1.5h", "2h45m" or "1d12h". ### Size options @@ -18125,6 +19427,21 @@ See also [--human-readable](#human-readable). ## Main options +### --allow-https-downgrade + +By default rclone refuses to follow a redirect from an `https://` URL +to a plain `http://` URL, as any credentials or other headers in the +request would then be sent unencrypted, and the response could be +altered by anyone on the network path. The request fails with an error +which mentions this flag. + +Set `--allow-https-downgrade` to follow such redirects, for example +when downloading from a mirror which redirects to plain HTTP. Some +backends still refuse to follow them, as doing so would send their +credentials in cleartext. + +This option defaults to `false`. + ### --backup-dir string When using [sync](https://rclone.org/commands/rclone_sync/), [copy](https://rclone.org/commands/rclone_copy/) or @@ -18256,7 +19573,7 @@ example: Is equivalent to this: ```text ---bwlimit "Mon-00:00,512Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off" +--bwlimit "Mon-00:00,512 Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off" ``` Bandwidth limit apply to the data transfer for all backends. For most @@ -18309,7 +19626,8 @@ will use this much memory for buffering. When using `mount` or `cmount` each open file descriptor will use this much memory for buffering. -See the [mount](https://rclone.org/commands/rclone_mount/#file-buffering) documentation for more details. +See the [mount](https://rclone.org/commands/rclone_mount/#vfs-file-buffering) documentation for +more details. Set to `0` to disable the buffering for the minimum memory usage. @@ -18568,7 +19886,7 @@ 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 +If a file or directory does not 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 @@ -18729,6 +20047,12 @@ This flag is supported for all HTTP based backends even those not supported by `--header-upload` and `--header-download` so may be used as a workaround for those with care. +The headers are only sent to the host of the original request. If the +server redirects to another host (including a subdomain or a different +port), or redirects an `https` request to `http`, the headers are not +sent to it, or to any further hop in that redirect chain. Rclone logs +this at debug level (`-vv`). + ```console rclone ls remote:test --header "X-Rclone: Foo" --header "X-LetMeIn: Yes" ``` @@ -18915,6 +20239,12 @@ 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. +On macOS, if rclone clones a file (see +[--local-no-clone](https://rclone.org/local/#local-no-clone)) and the destination +already exists, the existing file is replaced with a new one, even +with `--inplace`, so hard links to it will be broken. Use +`--local-no-clone` to keep them. + Note also that versions of rclone prior to v1.63.0 behave as if the `--inplace` flag is always supplied. @@ -18967,7 +20297,7 @@ like symlinks under Windows). Ignored files won't be copied, moved or deleted in a sync. If you supply this flag then rclone will copy symbolic links from any -supported backend backend, and store them as text files, with a +supported backend, and store them as text files, with a `.rclonelink` suffix in the destination. The text file will contain the target of the symbolic link. @@ -19499,7 +20829,7 @@ rclone will use multiple threads to transfer the file (default 256M). Capable backends are marked in the [overview](https://rclone.org/overview/#optional-features) as `MultithreadUpload`. (They need to implement either the `OpenWriterAt` or `OpenChunkWriter` -internal interfaces). These include include, `local`, `s3`, +internal interfaces). These include `local`, `s3`, `azureblob`, `b2`, `oracleobjectstorage` and `smb` at the time of writing. @@ -19526,7 +20856,7 @@ Most multi-thread transfers do not take additional memory, but some do at maximum `--transfers` \* `--multi-thread-chunk-size` \* `--multi-thread-streams` or specifically for the s3 backend `--transfers` \* `--s3-chunk-size` \* `--s3-concurrency`. However you -can use the the [--max-buffer-memory](https://rclone.org/docs/#max-buffer-memory) flag +can use the [--max-buffer-memory](https://rclone.org/docs/#max-buffer-memory) flag to control the maximum memory used here. **NB** that this **only** works with supported backends as the @@ -19644,8 +20974,10 @@ describes what aspect is being measured: - `size` - order by the size of the files - `name` - order by the full path of the files - `modtime` - order by the modification date of the files +- `pattern` - order by a list of path glob patterns -This can have a modifier appended with a comma: +The `size`, `name` and `modtime` comparisons can have a modifier appended with +a comma: - `ascending` or `asc` - order so that the smallest (or oldest) is processed first - `descending` or `desc` - order so that the largest (or newest) is processed first @@ -19664,11 +20996,18 @@ processed continuously. If no modifier is supplied then the order is `ascending`. +For `pattern`, append one or more comma-separated patterns. Patterns use the +[filter pattern syntax](https://rclone.org/filtering/#patterns). Files matching the first pattern +are processed first, followed by files matching the second pattern, and so on. +Files which do not match a pattern are processed last. Within each group, files +are ordered by full path. Patterns cannot contain a comma. + For example - `--order-by size,desc` - send the largest files first - `--order-by modtime,ascending` - send the oldest files first - `--order-by name` - send the files with alphabetically by path first +- `--order-by 'pattern,*.tar.gz,*.md5'` - send archives before checksum files If the `--order-by` flag is not supplied or it is supplied with an empty string then the default ordering will be used which is as @@ -19710,8 +21049,9 @@ setting the config password for the first time. The argument to this should be a command with a space separated list of arguments. If one of the arguments has a space in then enclose it in `"`, if you want a literal `"` in an argument then enclose the -argument in `"` and double the `"`. See [CSV encoding](https://godoc.org/encoding/csv) -for more info. +argument in `"` and double the `"`. This includes the command itself: +if the path to the executable contains a space, it must be quoted too. +See [CSV encoding](https://godoc.org/encoding/csv) for more info. Eg @@ -19719,6 +21059,7 @@ Eg --password-command "echo hello" --password-command 'echo "hello with space"' --password-command 'echo "hello with ""quotes"" and space"' +--password-command '"/path with a space/get-password.sh"' ``` Note that when changing the configuration password the environment @@ -20752,9 +22093,11 @@ 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. -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. +Note that the name of the remote is only converted to uppercase - characters +such as `-` and `.` are not changed to `_` - so a remote called `my-remote` +needs `RCLONE_CONFIG_MY-REMOTE_TYPE`. Many shells only allow letters, digits +and `_` (underscore) in environment variable names, so it is best to use only +those characters in the name of a remote you want to configure this way. For example, to configure an S3 remote named `mys3:` without a config file (using unix ways of setting environment variables): @@ -21009,7 +22352,7 @@ Rclone matching rules follow a glob style: * matches any sequence of non-separator (/) characters ** matches any sequence of characters including / separators ? matches any single non-separator (/) character -[ [ ! ] { character-range } ] +[ [ ! | ^ ] { character-range } ] character class (must be non-empty) { pattern-list } pattern alternatives @@ -22049,6 +23392,10 @@ When you run `rclone gui` this is what happens - The URL already contains the username & password, in which case the GUI will use those values and log you in automatically. +The rc address is passed to the GUI via the `url` query parameter (the +URL printed in the terminal); append `?url=http://...` to point it at a +different rc server. + ## Security It's important to think first about what rclone has access to and what @@ -22132,7 +23479,7 @@ Consequently: reason to change it. - **Do not use `--rc-no-auth` on a non-loopback bind.** It disables authentication on the endpoints that access remotes — see - [`--rc-no-auth`](#--rc-no-auth). + [`--rc-no-auth`](#rc-no-auth). - **Use authentication and TLS** (`--rc-user`/`--rc-pass` or `--rc-htpasswd`, plus `--rc-cert`/`--rc-key`) whenever the port is reachable by anyone you do not fully trust, and raise `--rc-min-tls-version`. @@ -22259,9 +23606,20 @@ Default Off. Set the allowed Access-Control-Allow-Origin for rc requests. -Can be used with --rc-web-gui if the rclone is running on different IP than the web-gui. +This enables cross-origin (CORS) requests from browsers on the origin +given, for example `--rc-allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without +authentication as browsers never send credentials with them. All other +requests, including other OPTIONS requests, must be authenticated when +authentication is enabled. -Default is IP address on which rc is running. +The `rclone gui` command sets this automatically to the origin the GUI +is served from if it is not set explicitly. + +Setting this to `*` allows any origin which is a security risk on an +authenticated server. + +Default is off (no CORS). ### --rc-web-fetch-url @@ -22306,6 +23664,9 @@ 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. +Without authorisation or this flag, POST request bodies are limited to +64 KiB. + Default Off. ### --rc-baseurl @@ -22386,6 +23747,30 @@ Rather than rclone rc operations/list --json '{"fs": "/tmp", "remote": "test", "opt": {"showHash": true}}' ``` +### Paths on Windows + +Prefer forward slashes (`/`) in Windows paths passed to the rc API, for +example `C:/path1/path2`. If you use backslashes (`\`) in a JSON string, +escape each one as `\\`. These JSON objects contain equivalent Windows +paths: + +```json +{"remote": "C:/path1/path2"} +``` + +```json +{"remote": "C:\\path1\\path2"} +``` + +This applies to JSON request bodies and to JSON-encoded object parameters, +such as `parameters` in `config/create`, even when that JSON is sent in a +query string or form data. An unescaped backslash can cause a JSON parsing +error or be interpreted as an escape sequence, such as `\t` for a tab. + +String parameters sent directly in a query string or form data, without +JSON encoding, do not need JSON escaping. Use your HTTP client's URL +encoding for query strings and form data. + ## Special parameters The rc interface supports some special parameters which apply to @@ -22554,6 +23939,16 @@ Or flat: If you wish to check the `_config` assignment has worked properly then calling `options/local` will show what the value got set to. +Setting `LogLevel` sets the log level for the logs made by the rc call +only, for example to debug a single call. + +```json +"_config":{"LogLevel": "DEBUG"} +``` + +Note that not all of rclone's logs support this yet. In particular the +backends log at the global log level. + ### Setting filter flags with _filter If you wish to set filters for the duration of an rc call only then @@ -23262,6 +24657,7 @@ Returns the following values: "totalTransfers": total number of transfers in the group, "transferTime" : total time spent on running jobs, "transfers": number of transferred files, + "updatedDirs": number of directories updated (modtime or metadata set), "transferring": an array of currently active file transfers: [ { @@ -23527,8 +24923,6 @@ Results: - runningIds - array of integer job ids that are running - finishedIds - array of integer job ids that are finished -**Authentication is not required for this call.** - ### job/status: Reads the status of the job ID {#job-status} Parameters: @@ -23549,8 +24943,6 @@ Results: - output - output of the job as would have been returned if called synchronously - progress - output of the progress related to the underlying job -**Authentication is not required for this call.** - ### job/stop: Stop the running job {#job-stop} Parameters: @@ -23880,6 +25272,25 @@ This command does not have a command line equivalent so use this instead: rclone rc --loopback operations/fsinfo fs=remote: +### operations/getfile: Get a single file into a JSON response. {#operations-getfile} + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:path/to/file" or "drive:path/to/dir" +- remote - (optional) a path within that remote e.g. "file.txt" +- offset - (optional) start reading at offset N (or from end if negative) (default 0) +- count - (optional) only read N bytes (default -1) +- head - (optional) only read the first N bytes (default 0) +- tail - (optional) only read the last N bytes (default 0) +- maxSize - (optional) maximum size limit in bytes (can only lower the built-in maximum) (default 2097152 / 2MiB) +- base64 - (optional) if true, returns the file contents base64-encoded (default false) + +Returns: + +- result - contents of the file as string or base64-encoded string + +For streaming file content over HTTP with Range support, use the --rc-serve flag instead. + ### operations/hashsum: Produces a hashsum file for all the objects in the path. {#operations-hashsum} Produces a hash file for all the objects in the path using the hash @@ -23954,6 +25365,26 @@ Example: See the [hashsum](https://rclone.org/commands/rclone_hashsum/) command for more information on the above. +### operations/index: Write static directory listings into a remote {#operations-index} + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:" +- opt - a dictionary of options to control the indexing (optional) + - output - list of listings to write in each directory as "NAME=FORMAT" (default ["index.html=html"]) + - rules - which directories get listings, e.g. {"ExcludeRule": ["/private/**"]} + - maxDepth - only make listings this many directories deep (default -1 for no limit) + - linkIndex - link to "dir/NAME" rather than "dir/" + - dirTime - how to work out directory times: "newest", "dir" or "none" + - noModTime - don't show modification times + - rewrite - write every listing even if it is unchanged + - changed - list of changed paths for a partial run, directories ending in "/" + - changedFrom - list of files of changed paths, one per line + - changedCombined - list of files in the sync --combined report format + - changedMaxDirs - do a full run if a partial one would list more directories than this + +See the [index](https://rclone.org/commands/rclone_index/) command for more information on the above. + ### operations/list: List the given remote and path in JSON format {#operations-list} This takes the following parameters: @@ -24173,85 +25604,6 @@ And this sets NOTICE level logs (normal without -v) rclone rc options/set --json '{"main": {"LogLevel": "NOTICE"}}' -### pluginsctl/addPlugin: Add a plugin using url {#pluginsctl-addPlugin} - -Used for adding a plugin to the webgui. - -This takes the following parameters: - -- url - http url of the github repo where the plugin is hosted (http://github.com/rclone/rclone-webui-react). - -Example: - - rclone rc pluginsctl/addPlugin - -### pluginsctl/getPluginsForType: Get plugins with type criteria {#pluginsctl-getPluginsForType} - -This shows all possible plugins by a mime type. - -This takes the following parameters: - -- type - supported mime type by a loaded plugin e.g. (video/mp4, audio/mp3). -- pluginType - filter plugins based on their type e.g. (DASHBOARD, FILE_HANDLER, TERMINAL). - -Returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, usually running on a different server. - -Example: - - rclone rc pluginsctl/getPluginsForType type=video/mp4 - -### pluginsctl/listPlugins: Get the list of currently loaded plugins {#pluginsctl-listPlugins} - -This allows you to get the currently enabled plugins and their details. - -This takes no parameters and returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, usually running on a different server. - -E.g. - - rclone rc pluginsctl/listPlugins - -### pluginsctl/listTestPlugins: Show currently loaded test plugins {#pluginsctl-listTestPlugins} - -Allows listing of test plugins with the rclone.test set to true in package.json of the plugin. - -This takes no parameters and returns: - -- loadedTestPlugins - list of currently available test plugins. - -E.g. - - rclone rc pluginsctl/listTestPlugins - -### pluginsctl/removePlugin: Remove a loaded plugin {#pluginsctl-removePlugin} - -This allows you to remove a plugin using it's name. - -This takes parameters: - -- name - name of the plugin in the format `author`/`plugin_name`. - -E.g. - - rclone rc pluginsctl/removePlugin name=rclone/video-plugin - -### pluginsctl/removeTestPlugin: Remove a test plugin {#pluginsctl-removeTestPlugin} - -This allows you to remove a plugin using it's name. - -This takes the following parameters: - -- name - name of the plugin in the format `author`/`plugin_name`. - -Example: - - rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react - ### rc/error: This returns an error {#rc-error} This returns an error with the input as part of its error string. @@ -24426,6 +25778,8 @@ This takes the following parameters: - path1 (required) - (string) a remote directory string e.g. `drive:path1` - path2 (required) - (string) a remote directory string e.g. `drive:path2` - dryRun - (bool) dry-run mode +- maxDelete - (int) Safety check on maximum percentage of deleted files +allowed. If exceeded, the bisync run will abort. (default: 50%) - backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote. - backupDir2 - (string) --backup-dir for Path2. Must be a non-overlapping path on @@ -24455,6 +25809,8 @@ unavailable. (warning: may be slow and use lots of data!) using with --verbose - ignoreListingChecksum - (bool) Do not use checksums for listings (add --ignore- checksum to additionally skip post-copy checksum checks) +- maxDeleteRenamesAware - (bool) Exclude tracked renames from the --max-delete +safety check (requires --track-renames) - maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) - noCleanup - (bool) Retain working files (useful for troubleshooting and @@ -24488,7 +25844,27 @@ This takes the following parameters: - srcFs - a remote name string e.g. "drive:src" for the source - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-copy (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-copy + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [copy](https://rclone.org/commands/rclone_copy/) command for more information on the above. @@ -24500,7 +25876,27 @@ This takes the following parameters: - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set - deleteEmptySrcDirs - delete empty src directories if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-move (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-move + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [move](https://rclone.org/commands/rclone_move/) command for more information on the above. @@ -24511,7 +25907,27 @@ This takes the following parameters: - srcFs - a remote name string e.g. "drive:src" for the source - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-sync (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-sync + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [sync](https://rclone.org/commands/rclone_sync/) command for more information on the above. @@ -24751,9 +26167,11 @@ The keys in the error response are: ### CORS -The sever implements basic CORS support and allows all origins for that. -The response to a preflight OPTIONS request will echo the requested -"Access-Control-Request-Headers" back. +The server implements basic CORS support when `--rc-allow-origin` is +set. Browser CORS preflight OPTIONS requests are then answered by +rclone without authentication with the `Access-Control-*` headers. +Without `--rc-allow-origin` no CORS headers are sent and a preflight +request is authenticated like any other request. ### Using POST with URL parameters only @@ -24866,7 +26284,7 @@ profiling tools on the same port. The profiling endpoints follow the same authentication rules as the rest of the rc: they are only served if authentication has been set up (`--rc-user`/`--rc-pass` or `--rc-htpasswd`) or the -[`--rc-no-auth`](#--rc-no-auth) flag is in use. For debugging on the +[`--rc-no-auth`](#rc-no-auth) flag is in use. For debugging on the default localhost port the easiest thing is to use `--rc --rc-no-auth` (but see the warning about using `--rc-no-auth` on a non-loopback bind). @@ -25580,6 +26998,7 @@ Flags used for check commands. Flags for general networking and HTTP stuff. ``` + --allow-https-downgrade Follow redirects from HTTPS to HTTP (insecure) --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 @@ -25603,7 +27022,7 @@ Flags for general networking and HTTP stuff. --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.75.0") + --user-agent string Set the user-agent to a specified string (default "rclone/v1.76.0") ``` @@ -25784,11 +27203,6 @@ Flags to control the Remote Control API. --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 ``` @@ -25850,8 +27264,10 @@ Backend-only flags (these can be set in the config file also). --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -25864,6 +27280,7 @@ Backend-only flags (these can be set in the config file also). --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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as 'true' @@ -25996,6 +27413,12 @@ Backend-only flags (these can be set in the config file also). --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under "API keys" + --dosya-api-url string API base URL (default "https://api.dosya.dev") + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -26218,6 +27641,8 @@ Backend-only flags (these can be set in the config file also). --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don't use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn't end directories with / --http-url string URL of HTTP host to connect to --huaweidrive-auth-url string Auth server URL @@ -26277,6 +27702,17 @@ Backend-only flags (these can be set in the config file also). --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) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -26362,6 +27798,7 @@ Backend-only flags (these can be set in the config file also). --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal's tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default "v2.0") --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -26376,7 +27813,7 @@ Backend-only flags (these can be set in the config file also). --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don't store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -26571,7 +28008,7 @@ Backend-only flags (these can be set in the config file also). --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-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -26586,6 +28023,7 @@ Backend-only flags (these can be set in the config file also). --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -26648,7 +28086,8 @@ Backend-only flags (these can be set in the config file also). --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default "$USER") + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --storj-access-grant string Access grant --storj-api-key string API key --storj-description string Description of the remote @@ -26723,6 +28162,7 @@ Backend-only flags (these can be set in the config file also). --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id @@ -27468,6 +28908,7 @@ Optional Flags: --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -27540,7 +28981,7 @@ will (by default) be overwritten by the Path1 filesystem version. (Note that this is [NOT entirely symmetrical](https://github.com/rclone/rclone/issues/5681#issuecomment-938761815), and more symmetrical options can be specified with the [`--resync-mode`](#resync-mode) flag.) -Carefully evaluate deltas using [--dry-run](https://rclone.org/flags/#non-backend-flags). +Carefully evaluate deltas using [--dry-run](https://rclone.org/docs/#n-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 @@ -27680,7 +29121,7 @@ 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](--check-filename) flag. +should not be accessible. See also the [--check-filename](#check-filename) flag. ### --check-filename @@ -27857,6 +29298,23 @@ to bypass the check. Also see the [all files changed](#all-files-changed) check. +### --max-delete-renames-aware + +When `--track-renames` is in use, `--max-delete-renames-aware` can exclude +files that are guaranteed to match as tracked renames from the deletion count. +If the initial deletion count exceeds `--max-delete`, bisync performs a rename +matching preflight before starting either sync direction. The run still aborts +if the remaining unmatched deletions exceed the limit. + +The preflight uses the selected [`--track-renames-strategy`](https://rclone.org/docs/#track-renames-strategy) +and the attributes stored in the normal bisync listings. A hash strategy forces +both listings to use a common hash and is incompatible with +`--ignore-listing-checksum`. The option only exempts matches when the destination +supports server-side moves or copies and the selected strategy is supported by both paths. +It requires `--track-renames` and is disabled by default because hashing may add +listing time. `--force` bypasses both the safety check and this preflight. +The preflight is also disabled during `--resync`, when rename tracking is unavailable. + ### --filters-file {#filters-file} By using rclone filter features you can exclude file types or directory @@ -28055,7 +29513,7 @@ other, if there were changes during or after the run. This is normal, and any differences will be detected and synced on the next run. For a robust integrity check of the current state of the remotes (as opposed to -just their listing snapshots), consider using [`check`](commands/rclone_check/) +just their listing snapshots), consider using [`check`](https://rclone.org/commands/rclone_check/) (or [`cryptcheck`](https://rclone.org/commands/rclone_cryptcheck/), if at least one path is a `crypt` remote) instead of `--check-sync`, keeping in mind that differences are expected if files changed during or after your last bisync run. @@ -28289,7 +29747,7 @@ 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`](commands/rclone_check/).) If bisync concludes that the files are +[`check`](https://rclone.org/commands/rclone_check/).) If bisync concludes that the files are identical, it will skip them and move on. Otherwise, it will create renamed duplicates, as before. This behavior also [improves the experience of renaming directories](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=Renamed%20directories), @@ -28413,14 +29871,20 @@ The following backends have known issues that need more investigation: - `TestHuaweiDrive` (`huaweidrive`) - [`TestBisyncRemoteLocal/ext_paths`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncRemoteLocal/extended_filenames`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - - [`TestBisyncRemoteLocal/normalization`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncLocalRemote/ext_paths`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncLocalRemote/extended_filenames`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - - [4 more](https://pub.rclone.org/integration-tests/current/) + - [`TestBisyncLocalRemote/normalization`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) + - [3 more](https://pub.rclone.org/integration-tests/current/) - `TestPcloud` (`pcloud`) - - [`TestBisyncRemoteRemote/check_access`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) - - [`TestBisyncRemoteRemote/rmdirs`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) -- Updated: 2026-07-31-010017 + - [`TestBisyncRemoteRemote/extended_filenames`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) +- `TestYandex` (`yandex`) + - [`TestBisyncRemoteLocal/all_changed`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/backupdir`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/basic`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/changes`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/check_access`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [94 more](https://pub.rclone.org/integration-tests/current/) +- Updated: 2026-11-06-010024 The following backends either have not been tested recently or have known issues @@ -28438,6 +29902,8 @@ that are deemed unfixable for the time being: - `TestFilesCom` (`filescom`) - `TestImageKit` (`imagekit`) - `TestJottacloud` (`jottacloud`) +- `TestKdrive` (`kdrive`) + - `TestBisyncRemoteRemote/normalization` - `TestLinkbox` (`linkbox`) - `TestMailru` (`mailru`) - `TestMega` (`mega`) @@ -28450,7 +29916,8 @@ that are deemed unfixable for the time being: - `TestQuatrix` (`quatrix`) - `TestS3GCS` (`s3`) - `TestBisyncRemoteRemote/extended_filenames` -- `TestS3Rclone` (`s3`) + - `TestBisyncRemoteLocal/extended_filenames` + - `TestBisyncLocalRemote/extended_filenames` - `TestSFTPRsyncNet` (`sftp`) - `TestStorj` (`storj`) - `TestWebdavNextcloud` (`webdav`) @@ -28529,10 +29996,10 @@ 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.) -Note that although the flag --track-renames ensures that renamed/moved files won't -be deleted and uploaded again, they are still counted as deleted files for purposes -of the --max-delete flag (as this check happens before the rename detection -operation). See [this issue](https://github.com/rclone/rclone/issues/8685). +By default, renamed or moved files are still counted as deleted files for +purposes of `--max-delete`, because the safety check happens before rename +detection. Use `--max-delete-renames-aware` together with `--track-renames` to +run a rename preflight and exclude guaranteed matches from this count. ### `--fast-list` used by default @@ -29272,108 +30739,9 @@ about *Unison* and synchronization in general. ## Changelog -### `v1.74.2` - -- Fixed an issue causing `--conflict-loser pathname` to produce unexpected -behavior if using a non-default `--conflict-resolve` value. - -### `v1.74` - -- Added several missing `rc` parameters. -- Optional `rc` parameters are now truly optional. -- `rc` output now provides more structured information. - -### `v1.71` - -- `bisync` is now officially released from beta. - -- Fixed an issue causing hash type to be set incorrectly if `path2` had slow -hashes and `--no-slow-hash` or `--slow-hash-sync-only` was in use. - -- Fixed an issue causing errors when running concurrent bisync runs through the `rc`. - -### `v1.69.1` - -- Fixed an issue causing listings to not capture concurrent modifications under -certain conditions - -### `v1.68` - -- Fixed an issue affecting backends that round modtimes to a lower precision. - -### `v1.67` - -- Added integration tests against all backends. - -### `v1.66` - -- Copies and deletes are now handled in one operation instead of two - -- `--track-renames` and `--backup-dir` are now supported -- Partial uploads known issue on `local`/`ftp`/`sftp` has been resolved (unless -using `--inplace`) -- Final listings are now generated from sync results, to avoid needing to re-list -- Bisync is now much more resilient to changes that happen during a bisync run, -and far less prone to critical errors / undetected changes -- Bisync is now capable of rolling a file listing back in cases of uncertainty, -essentially marking the file as needing to be rechecked next time. -- A few basic terminal colors are now supported, controllable with -[`--color`](https://rclone.org/docs/#color) (`AUTO`|`NEVER`|`ALWAYS`) -- Initial listing snapshots of Path1 and Path2 are now generated concurrently, -using the same "march" infrastructure as `check` and `sync`, -for performance improvements and less -[risk of error](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=4.%20Listings%20should%20alternate%20between%20paths%20to%20minimize%20errors). -- Fixed handling of unicode normalization and case insensitivity, support for -[`--fix-case`](https://rclone.org/docs/#fix-case), [`--ignore-case-sync`](/docs/#ignore-case-sync), -[`--no-unicode-normalization`](https://rclone.org/docs/#no-unicode-normalization) -- `--resync` is now much more efficient (especially for users of `--create-empty-src-dirs`) -- Google Docs (and other files of unknown size) are now supported (with the same -options as in `sync`) -- Equality checks before a sync conflict rename now fall back to `cryptcheck` -(when possible) or `--download`, -instead of of `--size-only`, when `check` is not available. -- Bisync no longer fails to find the correct listing file when configs are -overridden with backend-specific flags. -- Bisync now fully supports comparing based on any combination of size, modtime, -and checksum, lifting the prior restriction on backends without modtime support. -- Bisync now supports a "Graceful Shutdown" mode to cleanly cancel a run early -without requiring `--resync`. -- New `--recover` flag allows robust recovery in the event of interruptions, -without requiring `--resync`. -- A new `--max-lock` setting allows lock files to automatically renew and expire, -for better automatic recovery when a run is interrupted. -- Bisync now supports auto-resolving sync conflicts and customizing rename -behavior with new [`--conflict-resolve`](#conflict-resolve), -[`--conflict-loser`](#conflict-loser), and -[`--conflict-suffix`](#conflict-suffix) flags. -- A new [`--resync-mode`](#resync-mode) flag allows more control over which -version of a file gets kept during a `--resync`. -- Bisync now supports [`--retries`](https://rclone.org/docs/#retries-int) and [`--retries-sleep`](/docs/#retries-sleep-time) -(when [`--resilient`](#resilient) is set.) - -### `v1.64` - -- Fixed an [issue](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Dry%20runs%20are%20not%20completely%20dry) -causing dry runs to inadvertently commit filter changes - -- Fixed an [issue](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=2.%20%2D%2Dresync%20deletes%20data%2C%20contrary%20to%20docs) -causing `--resync` to erroneously delete empty folders and duplicate files -unique to Path2 -- `--check-access` is now enforced during `--resync`, preventing data loss in -[certain user error scenarios](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=%2D%2Dcheck%2Daccess%20doesn%27t%20always%20fail%20when%20it%20should) -- Fixed an [issue](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=5.%20Bisync%20reads%20files%20in%20excluded%20directories%20during%20delete%20operations) -causing bisync to consider more files than necessary due to overbroad filters -during delete operations -- [Improved detection of false positive change conflicts](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Identical%20files%20should%20be%20left%20alone%2C%20even%20if%20new/newer/changed%20on%20both%20sides) -(identical files are now left alone instead of renamed) -- Added [support for `--create-empty-src-dirs`](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=3.%20Bisync%20should%20create/delete%20empty%20directories%20as%20sync%20does%2C%20when%20%2D%2Dcreate%2Dempty%2Dsrc%2Ddirs%20is%20passed) -- Added experimental `--resilient` mode to allow -[recovery from self-correctable errors](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=2.%20Bisync%20should%20be%20more%20resilient%20to%20self%2Dcorrectable%20errors) -- Added [new `--ignore-listing-checksum` flag](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=6.%20%2D%2Dignore%2Dchecksum%20should%20be%20split%20into%20two%20flags%20for%20separate%20purposes) -to distinguish from `--ignore-checksum` -- [Performance improvements](https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=6.%20Deletes%20take%20several%20times%20longer%20than%20copies) -for large remotes -- Documentation and testing improvements +Changes to bisync are listed in the [rclone changelog](https://rclone.org/changelog/). +The changelog this page kept until `v1.76` is +[archived on GitHub](https://github.com/rclone/rclone/blob/0891ce30606c726990c98d70812d31b555782791/docs/content/bisync.md?plain=1#L1934-L2061). # Release signing @@ -29500,19 +30868,23 @@ Repeat for `MD5SUMS` and `SHA1SUMS` if desired. Now that we know the signatures on the hashes are OK we can verify the binaries match the hashes, completing the verification. +Extract the signed data with: + ```console -$ sha256sum -c SHA256SUMS 2>&1 | grep OK +$ gpg --output SHA256SUMS.signed --decrypt SHA256SUMS +``` + +Then check the binaries: + +```console +$ sha256sum -c --ignore-missing SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip: OK ``` Or do the check with rclone ```console -$ 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 hashsum sha256 -C SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip = 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 @@ -29902,8 +31274,10 @@ The S3 backend can be used with a number of different providers: - Alibaba Cloud (Aliyun) Object Storage System (OSS) - Ceph - China Mobile Ecloud Elastic Object Storage (EOS) +- Clever Cloud Cellar - Cloudflare R2 - Arvan Cloud Object Storage (AOS) +- Autonomys Auto Drive - Bizfly Cloud Simple Storage - Cubbit DS3 - DigitalOcean Spaces @@ -29918,6 +31292,7 @@ The S3 backend can be used with a number of different providers: - IBM COS S3 - IDrive e2 - Impossible Cloud +- Infomaniak Swiss Backup - Intercolo Object Storage - IONOS Cloud - Leviia Object Storage @@ -29926,6 +31301,7 @@ The S3 backend can be used with a number of different providers: - Magalu Object Storage - MEGA S4 Object Storage - Minio +- Neon Object Storage - Outscale - OVHcloud - Petabox @@ -29934,6 +31310,7 @@ The S3 backend can be used with a number of different providers: - Rabata Cloud Storage - RackCorp Object Storage - Rclone Serve S3 +- RelAix.Storage - Scaleway - Scality (RING / ARTESCA) - Seagate Lyve Cloud @@ -30790,6 +32167,9 @@ tries to access data from the glacier storage class you will see an error like b 2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file ``` +The message shows the object's actual storage class, for example +`DEEP_ARCHIVE`. + In this case you need to [restore](http://docs.aws.amazon.com/AmazonS3/latest/user-guide/restore-archived-objects.html) the object(s) in question before accessing object contents. The [restore](#restore) section below shows how to do this with rclone. @@ -30853,7 +32233,7 @@ mode from COMPLIANCE to GOVERNANCE while preserving the original retention date: ### Standard options -Here are the Standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). +Here are the Standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). #### --s3-provider @@ -30872,8 +32252,12 @@ Properties: - Alibaba Cloud Object Storage System (OSS) formerly Aliyun - "ArvanCloud" - Arvan Cloud Object Storage (AOS) + - "Autonomys" + - Autonomys Auto Drive - "BizflyCloud" - Bizfly Cloud Simple Storage + - "Cellar" + - Clever Cloud Cellar Object Storage - "Ceph" - Ceph Object Storage - "ChinaMobile" @@ -30908,6 +32292,8 @@ Properties: - IDrive e2 - "ImpossibleCloud" - Impossible Cloud Object Storage + - "Infomaniak" + - Infomaniak Swiss Backup - "Intercolo" - Intercolo Object Storage - "IONOS" @@ -30926,6 +32312,8 @@ Properties: - MEGA S4 Object Storage - "Minio" - Minio Object Storage + - "Neon" + - Neon Object Storage - "Netease" - Netease Object Storage (NOS) - "Outscale" @@ -30942,6 +32330,8 @@ Properties: - RackCorp Object Storage - "Rclone" - Rclone S3 Server + - "RelAix" + - RelAix.Storage - "Scaleway" - Scaleway Object Storage - "Scality" @@ -31027,7 +32417,7 @@ Properties: - Config: region - Env Var: RCLONE_S3_REGION -- Provider: AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,LyveCloud,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other +- Provider: AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,LyveCloud,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -31162,6 +32552,9 @@ Properties: - "eu-central" - EU Central - Provider: Fastly + - "eu-central-1" + - EU Central 1 + - Provider: Fastly - "eu-south-1" - EU South 1 - Provider: Fastly @@ -31213,50 +32606,104 @@ Properties: - "nbg1" - Nuremberg - Provider: Hetzner + - "af-north-1" + - AF-Cairo + - Provider: HuaweiOBS - "af-south-1" - AF-Johannesburg - Provider: HuaweiOBS + - "ap-southeast-1" + - CN-Hong Kong + - Provider: HuaweiOBS - "ap-southeast-2" - AP-Bangkok - Provider: HuaweiOBS - "ap-southeast-3" - AP-Singapore - Provider: HuaweiOBS - - "cn-east-3" - - CN East-Shanghai1 + - "ap-southeast-4" + - AP-Jakarta + - Provider: HuaweiOBS + - "ap-southeast-5" + - AP-Manila - Provider: HuaweiOBS - "cn-east-2" - CN East-Shanghai2 - Provider: HuaweiOBS + - "cn-east-3" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "cn-east-4" + - CN East-Qingdao + - Provider: HuaweiOBS + - "cn-east-5" + - CN East-Suzhou + - Provider: HuaweiOBS - "cn-north-1" - CN North-Beijing1 - Provider: HuaweiOBS + - "cn-north-2" + - CN North-Beijing2 + - Provider: HuaweiOBS - "cn-north-4" - CN North-Beijing4 - Provider: HuaweiOBS + - "cn-north-9" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "cn-north-11" + - CN North-Hebei + - Provider: HuaweiOBS + - "cn-north-12" + - CN North-Hohhot + - Provider: HuaweiOBS - "cn-south-1" - CN South-Guangzhou - Provider: HuaweiOBS - - "ap-southeast-1" - - CN-Hong Kong + - "cn-south-2" + - CN South-Shenzhen - Provider: HuaweiOBS - - "sa-argentina-1" - - LA-Buenos Aires1 + - "cn-south-4" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "sa-peru-1" - - LA-Lima1 + - "cn-southwest-2" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "cn-southwest-3" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "eu-west-101" + - EU-Dublin + - Provider: HuaweiOBS + - "la-north-2" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "la-south-2" + - LA-Santiago + - Provider: HuaweiOBS + - "me-east-1" + - ME-Riyadh - Provider: HuaweiOBS - "na-mexico-1" - LA-Mexico City1 - Provider: HuaweiOBS - - "sa-chile-1" - - LA-Santiago2 + - "ru-northwest-2" + - RU-Moscow2 + - Provider: HuaweiOBS + - "sa-argentina-1" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "sa-brazil-1" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "ru-northwest-2" - - RU-Moscow2 + - "sa-chile-1" + - LA-Santiago2 + - Provider: HuaweiOBS + - "sa-peru-1" + - LA-Lima1 + - Provider: HuaweiOBS + - "tr-west-1" + - TR-Istanbul - Provider: HuaweiOBS - "eu-central-2" - Frankfurt, Germany @@ -31279,6 +32726,10 @@ Properties: - "us-east-1" - New York, USA - Provider: ImpossibleCloud + - "us-east-1" + - Default region for compatibility. + - All data is stored in Switzerland. + - Provider: Infomaniak - "de-fra" - Frankfurt, Germany - Provider: Intercolo @@ -31300,6 +32751,18 @@ Properties: - "us-central-1" - Lenexa, USA - Provider: IONOS + - "us-east-1" + - US East (N. Virginia) + - Provider: Neon,Petabox,Rabata + - "us-east-2" + - US East (Ohio) + - Provider: Neon + - "eu-central-1" + - Europe (Frankfurt) + - Provider: Neon,Petabox + - "ap-southeast-1" + - Asia Pacific (Singapore) + - Provider: Neon,Petabox - "eu-west-2" - Paris, France - Provider: Outscale @@ -31357,15 +32820,6 @@ Properties: - "rbx-archive" - Roubaix, France (Cold Archive) - Provider: OVHcloud - - "us-east-1" - - US East (N. Virginia) - - Provider: Petabox,Rabata - - "eu-central-1" - - Europe (Frankfurt) - - Provider: Petabox - - "ap-southeast-1" - - Asia Pacific (Singapore) - - Provider: Petabox - "me-south-1" - Middle East (Bahrain) - Provider: Petabox @@ -31473,6 +32927,9 @@ Properties: - "pl-waw" - Warsaw, Poland - Provider: Scaleway + - "it-mil" + - Milan, Italy + - Provider: Scaleway - "ru-1" - St. Petersburg - Provider: Selectel,Servercore @@ -31539,7 +32996,7 @@ Properties: - Config: endpoint - Env Var: RCLONE_S3_ENDPOINT -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,Autonomys,BizflyCloud,Cellar,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,RelAix,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -31625,12 +33082,18 @@ Properties: - "s3.ir-tbz-sh1.arvanstorage.ir" - Tabriz Iran (Shahriar) - Provider: ArvanCloud + - "s3.auto-drive.autonomys.xyz" + - Auto Drive mainnet S3 endpoint + - Provider: Autonomys - "hn.ss.bfcplatform.vn" - Hanoi endpoint - Provider: BizflyCloud - "hcm.ss.bfcplatform.vn" - Ho Chi Minh endpoint - Provider: BizflyCloud + - "cellar-c2.services.clever-cloud.com" + - Paris, France + - Provider: Cellar - "eos-wuxi-1.cmecloud.cn" - The default endpoint - a good choice if you are unsure. - East China (Suzhou) @@ -31767,6 +33230,9 @@ Properties: - "eu-central.object.fastlystorage.app" - EU Central - Provider: Fastly + - "eu-central-1.object.fastlystorage.app" + - EU Central 1 + - Provider: Fastly - "eu-south-1.object.fastlystorage.app" - EU South 1 - Provider: Fastly @@ -31821,50 +33287,104 @@ Properties: - "nbg1.your-objectstorage.com" - Nuremberg - Provider: Hetzner + - "obs.af-north-1.myhuaweicloud.com" + - AF-Cairo + - Provider: HuaweiOBS - "obs.af-south-1.myhuaweicloud.com" - AF-Johannesburg - Provider: HuaweiOBS + - "obs.ap-southeast-1.myhuaweicloud.com" + - CN-Hong Kong + - Provider: HuaweiOBS - "obs.ap-southeast-2.myhuaweicloud.com" - AP-Bangkok - Provider: HuaweiOBS - "obs.ap-southeast-3.myhuaweicloud.com" - AP-Singapore - Provider: HuaweiOBS - - "obs.cn-east-3.myhuaweicloud.com" - - CN East-Shanghai1 + - "obs.ap-southeast-4.myhuaweicloud.com" + - AP-Jakarta + - Provider: HuaweiOBS + - "obs.ap-southeast-5.myhuaweicloud.com" + - AP-Manila - Provider: HuaweiOBS - "obs.cn-east-2.myhuaweicloud.com" - CN East-Shanghai2 - Provider: HuaweiOBS + - "obs.cn-east-3.myhuaweicloud.com" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "obs.cn-east-4.myhuaweicloud.com" + - CN East-Qingdao + - Provider: HuaweiOBS + - "obs.cn-east-5.myhuaweicloud.com" + - CN East-Suzhou + - Provider: HuaweiOBS - "obs.cn-north-1.myhuaweicloud.com" - CN North-Beijing1 - Provider: HuaweiOBS + - "obs.cn-north-2.myhuaweicloud.com" + - CN North-Beijing2 + - Provider: HuaweiOBS - "obs.cn-north-4.myhuaweicloud.com" - CN North-Beijing4 - Provider: HuaweiOBS + - "obs.cn-north-9.myhuaweicloud.com" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "obs.cn-north-11.myhuaweicloud.com" + - CN North-Hebei + - Provider: HuaweiOBS + - "obs.cn-north-12.myhuaweicloud.com" + - CN North-Hohhot + - Provider: HuaweiOBS - "obs.cn-south-1.myhuaweicloud.com" - CN South-Guangzhou - Provider: HuaweiOBS - - "obs.ap-southeast-1.myhuaweicloud.com" - - CN-Hong Kong + - "obs.cn-south-2.myhuaweicloud.com" + - CN South-Shenzhen - Provider: HuaweiOBS - - "obs.sa-argentina-1.myhuaweicloud.com" - - LA-Buenos Aires1 + - "obs.cn-south-4.myhuaweicloud.com" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "obs.sa-peru-1.myhuaweicloud.com" - - LA-Lima1 + - "obs.cn-southwest-2.myhuaweicloud.com" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "obs.cn-southwest-3.myhuaweicloud.com" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "obs.eu-west-101.myhuaweicloud.eu" + - EU-Dublin + - Provider: HuaweiOBS + - "obs.la-north-2.myhuaweicloud.com" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "obs.la-south-2.myhuaweicloud.com" + - LA-Santiago + - Provider: HuaweiOBS + - "obs.me-east-1.myhuaweicloud.com" + - ME-Riyadh - Provider: HuaweiOBS - "obs.na-mexico-1.myhuaweicloud.com" - LA-Mexico City1 - Provider: HuaweiOBS - - "obs.sa-chile-1.myhuaweicloud.com" - - LA-Santiago2 + - "obs.ru-northwest-2.myhuaweicloud.com" + - RU-Moscow2 + - Provider: HuaweiOBS + - "obs.sa-argentina-1.myhuaweicloud.com" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "obs.sa-brazil-1.myhuaweicloud.com" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "obs.ru-northwest-2.myhuaweicloud.com" - - RU-Moscow2 + - "obs.sa-chile-1.myhuaweicloud.com" + - LA-Santiago2 + - Provider: HuaweiOBS + - "obs.sa-peru-1.myhuaweicloud.com" + - LA-Lima1 + - Provider: HuaweiOBS + - "obs.tr-west-1.myhuaweicloud.com" + - TR-Istanbul - Provider: HuaweiOBS - "s3.us.cloud-object-storage.appdomain.cloud" - US Cross Region Endpoint @@ -32073,6 +33593,18 @@ Properties: - "us-east-1.storage.impossibleapi.net" - New York, USA - Provider: ImpossibleCloud + - "s3.swiss-backup01.infomaniak.com" + - Swiss Backup Location 01 + - Provider: Infomaniak + - "s3.swiss-backup02.infomaniak.com" + - Swiss Backup Location 02 + - Provider: Infomaniak + - "s3.swiss-backup03.infomaniak.com" + - Swiss Backup Location 03 + - Provider: Infomaniak + - "s3.swiss-backup04.infomaniak.com" + - Swiss Backup Location 04 + - Provider: Infomaniak - "de-fra.i3storage.com" - Frankfurt, Germany - Provider: Intercolo @@ -32177,38 +33709,47 @@ Properties: - "br-ne1.magaluobjects.com" - Fortaleza, CE (BR), br-ne1 - Provider: Magalu - - "s3.eu-amsterdam.megas4.com" - - Mega S4 Amsterdam + - "s3.eu-luxembourg-1.megas4.com" + - Mega S4 Luxembourg 1 - Provider: Mega - - "s3.eu-luxembourg.megas4.com" - - Mega S4 Luxembourg + - "s3.eu-luxembourg-2.megas4.com" + - Mega S4 Luxembourg 2 - Provider: Mega - - "s3.eu-paris.megas4.com" - - Mega S4 Paris + - "s3.eu-amsterdam-1.megas4.com" + - Mega S4 Amsterdam 1 - Provider: Mega - - "s3.eu-barcelona.megas4.com" - - Mega S4 Barcelona + - "s3.eu-amsterdam-2.megas4.com" + - Mega S4 Amsterdam 2 - Provider: Mega - - "s3.ca-montreal.megas4.com" - - Mega S4 Montreal + - "s3.eu-paris-1.megas4.com" + - Mega S4 Paris 1 - Provider: Mega - - "s3.ca-vancouver.megas4.com" - - Mega S4 Vancouver + - "s3.eu-paris-2.megas4.com" + - Mega S4 Paris 2 - Provider: Mega - - "s3.ap-tokyo.megas4.com" - - Mega S4 Tokyo + - "s3.eu-barcelona-1.megas4.com" + - Mega S4 Barcelona 1 - Provider: Mega - - "s3.eu-central-1.s4.mega.io" - - Mega S4 eu-central-1 (Amsterdam, legacy) + - "s3.eu-barcelona-2.megas4.com" + - Mega S4 Barcelona 2 - Provider: Mega - - "s3.eu-central-2.s4.mega.io" - - Mega S4 eu-central-2 (Bettembourg, legacy) + - "s3.ca-montreal-1.megas4.com" + - Mega S4 Montreal 1 - Provider: Mega - - "s3.ca-central-1.s4.mega.io" - - Mega S4 ca-central-1 (Montreal, legacy) + - "s3.ca-montreal-2.megas4.com" + - Mega S4 Montreal 2 - Provider: Mega - - "s3.ca-west-1.s4.mega.io" - - Mega S4 ca-west-1 (Vancouver, legacy) + - "s3.ca-vancouver-1.megas4.com" + - Mega S4 Vancouver 1 + - Provider: Mega + - "s3.ca-vancouver-2.megas4.com" + - Mega S4 Vancouver 2 + - Provider: Mega + - "s3.ap-tokyo-1.megas4.com" + - Mega S4 Tokyo 1 + - Provider: Mega + - "s3.ap-tokyo-2.megas4.com" + - Mega S4 Tokyo 2 - Provider: Mega - "oos.eu-west-2.outscale.com" - Outscale EU West 2 (Paris) @@ -32375,6 +33916,12 @@ Properties: - "nz.s3.rackcorp.com" - Auckland (New Zealand) Endpoint - Provider: RackCorp + - "s3-gw1.relaix.net" + - Aachen-1, Germany + - Provider: RelAix + - "s3-gw2.relaix.net" + - Aachen-2, Germany + - Provider: RelAix - "s3.nl-ams.scw.cloud" - Amsterdam Endpoint - Provider: Scaleway @@ -32384,6 +33931,9 @@ Properties: - "s3.pl-waw.scw.cloud" - Warsaw Endpoint - Provider: Scaleway + - "s3.it-mil.scw.cloud" + - Milan Endpoint + - Provider: Scaleway - "localhost:8333" - SeaweedFS S3 localhost - Provider: SeaweedFS @@ -32620,7 +34170,7 @@ Properties: - Config: location_constraint - Env Var: RCLONE_S3_LOCATION_CONSTRAINT -- Provider: AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,Infomaniak,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -33001,36 +34551,36 @@ Properties: - Config: acl - Env Var: RCLONE_S3_ACL -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: - "private" - Owner gets FULL_CONTROL. - No one else has access rights (default). - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other - "public-read" - Owner gets FULL_CONTROL. - The AllUsers group gets READ access. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - "public-read-write" - Owner gets FULL_CONTROL. - The AllUsers group gets READ and WRITE access. - Granting this on a bucket is generally not recommended. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "authenticated-read" - Owner gets FULL_CONTROL. - The AuthenticatedUsers group gets READ access. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-read" - Object owner gets FULL_CONTROL. - Bucket owner gets READ access. - If you specify this canned ACL when creating a bucket, Amazon S3 ignores it. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-full-control" - 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. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "private" - Owner gets FULL_CONTROL. - No one else has access rights (default). @@ -33224,7 +34774,7 @@ Properties: ### Advanced options -Here are the Advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). +Here are the Advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). #### --s3-bucket-acl @@ -33243,7 +34793,7 @@ Properties: - Config: bucket_acl - Env Var: RCLONE_S3_BUCKET_ACL -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -33281,7 +34831,7 @@ Properties: - Config: sse_customer_algorithm - Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -33294,13 +34844,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key-base64. Properties: - Config: sse_customer_key - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -33311,13 +34861,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key. Properties: - Config: sse_customer_key_base64 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -33335,7 +34885,7 @@ Properties: - Config: sse_customer_key_md5 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -34425,6 +35975,47 @@ 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). +### link + +Generate a signed link with response header overrides. + +```console +rclone backend link remote: [options] [+] +``` + +This command generates a signed download link for one file, with optional +overrides for the HTTP response headers. Pass the file path as a separate +argument, relative to the remote path. + +Usage examples: + +```console +rclone backend link s3:bucket path/to/file -o expire=1h +rclone backend link s3:bucket path/to/file -o response-expires="Thu, 01 Jan 1970 00:00:00 GMT" +rclone backend link s3:bucket path/to/file -o response-content-disposition='attachment; filename="download.txt"' +``` + +The link expires after 7 days by default. Use `-o expire=1h` to change +its lifetime. Durations must be at least 1 second; values above 7 days are +limited to 7 days, as with `rclone link`. + +The `response-expires` option sets the HTTP Expires response header, +not the lifetime of the signed link. It must be an HTTP date, such as +`Thu, 01 Jan 1970 00:00:00 GMT`. + +The overrides are included in the signature and must not be changed in the +returned URL. They do not modify the object's stored metadata. + +Options: + +- "expire": How long the link will be valid (default 7d, maximum 7d). +- "response-cache-control": Set the Cache-Control response header. +- "response-content-disposition": Set the Content-Disposition response header. +- "response-content-encoding": Set the Content-Encoding response header. +- "response-content-language": Set the Content-Language response header. +- "response-content-type": Set the Content-Type response header. +- "response-expires": Set the Expires response header to an HTTP date. + ### restore Restore objects from GLACIER or INTELLIGENT-TIERING archive tier. @@ -34725,15 +36316,15 @@ section above. From rclone v1.69 [Directory Buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) are supported. -You will need to set the `directory_buckets = true` config parameter -or use `--s3-directory-buckets`. +You will need to set the `directory_bucket = true` config parameter +or use `--s3-directory-bucket`. Note that rclone cannot yet: - Create directory buckets - List directory buckets -See [the --s3-directory-buckets flag](#s3-directory-buckets) for more info +See [the --s3-directory-bucket flag](#s3-directory-bucket) for more info ### AWS Snowball Edge @@ -34984,6 +36575,97 @@ server_side_encryption = storage_class = ``` +### Autonomys Auto Drive {#autonomys} + +[Auto Drive](https://ai3.storage/) is permanent storage on the Autonomys +Network, with an S3-compatible API. Deleting an object hides it, but its +data and every earlier version are kept. Buckets are created by the first +upload into them. + +Use your Auto Drive API key as the `access_key_id`, and any value as the +`secret_access_key`. + +Here is an example of making a configuration. First run: + +```console +rclone config +``` + +This will guide you through an interactive setup process. + +```text +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> autodrive + +Option Storage. +Type of storage to configure. +Storage> s3 + +Option provider. +Choose your S3 provider. +provider> Autonomys + +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. +env_auth> false + +Option access_key_id. +AWS Access Key ID. +access_key_id> YOUR_API_KEY + +Option secret_access_key. +AWS Secret Access Key (password). +secret_access_key> ANY_VALUE + +Option endpoint. +Endpoint for S3 API. +Choose a number from below, or type in your own value. + 1 / Auto Drive mainnet S3 endpoint + \ (s3.auto-drive.autonomys.xyz) +endpoint> 1 + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Autonomys +- access_key_id: YOUR_API_KEY +- secret_access_key: ANY_VALUE +- endpoint: s3.auto-drive.autonomys.xyz +Keep this "autodrive" remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +``` + +The resulting configuration file should look like: + +```ini +[autodrive] +type = s3 +provider = Autonomys +access_key_id = YOUR_API_KEY +secret_access_key = ANY_VALUE +endpoint = s3.auto-drive.autonomys.xyz +``` + ### BizflyCloud {#bizflycloud} [Bizfly Cloud Simple Storage](https://bizflycloud.vn/simple-storage) is an @@ -35045,6 +36727,12 @@ 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. +Rclone defaults `sign_accept_encoding` to false for the Ceph provider. +That avoids `SignatureDoesNotMatch` errors when a reverse proxy (for +example Cloudflare) rewrites the `Accept-Encoding` request header. You +can override this with `--s3-sign-accept-encoding` / `sign_accept_encoding` +if needed. + 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 @@ -35072,7 +36760,7 @@ use the secret key as `xxxxxx/xxxx` it will work fine. ### China Mobile Ecloud Elastic Object Storage (EOS) {#china-mobile-ecloud-eos} -Here is an example of making an [China Mobile Ecloud Elastic Object Storage (EOS)](https:///ecloud.10086.cn/home/product-introduction/eos/) +Here is an example of making an [China Mobile Ecloud Elastic Object Storage (EOS)](https://ecloud.10086.cn/home/product-introduction/eos/) configuration. First run: ```console @@ -35322,6 +37010,117 @@ d) Delete this remote y/e/d> y ``` +### Clever Cloud Cellar {#clever-cloud-cellar} + +[Cellar](https://www.clever.cloud/product/cellar-object-storage/) is the +S3-compatible object storage service of +[Clever Cloud](https://www.clever.cloud/), hosted in France. Credentials and the +endpoint are shown in the Cellar add-on dashboard, or in the +`CELLAR_ADDON_KEY_ID`, `CELLAR_ADDON_KEY_SECRET` and `CELLAR_ADDON_HOST` +environment variables of applications linked to it. + +Cellar does not apply Object Lock headers sent when initiating a multipart +upload. When setting Object Lock retention or legal hold options, also set +`--s3-object-lock-set-after-upload`: the lock is then applied with separate API +calls after the upload, so the object is not protected by these settings until +those calls succeed. + +Cellar supports server-side encryption with customer-provided keys (SSE-C), set +with `sse_customer_algorithm` and `sse_customer_key_base64`. It rejects +server-side copies of SSE-C objects unless they are done as multipart copies, so +use `--no-update-modtime` to avoid modification time updates, and expect +server-side moves and renames of encrypted objects smaller than +`--s3-copy-cutoff` to fail. See the +[Cellar SSE-C documentation](https://www.clever.cloud/developers/doc/deploy/storage/cellar/#server-side-encryption-with-customer-keys-sse-c). + +First run: + +```console +rclone config +``` + +```text +This will guide you through an interactive setup process: + +n) New remote +n/s/q> n + +Enter name for new remote. +name> cellar + +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, ..., Cellar, ... and others + \ (s3) +Storage> s3 + +Option provider. +Choose your S3 provider. +[snip] +XX / Clever Cloud Cellar Object Storage + \ (Cellar) +provider> Cellar + +Option env_auth. +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). + 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. +access_key_id> ACCESS_KEY + +Option secret_access_key. +AWS Secret Access Key (password). +secret_access_key> SECRET_KEY + +Option endpoint. +Endpoint for S3 API. + 1 / Paris, France + \ (cellar-c2.services.clever-cloud.com) +endpoint> 1 + +Option acl. +Canned ACL used when creating buckets and storing or copying objects. +[snip] +acl> 1 + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +bucket_object_lock_enabled> + +Edit advanced config? +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Cellar +- access_key_id: ACCESS_KEY +- secret_access_key: SECRET_KEY +- endpoint: cellar-c2.services.clever-cloud.com +- acl: private +Keep this "cellar" remote? +y/e/d> y +``` + +This will leave the config file looking like this. + +```ini +[cellar] +type = s3 +provider = Cellar +access_key_id = ACCESS_KEY +secret_access_key = SECRET_KEY +endpoint = cellar-c2.services.clever-cloud.com +acl = private +``` + ### Cloudflare R2 {#cloudflare-r2} [Cloudflare R2](https://blog.cloudflare.com/r2-open-beta/) Storage @@ -36664,6 +38463,114 @@ endpoint = eu-central-2.storage.impossibleapi.net acl = private ``` +### Infomaniak Swiss Backup {#infomaniak} + +[Infomaniak Swiss Backup](https://www.infomaniak.com/en/swiss-backup/cloud-storage) is a cloud backup space in Switzerland that you can use however you want with the script or software of your choice that is compatible with Swift, S3 or SFTP. + + +#### Prerequisites + +Create and setup your Swiss Backup product following [this documentation](https://www.infomaniak.com/en/support/faq/2546/create-an-s3-location-on-swiss-backup). Memorize the generated `Endpoint`, `Access Key`, and `Secret Key`: + +#### Configuration + +To configure access to an S3 location on Swiss Backup, follow the steps below: + +1. Run `rclone config` and select `n` for a new remote. + + ```sh + rclone config + No remotes found, make a new one? + n) New remote + s) Set configuration password + q) Quit config + n/s/q> n + ``` + +2. Give the name of the configuration. For example, name it 'swissbackup'. + + ```sh + name> swissbackup + ``` + +3. Select `s3` storage. + + ```sh + Type of storage to configure. + XX / Amazon S3 Compliant Storage Providers including AWS, ... - Tier 1 + \ (s3) + Storage> s3 + ``` + +4. Select `Infomaniak` provider. + + ```sh + Choose your S3 provider. + xx / Infomaniak Swiss Backup + \ (Infomaniak) + provider> Infomaniak + ``` + +5. Enter your Access Key and Secret Key. _You can generate new ones by clicking 'Generate new keys' on your Swiss Backup product dashboard._ + + ```sh + Option env_auth. + 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. + access_key_id> {YOUR-ACCESS-ID} + + AWS Secret Access Key (password) + secret_access_key> {YOUR-ACCESS-SECRET} + ``` + +6. Select `us-east-1` region for compatibility. + + ```sh + Region to connect to. + / Default region for compatibility. + 1 | All data is stored in Switzerland. + \ (us-east-1) + region> 1 + ``` + +7. Select the endpoint corresponding to the one generated with your Access and Secret Keys. + + ```sh + Endpoint for S3 API. + 1 / Swiss Backup Location 01 + \ (s3.swiss-backup01.infomaniak.com) + 2 / Swiss Backup Location 02 + \ (s3.swiss-backup02.infomaniak.com) + 3 / Swiss Backup Location 03 + \ (s3.swiss-backup03.infomaniak.com) + 4 / Swiss Backup Location 04 + \ (s3.swiss-backup04.infomaniak.com) + endpoint> 1 + ``` + +8. Adjust other parameters and advanced config at your convenience. Leave blank if not sure. + +9. You should obtain something like this. + + ```sh + Configuration complete. + Options: + - type: s3 + - provider: Infomaniak + - access_key_id: xxxxxxxxxx + - secret_access_key: xxxxxxxxxx + - region: us-east-1 + - endpoint: s3.swiss-backup01.infomaniak.com + ``` + +10. Press `y` to validate. Then `q` to quit. + + ### Intercolo Object Storage {#intercolo} [Intercolo Object Storage](https://intercolo.de/object-storage) offers @@ -37363,6 +39270,10 @@ secret_access_key = SECRET_ACCESS_KEY endpoint = eu-central-1.linodeobjects.com ``` +Linode Object Storage is Ceph-backed. Rclone defaults +`sign_accept_encoding` to false for this provider so SigV4 requests do +not fail with `SignatureDoesNotMatch` (see the [Ceph](#ceph) section). + ### Magalu {#magalu} Here is an example of making a [Magalu Object Storage](https://magalu.cloud/object-storage/) @@ -37663,6 +39574,157 @@ So once set up, for example, to copy files into a bucket rclone copy /path/to/files minio:bucket ``` +### Neon Object Storage {#neon} + +[Neon Object Storage](https://neon.com/docs/storage/overview) is S3 +compatible object storage in a Neon project. Each branch of the project +has its own copy of the buckets and its own S3 endpoint. The endpoint +looks like `https://.storage...aws.neon.tech`. + +In the Neon Console, click **Connect**, open the **Storage** tab and +choose **Parameters only**. Use `AWS_ACCESS_KEY_ID`, +`AWS_SECRET_ACCESS_KEY`, `AWS_ENDPOINT_URL_S3` and `AWS_REGION` as +`access_key_id`, `secret_access_key`, `endpoint` and `region`. To make +a separate credential, use **Settings** > **Credentials** or run +`neon credentials create --scope storage:read --scope storage:write`. + +A credential works on the branch it was made on and on that branch's +child branches. To use a child branch, change only `endpoint`. + +Neon also has these limits (see the +[S3 compatibility docs](https://neon.com/docs/storage/s3-compatibility)): + +- The maximum object size is 5 GiB for a single upload and 10 GiB for + a multipart upload. +- Neon rejects object keys containing control characters with + `400 InvalidURI`. To store files with these names, add `Ctl,Del` to + the encoding, for example `encoding = Slash,InvalidUtf8,Dot,Ctl,Del`. +- Neon doesn't support ACLs over the S3 API. Leave `acl` and + `bucket_acl` empty and set bucket access (`private` or `public_read`) + in Neon. +- Neon stores versioning and lifecycle configurations but doesn't + enforce them. +- Neon may throttle heavy use with `503 SlowDown` errors. rclone retries + these. + +Here is an example of making a Neon Object Storage configuration. First run: + +```console +rclone config +``` + +This will guide you through an interactive setup process. + +```text +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> neon + +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, ... Neon, ... + \ (s3) +[snip] +Storage> s3 + +Option provider. +Choose your S3 provider. +Choose a number from below, or type in your own value. +Press Enter to leave empty. +[snip] +XX / Neon Object Storage + \ (Neon) +[snip] +provider> Neon + +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> NEON_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> NEON_SECRET_ACCESS_KEY + +Option region. +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. + 1 / US East (N. Virginia) + \ (us-east-1) + 2 / US East (Ohio) + \ (us-east-2) + 3 / Europe (Frankfurt) + \ (eu-central-1) + 4 / Asia Pacific (Singapore) + \ (ap-southeast-1) +region> us-east-2 + +Option endpoint. +Endpoint for S3 API. +Required when using an S3 clone. +Enter a value. Press Enter to leave empty. +endpoint> https://.storage...aws.neon.tech + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Neon +- access_key_id: NEON_ACCESS_KEY_ID +- secret_access_key: NEON_SECRET_ACCESS_KEY +- region: us-east-2 +- endpoint: https://.storage...aws.neon.tech +Keep this "neon" remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +``` + +This will leave the config file looking like this. + +```ini +[neon] +type = s3 +provider = Neon +access_key_id = NEON_ACCESS_KEY_ID +secret_access_key = NEON_SECRET_ACCESS_KEY +region = us-east-2 +endpoint = https://.storage...aws.neon.tech +``` + ### Netease NOS For Netease NOS configure as per the configurator `rclone config` @@ -38807,6 +40869,134 @@ use_multipart_uploads = false Note that setting `use_multipart_uploads = false` is to work around [a bug](https://rclone.org/commands/rclone_serve_s3/#bugs) which will be fixed in due course. +### RelAix.Storage {#relaix} + +RelAix.Storage is S3 compatible object storage from +[RelAix Networks](https://www.relaix.net/), operated in its own data +centres in Aachen, Germany. +There are two locations, Aachen-1 and Aachen-2, each with its own endpoint. +Buckets and data stay at the location of the endpoint you use. + +You get an access key and a secret key from RelAix Networks. Then run: + +```console +rclone config +``` + +This will guide you through an interactive setup process. + +```text +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> my-relaix + +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, ... + \ (s3) +[snip] +Storage> s3 + +Option provider. +Choose your S3 provider. +Choose a number from below, or type in your own value. +Press Enter to leave empty. +[snip] +XX / RelAix.Storage + \ (RelAix) +[snip] +provider> RelAix + +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> 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_KEY + +Option endpoint. +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 / Aachen-1, Germany + \ (s3-gw1.relaix.net) + 2 / Aachen-2, Germany + \ (s3-gw2.relaix.net) +endpoint> 1 + +Option acl. +Canned ACL used when creating buckets and storing or copying objects. +[snip] +acl> + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: RelAix +- access_key_id: ACCESS_KEY +- secret_access_key: SECRET_KEY +- endpoint: s3-gw1.relaix.net +Keep this "my-relaix" remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +``` + +This will leave the config file looking like this. + +```ini +[my-relaix] +type = s3 +provider = RelAix +access_key_id = ACCESS_KEY +secret_access_key = SECRET_KEY +endpoint = s3-gw1.relaix.net +``` + +Object Lock can only be enabled when a bucket is created. To create buckets +with Object Lock, set `bucket_object_lock_enabled = true` before running +`rclone mkdir`. + +To lock objects on upload with `object_lock_mode`, also set +`object_lock_set_after_upload = true`. RelAix.Storage does not yet apply +Object Lock headers sent with multipart uploads, so rclone needs to set the +lock in a separate call after the upload. + ### Scaleway [Scaleway](https://www.scaleway.com/object-storage/) The Object Storage platform @@ -40708,6 +42898,25 @@ Rclone works fastest with large squashfs block sizes. For example: mksquashfs 100files 100files.sqfs -comp zstd -b 1M ``` +## Symlinks + +Symlinks stored in an archive are skipped unless the `-l/--links` flag +is supplied, as they are on the other backends. With the flag they are +listed with a `.rclonelink` suffix and read back as the path they point +at, the same convention the [local](https://rclone.org/local/#symlinks-junction-points) +backend uses, so they can be copied back as symlinks: + +``` +$ rclone lsl --links :archive:/tmp/test.zip + 5 2026-09-28 14:16:59.000000000 src/file.txt + 8 2026-09-28 14:16:59.000000000 src/link.txt.rclonelink +$ rclone cat --links :archive:/tmp/test.zip/src/link.txt.rclonelink +file.txt +$ rclone copy --links :archive:/tmp/test.zip /tmp/out +$ ls -l /tmp/out/src/link.txt +lrwxr-xr-x 1 user user 8 Sep 28 14:16 /tmp/out/src/link.txt -> file.txt +``` + ## Limitations Files in the archive backend are read only. It isn't possible to @@ -41362,6 +43571,11 @@ 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. +Rclone will not follow a redirect from this endpoint which downgrades +HTTPS to HTTP, and will not send the "Authorization" header or the +SSE-C key headers once a redirect has left the host and port of this +endpoint. + 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}". @@ -41458,7 +43672,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in a UTF-8 compatible string to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key-base64. +Alternatively you can provide --b2-sse-customer-key-base64. Properties: @@ -41474,7 +43688,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in Base64 format to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key. +Alternatively you can provide --b2-sse-customer-key. Properties: @@ -41770,9 +43984,10 @@ 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): +According to the [box docs](https://developer.box.com/guides/authentication/tokens/refresh/): -> Each refresh_token is valid for one use in 60 days. +> A Refresh Token is valid for 60 days and can be used to obtain a new Access +> Token and Refresh Token only once. This means that if you @@ -44801,6 +47016,15 @@ This means that - filenames with the same name will encrypt the same - filenames which start the same won't have a common prefix +A version string of the form `-vYYYY-MM-DD-HHMMSS-NNN` on the end of a +file name (as added by `--b2-versions` / `--s3-versions`) is left in +plain text so that versioned files can be found. Directory names are +encrypted in full. Rclone before v1.76 left such a suffix in plain +text on directory names too, so a directory named like this created by +an older rclone will appear in listings with a warning but can't be +opened or removed until renamed on the underlying remote to the name +given in the warning. + This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password. @@ -45423,6 +47647,287 @@ It doesn't return anything. +# dosya.dev + +[dosya.dev](https://dosya.dev) is a cloud file storage, sharing, and +synchronization platform with workspace-based multi-tenancy, file +versioning, and team collaboration features. + +## Configuration + +Here is an example of how to make a remote called `remote`. First run: + +```console +rclone config +``` + +This will guide you through an interactive setup process: + +```text +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 / dosya.dev + \ (dosya) +Storage> dosya + +Option api_key. +Your API Key, get it from https://dosya.dev/profile under "API keys". +Enter a value. +api_key> dos_YOURAPIKEY + +Option workspace_id. +Your workspace ID. + +Leave this blank to use the one workspace the API key can reach, which +is what a key restricted to a single workspace does. If the key can +reach several, rclone will refuse and list their IDs for you to choose +from. +Enter a value. Press Enter to leave empty. +workspace_id> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: dosya +- api_key: dos_YOURAPIKEY +Keep this "remote" remote? +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 (replace `remote` +with the name you gave your remote): + +List directories and files in the top level of your dosya workspace + +```console +rclone lsf remote: +``` + +To copy a local directory to a dosya directory called backup + +```console +rclone copy /home/source remote:backup +``` + +The dosya backend uploads large files in parts and stores them as single +files that remain accessible through the web app and other clients. If you +previously used a WebDAV remote with a chunker overlay for large uploads, +you can use this backend without the overlay. + +### Getting your API key + +1. Log in to [dosya.dev](https://dosya.dev) +2. Go to [Profile](https://dosya.dev/profile) > **API keys** +3. Create a new API key +4. Copy the key (starts with `dos_`) + +A key can be restricted to a single workspace when you create it, which +is the simplest thing to do for rclone: `workspace_id` can then be left +out of the config entirely. + +### Workspaces + +Leave `workspace_id` blank and rclone asks which workspaces the key can +reach. A key restricted to one workspace, and an account that has only +one, both resolve without any configuration. If the key can reach +several, rclone refuses and lists their IDs so you can set the one you +want: + +```text +this API key can reach 2 workspaces, so workspace_id must be set to one of: + ws_AAAAAAAA (Work) + ws_BBBBBBBB (Personal) +``` + +To access several workspaces at once, create a separate remote for each: + +```console +rclone config create work dosya api_key=dos_XXX workspace_id=ws_WORK +rclone config create personal dosya api_key=dos_XXX workspace_id=ws_PERSONAL +``` + +Then use them independently: + +```console +rclone ls work: +rclone copy work:docs/ personal:backup/ +``` + +### Modification times and hashes + +dosya.dev supports modification times with a resolution of 1 second. The +modification time is sent with the upload, so a copied or synced file keeps +its original timestamp. Modification times cannot be changed after upload +without re-uploading the file. + +dosya.dev supports SHA-256 checksums. The server computes the hash of a +single-shot (small file) upload from the bytes it receives, so `rclone check` +and hash-based sync work without downloading. Large files uploaded in multiple +parts have no server-side hash (the parts are never re-read to hash the whole +object), the same limitation the S3 backend has for multipart objects; those +objects report an empty hash. + +### 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 | " | +| ' | 0x27 | ' | +| < | 0x3C | < | +| > | 0x3E | > | +| \ | 0x5C | \ | + +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8), +as they can't be used in JSON strings. + +### Public Links + +dosya.dev supports `rclone link` to create public share links to +files. You can use the `--expire` flag to specify how long the link +should be valid. + +```console +rclone link remote:path/to/file.txt +rclone link --expire 7d remote:path/to/file.txt +``` + + +### Standard options + +Here are the Standard options specific to dosya (dosya.dev). + +#### --dosya-api-key + +Your API Key, get it from https://dosya.dev/profile under "API keys". + +Properties: + +- Config: api_key +- Env Var: RCLONE_DOSYA_API_KEY +- Type: string +- Required: true + +#### --dosya-workspace-id + +Your workspace ID. + +Leave this blank to use the one workspace the API key can reach, which +is what a key restricted to a single workspace does. If the key can +reach several, rclone will refuse and list their IDs for you to choose +from. + +Properties: + +- Config: workspace_id +- Env Var: RCLONE_DOSYA_WORKSPACE_ID +- Type: string +- Required: false + +### Advanced options + +Here are the Advanced options specific to dosya (dosya.dev). + +#### --dosya-api-url + +API base URL. + +Properties: + +- Config: api_url +- Env Var: RCLONE_DOSYA_API_URL +- Type: string +- Default: "https://api.dosya.dev" + +#### --dosya-upload-concurrency + +Concurrency for multipart uploads. + +This is the number of parts of the same file that are uploaded +concurrently. The first part is always uploaded on its own, because +the server creates the upload when it receives it. + +Each part in flight is held in memory, so memory use grows with +this value times the part size the server chooses. + +If you are uploading 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_DOSYA_UPLOAD_CONCURRENCY +- Type: int +- Default: 4 + +#### --dosya-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_DOSYA_ENCODING +- Type: Encoding +- Default: Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot + +#### --dosya-description + +Description of the remote. + +Properties: + +- Config: description +- Env Var: RCLONE_DOSYA_DESCRIPTION +- Type: string +- Required: false + + + +## Limitations + +dosya.dev only supports filenames up to 255 characters in length. + +Empty files (0 bytes) cannot be uploaded to dosya.dev. + +Upload requires knowing the file size in advance, so streaming +uploads of unknown-size files are not supported. + +Each workspace limits the number of uploads a user can have in flight +at once (5 by default, configurable in the workspace settings). When +`--transfers` is set higher than that limit, rclone waits for a free +upload slot rather than failing the transfer, retrying every 5 seconds +for up to 10 minutes. + +### Deleting files and directories + +rclone deletes files and directories permanently, in a single request +(`DELETE ?permanent=1`), bypassing the workspace trash. Removing a +directory also asks the server whether it is empty (`?if_empty=1`) +rather than listing it first. + # Drime [Drime](https://drime.cloud/) is a cloud storage and transfer service focused @@ -47358,6 +49863,34 @@ excess files in the directory. rclone sync --interactive /home/local/directory remote:dir ``` +### 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 | ␠ | +| LF | 0x0A | ␊ | +| CR | 0x0D | ␍ | +| HT | 0x09 | ␉ | +| VT | 0x0B | ␋ | + +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8). + +Files.com treats the replacements `/` and `\` as if they were `/` +and `\`, and the names `.` and `..` as if they were `.` and `..`, +and rejects them with `Invalid path`. This means that files with `/` +or `\` in their names, or which are called `.` or `..`, can't be +stored on Files.com. + ### Hashes In December 2024 `files.com` started [supporting more checksums](https://www.files.com/blog/2024/11/01/new-modern-checksum-options-now-available-with-opt). @@ -47569,7 +50102,7 @@ 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 +Using [on-the-fly](https://rclone.org/docs/#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: @@ -50290,7 +52823,7 @@ 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. +need to use --ignore-size also. Properties: @@ -51174,7 +53707,7 @@ including You should now see the three scopes on your Data access page. Now press save at the bottom! -6. After adding scopes, click Audience +6. After adding scopes, click Audience. Scroll down and click "+ Add users". Add yourself as a test user and press save. 7. Go to Overview on the left panel, click "Create OAuth client". Choose @@ -51188,6 +53721,15 @@ Scroll down and click "+ Add users". Add yourself as a test user and press save. 9. Go to "Audience" and then click "PUBLISH APP" button and confirm. Add yourself as a test user if you haven't already. + (If the "PUBLISH APP" button is greyed out, Google now requires a + homepage URL and a privacy policy URL before publishing, even for a + personal single-user app. Go to "Branding" in the left panel, fill in + "Application home page" and "Application privacy policy link" - a free + GitHub Pages site is fine for these if you don't have a domain of your + own - then "Authorized domains" with the domain you used, and click + Save. Return to "Audience" and the "PUBLISH APP" button should now be + available.) + 10. Provide the noted client ID and client secret to rclone. 11. Run the web-based authorization flow from within `rclone config`, by answering @@ -52406,9 +54948,18 @@ Before accessing Drive service, developers need to create a server application f #### Enable Drive Application Switch -1. Log in to the AppGallery Connect website and click "My Projects". -2. Find your project in the project list, select the application that needs to access Drive in the project, and click "API Management". -3. In the "API Management" area of the "Project Settings" page, click the switch on the right side of Drive Kit to ensure the switch is in the open state. +1. Log in to AppGallery Connect with your Huawei account. +2. Create a project or select an existing project. +3. Add a web application to the project. +4. Open "Project settings" for the application and copy the OAuth 2.0 Client + ID and Client Secret from the "General" tab. +5. Open "API Management" for the project and enable "Cloud Drive". +6. Add `http://127.0.0.1:53682/` as a redirect URI for the OAuth 2.0 Client + ID. + +The older Huawei Developer Console may show some of the same credential +information, but AppGallery Connect is the place to create the project, +application, API permission, and redirect URI used by rclone. #### Sign Huawei Cloud Drive Privacy Notice and User Agreement @@ -52420,23 +54971,12 @@ Applications accessing Drive should use authentication credential Access Token. Key steps summary: -1. Log into the [Huawei Developer Console](https://developer.huawei.com/consumer/en/console) with your Huawei account. - -2. Create a new project or select an existing project. - -3. Go to "Manage APIs" and enable the "Drive Kit" API. - -4. Click on "Credentials" in the left side panel. - -5. Click "Create Credentials" and choose "OAuth client ID". - -6. Choose "Web application" as the application type. - -7. Add `http://localhost:53682/` to the "Authorized redirect URIs". - -8. Click "Create" and note down the Client ID and Client Secret. - -9. Provide the noted client ID and client secret to rclone during configuration. +1. Create or select a project in AppGallery Connect. +2. Add a web application to the project. +3. Enable Cloud Drive in API Management. +4. Configure `http://127.0.0.1:53682/` as the OAuth redirect URI. +5. Copy the OAuth 2.0 Client ID and Client Secret from the application. +6. Provide the client ID and client secret to rclone during configuration. ### Scopes @@ -53549,11 +56089,13 @@ 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. +path is resolved from the root of the domain. The path can't change the scheme, +host or user of the configured url, so a path such as `//other.example.com/fix` +is rejected. 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 +and the response used to decide if 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 @@ -53739,6 +56281,13 @@ 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"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. When headers are set, a redirect from https to http is +refused as it would send them in cleartext, even with +--allow-https-downgrade. + Properties: - Config: headers @@ -53792,6 +56341,42 @@ Properties: - Type: bool - Default: false +#### --http-no-head-size + +Set the reported file size for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unknown file size. +Set this option to a non-negative value to report that size for every file, +including 0. Leave it unset (the default, shown as "off") to keep reporting +an unknown size. + +The configured size is authoritative. If it does not match the actual file +size, transfers may fail their size check and retry unless --ignore-size is +used. It can also make multi-thread transfers request incorrect ranges and +make mounted files unreadable past the reported size. + +Properties: + +- Config: no_head_size +- Env Var: RCLONE_HTTP_NO_HEAD_SIZE +- Type: SizeSuffix +- Default: off + +#### --http-no-head-time + +Set a default modification time for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unset modification +time. Set this option to report the specified time for every file instead. +Changing the configured time later makes every file appear modified to a sync. + +Properties: + +- Config: no_head_time +- Env Var: RCLONE_HTTP_NO_HEAD_TIME +- Type: Time +- Default: off + #### --http-description Description of the remote. @@ -55601,6 +58186,334 @@ 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. +# kDrive + +Paths are specified as `remote:path` + +Paths may be as deep as required, e.g. `remote:directory/subdirectory`. + +## Configuration + +The initial setup for kDrive involves getting an OAuth2 token which you +need to do in your browser. `rclone config` walks you through it. + +kDrive uses the PKCE OAuth2 flow (RFC 7636), which means no +`client_secret` is required. The `client_id` is optional and defaults +to rclone's built-in application credentials. + +Here is an example of how to make a remote called `remote`. First run: + +```sh +rclone config +``` + +This will guide you through an interactive setup process: + +```text +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 / Infomaniak kDrive + \ "kdrive" +[snip] +Storage> kdrive + +Option client_id. +OAuth Client Id. +Leave blank normally. +Enter a value. Press Enter to leave empty. +client_id> + +Option drive_id. +ID of the kDrive to use. +When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... +Enter a value. Press Enter to leave empty. +drive_id> 0654321 + +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 + +Waiting for code... +Got code + +Configuration complete. +Options: +- type: kdrive +- drive_id: 0654321 + +Keep this "remote" remote? +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 (replace `remote` with the name you gave your remote): + +List directories in top level of your rclone + +```sh +rclone lsd remote: +``` + +**Note** that by default the top level directory of a private kDrive +storage is your "Private" folder. When used with a Pro account, a second +folder "Common documents" is also available, which can be used as the +root by setting `root_folder_id` to `common`. +*These top-level folders cannot be modified*. + +List all the files in your kDrive + +```sh +rclone ls remote: +``` + +To copy a local directory to a kDrive directory called backup + +```sh +rclone copy /home/source remote:backup +``` + +### Modification times and hashes + +kDrive allows modification times to be set on objects accurate to 1 +second. These will be used to detect whether objects need syncing or +not. + +kDrive supports the XXH3 checksum hash, so you can use the `--checksum` +flag. XXH3 is only available for files uploaded as a single chunk: +files uploaded in chunks (by rclone when larger than +`--kdrive-chunk-size`, or by the kDrive apps which chunk files at their +own sizes) have a "nested" hash which can't be compared with a plain +XXH3, and rclone reports no hash for those files. + +### 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 | +| ---------- |:-----:|:-----------:| +| LeftSpace | 0x20 | ␠ | +| RightSpace | 0x20 | ␠ | + +Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8), +as they can't be used in JSON strings. + +### Overwriting files + +When rclone overwrites an existing file, kDrive keeps the replaced +content as a new version of the file. Old versions count against the +drive quota, so repeatedly overwriting large files grows the storage +usage. Manage old versions from the kDrive web app. + +### Uploading files of unknown size + +kDrive can't upload files of unknown size, so `rclone rcat` and +streaming uploads are not supported. + +### 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 numeric `Folder ID`) that rclone considers to be the +root of your kDrive drive. + +Normally you will leave this blank and rclone will use your private +directory. You can also use one of the convenience shortcuts: + +- `private`: your user private directory (default) +- `common`: the kDrive common directory, shared among users + +Or the numeric `Folder ID` of any directory in your drive. The root of +the drive only contains the `Private` and `Common documents` folders, +so a numeric ID is needed to use any other directory as root. In order +to find the `Folder ID`, list the parent directory of the folder you +wish rclone to use with `rclone lsf`; the first column of the output is +the folder ID: + +Example: +``` +$ rclone lsf --dirs-only -Fip --csv remote:Documents +456,Sub folder/ +789,Photos/ +``` + +So if the folder you want rclone to use is "Photos/", then use the +returned id from ```rclone lsf``` command (ex. `789`) as the +`root_folder_id` variable value in the config file. + + +### Standard options + +Here are the Standard options specific to kdrive (Infomaniak kDrive). + +#### --kdrive-client-id + +OAuth Client Id. + +Leave blank normally. + +Properties: + +- Config: client_id +- Env Var: RCLONE_KDRIVE_CLIENT_ID +- Type: string +- Required: false + +#### --kdrive-drive-id + +ID of the kDrive to use. + +When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... + +Properties: + +- Config: drive_id +- Env Var: RCLONE_KDRIVE_DRIVE_ID +- Type: string +- Required: false + +### Advanced options + +Here are the Advanced options specific to kdrive (Infomaniak kDrive). + +#### --kdrive-token + +OAuth Access Token as a JSON blob. + +Properties: + +- Config: token +- Env Var: RCLONE_KDRIVE_TOKEN +- Type: string +- Required: false + +#### --kdrive-auth-url + +Auth server URL. + +Leave blank to use the provider defaults. + +Properties: + +- Config: auth_url +- Env Var: RCLONE_KDRIVE_AUTH_URL +- Type: string +- Required: false + +#### --kdrive-token-url + +Token server url. + +Leave blank to use the provider defaults. + +Properties: + +- Config: token_url +- Env Var: RCLONE_KDRIVE_TOKEN_URL +- Type: string +- Required: false + +#### --kdrive-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_KDRIVE_ENCODING +- Type: Encoding +- Default: Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot + +#### --kdrive-root-folder-id + +The folder to use as root. + +You may use either one of the convenience shortcuts [private or common] +or an explicit folder ID. + +- private: your user private directory +- common: the kDrive common directory, shared among users + +Properties: + +- Config: root_folder_id +- Env Var: RCLONE_KDRIVE_ROOT_FOLDER_ID +- Type: string +- Required: false + +#### --kdrive-chunk-size + +Files above this size are uploaded in chunks of this size. + +The kDrive API accepts chunks between 1 MB and 1 GB, up to 10,000 +chunks per file and a total file size of 1 TiB. The chunk size is +raised automatically for very large files to stay within the 10,000 +chunks limit. + +Properties: + +- Config: chunk_size +- Env Var: RCLONE_KDRIVE_CHUNK_SIZE +- Type: SizeSuffix +- Default: 20Mi + +#### --kdrive-upload-concurrency + +Concurrency for chunked uploads. + +Properties: + +- Config: upload_concurrency +- Env Var: RCLONE_KDRIVE_UPLOAD_CONCURRENCY +- Type: int +- Default: 4 + +#### --kdrive-endpoint + +The API endpoint to use. + +Leave blank normally. There is no reason to change the endpoint except for internal use or beta-testing. + +Properties: + +- Config: endpoint +- Env Var: RCLONE_KDRIVE_ENDPOINT +- Type: string +- Required: false + +#### --kdrive-description + +Description of the remote. + +Properties: + +- Config: description +- Env Var: RCLONE_KDRIVE_DESCRIPTION +- Type: string +- Required: false + + + # Koofr Paths are specified as `remote:path` @@ -56125,6 +59038,15 @@ Properties: Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8), as they can't be used in JSON strings. +Linkbox converts file extensions to lower case on upload, so a file +uploaded as `file.TXT` is stored as `file.txt`. + +Linkbox renames an uploaded file to `name(1)` if its name is the start +of the name of a file already in the same directory, for example when +uploading `apple` to a directory containing `applebanana`. rclone then +can't find the file it uploaded and the upload fails with `object not +found`. + # Mail.ru Cloud [Mail.ru Cloud](https://cloud.mail.ru/) is a cloud storage provided by a @@ -57479,6 +60401,24 @@ when `--metadata` is enabled (or when using `--metadata-set` / `--metadata-mappe Notes: - Rclone ignores reserved `x-ms-*` keys (except `x-ms-tags`) for user metadata. +### Hierarchical namespace + +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories. On these accounts rclone supports +empty directories, creating them with `rclone mkdir` and removing +them with `rclone rmdir`, whatever the `--azureblob-directory-markers` +setting. + +Note that deleting the last file in a directory leaves the directory +behind. Use `rclone rmdirs` or `--delete-empty-src-dirs` to remove +empty directories. + +Rclone reads whether the storage account has a hierarchical namespace +when it first uses the remote and saves it as the `hns` option in the +config file. Set `--azureblob-hns` to override this. + +Blob tags (`x-ms-tags` metadata) aren't supported on these accounts. + ### Performance When uploading large files, increasing the value of @@ -57710,13 +60650,13 @@ 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`. +set, this is equivalent to using `env_auth`. #### Federated Identity Credentials If these variables are set, rclone will authenticate with federated identity. -- `tenant`: tenant ID of of the storage +- `tenant`: tenant ID of the storage - `client_id`: client ID of the application the user will authenticate to storage - `msi_client_id`: managed identity client ID of the application the user will authenticate to @@ -58257,6 +61197,52 @@ Properties: - Type: int - Default: 5000 +#### --azureblob-use-arrow-list + +Use the Apache Arrow listing format. + +If set, directory listings are fetched using the ListBlobs Apache +Arrow response format instead of XML. Arrow responses are smaller and +much cheaper to parse, making listings of large containers several +times faster. Combine with "list_parallelism" for the biggest gains. + +"Blob Listing with Apache Arrow" is in public preview at Microsoft and +is only supported on flat namespace accounts. On accounts with a +hierarchical namespace (ADLS Gen2), or where the feature is otherwise +unavailable, the server returns XML and the listing transparently +falls back to the normal XML path (logged at debug level). + +Properties: + +- Config: use_arrow_list +- Env Var: RCLONE_AZUREBLOB_USE_ARROW_LIST +- Type: bool +- Default: false + +#### --azureblob-list-parallelism + +Number of parallel shards to list a directory with. + +If set greater than 1, the blob name keyspace of each directory is +split into ranges which are listed concurrently using the Arrow +startFrom/endBefore range parameters. This can dramatically speed up +listing containers with millions of objects, for both recursive +(ListR) and single directory listings. Speed keeps improving up to a +parallelism of around 30. + +This has no effect unless "use_arrow_list" is also set, as Arrow is the +only listing path that supports server-side name ranges. If the +account does not support range listing (e.g. it has a hierarchical +namespace) the listing falls back to sequential. The default of 0 (or +1) lists sequentially. + +Properties: + +- Config: list_parallelism +- Env Var: RCLONE_AZUREBLOB_LIST_PARALLELISM +- Type: int +- Default: 0 + #### --azureblob-access-tier Access tier of blob: hot, cool, cold or archive. @@ -58360,6 +61346,9 @@ 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. + +This is not needed on storage accounts with a hierarchical namespace +(see the hns option) as these always support empty directories. Properties: @@ -58369,6 +61358,24 @@ Properties: - Type: bool - Default: false +#### --azureblob-hns + +Set if the storage account has a hierarchical namespace. + +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories which can be empty. + +If this is unset then rclone will read it from the storage account +and save it in the config file. + + +Properties: + +- Config: hns +- Env Var: RCLONE_AZUREBLOB_HNS +- Type: Tristate +- Default: unset + #### --azureblob-no-check-container If set, don't attempt to check the container exists or create it. @@ -58828,13 +61835,13 @@ 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`. +set, this is equivalent to using `env_auth`. #### Federated Identity Credentials If these variables are set, rclone will authenticate with federated identity. -- `tenant`: tenant ID of of the storage +- `tenant`: tenant ID of the storage - `client_id`: client ID of the application the user will authenticate to storage - `msi_client_id`: managed identity client ID of the application the user will authenticate to @@ -59239,7 +62246,7 @@ Properties: Upload chunk size. Note that this is stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: @@ -59261,7 +62268,7 @@ links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers. Note that chunks are stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: @@ -59343,6 +62350,10 @@ Paths are specified as `remote:path` Paths may be as deep as required, e.g. `remote:directory/subdirectory`. +**Note**: OneDrive for Business and SharePoint users need rclone +v1.76 or later from April 1, 2027 - see +[Pre-authenticated URLs](#pre-authenticated-urls). + ## Configuration The initial setup for OneDrive involves getting a token from @@ -59575,7 +62586,7 @@ OneDrive files. Take care to safeguard these credentials. If you do not have admin access to your organization's OneDrive for Business, you can still connect by manually providing the SharePoint tenant URL and drive ID. This works by overriding the base API URL -from the standard Microsoft Graph endpoint to the SharePoint v2.0 +from the standard Microsoft Graph endpoint to the SharePoint API endpoint. #### Steps to manually obtain credentials @@ -59589,6 +62600,13 @@ endpoint. ".driveAccessToken": "access_token={access_token}" ``` + In some guest access scenarios SharePoint may also expose a matching + v2.1 URL and token pair: + ```json + ".driveUrlV21": "{tenant_url}/v2.1/drives/{drive_id}", + ".driveAccessTokenV21": "access_token={access_token}" + ``` + #### Rclone configuration Use the extracted values to configure your remote: @@ -59601,6 +62619,14 @@ tenant_url = {tenant_url} drive_type = business ``` +If you use a v2.1 token, set the matching SharePoint API version: + +```ini +tenant_api_version = v2.1 +``` + +If `tenant_api_version` is omitted, rclone defaults to `v2.0`. + Since the exact expiry time cannot be determined from web traffic, set the expiry to a future date. Note that the token will eventually expire and you will need to repeat the process to obtain a new one. @@ -59644,10 +62670,11 @@ This can be useful with `rclone mount` and [rclone rc vfs/refresh recursive=true](https://rclone.org/rc/#vfs-refresh)) to very quickly fill the mount with information about all the files. -The API used for the recursive listing (`ListR`) only supports listing -from the root of the drive. This will become increasingly inefficient -the further away you get from the root as rclone will have to discard -files outside of the directory you are using. +Rclone asks for the delta listing of the directory being listed. Some +drives only support delta listings from the root of the drive, in +which case rclone lists the whole drive and discards the files outside +of the directory you are using, which is increasingly inefficient the +further away from the root you get. Some commands (like `rclone lsf -R`) will use `ListR` by default - you can turn this off with `--disable ListR` if you need to. @@ -59841,7 +62868,7 @@ Properties: The tenant URL for non-admin OneDrive access. -Set this to your SharePoint tenant URL to use the SharePoint v2.0 API +Set this to your SharePoint tenant URL to use the SharePoint API endpoint instead of the standard Microsoft Graph API. This allows accessing business OneDrive without admin consent. @@ -59858,6 +62885,22 @@ Properties: - Type: string - Required: false +#### --onedrive-tenant-api-version + +The SharePoint API version to use with tenant_url. + +Set this to the SharePoint API version matching the browser-extracted +access token. For example, use v2.1 with a driveAccessTokenV21 token. + +This only applies when tenant_url is set. + +Properties: + +- Config: tenant_api_version +- Env Var: RCLONE_ONEDRIVE_TENANT_API_VERSION +- Type: string +- Default: "v2.0" + #### --onedrive-chunk-size Chunk size to upload files with - must be multiple of 320k (327,680 bytes). @@ -59984,7 +63027,7 @@ Properties: Remove all versions on modifying operations. -Onedrive for business creates versions when rclone uploads new files +Onedrive 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. @@ -59992,9 +63035,6 @@ 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: @@ -60010,8 +63050,7 @@ Permanently delete files on removal. Normally files will get sent to the recycle bin on deletion. Setting this flag causes them to be permanently deleted. Use with care. -OneDrive personal accounts do not support the permanentDelete API, -it only applies to OneDrive for Business and SharePoint document libraries. +This works with OneDrive for Business, SharePoint document libraries, and OneDrive personal accounts, including free accounts. Properties: @@ -60057,12 +63096,17 @@ Properties: - Creates a read-write link to the item. - "embed" - Creates an embeddable link to the item. + - Only available in OneDrive personal. #### --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. +At the time of writing this works with OneDrive for Business and +OneDrive personal paid accounts. + +OneDrive personal free accounts can't set a password or an expiry time +(with --expire) on links. Properties: @@ -60161,21 +63205,12 @@ Setting this flag speeds up these things greatly: rclone size onedrive: rclone rc vfs/refresh recursive=true -**However** the delta listing API **only** works at the root of the -drive. If you use it not at the root then it recurses from the root -and discards all the data that is not under the directory you asked -for. So it will be correct but may not be very efficient. - -This is why this flag is not set as the default. - -As a rule of thumb if nearly all of your data is under rclone's root -directory (the `root/directory` in `onedrive:root/directory`) then -using this flag will be a big performance win. If your data is -mostly not under the root then using this flag will be a big -performance loss. - -It is recommended if you are mounting your onedrive at the root -(or near the root when using crypt) and using rclone `rc vfs/refresh`. +Rclone asks for the delta listing of the directory being listed. If +the drive only supports delta listings at the root of the drive (as +some older OneDrive for Business and SharePoint drives do) then +rclone lists from the root and discards all the data that is not +under the directory you asked for. So it will be correct but may not +be very efficient. Properties: @@ -60373,7 +63408,7 @@ Here are the possible system metadata items for the onedrive backend. | Name | Help | Type | Example | Read Only | |------|------|------|---------|-----------| -| btime | Time of file birth (creation) with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | N | +| btime | Time of file birth (creation) with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | N | | content-type | The MIME type of the file. | string | text/plain | **Y** | | created-by-display-name | Display name of the user that created the item. | string | John Doe | **Y** | | created-by-id | ID of the user that created the item. | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | @@ -60382,14 +63417,14 @@ Here are the possible system metadata items for the onedrive backend. | last-modified-by-display-name | Display name of the user that last modified the item. | string | John Doe | **Y** | | last-modified-by-id | ID of the user that last modified the item. | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | malware-detected | Whether OneDrive has detected that the item contains malware. | boolean | true | **Y** | -| mtime | Time of last modification with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | N | +| mtime | Time of last modification with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | N | | package-type | If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. | string | oneNote | **Y** | | permissions | Permissions in a JSON dump of OneDrive format. Enable with --onedrive-metadata-permissions. Properties: id, grantedTo, grantedToIdentities, invitation, inheritedFrom, link, roles, shareId | JSON | {} | N | | shared-by-id | ID of the user that shared the item (if shared). | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | shared-owner-id | ID of the owner of the shared item (if shared). | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | shared-scope | If shared, indicates the scope of how the item is shared: anonymous, organization, or users. | string | users | **Y** | -| shared-time | Time when the item was shared, with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | -| utime | Time of upload with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | +| shared-time | Time when the item was shared, with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | +| utime | Time of upload with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | See the [metadata](https://rclone.org/docs/#metadata) docs for more info. @@ -60487,11 +63522,6 @@ 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 @@ -60546,10 +63576,37 @@ rclone cleanup --interactive remote:path/subdir # interactively remove all old v rclone cleanup remote:path/subdir # unconditionally remove all old version for path/subdir ``` -**NB** Onedrive personal can't currently delete versions - ## Troubleshooting +### Pre-authenticated URLs + +Microsoft is [retiring pre-authenticated (tempauth) URLs](https://devblogs.microsoft.com/microsoft365dev/pre-authenticated-tempauth-urls-are-retiring-move-to-microsoft-entra-id-tokens-before-april-1-2027/) +in OneDrive for Business and SharePoint from April 1, 2027. + +**Upgrade to rclone v1.76 or later before April 1, 2027.** Earlier +versions rely on pre-authenticated URLs, so after that date their +downloads, chunked uploads and server-side copies will fail with +OneDrive for Business and SharePoint. Rclone v1.76 and later keep +working with the existing configuration, apart from the client +credentials flow with a client secret (see below). + +Rclone uses these URLs when downloading files, when uploading files +bigger than `--onedrive-upload-cutoff` in chunks and when doing +server-side copies. When SharePoint returns them without +pre-authentication rclone authenticates them with a SharePoint token +which it gets using the existing login, so no reconfiguration is +needed. OneDrive Personal is not affected. + +If rclone can't get a SharePoint token, or SharePoint refuses it, you +will see the error `SharePoint refused to authenticate a request`. In +this case rclone uploads files smaller than 250 MiB in a single +request instead and copies files by downloading and uploading them, +but bigger files can't be uploaded and downloads may fail. + +SharePoint does not accept tokens from the client credentials flow +which were got with a client secret, so this affects +`client_credentials` users. + ### Excessive throttling or blocked on SharePoint If you experience excessive throttling or is being blocked on SharePoint then @@ -60611,7 +63668,7 @@ 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: +at the WebDAV backend: ### invalid\_grant (AADSTS50076) @@ -60651,6 +63708,27 @@ Shared with me files is not supported by rclone ![in_my_files](https://i.imgur.com/0S8H3li.png "Screenshot (My Files)") ![rclone_mount](https://i.imgur.com/2Iq66sW.png "Screenshot (rclone mount)") +Listing such a shortcut may still fail with + +```text +invalidRequest: The provided drive id appears to be malformed, or does not represent a valid drive. +``` + +as the drive it points to can't always be read with the drive ID the +API supplies. `Personal Vault` is a shortcut of the same kind and +fails to list in the same way, though it reports +`invalidResourceId: ObjectHandle is Invalid`. + +A normal listing reports the error for that folder and carries on, so +the rest of the drive is still listed, and excluding the folder (for +example with `--exclude "/Personal Vault/**"`) avoids the error. + +A recursive listing with `--fast-list` stops at the first error, so +listing the root of a drive which has one of these shortcuts in it +will fail. Filters don't help here as the folder is listed by the +backend before the filters are applied - use `--disable ListR` (or +don't use `--fast-list`) on such a drive. + ### 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) @@ -61523,7 +64601,7 @@ Properties: - Config: encoding - Env Var: RCLONE_OOS_ENCODING - Type: Encoding -- Default: Slash,InvalidUtf8,Dot +- Default: Slash,CrLf,InvalidUtf8,Dot #### --oos-leave-parts-on-error @@ -62510,7 +65588,7 @@ Before you can use rclone with Sia, you will need to have a running copy of network (e.g. a NAS). Please follow the [Get started](https://sia.tech/get-started) guide and install one. -rclone interacts with Sia network by talking to the Sia daemon via [HTTP API](https://sia.tech/docs/) +rclone interacts with Sia network by talking to the Sia daemon via [HTTP API](https://docs.sia.tech/) 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). @@ -62720,6 +65798,7 @@ Commercial implementations of that being: - [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) +- [Infomaniak Swiss Backup](https://www.infomaniak.com/en/swiss-backup/cloud-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`. @@ -62856,7 +65935,7 @@ rclone sync --interactive /home/local/directory remote:container ### Configuration from an OpenStack credentials file -An OpenStack credentials file typically looks something something +An OpenStack credentials file typically looks something like this (without the comments) ```sh @@ -63032,6 +66111,14 @@ Properties: - OVH - "https://authenticate.ain.net" - Blomp Cloud Storage + - "https://swiss-backup01.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 01 + - "https://swiss-backup02.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 02 + - "https://swiss-backup03.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 03 + - "https://swiss-backup04.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 04 #### --swift-user-id @@ -63414,7 +66501,7 @@ 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. +investigate further with the `--dump bodies` flag. This may also be caused by specifying the region when you shouldn't have (e.g. OVH). @@ -64006,6 +67093,8 @@ Properties: Files bigger than this will be cached on disk to calculate hash if required. +Files of unknown size are always cached on disk. + Properties: - Config: hash_memory_limit @@ -65788,6 +68877,12 @@ the following characters are also replaced: Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8), as they can't be used in JSON strings. +Seafile stores file and directory names in Unicode NFC form whatever form +they are uploaded in, so rclone normalizes names to NFC before sending them. +Listings therefore always show NFC names, even for files created with +decomposed (NFD) names as macOS produces them. Library names are not +normalized as Seafile keeps them exactly as entered. + ### Seafile and rclone link Rclone supports generating share links for non-encrypted libraries only. @@ -66386,7 +69481,7 @@ correct, and support all features. 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](https://rclone.org/docs/#backend-path-to-dir]) +without a config file, e.g. an [on the fly](https://rclone.org/docs/#backend-path-to-dir) 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, @@ -66466,6 +69561,24 @@ 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. +### Restricted filename characters + +SFTP servers on Unix-like systems can store any character in a file name +except NUL and `/`, so by default only these are replaced: + +| Character | Value | Replacement | +| --------- |:-----:|:-----------:| +| NUL | 0x00 | ␀ | +| / | 0x2F | / | + +If the server runs on Windows, which can't store many more characters, +add the Windows restricted characters with `--sftp-encoding`, as in the +[FTP example](https://rclone.org/overview/#encoding-example-ftp): + +```text +--sftp-encoding "Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot" +``` + ### About command The `about` command returns the total space, free space, and used @@ -66846,7 +69959,7 @@ Properties: - Config: encoding - Env Var: RCLONE_SFTP_ENCODING - Type: Encoding -- Default: Slash,Del,Ctl,Dot +- Default: Slash,Dot #### --sftp-set-modtime @@ -67095,6 +70208,34 @@ Properties: - Type: bool - Default: false +#### --sftp-multithread-upload + +Set this to use multi-thread (multi-connection) uploads. + +Normally rclone uploads a single large file over one SFTP connection. +With this set rclone uploads large files over several SFTP connections +at once (one per chunk), which greatly improves throughput on high +latency links, the same way multi-thread downloads already work. Each +connection writes a different, non-overlapping byte range of the file, +so this requires a server that allows several handles to the same file +with writes at arbitrary offsets, which OpenSSH does. + +This is off by default because many SFTP servers only accept sequential +writes (for example some object storage backed SFTP gateways) and would +fail large uploads with "truncate failed" or "invalid offset" style +errors. + +This is ignored (uploads stay single-threaded) when +--sftp-disable-concurrent-writes or --sftp-connections is in use. + + +Properties: + +- Config: multithread_upload +- Env Var: RCLONE_SFTP_MULTITHREAD_UPLOAD +- Type: bool +- Default: false + #### --sftp-idle-timeout Max time before closing idle connections. @@ -67370,8 +70511,8 @@ Properties: On some SFTP servers (e.g. Synology) the paths are different for SSH and SFTP so the hashes can't be calculated properly. -You can either use [`--sftp-path-override`](#--sftp-path-override) -or [`disable_hashcheck`](#--sftp-disable-hashcheck). +You can either use [`--sftp-path-override`](#sftp-path-override) +or [`disable_hashcheck`](#sftp-disable-hashcheck). The only ssh agent supported under Windows is Putty's pageant. @@ -67380,13 +70521,13 @@ 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](http://www.isg.rhul.ac.uk/~kp/SandPfinal.pdf). +[in this paper](https://conferences.computer.org/sp/pdfs/sp/2009/oakland2009-01.pdf). SFTP isn't supported under plan9 until [this issue](https://github.com/pkg/sftp/issues/156) is fixed. Note that since SFTP isn't HTTP based the following flags don't work -with it: `--dump-headers`, `--dump-bodies`, `--dump-auth`. +with it: `--dump headers`, `--dump bodies`, `--dump auth`. Note that `--timeout` and `--contimeout` are both supported. @@ -67796,12 +70937,14 @@ Properties: SMB username. +Leave blank to use the current user name. + Properties: - Config: user - Env Var: RCLONE_SMB_USER - Type: string -- Default: "$USER" +- Required: false #### --smb-port @@ -67878,6 +71021,23 @@ Properties: Here are the Advanced options specific to smb (SMB / CIFS). +#### --smb-workstation + +Workstation name sent in NTLM authentication. + +The NetBIOS name sent as the client workstation in the NTLM AUTHENTICATE +message. Some servers (e.g. domain-joined Windows servers with per-account +workstation restrictions or NTLM allow-lists) require this to match a +specific name. Leave blank to send no workstation name (the default). + + +Properties: + +- Config: workstation +- Env Var: RCLONE_SMB_WORKSTATION +- Type: string +- Required: false + #### --smb-idle-timeout Max time before closing idle connections. @@ -68074,7 +71234,7 @@ Side by side comparison with more details: To make a new Storj configuration you need one of the following: - Access Grant that someone else shared with you. -- [API Key](https://documentation.storj.io/getting-started/uploading-your-first-object/create-an-api-key) +- [API Key](https://storj.dev/learn/concepts/access/access-grants/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: @@ -69482,7 +72642,9 @@ 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. +with them. With Nextcloud, rclone asks the server to calculate the SHA1 +of uploads which had no hash to send, such as streamed uploads, and +after setting the modification time, which discards the stored hash. ### Standard options @@ -69610,6 +72772,13 @@ 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"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. The exception is the directory listing and file +download requests when auth_redirect is set, as that keeps all +credentials across redirects. + Properties: @@ -69745,7 +72914,7 @@ ownCloud supports modified times using the `X-OC-Mtime` header. This is configured in an identical way to ownCloud. Note that Nextcloud initially did not support streaming of files (`rcat`) whereas -ownCloud did, but [this](https://github.com/nextcloud/nextcloud-snap/issues/365) +ownCloud did, but [this](https://github.com/nextcloud-snap/nextcloud-snap/issues/365) seems to be fixed as of 2020-11-27 (tested with rclone v1.53.1 and Nextcloud Server v19). @@ -69848,7 +73017,7 @@ Rclone uses the "Last Modified" datetime property to compare your documents: ## Rclone Use this option if you are hosting remotes over WebDAV provided by rclone. -Read [rclone serve webdav](commands/rclone_serve_webdav/) for more details. +Read [rclone serve webdav](https://rclone.org/commands/rclone_serve_webdav/) for more details. rclone serve supports modified times using the `X-OC-Mtime` header. @@ -70051,6 +73220,16 @@ are replaced. Invalid UTF-8 bytes will also be [replaced](https://rclone.org/overview/#invalid-utf8), as they can't be used in JSON strings. +### Application folder + +If you registered your own OAuth application with Yandex and only granted +it the "Application Folder" permission (`cloud_api:disk.app_folder`) +instead of full disk access, then you must set the `app_folder` option to +`true`. Yandex Disk requires paths to be addressed with an `app:/` prefix +instead of the usual `disk:/` prefix when using this restricted scope, and +rclone will return a 403 Forbidden error on every request if this option +isn't set correctly for the token in use. + ### Standard options @@ -70194,6 +73373,26 @@ Properties: - Type: Duration - Default: 0s +#### --yandex-app-folder + +Use the application folder as the root. + +If you registered your own OAuth application with Yandex with only +the "Application Folder" permission (cloud_api:disk.app_folder) +instead of full disk access, then rclone needs to address paths with +the "app:/" prefix instead of the usual "disk:/" prefix, otherwise +all requests fail with a 403 Forbidden error. + +Set this to true if your OAuth token only has access to the +application folder. + +Properties: + +- Config: app_folder +- Env Var: RCLONE_YANDEX_APP_FOLDER +- Type: bool +- Default: false + #### --yandex-description Description of the remote. @@ -70871,6 +74070,9 @@ $ rclone -L ls /tmp/a 6 b/one ``` +Symlinks which point to a parent directory would loop forever, so +rclone reports them as errors and skips them. + #### --local-links, --links, -l Normally rclone will ignore symlinks or junction points (which behave @@ -70927,6 +74129,9 @@ $ tree /tmp/b └── file2 -> /home/user/file3 ``` +A `.rclonelink` file whose contents are too long to be a path (more +than 128 KiB) is refused rather than turned into a symlink. + However, if copied back without '-l' ```console @@ -71235,6 +74440,13 @@ deduplicated by default (i.e. having two identical files does not consume more storage than having just one.) However, for use cases where data redundancy is preferable, --local-no-clone can be used to disable cloning and force "deep" copies. +Cloning also preserves macOS-specific metadata such as extended attributes, +which a normal copy does not, so this metadata is lost when cloning is disabled. + +If the destination file already exists, cloning replaces it with a new file, +even with --inplace, so hard links to it are broken. Use --local-no-clone to +update existing files in place. + Currently, cloning is only supported when using APFS on macOS (support for other platforms may be added in the future.) @@ -71324,10 +74536,10 @@ Properties: Make out-of-space errors fatal during transfers. -When enabled, an ENOSPC error during a write returns a fatal error so -that rclone aborts rather than retrying the operation. Useful for -backup scripts that should halt loudly on a full disk rather than spin -retrying. +When enabled, an out of space error while writing, creating a directory, +or creating a file returns a fatal error so that rclone aborts rather +than retrying the operation. Useful for backup scripts that should halt +loudly on a full disk rather than spin retrying. Properties: @@ -71425,8 +74637,10 @@ Metadata is supported on files and directories. When restoring metadata with `--metadata` rclone applies the "mode", "uid" and "gid" from the source. These come from the source remote which may not be trusted, so restoring metadata as root from an -untrusted source can change file ownership and is not recommended. The -setuid, setgid and sticky bits are not restored by default - see the +untrusted source can change file ownership and is not recommended. A +user other than root keeps its own uid and sets the gid only to a group +it is a member of, as rsync does. The setuid, setgid and sticky bits are +not restored by default - see the `--local-metadata-restore-special-bits` flag. Here are the possible system metadata items for the local backend. @@ -71482,6 +74696,644 @@ Options: # Changelog +## v1.76.0 - 2026-11-06 + +[See commits](https://github.com/rclone/rclone/compare/v1.75.0...v1.76.0) + +- New backends + - [Dosya](https://rclone.org/dosya/) (Kaya) + - [Infomaniak kDrive](https://rclone.org/kdrive/) (Guillaume MALLERET) +- New S3 Providers + - [Autonomys Auto Drive](https://rclone.org/s3/#autonomys) (Jim Counter) + - [Clever Cloud Cellar](https://rclone.org/s3/#clever-cloud-cellar) (David Legrand) + - [Infomaniak Swiss Backup](https://rclone.org/s3/#infomaniak) (Louis) + - [Neon Object Storage](https://rclone.org/s3/#neon) (Rishi Raj Jain) + - [RelAix.Storage](https://rclone.org/s3/#relaix) (mygrexit) +- New commands + - [index](https://rclone.org/commands/rclone_index/): Write static directory listings into a remote (Nick Craig-Wood) +- Security + - build + - Disable Multipath TCP listeners by default to mitigate CVE-2026-98432 (Nick Craig-Wood) + - Fix multiple CVEs including CVE-2026-111943 by upgrading to go1.27.3 (Nick Craig-Wood) + - Update `golang.org/x/net` to v0.62.0 to fix multiple CVEs (Nick Craig-Wood) + - Update `github.com/andybalholm/brotli` to v1.2.7 to fix CVE-2026-111497 (Nick Craig-Wood) + - fshttp: Refuse HTTPS to HTTP redirects unless `--allow-https-downgrade` GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - lib/http: Stop `--htpasswd` and `--user` revealing which usernames exist through timing GHSA-hwj7-wp9g-wrv9 CVE-PENDING (Nick Craig-Wood) + - local + - Fix user metadata escaping the root through a planted symlink GHSA-r5wv-vqqh-2r9c CVE-PENDING (Nick Craig-Wood) + - Fix MkdirMetadata finding directories outside the root through a planted symlink (Nick Craig-Wood) + - Fix Remove and Rmdir deleting outside the root through a planted symlink (Nick Craig-Wood) + - Fix DirMove creating the destination parent through a planted symlink (Nick Craig-Wood) + - netstorage: Fix API auth headers leaking to other hosts on redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - rc + - Limit request size when the rc server has no authentication GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - Reject unauthorised and unknown calls before reading the request GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - seafile: Fix HTTPS to HTTP redirects leaking credentials GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - serve: Make auth proxy revocation take effect within 5 minutes GHSA-vmgx-g9c5-669p CVE-PENDING (Nick Craig-Wood) + - serve sftp + - Fix auth proxy letting a public key be used as a password GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - Fix auth proxy running for public keys the client can't use GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - swift + - Fix auth token leaking to other hosts or over plaintext on redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - Fix password being resent to another host on auth redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - ulozto: Fix auth tokens leaking on redirects from download links GHSA-3xpx-hjg2-vrjh CVE-PENDING (Nick Craig-Wood) +- New Features + - accounting + - Stop `--max-transfer` overshooting the limit (Nick Craig-Wood) + - Add "Updated dirs" count of directory modtime/metadata updates to the stats (Nick Craig-Wood) + - batcher: Log when committing uploads has finished (phatlc) + - bisync + - Make `--max-delete` aware of `--track-renames` (Morax) + - Fall back to `--download` when a checksum is missing (nielash) + - Reject `--max-delete` above 100 (nielash) + - build + - Update to go1.27 and make go1.26 the minimum required version (Nick Craig-Wood) + - Update all dependencies (Nick Craig-Wood) + - cmd: Complete enum flag values from their choices (Demiao Huang) + - config: Only run `--password-command` once when using `--daemon` (phatlc) + - doc fixes (ashwinibailangadi, ferrumclaudepilgrim, frodleTian, FTCHD, gomitrah, Nick Craig-Wood, qodelicious, Satvik Mishra, ZainnQureshii) + - docker: Make container user UID and GID configurable via build ARGs (Vaibhav Mashal) + - filter + - Speed up large `--include-from` lists of directories (kaii9) + - Make `[!...]` in globs a negated character class (kevin9327) + - Make `[^...]` in globs exclude `/` and document it (kevin9327) + - fs + - Reject sizes too large for SizeSuffix instead of silently disabling the limit (KBS) + - Stop writing config for on the fly and environment variable remotes into the config file (Nick Craig-Wood) + - Reject durations like 300y that overflow instead of wrapping (kevin9327) + - Accept multi-unit relative times like 1d12h in Time options (kevin) + - Reject NaN sizes and CountSuffix values that overflow (kevin9327) + - Reject `--bwlimit` times without a colon or with signed digits (kevin9327) + - Reject NaN durations instead of wrapping (Soujas K) + - Add MIME type for JPEG XL (.jxl) files (Seth Westphal) + - gui + - Take the GUI out of beta (Nick Craig-Wood) + - Update embedded release to 1.2.1 (Nick Craig-Wood) + - hash: Add CRC-32C (Castagnoli) support (Dirk Petersen) + - index: Add partial runs which only re-index changed directories (Nick Craig-Wood) + - lib/http + - Return 416 for ranges `--rc-serve` and serve restic can't satisfy (Rohit Behera) + - Replace `github.com/abbot/go-http-auth` with built in htpasswd support (Nick Craig-Wood) + - Accept the Basic auth scheme in any case (kevin) + - lib/proxy: Send the decoded user and password in Proxy-Authorization (kevin) + - lib/transform: Make titlecase capitalise words instead of upper-casing them (kevin) + - ncdu: Show progress and the item count when deleting a selection (Lev Devaev) + - operations + - Check checksums in rcat with known size (phatlc) + - Speed up checksum by hashing files in parallel (Teddy Tennant) + - Fall back to a single stream when a multi-thread source ignores ranges (Morax) + - Show directory operations in the `--progress` display (Nick Craig-Wood) + - Add `operations/getfile` remote control API endpoint (Hakan İSMAİL) + - Make `--immutable` work with copyto, moveto and single file copy (phatlc) + - Respect `--backup-dir` in deletefile (Cao Yuhang) + - rc + - Deprecate `--rc-web-gui` flag (Nick Craig-Wood) + - Add sync report parameters to `sync/sync`, `sync/copy` and `sync/move` (Nick Craig-Wood) + - rest: Reject negative sizes in HTTP response headers (Yousef Issa) + - serve http + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - serve s3 + - Report the object's modtime as Last-Modified after a PUT (kevin9327) + - Support changing object tags (Nick Craig-Wood) + - Quote the ETags of objects in listings (Nick Craig-Wood) + - Support listing with delimiters other than "/" (Nick Craig-Wood) + - Support directory markers and refuse file/directory conflicts (Nick Craig-Wood) + - Make the ETag of multipart uploads agree with HEAD and support partNumber (Nick Craig-Wood) + - Make conditional writes atomic against other writes through the server (Nick Craig-Wood) + - Make the ETag returned on upload agree with HEAD for any `--etag-hash` (Nick Craig-Wood) + - List empty directories as directory markers (Nick Craig-Wood) + - Allow copying directory markers (Nick Craig-Wood) + - Remove the directories made for a failed upload (Nick Craig-Wood) + - Keep the MD5 ETag of objects on remotes without MD5 (Nick Craig-Wood) + - Don't read directories needlessly when listing with a delimiter (Nick Craig-Wood) + - Don't compute the MD5 of multipart uploads unless the ETag is MD5 (Nick Craig-Wood) + - List the directory markers put for directories holding other keys (Nick Craig-Wood) + - Let a failed CompleteMultipartUpload be retried (Nick Craig-Wood) + - List objects with the storage class they were put with (Nick Craig-Wood) + - Add `--directory-markers` to list every directory as a marker (Nick Craig-Wood) + - Remove a directory with its last key after its marker is deleted (Nick Craig-Wood) + - Make `--no-cleanup` a deprecated alias of `--directory-markers` (Nick Craig-Wood) + - Document which S3 features are supported and the design goals (Nick Craig-Wood) + - serve webdav + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - size: Include source in JSON output (Jiacheng Xu) + - sync: Add pattern-based transfer ordering (Shurong Cao) + - touch: Parse documented timestamp formats (Nicholas Velten) +- Bug Fixes + - accounting: Fix totalBytes counting server-side copies and moves twice (ilya lavrenov) + - bisync + - Fix conflict winner missing from listings when Path2 wins (nielash) + - Fix `--conflict-resolve` comparing a zero size or modtime (nielash) + - Fix endless retry loop for skipped files (nielash) + - Fix listings ignoring a modtime less than 1s older (nielash) + - Fix rc ignoring global `--dry-run` and `--max-delete` settings (nielash) + - Fix rc ignoring legacy backupdir1/2 and invalid values (nielash) + - Fix internal error when a conflict rename reuses deleted names (TastyHeadphones) + - fs: Fix durations like 1d12h being rejected (Rohit Behera) + - lib/encoder: Fix decoding a trailing character after an escaped quote (kevin9327) + - list: Fix ext sort error sometimes being ignored at the end of a listing (Nick Craig-Wood) + - ncdu: Update to tcell v3 which fixes duplicated keys on Windows (Nick Craig-Wood) + - operations + - Fix making a directory with modtime asking twice with `--interactive` (Nick Craig-Wood) + - Fix case- or Unicode-only renames deleting the file (nielash) + - Fix moving a file onto its own name deleting it (nielash) + - Fix cat `--offset` before the start of a file printing its end (b84330808) + - Fix oversized getfile tail requests (唐僧洗发用飘柔) + - rc: Fix LogLevel in `_config` being ignored (Nick Craig-Wood) + - rest: Fix retries reading the request body after the request has finished (Nick Craig-Wood) + - serve dlna: Fix crash on Browse with a negative StartingIndex or RequestedCount (phatlc) + - serve restic: Fix temporary errors confusing restic into leaving locks behind (Azhar) + - serve s3 + - Update to gofakes3 v0.0.8 which fixes 500 errors with go1.27 (Nick Craig-Wood) + - Upgrade gofakes3 to v0.0.11 to fix IsTruncated and Docker Distribution Registry (DEVN) + - Fix buckets being undeletable after an aborted multipart upload (Nick Craig-Wood) + - Fix CopyObject metadata including the source's and an mtime (Nick Craig-Wood) + - serve sftp: Fix rmdir deleting a file instead of returning an error (phatlc) + - sync + - Fix directory modtimes being set twice (Nick Craig-Wood) + - Fix `--delete-empty-src-dirs` disabled by a prior error in a reused stats group (ghwany) + - walk: Fix duplicate directories with `--fast-list` when directories are listed after their contents (Nick Craig-Wood) +- Mount + - Fix VFS instance leaks on mount failures and unmounts (Hakan İSMAİL) +- VFS + - Preserve shrinking truncate on uncached files (47th) + - Fix crash renaming a directory while the dir cache expires (Shreyansh Jain) + - Fix virtual entries leak in removed directory (Biagio Peccerillo) + - Fix renamed items listed twice after a case or Unicode-only match (nielash) + - Fix uploads never starting while a dirty file keeps being read (Neil Cawse) +- Local + - Speed up default checksummed copies by writing in larger blocks (Dominik Sander) + - Make out of space errors fatal during multi-thread transfers (ferrumclaudepilgrim) + - Stop `--copy-links` following symlink loops (phatlc) + - Limit the size of symlink targets read from .rclonelink files (Nick Craig-Wood) + - Fix server-side copy on macOS when the destination exists (Ayush Sharma) + - Set only the ownership a non-root user may set (Dirk Petersen) +- Crypt + - Fix nil pointer panic in ObjectInfo.Hash (fixfon) +- Archive + - Read symlinks stored in zip and squashfs archives (Lev Devaev) + - Fix reading an archive in the root of a remote (Oshino Penguin) +- Azure Blob + - Enable on Solaris (acoeur) + - Fix directories on storage accounts with hierarchical namespace (Nick Craig-Wood) + - Fix NewObject on a directory returning "is not a regular file" (Nick Craig-Wood) + - Fix listing a file as a directory on hierarchical namespace accounts (Nick Craig-Wood) + - Fix sync at the root failing on soft deleted containers (Ludovic Bondon) +- Box + - Reuse multipart upload part buffers via the global pool (Nick Craig-Wood) + - Fix ~ and environment variables not being expanded in `box_config_file` (Nick Craig-Wood) +- Chunker + - Clean stale chunks after server-side overwrite (hahahahahayesyeseys) +- Compress + - Buffer small uploads in the global memory pool (Nick Craig-Wood) + - Stop buffering the compressibility check output in memory (Nick Craig-Wood) +- Drime + - Fix endless listing of directories with more than 20,000 entries (Maksym Tymoshyk) +- Drive + - Fetch metadata permissions concurrently (Loi Nguyen) + - Reuse resumable-upload chunk buffers via the global memory pool (SillyZir) + - Stop a fast-list error from hanging the sync (Sash) +- Dropbox + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- Filelu + - Reuse multipart upload buffers via the global pool and retry failed parts (Nick Craig-Wood) + - Encode multipart init paths (wjc) +- FTP + - Discard connections that fail with non-FTP errors (Daniel Bae) + - Fix ranged reads failing when the server answers 425 to an early close (Robert Kubiś) +- Hasher + - Keep cached hash when only the modtime changes (Aniket) +- Hidrive + - Stop copying every upload chunk a second time (Nick Craig-Wood) + - Buffer the start of each upload from the global memory pool (Nick Craig-Wood) + - Reuse chunked upload buffers via the global memory pool (Nick Craig-Wood) + - Buffer small file updates from the global memory pool (Nick Craig-Wood) + - Fix truncated file left behind when an upload hits `--max-transfer` (Nick Craig-Wood) +- HTTP + - Add metadata defaults for `--http-no-head` (Giridhar) +- Huaweidrive + - Build small uploads in pooled memory instead of a growing buffer (Nick Craig-Wood) + - Reuse resumable-upload chunk buffers via the global pool (Nick Craig-Wood) + - Fix creating, copying and renaming files with non-ASCII names (Nick Craig-Wood) +- Iclouddrive + - Mark the backend as case insensitive (berce) +- Imagekit + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) +- Jottacloud + - Buffer MD5 pre-reads in the global memory pool (Nick Craig-Wood) + - Fix server-side copy onto a trashed file failing as corrupted (Nick Craig-Wood) + - Fix server-side copy onto a trashed file keeping the old name case (Nick Craig-Wood) + - Fix authentication with whitelabel services elkjop and elko (albertony) + - Fix traditional authentication failing with invalid_client (albertony) +- Linkbox + - Buffer the hashed 10 MiB file prefix in the global memory pool (Nick Craig-Wood) +- Mailru + - Buffer speedup hashing in the global memory pool and fix upload retries (Nick Craig-Wood) +- Onedrive + - OneDrive for Business and SharePoint users must upgrade to v1.76+ before April 1, 2027 (Nick Craig-Wood) + - Authenticate SharePoint downloads, uploads and copies after tempauth retirement (Nick Craig-Wood) + - Return an error if a ranged download doesn't return the requested range (Nick Craig-Wood) + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) + - Allow `--onedrive-upload-cutoff` up to the documented limit of 250 MiB (Can Arslan) + - Add configurable SharePoint tenant API version (Mattias Michaux) + - Make `--onedrive-delta` quicker when not listing from the drive root (Nick Craig-Wood) + - Keep the delta token when a ChangeNotify poll fails (xiaozou-wine) + - Show the size of directories in listings (GingerAdonis) + - Poll async copy status with the configured HTTP client (Soujas K) +- Opendrive + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- Oracleobjectstorage + - Add server-side object moves (tomaszni) + - Encode carriage returns and line feeds (tomaszni) + - Purge objects in batches (tomaszni) + - Retry 409 ConcurrentObjectUpdate errors (berce) +- Pcloud + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) +- Pikpak + - Share upload chunk buffers with the global memory pool (Nick Craig-Wood) + - Use pooled memory for the gcid hash buffer and spool unknown-size uploads to disk (Nick Craig-Wood) + - Fix downloads that return an HTTP error page as the file (Cestercian) + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + - Fix uploads failing when the server is slow to complete them (Nick Craig-Wood) +- Putio + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- S3 + - Avoid buffering Object Lock uploads when the source MD5 is known (Nick Craig-Wood) + - Add backend link command with signed response header overrides (eliotee) + - Add Fastly EU Central 1 region (Leon Brocard) + - Add the MD5 of multipart chunks to the debug log (interested.tortoise) + - Report the real storage class when an object needs restoring (Dirk Petersen) + - Speed up multi-thread uploads by checksumming chunks in 1 MiB reads (Roman Butor) + - Add IT-MIL region to Scaleway (Alessio Margelli) + - Add missing Huawei OBS regions (Enbiya Göral) + - Fix rmdir of the root directory with `--s3-directory-markers` (Nick Craig-Wood) + - Fix presigned URLs for GCS, Linode and Ceph (Leon Brocard) +- Seafile + - Fix operations on files whose names are not in Unicode NFC form (Fred) + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + - Fix double slash in the URL when getting a 2FA token (Nick Craig-Wood) +- SFTP + - Implement multi-thread uploads (Splainte) + - Fix data race when using `--sftp-ssh` (Dirk Petersen) + - Fix hash check for names starting with "-" with relative `--sftp-path-override` (Dirk Einecke) + - Fix sync deleting files with control characters in their names (nielash) + - Fix hashing files with a newline in their name on rsync.net (Nick Craig-Wood) +- Shade + - Stop copying each upload chunk into a second heap buffer (Nick Craig-Wood) +- Smb + - Add workstation field to smb backend (Kalin Stoyanov) +- Swift + - Add Infomaniak Swiss Backup provider (Louis) +- WebDAV + - Reject ranged responses which ignore the range (Morax) + - Retry Nextcloud chunk uploads individually (Stochastic) + - Fix Nextcloud public share access by sending X-Requested-With (drakeo338) + - Fix memory leak uploading to Infinite Scale (jxj) +- Yandex + - Add `app_folder` option to support `cloud_api:disk.app_folder` OAuth scope (Sanjay Kanth A) +- Zoho + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + +## v1.75.2 - 2026-10-09 + +[See commits](https://github.com/rclone/rclone/compare/v1.75.1...v1.75.2) + +- Security + - b2: Fix account token and SSE-C key leaking on redirects from `--b2-download-url` GHSA-gpw7-77cq-9f72 CVE-2026-116196 (Nick Craig-Wood) + - build + - Fix multiple CVEs by upgrading to go1.26.9 (Nick Craig-Wood) + - CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder race + - CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to Trailer headers + - CVE-2026-97031: crypto/tls: reject malformed ECH outer extension references + - CVE-2026-94444: cmd/go: checksum bypass for golang.org/fips140 + - CVE-2026-94447: cmd/go: checksum database bypass for golang.org/toolchain + - CVE-2026-94448: html/template: reset context tracking on consecutive template expressions + - CVE-2026-97030: html/template: recognize |yield| as regexp preceder keyword + - CVE-2026-94440: net/textproto, mime/multipart: memory limit bypass when parsing MIME headers + - CVE-2026-56866: net/http: HTTP/1 client connection desynchronization after CONNECT rejection + - CVE-2026-94439: net/http: HTTP/1 server connection desynchronization after 2xx CONNECT response + - CVE-2026-78669: net/http: excessive CPU consumption from repeated initial window changes + - CVE-2026-78660: net/http: HTTP/2 transport accepts malformed framing-related headers + - CVE-2026-56857: os: Root.Mkdir(All) can follow junctions out of the root on Windows + - CVE-2026-78667: net/http: lack of limit on size of parsed Range headers + - CVE-2026-78663: net/http: double flow control refund on HTTP/2 server streams + - Update golang.org/x/net to v0.60.0 to fix multiple CVEs (Nick Craig-Wood) + - CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to Trailer headers + - CVE-2026-78669: net/http: excessive CPU consumption from repeated initial window changes + - CVE-2026-78663: net/http: double flow control refund on HTTP/2 server streams + - CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder race + - Update google.golang.org/grpc to fix CVE-2026-84445 (dependabot[bot]) + - CVE-2026-84445: xds: server panic on a request missing both :authority and Host headers + - fshttp: Drop `--header` values over HTTP after HTTPS downgrade GHSA-rrwf-2qr6-p832 CVE-PENDING (Nick Craig-Wood) + - http: Stop a path starting with // moving the remote to another host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) + - lib/http: Require authentication for OPTIONS requests GHSA-gj73-fh6v-92fj CVE-2026-116193 (Nick Craig-Wood) + - local: Fix .rclonelink names escaping the root with `--links` GHSA-55qp-jrwr-x827 CVE-2026-116195 (Nick Craig-Wood) + - netstorage + - Stop a path starting with // moving the remote to another host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) + - Stop a listing resume token moving signed requests to another host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) + - pcloud + - Fix OAuth config accepting callbacks without state GHSA-hvpr-p4pv-4f46 CVE-2026-116194 (Nick Craig-Wood) + - Only accept pCloud hosts from the hostname in the OAuth callback GHSA-hvpr-p4pv-4f46 (Nick Craig-Wood) + - selfupdate + - Fix hash check trusting unsigned data in the signed SHA256SUMS GHSA-w33h-3qgq-8mv8 CVE-2026-116189 (Nick Craig-Wood) + - Fix release verification instructions trusting unsigned hashes GHSA-w33h-3qgq-8mv8 (Nick Craig-Wood) + - serve nfs: Fix path traversal by refusing unsafe file names in the VFS GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) + - serve s3 + - Fix presigned URL being turned into a copy of any object GHSA-w3h7-jxxq-vfrp CVE-PENDING (Nick Craig-Wood) + - Stop auth proxy users listing or using each other's multipart uploads and metadata GHSA-35g6-9fjv-rmx5 CVE-2026-116187 (Nick Craig-Wood) + - Fix multipart buffer limits being bypassed by overflowing part sizes GHSA-qjw8-8hmp-c3m6 CVE-2026-116188 (Nick Craig-Wood) + - Add `--multipart-max-uploads` to limit uploads in progress (Nick Craig-Wood) + - Add `--multipart-streaming-buffer-total` to limit memory across uploads (Nick Craig-Wood) + - Add `--metadata-max-objects` to limit the metadata kept in memory (Nick Craig-Wood) + - serve webdav: Fix path traversal above the served directory GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) + - webdav: Fix headers option leaking to other hosts on redirect GHSA-3rqf-7h69-gg5v CVE-2026-116190 (Nick Craig-Wood) +- Bug Fixes + - accounting + - Stop averaging when the last check finishes (Kunpeng Xie) + - Keep speed averaging active when transfers overlap (kaii9) + - dedupe: Fix rename mode giving up after 100 names and make it faster (Nick Craig-Wood) + - doc fixes (Dhevenddra K G, enkvadrat, GhostCoder6969, James Truitt, maximilize, n4n5, Nick Craig-Wood, PSR94, Rohit Behera, shaurya, subomi) + - docker: Fix files uploaded with the wrong mime type (hsdfat) + - fs + - Fix about showing a negative total when a quota reaches the int64 maximum (youdie006) + - Fix bandwidth limits below 1 KiB being multiplied by 1024 (Roland) + - Fix `--bwlimit` timetables written out of order using the wrong limit (Rohit Behera) + - Make BwTimetable.Set replace the timetable instead of appending to it (youdie006) + - Retry "network is unreachable" and "network is down" errors (nielash) + - fserrors: Fix out of space detection on Windows (ferrumclaudepilgrim) + - lib/rest: Limit the size of HTTP response bodies read into memory (Nick Craig-Wood) + - log: Fix race when adding a log output while logging (Nick Craig-Wood) + - oauthutil: Fix Renew.Shutdown nil timer panic and race (TastyHeadphones) + - operations + - Stop `--copy-dest` replacing files with `--immutable` (phatlc) + - Fix ignored error in rcat probe reads (Wang Chencheng) + - Fix hang when deleting files and a fatal error occurs (Nick Craig-Wood) + - Fix hang and lost context when moving a directory file by file (Nick Craig-Wood) + - Don't sleep for a Retry-After error when the transfer is cancelled (Nick Craig-Wood) + - rc + - Make job/status and job/list require authentication (Nick Craig-Wood) + - Fix rc API accepting an out of range number and overflowing 64 bits (KBS) + - Reject out of range integer parameters instead of truncating them (Nick Craig-Wood) + - Fix large numeric parameters being rejected on 32 bit builds (Jeremy Schoemaker) + - selfupdate: Fix `--version X.Y` depending on ./ in the download site links (Nick Craig-Wood) + - serve + - Fix `--auth-proxy` stopping VFS cache uploads after 5 minutes (Nick Craig-Wood) + - Fix `--auth-proxy` backends never being shut down after simultaneous logins (Nick Craig-Wood) + - serve dlna: Log unescaped paths (phatlc) + - serve docker: Fix volume path being lost when the plugin restarts (phatlc) + - serve ftp + - Fix transfers failing after 5 minutes with `--auth-proxy` (Nick Craig-Wood) + - Fix VFS leak when the server fails to start (Nick Craig-Wood) + - serve http + - Fix downloads failing after 5 minutes with `--auth-proxy` (Nick Craig-Wood) + - Escape filename in zip download Content-Disposition header (Harsh Raj Singhania) + - serve restic + - Fix repositories named data (kaii9) + - Prevent concurrent append-only overwrites (Vasek Sraier) + - serve s3 + - Apply the multipart upload limits and `--metadata-max-objects` to each user separately (Nick Craig-Wood) + - Stream in-order multipart parts without buffering them (Nick Craig-Wood) + - Start the upload to the backend on the first multipart part (Nick Craig-Wood) + - Don't buffer re-uploads of multipart parts already streamed (Nick Craig-Wood) + - Count buffered multipart parts in whole memory pages (Nick Craig-Wood) + - Time out multipart parts waiting for buffer space (Nick Craig-Wood) + - Limit the memory requests can use (Nick Craig-Wood) + - Forget expired multipart uploads completely (Nick Craig-Wood) + - Forget the metadata of deleted objects (Nick Craig-Wood) + - List objects lazily so paging a deep hierarchy is fast (Nick Craig-Wood) + - Fix multipart upload corruption if the backend write of an early part fails (Nick Craig-Wood) + - Fix uploads failing when the auth proxy expires the user's backend (Nick Craig-Wood) + - Fix stale metadata being returned for objects changed elsewhere (Nick Craig-Wood) + - Fix `--etag-hash auto` crashing or using the wrong hash with `--auth-proxy` (Nick Craig-Wood) + - Fix CopyObject of a missing object not returning NoSuchKey (Nick Craig-Wood) + - Fix log messages with bad format strings (Nick Craig-Wood) + - Document memory use and bring the docs up to date (Nick Craig-Wood) + - serve webdav + - Fix transfers failing after 5 minutes with `--auth-proxy` (Nick Craig-Wood) + - Fix crash when the server fails to start (Nick Craig-Wood) + - Escape filename in zip download Content-Disposition header (Harsh Raj Singhania) + - vfscache: Fix hang when the cache cleaner is disabled (ferrumclaudepilgrim) +- Mount + - Fix `--daemon` failing when `--rc` is enabled (somaz) + - Ignore com.apple.* xattrs on the macOS FSKit backend (Eugene) +- VFS + - Fix reads returning zeros after a file changes during handle caching (Neil Cawse) + - Stop setting a file's modtime from discarding its cached data (Neil Cawse) + - Fix crash reading the metadata of a file which is being written (Nick Craig-Wood) + - Fix a VFS being reused while it is being shut down (Nick Craig-Wood) + - Fix AddVirtual ignoring isDir (phatlc) + - Stop `--links` objects called "...rclonelink" appearing as ".." in directory listings (Nick Craig-Wood) +- Local + - Fix directories named *.rclonelink being treated as links with `--links` (Nick Craig-Wood) +- Archive + - Fix corrupt listings when listing a zip directory more than once (Nick Craig-Wood) + - Fix zip file entries named for a directory causing confusion (Nick Craig-Wood) + - Fix listing entries with a leading slash as if they were in the root (Nick Craig-Wood) + - Fix crash when creating archive to stdout (Vladimir Babin) + - Fix a squashfs path to a single file listing its whole directory (Nick Craig-Wood) +- Azure Blob + - Use the released Azure SDK for Apache Arrow listing (Nick Craig-Wood) +- Box + - Fix log messages with bad format strings (Nick Craig-Wood) +- Chunker + - Fix panic listing a directory after an interrupted upload with meta_format none (Nick Craig-Wood) +- Compress + - Fix crash on ranged reads when gzip metadata is corrupted (Acts1631) +- Drime + - Fix server-side copy over an existing file leaving a "name (1)" copy (Nick Craig-Wood) + - Fix deleted files and directories still being listed with hard_delete (Nick Craig-Wood) +- Drive + - Document the Branding step needed to publish your own client_id (Sanjay Kanth A) +- Dropbox + - Fix shared folder mount for roots nested more than one level deep (phatlc) + - Match shared-folder and received-file names case-insensitively (phatlc) +- Filescom + - Fix corrupted uploads after a retried upload error (Nick Craig-Wood) + - Document that names with / or \ in can't be stored (Nick Craig-Wood) +- HTTP + - Fix crash when the server fails to start (Nick Craig-Wood) +- Iclouddrive + - Fix potential crash looking up items (Nick Craig-Wood) +- Imagekit + - Fix potential crash in rmdir and purge (Nick Craig-Wood) +- Internxt + - Fix lookups of files starting with a dot and dropped uploads (jzunigax2) + - Fix sync with `--backup-dir` or `--suffix` deleting the backed up file (Nick Craig-Wood) + - Fix server-side moves failing with "Not Found" or "already exists" (Nick Craig-Wood) + - Fix "directory not empty" and stale directories after moves and deletes (Nick Craig-Wood) + - Fix server-side directory move failing after a gateway timeout (Nick Craig-Wood) +- Onedrive + - Update docs for versions, links and time precision on personal accounts (Nick Craig-Wood) + - Document that shared with me shortcuts may fail to list on personal (Nick Craig-Wood) + - Update `--onedrive-hard-delete` docs to mention personal account support (foecmke) +- Oracleobjectstorage + - Fix SSE-C server-side copies (tomaszni) + - Upload empty streams without multipart (tomaszni) +- Pixeldrain + - Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +- Premiumizeme + - Fix uploading files with ";" in their names (Nick Craig-Wood) +- S3 + - Disable signing Accept-Encoding for Ceph and Linode (Aditya) + - Fix version-at listings with URL encoded keys (jxj) + - Fix storage class missing from `--s3-versions` listings (Dirk Petersen) +- Seafile + - Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +- SFTP + - Fix failed uploads leaving disk space in use on the server (Nick Craig-Wood) +- Shade + - Fix potential crash in directory move (Nick Craig-Wood) +- Smb + - Save the user name in the config even if it matches the current user (phatlc) +- WebDAV + - Fix duplicated listing entries after retried PROPFIND (ZRHann) + - Fix "XML syntax error" on paths which don't exist with ownCloud 10.16 (Nick Craig-Wood) + +## v1.75.1 - 2026-09-04 + +[See commits](https://github.com/rclone/rclone/compare/v1.75.0...v1.75.1) + +- Security + - archive + - Fix zip slip path traversal in untrusted zip files GHSA-66hp-wgxq-6f5q CVE-2026-88014 (Nick Craig-Wood) + - Hide any archive entry which escapes the directory being listed GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Reject unsafe entry names when mounting squashfs images GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix zip subdirectory root matching sibling directories GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix zip entry named "." hiding every other file GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix "directory not found" for archive paths containing "./" or "//" GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - build + - Fix multiple CVEs by upgrading to go1.26.6 (Nick Craig-Wood) + - CVE-2026-56860: net/url: quadratic complexity in resolvePath + - CVE-2026-56858: html/template: JavaScript regexp context tracking + - CVE-2026-56862: crypto/tls: limit handshake messages accepted post-handshake + - CVE-2026-56853: net/http: apply ReadHeaderTimeout to unencrypted HTTP/2 check + - CVE-2026-56859: encoding/xml: recursion depth guard during decode + - CVE-2026-33818: encoding/asn1: enforce maximum recursion depth + - CVE-2026-46600: net: panic parsing an invalid SVCB or HTTPS RR in dnsmessage + - CVE-2026-39821: net/http: reject ASCII-only Punycode-encoded labels in idna + - Update golang.org/x/crypto to v0.56.0 to fix multiple CVEs (Nick Craig-Wood) + - CVE-2026-56854: ssh: source-address critical option not enforced for non-public-key auth callbacks + - CVE-2026-78662: ssh: a malicious peer could flood an undecided channel's incoming requests, deadlocking the connection + - CVE-2026-56855: ssh: a malicious peer could send crafted messages on an established channel, deadlocking the connection + - Update golang.org/x/image to v0.45.0 to fix CVE-2026-46603 (Nick Craig-Wood) + - CVE-2026-46603: excessive memory allocation during VP8L decoding + - fs: Confine directory listing entries that escape the root GHSA-3vxh-3pcx-9m8q CVE-2026-93986 GHSA-38xv-hf3p-h7mq CVE-2026-88046 (Nick Craig-Wood) + - fshttp: Don't send `--header` values to other hosts on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) + - http: Don't leak configured headers to other hosts or over plaintext on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) + - lib/rest: Check HTTPS downgrades against the original request on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) + - local + - Fix dir metadata escaping the root through a planted symlink GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood) + - Fix btime escaping the root via a planted symlink GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood) + - Fix panic on Range request past the end of a symlink GHSA-p6m2-r3w9-mpxw CVE-2026-88015 (Nick Craig-Wood) + - serve docker + - Reject volume names that escape the base directory GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - Reject volume names resolving to the base directory itself GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - Re-derive volume mountpoint from name when restoring state GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - serve ftp: Fix auth-proxy sessions sharing credentials by username GHSA-c476-6w5q-jw77 CVE-2026-88017 (Nick Craig-Wood) + - serve s3 + - Fix memory exhaustion from client-declared multipart part size GHSA-2p48-j3qc-rx9f CVE-2026-88045 (Nick Craig-Wood) + - Reject bogus multipart part sizes in the reorder buffer GHSA-2p48-j3qc-rx9f (Nick Craig-Wood) + - Fix auth proxy accepting any request signed with an empty secret GHSA-xwwr-4h3p-r22c CVE-2026-88018 (Nick Craig-Wood) + - **NB** the auth proxy protocol for `serve s3` has changed - the proxy program is now given the access key ID as `user` and must return the secret as `_secret_access_key` + - Fix each server accepting the `--auth-key` credentials of all the others (Nick Craig-Wood) + - Fix misleading anonymous access log when using an auth proxy via rc GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) + - serve sftp: Fix auth proxy configured via rc being silently ignored GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) +- Bug Fixes + - accounting + - Fix memory leak on long-running rcd (nielash) + - Fix memory leak from stats groups on long-running rcd (nielash) + - Fix bwlimit burst overflow (Rayan Salhab) + - bisync + - Fix memory leak when running via the rc (nielash) + - Fix failed transfers of empty files being recorded as synced (Nick Craig-Wood) + - build: Make go1.26 the minimum required version as needed by golang.org/x/crypto v0.56.0 (Nick Craig-Wood) + - config: Redact env var config values in logs (Pastalikek65) + - doc fixes (Anton Karpov, CAOShurong, Dean Chen, Nick Craig-Wood, Recoordinate, Rodrigo Rodrigues, Shantanav Mukherjee, shaurya) + - lib/batcher: Prevent commits racing shutdown (Loi Nguyen) + - lib/transform: Fix panic in `truncate_keep_extension` (VXNCXNX) + - multipart: Fix chunked uploads storing truncated objects when the source ends early (Nick Craig-Wood) + - operations: Fix silent truncation of streaming uploads whose source ends early (Nick Craig-Wood) + - serve + - Fix VFS instance leaks on server startup failures and shutdown (Hakan İSMAİL) + - Pass the client IP address to the auth proxy (am-at-enrollvb) + - serve http: Prevent scrolling to the top on page reload (Sune Mølgaard) + - serve nfs: Fix EIO when creating symlinks with `--vfs-links` (SillyZir) + - serve s3 + - Fix failed uploads deleting or corrupting the object at the key (Nick Craig-Wood) + - Fix crash when a multipart upload is aborted while a part is uploading (Nick Craig-Wood) + - Fix modtime not being set when only mtime metadata is supplied on PUT (Nick Craig-Wood) + - Upload all multipart uploads via the VFS so they obey `--bwlimit` and show in stats (Nick Craig-Wood) + - Reserve the `.rclone_temp_` prefix for temporary objects (Nick Craig-Wood) + - Clean up abandoned multipart uploads after `--multipart-expiry` (Nick Craig-Wood) + - vfscache + - Fix reader deadlock when the item size drops below the read offset (Dave) + - Fix log message growing without bound on repeated write errors (Vijay Misal) + - walk: Stop directory traversal when the context is cancelled (Rahman Yilmaz) +- VFS + - Synchronize poll updates with shutdown (Loi Nguyen) + - Make poll shutdown lifecycle deterministic (Loi Nguyen) +- Crypt + - Fix hash mismatches with `no_data_encryption` on backends which check upload hashes (Nick Craig-Wood) + - Fix directory names which look like versioned file names (TowyTowy) + - Warn about directories with legacy version-like encrypted names (Nick Craig-Wood) +- Azure Blob + - Fix Entra ID server-side copy source authentication (Edward Klesel) + - Fix spurious vfs cache corruption errors during chunked reads (Nick Craig-Wood) +- Azurefiles + - Fix zero padded files being created when the source ends early (Nick Craig-Wood) +- Box + - Fix truncated files being uploaded successfully when the source ends early (Rohit Behera) +- Compress + - Fix corrupted objects being created when the source ends early (Nick Craig-Wood) +- Drive + - Don't list trashed files when removing a directory into the trash (alliasgher) +- Dropbox + - Preserve Paper export paths on lookup (Loi Nguyen) + - Fix context cancellation (e.g. `--max-duration` limit) not stopping in-flight requests (debaditya) + - Fix chunked uploads of truncated files never finishing (Nick Craig-Wood) + - Don't retry chunked upload requests when the upload has been cancelled (Nick Craig-Wood) + - Decode received shared-file names (Sanjay Kanth A) + - Fix ChangeNotify when the root's case differs from Dropbox's (Loi Nguyen) +- Filelu + - Fix truncated files being uploaded successfully when the source ends early (Nick Craig-Wood) + - Fix duplicate root path during multipart folder creation (kingston125) +- Huaweidrive + - Fix truncated files being uploaded successfully when the source ends early (Rohit Behera) +- Iclouddrive + - Fix uploads into an app container failing with 412 (Christian De Santis) +- Internetarchive + - Fix corrupted files being created when the source ends early (Nick Craig-Wood) +- Internxt + - Persist rotated token returned by the user info call (0rangeSeaW0lf) +- Onedrive + - Fix 403 Forbidden for configuration personal onedrive (machsix) + - Fall back to manual drive ID entry when drive listing fails (SillyZir) + - Don't retry multipart upload chunk on 404 (upload session not found) (water) +- Overview + - Fix "internal error: no overview data found" on 32 bit architectures (Nick Craig-Wood) +- Pikpak + - Fix truncated files being created when the source ends early (Nick Craig-Wood) + - Fix truncated single part uploads reported as ok when source ends early (Nick Craig-Wood) +- Protondrive + - Fix files uploaded with v1.75.0 not being readable in the Proton apps (Nick Craig-Wood) + - Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +- Quatrix + - Fix chunk upload retries and fix memory leak (Nick Craig-Wood) +- S3 + - Update Mega endpoints (Nick Craig-Wood) + - Treat UploadPart success without ETag as retryable error (CAOShurong) + - Fix server side copy failing with `--s3-no-head-object` (Anatoly Tarnavsky) +- Sia + - Fix corrupted files being created when the source ends early (Nick Craig-Wood) +- Smb + - Reuse the upload connection for SetModTime (alliasgher) +- WebDAV + - Fix SetModTime failing and hashes missing on Nextcloud (Nick Craig-Wood) +- Yandex + - Fix truncated files being uploaded successfully when the source ends early (Rohit Behera) + ## v1.75.0 - 2026-07-31 [See commits](https://github.com/rclone/rclone/compare/v1.74.0...v1.75.0) @@ -71490,26 +75342,26 @@ Options: - [Scality](https://rclone.org/s3/#scality) (RING / ARTESCA) - [Zero Services](https://rclone.org/s3/#zero-z3) (ZERO-Z3) - Security - - archive: Don't crash on malformed squashfs images GHSA-6jcg-q3wp-x2f4 CVE-PENDING (Nick Craig-Wood) - - ftp: Fix ftp command injection when encoding doesn't include CRLF GHSA-8c48-q9wj-3w37 CVE-PENDING (Nick Craig-Wood) + - archive: Don't crash on malformed squashfs images GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) + - ftp: Fix ftp command injection when encoding doesn't include CRLF GHSA-8c48-q9wj-3w37 CVE-2026-71311 (Nick Craig-Wood) - lib/http: Use TLS on all `--addr` listeners when `--cert` and `--key` are set GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - - lib/proxy: Fix unbounded HTTP CONNECT headers causing OOM GHSA-xhf4-832v-7xcr CVE-PENDING (Nick Craig-Wood) - - local: Stop source file names escaping the destination directory GHSA-7p4m-qxvv-g567 CVE-PENDING (Nick Craig-Wood) + - lib/proxy: Fix unbounded HTTP CONNECT headers causing OOM GHSA-xhf4-832v-7xcr CVE-2026-71310 (Nick Craig-Wood) + - local: Stop source file names escaping the destination directory GHSA-7p4m-qxvv-g567 CVE-2026-71313 (Nick Craig-Wood) - rc - - Don't expose pprof debug handlers on an unauthenticated server GHSA-mfvx-7rcj-9m5g CVE-PENDING (Nick Craig-Wood) + - Don't expose pprof debug handlers on an unauthenticated server GHSA-mfvx-7rcj-9m5g CVE-2026-79776 (Nick Craig-Wood) - Require authentication to list the remotes with `--rc-serve` GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - - Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv (Nick Craig-Wood) + - Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv CVE-2026-79777 (Nick Craig-Wood) - s3 - - Fix redirect credential leaks, reject HTTPS->HTTP and strip secrets GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) - - Strip S3 Express session token on cross-host redirects GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) + - Fix redirect credential leaks, reject HTTPS->HTTP and strip secrets GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) + - Strip S3 Express session token on cross-host redirects GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) - serve ftp: Use constant time comparison for password check GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - - serve restic: Fix path traversal above the served directory GHSA-45pq-889g-fcgh CVE-PENDING (Nick Craig-Wood) - - serve sftp: Don't crash the whole server on a bad request GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) - - sftp: Fix command injection via crafted filenames on PowerShell remotes GHSA-2m8m-jhrm-w6j2 CVE-PENDING (Nick Craig-Wood) - - vfs: Don't crash the process if a backend panics on a background goroutine GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) + - serve restic: Fix path traversal above the served directory GHSA-45pq-889g-fcgh CVE-2026-71309 (Nick Craig-Wood) + - serve sftp: Don't crash the whole server on a bad request GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) + - sftp: Fix command injection via crafted filenames on PowerShell remotes GHSA-2m8m-jhrm-w6j2 CVE-2026-71312 (Nick Craig-Wood) + - vfs: Don't crash the process if a backend panics on a background goroutine GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) - webdav - - Fix HTTPS to HTTP redirects leaking credentials GHSA-h4mf-4v27-hggj (Nick Craig-Wood) - - Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv (Nick Craig-Wood) + - Fix HTTPS to HTTP redirects leaking credentials GHSA-h4mf-4v27-hggj CVE-2026-79779 (Nick Craig-Wood) + - Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv CVE-2026-79778 (Nick Craig-Wood) - Update `google.golang.org/grpc` to fix multiple security problems (Nick Craig-Wood) - New Features - build: Update all dependencies (Nick Craig-Wood) @@ -71738,14 +75590,14 @@ Options: - serve restic: Fix `--private-repos` isolation bypass CVE-2026-59733 (Nick Craig-Wood) - serve s3 - Fix spurious 404 on HEAD/GET during VFS writeback (max) - - Fix path traversal letting clients see files in the root GHSA-8v25-v8p6-qf7v (Nick Craig-Wood) + - Fix path traversal letting clients see files in the root GHSA-8v25-v8p6-qf7v CVE-2026-79781 (Nick Craig-Wood) - serve webdav: Fix MOVE overwrite failing without Overwrite header (Sanjay Santhanam) - serve/http: Fix `--disable-zip` so it works over rc (Nick Craig-Wood) - VFS - Fix hang reopening a file during the handle-caching grace period (Nick Craig-Wood) - Local - Stop `--links` symlinks escaping the destination directory CVE-2026-54572 (Nick Craig-Wood) - - Don't restore setuid/setgid/sticky bits from metadata by default GHSA-945v-v9p3-v5xw (Nick Craig-Wood) + - Don't restore setuid/setgid/sticky bits from metadata by default GHSA-945v-v9p3-v5xw CVE-2026-79783 (Nick Craig-Wood) - Drive - Warn when non-exportable Google documents are skipped (Nick Craig-Wood) - Fix stray %!(EXTRA) in unexportable google document log message (Nick Craig-Wood) @@ -78511,7 +82363,7 @@ file. The FTP and SFTP backends have their own `http_proxy` settings to support an HTTP CONNECT proxy ( [--ftp-http-proxy](https://rclone.org/ftp/#ftp-http-proxy) and -[--sftp-http-proxy](https://rclone.org/ftp/#sftp-http-proxy) ) +[--sftp-http-proxy](https://rclone.org/sftp/#sftp-http-proxy) ) ### Rclone gives x509 SSL root certificates error @@ -79925,6 +83777,140 @@ put them back in again. --> - Socialpranker <273312799+Socialpranker@users.noreply.github.com> - phatlc - Punya Jain <4511945+punya10@users.noreply.github.com> +- acoeur <7315110+forestrock@users.noreply.github.com> +- SillyZir <269283839+SillyZir@users.noreply.github.com> +- am-at-enrollvb +- Loi Nguyen +- debaditya <82204129+DebadityaHait@users.noreply.github.com> +- alliasgher +- Anton Karpov +- Edward Klesel +- Christian De Santis <41491267+christiandesantis@users.noreply.github.com> +- Rodrigo Rodrigues <191260313+MVP0TAT0@users.noreply.github.com> +- Recoordinate <296084221+latent-9@users.noreply.github.com> +- Jiacheng Xu <169599847+Stardust0831@users.noreply.github.com> +- Teddy Tennant +- Dean Chen <862469039@qq.com> +- Pastalikek65 +- Morax +- Shurong Cao <170531907+CAOShurong@users.noreply.github.com> +- Dave +- max +- Hakan İSMAİL +- Shantanav Mukherjee +- VXNCXNX +- Rohit Behera <126186063+r0h1tb@users.noreply.github.com> +- Rahman Yilmaz <85690773+Sudo-Rahman@users.noreply.github.com> +- Sanjay Kanth A +- machsix <28209092+machsix@users.noreply.github.com> +- CAOShurong <3502119616@qq.com> +- shaurya +- water <672684719@qq.com> +- Rayan Salhab +- Vijay Misal +- Sune Mølgaard +- Anatoly Tarnavsky +- cyphercodes +- shaurya <19599684+no-hup@users.noreply.github.com> +- no-hup +- Dhevenddra +- Splainte +- PSR94 <88868390+PSR94@users.noreply.github.com> +- Shane McCarron +- Dhevenddra K G <121691114+Dhevenddra@users.noreply.github.com> +- Vaibhav Mashal <110161673+vaibhavmashal@users.noreply.github.com> +- Murat Topcu +- tomaszni +- eliotee <17210244+eliotee@users.noreply.github.com> +- Aditya +- Nicholas Velten +- youdie006 +- subomi <86053854+ubmids@users.noreply.github.com> +- Can Arslan <138895927+mc2rcanarslan@users.noreply.github.com> +- Can Arslan +- ZRHann <2829442630@qq.com> +- enkvadrat <123565769+enkvadrat@users.noreply.github.com> +- Vladimir Babin +- Eugene +- Kunpeng Xie <68572236+pentaoa@users.noreply.github.com> +- foecmke <221832573+foecmke@users.noreply.github.com> +- Vasek Sraier +- Kalin Stoyanov +- NytePlus +- Jeremy Schoemaker +- solunolab +- Mattias Michaux +- jxj +- Harsh Raj Singhania <40535627+HarshRajSinghania@users.noreply.github.com> +- Roland +- interested.tortoise +- hsdfat <118717478+hsdfat@users.noreply.github.com> +- Dirk Petersen +- TastyHeadphones <76083688+TastyHeadphones@users.noreply.github.com> +- Neil Cawse <8085959+neilcawse@users.noreply.github.com> +- Lev Devaev <102860715+Exxxxpo@users.noreply.github.com> +- GhostCoder6969 +- bounty-agent +- mygrexit <33792951+mygrexit@users.noreply.github.com> +- Kaya +- somaz +- xiaozou-wine <243062178+xiaozou-wine@users.noreply.github.com> +- Roman Butor +- kaii9 <107882135+kaii9@users.noreply.github.com> +- Stochastic <138764723+Asthenia0412@users.noreply.github.com> +- James Truitt <80006053+jtruitt1@users.noreply.github.com> +- firatkaya +- kevin9327 <5299031+kevin9327@users.noreply.github.com> +- drakeo338 +- Alessio Margelli +- Ludovic Bondon +- fmterrors +- GingerAdonis <2751672+GingerAdonis@users.noreply.github.com> +- Satvik Mishra +- wjc <2821296948@qq.com> +- Maksym Tymoshyk +- Aniket +- Oshino Penguin +- Yousef Issa +- ghwany <9hwany@gmail.com> +- DEVN +- 47th <161213233+flcrom@users.noreply.github.com> +- Sash +- Shreyansh Jain +- Biagio Peccerillo +- gomitrah +- Jim Counter +- Dirk Einecke +- ASRodrigo1 <45823308+asrodrigo1@users.noreply.github.com> +- chaogeshuodiannao +- David Legrand +- Azhar +- Daniel Bae +- frodleTian <16165444+tianhaotian@users.noreply.github.com> +- Cestercian +- Ayush Sharma <175855728+DurdensDream@users.noreply.github.com> +- Dirk Petersen <1427719+dirkpetersen@users.noreply.github.com> +- Codex +- bunnysayzz +- hahahahahayesyeseys <1145018948@qq.com> +- qodelicious <162776175+qodelicious@users.noreply.github.com> +- fixfon <12512757+fixfon@users.noreply.github.com> +- berce <75228263+bercedev@users.noreply.github.com> +- Fred <24314560+creativeprojects@users.noreply.github.com> +- Florian Josef Altendorfer +- ashwinibailangadi +- ilya lavrenov <17838283+ilyalavrenov@users.noreply.github.com> +- Soujas K +- Robert Kubiś +- b84330808 +- Guillaume MALLERET +- Louis +- 唐僧洗发用飘柔 <2906266135@qq.com> +- Seth Westphal +- ZainnQureshii <43629888+ZainnQureshii@users.noreply.github.com> +- Rishi Raj Jain +- Enbiya Göral <100806254+enbiyagoral@users.noreply.github.com> +- Florian Josef Altendorfer <341419330+florianaltendorfer@users.noreply.github.com> # Contact the rclone project diff --git a/MANUAL.txt b/MANUAL.txt index 784a34a88..d4298b105 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1,6 +1,6 @@ rclone(1) User Manual Nick Craig-Wood -Jul 31, 2026 +Nov 06, 2026 NAME @@ -38,6 +38,7 @@ SYNOPSIS gui Open the web based GUI. hashsum Produces a hashsum file for all the objects in the path. help Show help for rclone commands, flags and backends. + index Write static directory listings into a remote. link Generate public link to file/folder. listremotes List all the remotes in the config file and defined in environment variables. ls List the objects in the path with size and path. @@ -167,6 +168,7 @@ S3, that work out of the box.) - Akamai Netstorage - Alibaba Cloud (Aliyun) Object Storage System (OSS) - Amazon S3 +- Autonomys Auto Drive - Bizfly Cloud Simple Storage - Backblaze B2 - Box @@ -174,11 +176,13 @@ S3, that work out of the box.) - China Mobile Ecloud Elastic Object Storage (EOS) - Arvan Cloud Object Storage (AOS) - Citrix ShareFile +- Clever Cloud Cellar - Cloudflare R2 - Cloudinary - Cubbit DS3 - DigitalOcean Spaces - Digi Storage +- dosya.dev - Dreamhost - Drime - Dropbox @@ -212,8 +216,11 @@ S3, that work out of the box.) - IBM COS S3 - IDrive e2 - Impossible Cloud +- Infomaniak Swiss Backup (S3) +- Infomaniak Swiss Backup (Swift) - Intercolo Object Storage - IONOS Cloud +- kDrive - Koofr - Leviia Object Storage - Liara Object Storage @@ -229,6 +236,7 @@ S3, that work out of the box.) - Microsoft Azure Files Storage - Microsoft OneDrive - Minio +- Neon Object Storage - Nextcloud - Blomp Cloud Storage - OpenDrive @@ -253,6 +261,7 @@ S3, that work out of the box.) - RackCorp Object Storage - Rackspace Cloud Files - Rclone Serve S3 +- RelAix.Storage - rsync.net - Scaleway - Scality (RING / ARTESCA) @@ -518,10 +527,6 @@ Docker installation The rclone developers maintain a docker image for rclone. -Note: We also now offer a paid version of rclone with enterprise-grade -security and zero CVEs through our partner SecureBuild. If you are -interested, check out their website and the Rclone SecureBuild Image. - These images are built as part of the release process based on a minimal Alpine Linux. @@ -632,7 +637,7 @@ developers so it may be out of date. Its current version is as below. Source installation -Make sure you have git and Go installed. Go version 1.25 or newer is +Make sure you have git and Go installed. Go version 1.26 or newer is required, the 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: @@ -958,6 +963,7 @@ See the following for detailed instructions for - Crypt - to encrypt other remotes - DigitalOcean Spaces - Digi Storage +- dosya.dev - Drime - Dropbox - Enterprise File Fabric @@ -979,6 +985,7 @@ See the following for detailed instructions for - Internet Archive - Internxt - Jottacloud +- kDrive - Koofr - Linkbox - Mail.ru Cloud @@ -2097,6 +2104,10 @@ recursion. The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows each prefix +as one directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --fast-list for more details. @@ -2164,7 +2175,7 @@ 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 +not), the modification time (if known, the --default-time if not), the number of objects in the directory (if known, -1 if not) and the name of the directory, E.g. @@ -2200,6 +2211,10 @@ recursion. The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows each prefix +as one directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --fast-list for more details. @@ -2295,6 +2310,10 @@ recursion. The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows each prefix +as one directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --fast-list for more details. @@ -3245,6 +3264,7 @@ Options --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -3562,7 +3582,8 @@ Output completion script for a given shell. Synopsis Generates a shell completion script for rclone. Run with --help to list -the supported shells. +the supported shells. Enum-valued flags such as --log-level and +--vfs-cache-mode also complete their supported values. Options @@ -4683,10 +4704,10 @@ Examples: // Output: stories/The Quick Brown Fox!.txt rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}" - // Output: stories/The Quick Brown Fox!-20260731 + // Output: stories/The Quick Brown Fox!-20261106 rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}" - // Output: stories/The Quick Brown Fox!-2026-07-31 0340PM + // Output: stories/The Quick Brown Fox!-2026-11-06 0220PM rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,regex=[\\.\\w]/ab" // Output: ababababababab/ababab ababababab ababababab ababab!abababab @@ -5321,7 +5342,10 @@ 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. +specified file exists, it will always be removed from its original +location. + +The --backup-dir and --suffix flags are honored when set. rclone deletefile remote:path [flags] @@ -5332,6 +5356,24 @@ Options Options shared with other commands are described next. See the global flags page for global options not listed here. +Sync Options + +Flags used for sync commands + + --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 + --fix-case Force rename of case insensitive dest to match source + --ignore-errors Delete even if there are I/O errors + --list-cutoff int To save memory, sort directory listings on disk above this threshold (default 1000000) + --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 Options Important flags useful for most commands @@ -5535,11 +5577,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also @@ -5581,6 +5618,7 @@ Run without a hash to see the list of all supported hashes, e.g. - blake3 - xxh3 - xxh128 + - crc32c Then @@ -5642,6 +5680,321 @@ See Also - rclone - Show help for rclone commands, flags and backends. +rclone index + +Write static directory listings into a remote. + +Synopsis + +Write a directory listing, index.html by default, into every directory +of remote:path so that it can be browsed when it is served as a static +website, for example from an S3 website endpoint, a bucket behind a CDN, +or a plain web server. + +This works like rclone sync: each run makes the minimum changes needed +to bring the listings into line with the files. Listings which haven't +changed aren't rewritten, so a run with no changes makes no uploads. The +listings never show the listing files themselves. + +Note that rclone index treats every file with an output name (index.html +by default) in the directories it indexes as its own, and will overwrite +it or delete it without checking where it came from. To protect a +hand-written index, exclude its directory with --index-exclude. + +Outputs + +--output NAME=FORMAT says what to write in each directory and can be +repeated. NAME is the file name, and FORMAT is one of the built-in +formats below or the path of a Go template file. + + ----------------------------------------------------------------------- + Format MIME type Contents + ------------------- -------------------------- ------------------------ + html text/html; charset=utf-8 The HTML listing from + the rclone serve http + template + + json application/json JSON in the format of + rclone lsjson for the + directory + + caddy application/json JSON in the format of + Caddy's + file_server browse + ----------------------------------------------------------------------- + +The default is --output index.html=html. The built-in formats are +templates, so they can be printed with --print-template FORMAT, copied +and changed. Outputs whose name ends in .html or .htm are rendered with +Go's html/template and everything else with text/template, which has a +json function for safe encoding. The template data is that of +rclone serve http with .Static set (see rclone serve http). Outputs are +uploaded with the MIME type of the built-in format, or that of the +output name's extension for template outputs, since static hosts serve +the stored type. + +Filters + +The normal filters (--include, --exclude, --filter-from, --max-age, ...) +control what appears in the listings. An excluded file isn't listed, and +an excluded directory isn't listed or indexed. + +The --index-include, --index-exclude, --index-filter flags and their +-from variants control which directories get listings. They take the +same patterns as the normal filters, applied to directory paths, and +--index-include implies excluding all other directories. A directory +excluded here still appears in its parent's listing, but nothing is +written or deleted inside it, so it can have its own hand-made index. +--index-max-depth limits how deep listings are written. + +Modification times + +Listings show the modification time of each file. When using the s3, +oracleobjectstorage and swift backends rclone stores the modification +time as metadata which isn't returned by the bucket listing, so every +object needs a HEAD request, which can mean thousands of transactions +per run. Avoid this with one of: + +- --use-server-modtime uses the time the object was uploaded instead, + which is what the web server sends as Last-Modified. Recommended for + s3 unless the original modification times matter. +- --no-modtime shows no times at all, which is the cheapest option. + +--dir-time sets the time shown for directories: + +- newest (default): the newest modification time of anything below the + directory. Note that this means one new file changes the listing of + every directory above it. +- dir: the directory's own modification time. On most file systems + writing a listing into a directory changes its time, so this can + take more than one run to settle. +- none: no time. + +The listing files are given the newest modification time below their +directory, so the Last-Modified header of a listing is meaningful. + +Links + +Directory links are dir/ by default, which works on hosts that serve +index documents: S3 website endpoints, GCS and Azure static websites, +nginx and Apache, and R2 custom domains with a URL rewrite rule. For +hosts that don't (plain S3 REST URLs, B2 friendly URLs) use --link-index +to make directory links dir/index.html instead. + +Partial runs + +After a sync which changed a known set of files there is no need to walk +the whole remote. Tell rclone index what changed and it re-indexes only +the directories that could be affected: + + rclone index r2:bucket --changed v1.76.0/ --changed version.txt + rclone index r2:bucket --changed-from changes.txt + rclone sync ./public r2:bucket --exclude index.html --combined - | rclone index r2:bucket --changed-combined - + +- --changed PATH names a changed file or directory relative to + remote:path and can be repeated. A directory, given with a trailing + slash or found to be one, is re-indexed completely. +- --changed-from FILE reads one path per line exactly as written. +- --changed-combined FILE reads the --combined report of rclone sync: + lines starting with +, -, * and ! are changes and = lines are + ignored. +- Both files accept - for standard input and all three flags can be + combined. + +A changed file re-indexes its directory and every directory above it, +since their times and their listings can change too, and on bucket based +storage a directory can cease to exist. Each of those is one directory +listing. With --dir-time newest the directories above also need the +times of their unchanged subdirectories, which are read from the +modification times of those subdirectories' listings at the cost of one +small request each. With --use-server-modtime that is the time the +listing was written rather than the time of the newest file, so partial +runs can drift by the indexing delay until the next full run. +--dir-time dir and none need no such lookups. + +Directories which are neither named nor above a named path are left +alone, as are directories deeper than --max-depth. An empty change list +does nothing, and naming the root does a full run. There is no automatic +cutover to a full run since that depends on the size of the whole +remote: a partial run costs one listing per affected directory, a full +run one request per thousand objects on S3-like storage or one per +directory elsewhere. The number of directories a partial run will list +is logged with -v, and --changed-max-dirs makes it fall back to a full +run above that number. A good pattern is a partial run after each upload +and a scheduled full run to catch anything missed. + +Site icon + +The listings carry no icon or branding of their own. To give a site an +icon, upload a favicon.ico to the root of the remote, which browsers +fetch from there for every page. Exclude it from the listings with +--exclude /favicon.ico so it stays on the site but isn't shown. + +Deleting listings + +On backends which can't have empty directories (S3, B2 and other +bucket-based storage) a directory only exists while it has files in it. +Once the last file in a directory has been removed its listing is +deleted, since the directory only existed because of it. Backends which +can have empty directories keep a listing for each empty directory. + +Using with sync + +A sync from a local build deletes files on the destination which aren't +in the source, which includes the listings. Either index the local build +before syncing: + + rclone index ./public + rclone sync ./public r2:bucket + +or exclude the listings from the sync so it neither uploads nor deletes +them, then index the remote: + + rclone sync ./public r2:bucket --exclude index.html + rclone index r2:bucket + +Examples + +An S3 website bucket, using the upload times so no object needs a HEAD +request: + + rclone index s3:my-site --use-server-modtime + +HTML and rclone JSON listings, setting Cache-Control on them: + + rclone index s3:bucket --output index.html=html --output index.json=json --header-upload "Cache-Control: max-age=300" + +Only list release files, and don't write listings under /private: + + rclone index r2:bucket --include "*.{zip,deb,rpm}" --index-exclude "/private/**" + +A B2 bucket served from its friendly URLs: + + rclone index b2:bucket --link-index + +See what would change: + + rclone index r2:bucket --dry-run -v + +Listings which haven't changed aren't normally rewritten, so changing +the headers or metadata set on them needs --index-rewrite, which writes +every listing a run would render whether it changed or not: + + rclone index r2:bucket --index-rewrite --header-upload "Cache-Control: max-age=3600" + + rclone index remote:path [flags] + +Options + + --changed stringArray Only re-index directories affected by this changed path (directories end in /) + --changed-combined stringArray Read changed paths from a sync --combined report (use - to read from stdin) + --changed-from stringArray Read changed paths from file, one per line (use - to read from stdin) + --changed-max-dirs int Do a full index if a partial one would list more than this many directories (0 for no limit) + --dir-time newest|dir|none How to work out the time shown for a directory (default newest) + -h, --help help for index + --index-exclude stringArray Don't write listings in directories matching pattern + --index-exclude-from stringArray Read directory exclude patterns from file (use - to read from stdin) + --index-filter stringArray Add a rule for which directories get listings + --index-filter-from stringArray Read directory rules from a file (use - to read from stdin) + --index-include stringArray Only write listings in directories matching pattern + --index-include-from stringArray Read directory include patterns from file (use - to read from stdin) + --index-max-depth int Only write listings this many directories deep (-1 for no limit) (default -1) + --index-rewrite Write every listing even if it is unchanged + --link-index Link to dir/NAME rather than dir/ for hosts without index documents + --no-modtime Don't show modification times in listings + --output stringArray Listing to write in each directory as NAME=FORMAT (default [index.html=html]) + --print-template string Print the built-in template for FORMAT and exit + +Options shared with other commands are described next. See the global +flags page for global options not listed here. + +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 server-side paths during comparison + --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination + --cutoff-mode HARD|SOFT|CAUTIOUS 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 modtime or checksum + -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally + --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 + -l, --links Translate symlinks to/from regular files with a '.rclonelink' extension + --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) + --name-transform stringArray Transform paths during the copy process + --no-check-dest Don't check the destination, copy regardless + --no-traverse Don't traverse destination file system on copy + --no-update-dir-modtime Don't update directory modification times + --no-update-modtime Don't update destination modtime if files identical + --order-by string Instructions on how to order the transfers, e.g. 'size,descending' + --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial") + --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 modtime 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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly @/n + --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 Also + +- rclone - Show help for rclone commands, flags and backends. + rclone link Generate public link to file/folder. @@ -5866,6 +6219,10 @@ recursion. The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows each prefix +as one directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --fast-list for more details. @@ -6041,6 +6398,10 @@ recursion. The other list commands lsd,lsf,lsjson do not recurse by default - use -R to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key +prefix rather than an object, so a listing without -R shows each prefix +as one directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use --disable ListR to suppress the behavior. See --fast-list for more details. @@ -6388,6 +6749,11 @@ macOS. For details, see vfs-case-sensitivity. NFS mount +For macOS (and other platforms where this path is supported), prefer the +dedicated rclone nfsmount command. It starts the NFS server and performs +the mount for you. rclone mount itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using serve nfs command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -6704,8 +7070,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -6754,11 +7120,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -6905,8 +7272,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -7796,6 +8163,11 @@ macOS. For details, see vfs-case-sensitivity. NFS mount +For macOS (and other platforms where this path is supported), prefer the +dedicated rclone nfsmount command. It starts the NFS server and performs +the mount for you. rclone mount itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using serve nfs command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -8112,8 +8484,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -8162,11 +8534,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -8313,8 +8686,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -8847,6 +9220,14 @@ will accept in the HTTP header. responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value. +--rc-allow-origin enables cross-origin (CORS) requests from browsers by +setting the Access-Control-Allow-Origin header on every response to the +origin given, e.g. --rc-allow-origin https://app.example.com. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an authenticated +server. + --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 @@ -8935,6 +9316,34 @@ be used within the template to server pages: .Query Currently unused. + .Path The path of the + directory from the + root with leading and + trailing slashes, e.g. + '/dir/'. + + .IsRoot Boolean for if this is + the root directory. + + .UpLink The link to the parent + directory. + + .Static Boolean for if the + listing is being + written as a static + page by rclone index. + + .NumDirs The number of + directories in the + listing. + + .NumFiles The number of files in + the listing. + + .TotalSize The total size in + bytes of the files in + the listing. + .Breadcrumb Allows for creating a relative navigation. @@ -8963,6 +9372,11 @@ be used within the template to server pages: .ModTime The UTC timestamp of an entry. + + .MimeType The MIME type of an + entry guessed from its + name, or + 'inode/directory'. ----------------------------------------------------------------------- The server also makes the following functions available so that they can @@ -9014,8 +9428,20 @@ To create an htpasswd file: htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when --rc-allow-origin is +set, which are answered without authentication as browsers never send +credentials with them. + Use --rc-realm to set the authentication realm. Use --rc-salt to change the password hashing salt from the default. @@ -9059,11 +9485,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also @@ -9314,8 +9735,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -9364,11 +9785,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -9515,8 +9937,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -9953,8 +10375,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -10003,11 +10425,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -10154,8 +10577,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -10544,8 +10967,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -10594,11 +11017,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -10745,8 +11169,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -10973,16 +11397,18 @@ This config generated must have this extra parameter - _root - root to use for the backend -And it may have this parameter +And it may have these parameters - _obscure - comma separated strings for parameters to obscure +- _secret_access_key - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } If public-key authentication was used by the client, input to the proxy @@ -10990,9 +11416,41 @@ process (on STDIN) would look similar to this: { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } +If the client authenticated with an S3 access key (rclone serve s3), the +client never sends its secret, only a signature made with it, so the +input contains just the access key ID as the user with no pass or +public_key: + + { + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" + } + +In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the proxy +program is the source of truth for both the credentials and the backend +they map to. If the program does not return _secret_access_key or +returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but is +checked with the program again after 5 minutes even if the access key ID +is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it. + +The client_ip key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT { @@ -11016,11 +11474,19 @@ 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. -An internal cache of backends is keyed on the user and a hash of the -pass or public_key. This means that if a user's password or public-key -changes, or the proxy returns different config parameters (eg a rotated -api_key), a fresh backend will be created on the next request rather -than the cached one being reused. +An internal cache of backends is keyed on the user, the kind of +credential presented, a hash of the pass or public_key, and the +client_ip. This means that if a user's password or public-key changes, +the client connects from a new IP address, or the proxy returns +different config parameters (eg a rotated api_key), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. For serve sftp this applies to new logins - an +existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -11153,6 +11619,14 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value. +--allow-origin enables cross-origin (CORS) requests from browsers by +setting the Access-Control-Allow-Origin header on every response to the +origin given, e.g. --allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an authenticated +server. + --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 @@ -11240,6 +11714,34 @@ be used within the template to server pages: .Query Currently unused. + .Path The path of the + directory from the + root with leading and + trailing slashes, e.g. + '/dir/'. + + .IsRoot Boolean for if this is + the root directory. + + .UpLink The link to the parent + directory. + + .Static Boolean for if the + listing is being + written as a static + page by rclone index. + + .NumDirs The number of + directories in the + listing. + + .NumFiles The number of files in + the listing. + + .TotalSize The total size in + bytes of the files in + the listing. + .Breadcrumb Allows for creating a relative navigation. @@ -11268,6 +11770,11 @@ be used within the template to server pages: .ModTime The UTC timestamp of an entry. + + .MimeType The MIME type of an + entry guessed from its + name, or + 'inode/directory'. ----------------------------------------------------------------------- The server also makes the following functions available so that they can @@ -11319,8 +11826,20 @@ To create an htpasswd file: htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when --allow-origin is set, +which are answered without authentication as browsers never send +credentials with them. + Use --realm to set the authentication realm. Use --salt to change the password hashing salt from the default. @@ -11380,8 +11899,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -11430,11 +11949,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -11581,8 +12101,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -11809,16 +12329,18 @@ This config generated must have this extra parameter - _root - root to use for the backend -And it may have this parameter +And it may have these parameters - _obscure - comma separated strings for parameters to obscure +- _secret_access_key - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } If public-key authentication was used by the client, input to the proxy @@ -11826,9 +12348,41 @@ process (on STDIN) would look similar to this: { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } +If the client authenticated with an S3 access key (rclone serve s3), the +client never sends its secret, only a signature made with it, so the +input contains just the access key ID as the user with no pass or +public_key: + + { + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" + } + +In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the proxy +program is the source of truth for both the credentials and the backend +they map to. If the program does not return _secret_access_key or +returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but is +checked with the program again after 5 minutes even if the access key ID +is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it. + +The client_ip key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT { @@ -11852,11 +12406,19 @@ 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. -An internal cache of backends is keyed on the user and a hash of the -pass or public_key. This means that if a user's password or public-key -changes, or the proxy returns different config parameters (eg a rotated -api_key), a fresh backend will be created on the next request rather -than the cached one being reused. +An internal cache of backends is keyed on the user, the kind of +credential presented, a hash of the pass or public_key, and the +client_ip. This means that if a user's password or public-key changes, +the client connects from a new IP address, or the proxy returns +different config parameters (eg a rotated api_key), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. For serve sftp this applies to new logins - an +existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -12102,8 +12664,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -12152,11 +12714,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -12303,8 +12866,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -12701,6 +13264,14 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value. +--allow-origin enables cross-origin (CORS) requests from browsers by +setting the Access-Control-Allow-Origin header on every response to the +origin given, e.g. --allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an authenticated +server. + --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 @@ -12784,8 +13355,20 @@ To create an htpasswd file: htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when --allow-origin is set, +which are answered without authentication as browsers never send +credentials with them. + Use --realm to set the authentication realm. Use --salt to change the password hashing salt from the default. @@ -12842,6 +13425,21 @@ correctly in the request. (See the AWS docs). --auth-key can be repeated for multiple auth pairs. If --auth-key is not provided then serve s3 will allow anonymous access. +Alternatively --auth-proxy can be used to look up the secret for each +access key ID and choose the backend it maps to (see Auth Proxy below). +When an auth proxy is in use --auth-key is ignored and every request +must be signed with the secret the proxy returns for its access key ID. +Each access key ID is a separate user, whose multipart uploads and +object metadata are private to it, even if the proxy maps several access +key IDs to the same backend. + +As on AWS, every x-amz-* header in an authenticated request must be in +its signed headers list; a request with an unsigned x-amz-* header is +refused with AccessDenied. S3 clients sign these headers as a matter of +course, but a header added after signing (for example by a proxy in +front of the server, or x-amz-meta-* headers sent with a presigned URL +which only signs the host) is refused. + Like all rclone flags --auth-key can be set via environment variables, in this case RCLONE_AUTH_KEY. Since this flag can be repeated, the input to RCLONE_AUTH_KEY is CSV encoded. Because the accessKey,secretKey has a @@ -12869,7 +13467,15 @@ part of the hostname (such as mybucket.local) Use --etag-hash if you want to change the hash uses for the ETag. Note that using anything other than MD5 (the default) is likely to cause -problems for S3 clients which rely on the Etag being the MD5. +problems for S3 clients which rely on the Etag being the MD5. Use +--etag-hash auto to use the best hash the backend supports - with +--auth-proxy that of each user's backend. + +The ETag of an object made by a multipart upload is its hash, like any +other object, rather than the -N suffixed ETag AWS S3 gives these. If +the remote doesn't have the MD5 of objects, HeadObject and listings only +return the MD5 of objects uploaded through serve s3 while the object's +metadata is kept (see below). Quickstart @@ -12904,29 +13510,76 @@ which is defined like this: access_key_id = ACCESS_KEY_ID secret_access_key = SECRET_ACCESS_KEY +Object uploads (PUT) + +A PutObject upload only ever changes the object at its key atomically, +on success, a failed or interrupted PUT neither removes nor overwrites +the object already stored at the key, and never leaves a partial object +visible at it. + +Remotes that upload atomically (e.g. object stores such as s3) are +streamed straight to the destination. On remotes where a partial upload +would otherwise be visible (e.g. local), and whenever --vfs-cache-mode +is writes or above, the upload is written to a temporary object that is +renamed into place on success; these remotes need to support a +server-side move or copy for this (nearly all do - without move or copy +the upload is written directly and a failed PUT may leave a partial +object at the key). If serve s3 is killed part-way through an upload the +temporary object (named with a leading .rclone_temp_put_) may be left +behind; it is hidden from S3 listings but must be removed manually. + Multipart uploads -By default serve s3 streams each multipart upload, in part-number order, -into a single PutStream upload to the underlying remote, so the whole -file is never buffered in memory - memory use stays bounded by the parts -in flight. The remote then performs its own internal upload (for example -its own multipart upload, still with bounded memory). This works for any -remote that supports PutStream, which is nearly all of them, including -through crypt. - -The upload is atomic so the destination object only ever changes on a +Multipart uploads are written, in part-number order, to a temporary +object which is renamed into place, server-side, on completion, so the +upload is atomic. The object at the key only ever changes on a successful completion. A failed or aborted upload never affects any -object already stored under that name. Remotes that upload atomically -already (object stores such as s3) are streamed straight to the -destination. On remotes where a partial upload would otherwise be -visible (such as local), the parts are streamed to a temporary object -that is moved into place, server-side, on completion; these remotes -therefore also need to support a server-side move or copy. +object already stored under that name and a partly-uploaded object never +becomes visible under it. + +With the default --vfs-cache-mode off serve s3 streams each multipart +upload, in part-number order, into a single streaming upload to the +underlying remote, so the whole file is never buffered in memory: only +parts which arrive out of order are buffered, within the limits +described below. The remote then performs its own internal upload (for +example its own multipart upload, still with bounded memory). Remotes +that don't support streaming uploads (those that must know the file size +before the upload starts, such as onedrive, pcloud, jottacloud, mailru, +opendrive, putio, protondrive and zoho) have the parts spooled to a +temporary file on local disk instead, and uploaded with the size then +known on completion, so they need local disk space for the largest +objects in flight rather than memory. + +With --vfs-cache-mode writes (or full) the parts are written to a +temporary file in the VFS cache and uploaded by the VFS write-back - see +Multipart uploads and the VFS cache below. + +The rename into place needs the remote to support a server-side move or +copy, which nearly all do. It is a cheap rename on most remotes, but on +object stores without a real rename (such as s3 itself) the move is +performed as a server-side copy and delete of the whole object, which +can take time and API calls for large objects. Concurrent multipart +uploads of the same key (which S3 permits) are safe. Each writes its own +temporary object and the last to complete wins. + +On the few remotes that support neither server side move nor copy, the +parts are written straight to the destination object instead and never +buffered in memory. This is at some cost in atomicity - the incomplete +object is visible under its final name while the upload is in flight, as +it also is for a plain object PUT on such remotes, and concurrent +multipart uploads of the same key write to the same object and can +interleave. A failed or aborted upload still leaves any pre-existing +object untouched provided the remote uploads atomically and the VFS +cache is off; on a remote where partial uploads are visible it may leave +partial data at the key (like a plain PUT there), and with +--vfs-cache-mode writes (or full) a write to the cache cannot be +abandoned, so an aborted upload's partial data is written back to the +remote as if it had completed. Features -- The whole object is never buffered in memory; memory use is bounded - by the parts in flight, not the upload size. +- The whole object is never buffered in memory; only parts arriving + out of order are, within fixed limits, whatever the upload size. - Parts can be any size. Clients that don't produce uniform-sized parts work fine - for example PostgreSQL backup tools such as pgBarman and pgBackRest, which flush an upload buffer once it grows @@ -12937,68 +13590,265 @@ Features - The destination object only ever changes atomically, on completion: an aborted or failed upload leaves any pre-existing object of the same name untouched, and a partly-uploaded object never becomes - visible. -- Backend-agnostic - it only needs the remote to support PutStream - (plus a server-side move or copy on remotes that don't upload - atomically). + visible (except on the few remotes with no server-side move or copy, + as above). +- Multipart uploads go through the VFS like any other upload, so they + show in rclone's transfer stats and obey --bwlimit. +- Backend-agnostic - it only needs the remote to support a server-side + move or copy for the rename into place, which nearly all do; a + remote without streaming upload support spools to local disk as + above. Limitations - Parts must arrive in ascending, contiguous part-number order (1, 2, - 3, ...). Parts the client uploads concurrently or out of order are - buffered until their turn. The memory used for this buffering is - capped, per upload, by --multipart-streaming-buffer-limit (default - 256M, 0 for no limit): a part that would take the buffer over the - limit is stalled until the stream drains, so a client that uploads - faster than the remote can accept sees backpressure rather than - unbounded server memory use. Since a stalled part holds its HTTP - request open, clients whose upload concurrency times chunk size - exceeds the limit may need a longer read timeout when the remote is - slow. Non-contiguous part numbers are rejected on completion. - Configure the client to upload in part order, ideally with low - concurrency, for the lowest memory use. + 3, ...). The part the stream needs next is written straight through + as it arrives, so it is never buffered, whatever its size. Parts the + client uploads concurrently or out of order are buffered until their + turn. The memory used for this buffering is capped, per upload, by + --multipart-streaming-buffer-limit (default 256M, 0 for no limit), + and across all the uploads of each user (each access key) by + --multipart-streaming-buffer-total (default 1G, 0 for no limit), + counting each buffered part in the whole 1 MiB memory pages it + occupies: a part that would take the buffer over either limit is + stalled until the stream drains (or, if it is bigger than the + limits, until it is the next part), so a client that uploads faster + than the remote can accept sees backpressure rather than unbounded + server memory use. A stalled part holds its HTTP request open, and + one stalled for more than a minute is failed with a SlowDown error, + which S3 clients retry. Clients whose upload concurrency times part + size exceeds the limits will see these stalls and retries when the + remote is slower than the client. Non-contiguous part numbers are + rejected on completion. Configure the client to upload in part + order, ideally with low concurrency, for the lowest memory use. - A part uploaded again before completion - typically a client retrying after a timeout - is accepted: if the earlier copy is still buffered it is replaced, and if it has already been streamed an - identical re-upload is a no-op. What isn't possible is replacing a - part that has already been streamed with different content - that is - rejected. A failure in the stream to the remote itself still aborts - the whole upload and the client must start it again. (The remote's - own upload still retries its internal chunks.) + identical re-upload is a no-op (a re-upload which arrives while the + part is being streamed waits for it to finish first). If a part + fails part way through being streamed (for example the client's + connection drops) the client's retry of it carries on where it + stopped, provided it has the same content. What isn't possible is + replacing a part that has already been streamed, in whole or in + part, with different content - that is rejected. A part which + arrives in full but is then rejected, for example because it doesn't + match the Content-MD5 the client declared, has already been + streamed, so the whole upload is failed and the client must start it + again. So is a failure in the stream to the remote itself. (The + remote's own upload still retries its internal chunks.) +- A CompleteMultipartUpload which fails because the parts it lists + don't match those uploaded, or there is a gap in the part numbers, + leaves the upload open, as on S3, so the client can upload any + missing parts and complete it again. If writing the completed object + to the remote fails, the upload is failed and must be started again. - Parts are serialised into one stream, so ingest from the client is - effectively single-threaded, although the remote's own upload still - runs concurrently. -- On remotes that don't upload atomically (such as local), the - completed object is moved into place with a server-side operation. - This is a cheap rename on most such remotes. On these remotes, if - serve s3 is killed part-way through an upload the temporary object - (named with a leading .rclone_multipart_upload_) may be left behind; - it is hidden from S3 listings but must be removed manually. + effectively single-threaded. When streaming, the remote's own upload + runs concurrently with the parts arriving; with the local disk spool + or the VFS cache the upload to the remote only starts on completion. +- If serve s3 is killed part-way through an upload the temporary + object (named with a leading .rclone_temp_multipart_) may be left + behind; it is hidden from S3 listings but must be removed manually. + +Multipart uploads and the VFS cache + +With --vfs-cache-mode writes (or full) multipart uploads do not stream +to the remote at all. The parts are written, in part-number order, to a +temporary file in the VFS cache. On completion the file is renamed into +place and uploaded by the VFS write-back, exactly like a plain object +PUT. This needs no streaming upload support from the remote. The rename +normally happens in the cache before the upload has started, but the VFS +requires the remote to support a server-side move or copy to rename +files at all (and uses one if the temporary file has already been +written back, e.g. with --vfs-write-back 0). On remotes without either, +the parts are written to the cache directly under the final key instead: +the upload still never touches memory, but it loses its atomicity - the +in-flight upload is visible at the key, and an aborted upload cannot be +abandoned once in the cache, so its partial data is written back to the +remote as if it were a completed object. + +Remotes that benefit from --vfs-cache-mode writes: + +- Remotes over slow or unreliable links. A failure in a streamed + upload aborts the whole multipart upload and the client must start + again from the first part; a failed write-back upload is retried by + the VFS (see --vfs-cache-max-age and friends) without the client + being involved. Ingest from the client also runs at local disk speed + rather than being throttled to the remote's pace. +- Workloads that read back or overwrite what they just wrote. The + completed object stays in the cache, so subsequent GET/HEAD requests + are served locally, and plain PUTs and multipart uploads to the same + key go through the same cache entry so the last write wins + regardless of upload style. + +The trade-offs of the VFS cache: + +- The whole object lands on local disk, so the cache (--cache-dir) + needs space for the largest objects in flight; --vfs-cache-max-size + cannot evict files which are still being uploaded. +- The 200 OK for CompleteMultipartUpload means the data is safely in + the local cache, not yet on the remote - the same durability the + cache gives plain PUTs. If an acknowledgement must mean the data has + reached the remote (for example WAL archiving), use the default + --vfs-cache-mode off. +- The upload to the remote only starts on completion, rather than + overlapping with the parts arriving, so the data reaches the remote + later than with streaming. +- If serve s3 is killed part-way through an upload, the temporary file + survives in the cache and the VFS cache recovery uploads it to the + remote on restart as a temporary object (named with a leading + .rclone_temp_multipart_); as with the streaming path, it is hidden + from S3 listings but must be removed manually. + +Cleaning up temporary objects + +If serve s3 is killed part-way through an upload it can leave a +temporary object behind, named with a leading .rclone_temp_. This whole +prefix is reserved: any object whose name (the last /-separated segment +of its key) starts with .rclone_temp_ is hidden from S3 listings, so +don't give real objects such names - an existing object with such a name +disappears from listings (though it stays accessible directly by its +key: only listings hide reserved names, GET, HEAD and DELETE of the +exact key still work). A temporary object never holds acknowledged +data - uploads whose temporary object survived were never confirmed to +the client - so old ones are safe to delete: + + rclone delete --min-age 24h --include ".rclone_temp_*" remote:path + +The --min-age protects uploads which are still in progress: make sure it +is longer than your longest upload, especially if several serve s3 +instances share the same remote. + +rclone v1.75 named its temporary multipart objects +.rclone_multipart_upload_*; leftovers from an older server are also +hidden from listings and can be cleaned up the same way. + +Abandoned uploads + +A client which starts a multipart upload and vanishes without either +completing or aborting it would otherwise hold on to its resources +forever. + +An incomplete multipart upload which has had no activity for +--multipart-expiry (default 24h) is therefore aborted and cleaned up, +exactly as if the client had called AbortMultipartUpload, and a NOTICE +is logged. + +An upload with a part still being received is never expired, however +slowly the part is arriving, and each completed part restarts the clock, +so the expiry only needs to outlast the client's pauses between parts, +not the whole upload. + +Late operations on an expired upload fail with NoSuchUpload, as they do +on real S3 when a lifecycle rule has aborted the upload. Set +--multipart-expiry 0 to keep incomplete uploads forever - but note that +abandoned uploads are then never cleaned up and go on counting towards +--multipart-max-uploads below, so enough of them will stop the user +starting any new multipart upload until the server is restarted. + +Each multipart upload in progress holds server resources - for example +the buffers the remote's own upload uses once the first part has +arrived - so each user (each access key) can have no more than +--multipart-max-uploads (default 1000, 0 for no limit) in progress at +once. Starting another fails with a SlowDown error, which S3 clients +retry, and a one-off NOTICE is logged. Disabling streaming -If you pass --disable-multipart-streaming, or the remote doesn't support -PutStream (or doesn't upload atomically and can't move or copy -server-side), multipart uploads are instead buffered in memory by the -underlying S3 library: every part is held in memory and the whole object -is written out in one go when the upload completes (the previous -behaviour). This removes the in-order/contiguous-part restriction above, +If you pass --disable-multipart-streaming, multipart uploads are instead +buffered in memory by the underlying S3 library: every part is held in +memory and the whole object is written out in one go when the upload +completes. This removes the in-order/contiguous-part restriction above, so parts can be uploaded in any order, but memory use grows with the size of the upload, so it is only suitable for small objects. A one-off -NOTICE is logged the first time this happens. +NOTICE is logged the first time this happens. This flag is the only +thing that makes multipart uploads buffer in memory - it is never done +because of missing remote capabilities. The limits on multipart uploads +above (--multipart-streaming-buffer-limit, +--multipart-streaming-buffer-total and --multipart-max-uploads) do not +apply to uploads buffered in memory, so don't use this flag if the +server is open to clients you don't trust. Consider +--vfs-cache-mode writes instead, which buffers the upload in the VFS +cache on disk and takes precedence over --disable-multipart-streaming. -Alternatively, if the client is an rclone s3 remote (like the [serves3] -example above), you can set use_multipart_uploads = false on it so it -uploads each object as a single stream and skips multipart uploads -altogether. +Memory use + +serve s3 never buffers whole objects in memory (except with +--disable-multipart-streaming, above), and limits the memory each kind +of request can use, so that a client, even a hostile one, can't make it +use unbounded memory. + +- Object data. PutObject bodies and multipart parts arriving in order + are streamed straight through to the remote. Parts arriving out of + order are buffered, up to --multipart-streaming-buffer-limit per + upload and --multipart-streaming-buffer-total per user. +- Uploads in progress. Each user can have at most + --multipart-max-uploads multipart uploads in progress. An upload + holds little memory until its first part arrives. After that, with + --vfs-cache-mode off, it holds a --streaming-upload-cutoff sized + buffer plus whatever the remote's own upload buffers, which for many + remotes is up to their chunk size times their upload concurrency + (for example --s3-chunk-size times --s3-upload-concurrency). Plain + PutObject uploads use the same while they are in progress. +- Metadata. The metadata of at most --metadata-max-objects objects of + each user is kept, each limited to 2 KB. +- Request bodies. The XML bodies of requests such as + CompleteMultipartUpload and DeleteObjects are limited to 10 MiB, and + DeleteObjects to 1000 keys. A browser form (POST) upload holds at + most 1 MiB in memory, spooling the rest to a temporary file, and is + limited to 5 GB. +- Listings. Each page of a ListObjects listing reads only the + directories needed to fill it, and returns at most 1000 keys. + Directory listings are cached by the VFS directory cache. + +The largest of these is usually the remote's upload buffers, which can +be up to --multipart-max-uploads times the buffers of one upload for +each user if clients start many uploads and send part of each. The +limits apply to each user separately, so that one user can't stop others +uploading, which means the memory use grows with the number of users. To +limit it, lower --multipart-max-uploads, the remote's chunk size or +upload concurrency, or set --max-buffer-memory to limit the memory used +by the buffers of all uploads to remotes which use rclone's buffer pool +(including s3, azureblob and b2). Buffered multipart parts come from the +same pool, so if you set --max-buffer-memory make it comfortably bigger +than --multipart-streaming-buffer-total times the number of users +uploading at once, otherwise buffered parts can use up all the memory +the remote needs to upload the parts which would free them. + +The number of connections is not limited, so if the server is open to +clients you don't trust, use --auth-key or --auth-proxy and consider +putting it behind a reverse proxy which limits connections. + +Design goals + +These goals explain many of the limitations below. + +- Objects are plain files on the remote. A bucket is a directory in + the root and a key is a path in it, so the remote stays usable by + other tools, such as rclone mount or rclone sync. So keys must be + paths (see Object names). +- No database. serve s3 stores nothing but the objects. What the + remote can't hold, such as user metadata, tags, the MD5 ETag of an + object on a remote without MD5 and the directory markers put, is + kept in memory as a best effort, and lost on restart. +- Works with any rclone remote. What serve s3 can do depends on what + the remote supports, such as the hashes used for ETags and + modification times, rather than needing a particular backend. +- Bounded memory. Uploads, including multipart uploads, are streamed + to the remote and the memory each request can use is limited (see + Memory use). Nothing is written to local disk unless the VFS cache + is used or the remote can't stream uploads (see Multipart uploads). +- Refuse rather than ignore. Unsupported features are refused, or + answered as S3 answers when the feature isn't configured, so a + client is never told something was done which wasn't (see + Compatibility). +- A storage gateway, not a full S3. serve s3 implements the parts of + the S3 API clients use to store and fetch objects. Versioning, ACLs, + bucket policies, lifecycle rules and the like are out of scope. +- Compatible with rclone's s3 backend. This includes its directory + markers, which the tests check. Bugs -Multipart server side copies do not work (see #7454). These take a very -long time and eventually fail. The default threshold for multipart -server side copies is 5G which is the maximum it can be, so files above -this side will fail to be server side copied. - For a current list of serve s3 bugs see the serve s3 bug category on GitHub. @@ -13006,56 +13856,221 @@ Limitations serve s3 will treat all directories in the root as buckets and ignore all files in the root. You can use CreateBucket to create folders under -the root, but you can't create empty folders under other folders not in -the root. +the root, and put a directory marker to create an empty folder below +them (see Object names). When using PutObject or DeleteObject, rclone will automatically create or clean up empty folders. If you don't want to clean up empty folders -automatically, use --no-cleanup. +automatically, use --directory-markers (see Object names). The +deprecated --no-cleanup does the same. -When using ListObjects, rclone will use / when the delimiter is empty. -This reduces backend requests with no effect on most operations, but if -the delimiter is something other than / and empty, rclone will do a full -recursive search of the backend, which can take some time. +When using ListObjects with the delimiter /, rclone lists the directory +the prefix is in, showing its subdirectories as common prefixes, +including empty ones. Without a delimiter the listing is recursive: +rclone walks the directory tree below the prefix, reading only as many +directories as it needs to fill each page, and lists empty directories +as their directory markers (see below). Any other delimiter is supported +too, but needs the whole directory tree below the prefix walking, unless +the delimiter is in the directory names. -Versioning is not currently supported. +Versioning is not supported (see Design goals). -Metadata will only be saved in memory other than the rclone mtime -metadata which will be set as the modification time of the file. +Conditional writes, PutObject and CompleteMultipartUpload with +If-None-Match or If-Match, are supported. The conditions are checked +before the object is written, and again as it is moved into place when +it is written to a temporary object first. This happens for multipart +uploads and, for PutObject, with remotes which can upload partial files +(such as local disk) or with --vfs-cache-mode minimal or above. The +second check is atomic against other writes through serve s3, but +neither is atomic against changes made to the remote some other way. If +the remote doesn't support the --etag-hash, objects have no ETag so +If-Match with an ETag always fails. + +Metadata will only be saved in memory (see Design goals) other than the +rclone mtime metadata which will be set as the modification time of the +file. The metadata of at most --metadata-max-objects objects (default +100000, 0 for no limit) of each user (each access key) is kept; after +that the metadata of the user's least recently used object is forgotten. +The metadata of an object is ignored once the object has been changed +some other way, for example by another --auth-proxy user or directly on +the backend. Object tags are kept with the metadata in the same way. Object names serve s3 stores objects as files in the backend, so object keys are mapped to file paths rather than treated as the opaque strings AWS S3 allows. Keys must be in canonical path form: keys that contain .. or . -path segments, repeated slashes (//), or a leading or trailing slash are -rejected with a 400 Bad Request (InvalidArgument) instead of being -normalised, since normalising them could alias two distinct keys to the -same file or resolve a key outside its bucket. This matches the -behaviour of other S3 servers such as MinIO. +path segments, repeated slashes (//), or a leading slash are rejected +with a 400 Bad Request (InvalidArgument) instead of being normalised, +since normalising them could alias two distinct keys to the same file or +resolve a key outside its bucket. This matches the behaviour of other S3 +servers such as MinIO. -Supported operations +A key ending in /, such as dir/, is a directory marker, standing for the +directory dir. Putting an empty directory marker creates the directory +(one with data is rejected with 400 Bad Request), and deleting it +removes the directory if it is empty. Directory markers are found by +HeadObject, GetObject and CopyObject for any directory, but only the +markers of empty directories, and of the directories a marker was put +for, are listed as objects, as other directories may not have been made +by putting a marker. The markers put are remembered in memory with the +metadata (see Limitations), so after a restart, or once forgotten, the +marker of a directory holding other keys is no longer listed. While a +marker is remembered its directory isn't removed when the last key below +it is deleted. -serve s3 currently supports the following operations. +With --directory-markers every directory is listed as a directory +marker, so the markers are listed after a restart too, as needed by +clients which rely on them, such as rclone's s3 backend with +--s3-directory-markers. As every directory has a marker, a directory +isn't removed when the last key below it is deleted. Deleting the marker +of a directory which holds other keys stops it being listed, and the +directory is then removed with the last key below it, but this is only +remembered in memory, like the markers put without --directory-markers. -- Bucket - - ListBuckets - - CreateBucket - - DeleteBucket -- Object - - HeadObject - - ListObjects - - GetObject - - PutObject - - DeleteObject - - DeleteObjects - - CreateMultipartUpload - - CompleteMultipartUpload - - AbortMultipartUpload - - CopyObject - - UploadPart +As keys are file paths, a key can't be both an object and a directory +holding other objects, for example a/b and a/b/c. Writing an object +which would need this fails with 400 Bad Request (InvalidRequest). -Other operations will return error Unimplemented. +Compatibility + +serve s3 implements the parts of the S3 API that S3 clients commonly use +to store and fetch objects. Features it doesn't support are refused with +501 NotImplemented, or answered as AWS S3 answers for a bucket without +that feature configured, rather than being silently ignored. + + ------------------------------------------------------------------------------------------- + Feature Supported Notes + ----------------------- ------------------------------ ------------------------------------ + ListBuckets, Yes Buckets are the directories in the + CreateBucket, root of the remote. + DeleteBucket, + HeadBucket, + GetBucketLocation + + ListObjects, Yes Prefixes, delimiters, markers, + ListObjectsV2 start-after, continuation tokens, + fetch-owner and encoding-type=url + all work. Delimiters other than / + need the whole directory tree + walking. + + HeadObject, GetObject Yes Including Range, partNumber, the + response-* header overrides and the + If-Match, If-None-Match, + If-Modified-Since and + If-Unmodified-Since conditions. + + PutObject Yes Including Content-MD5, aws-chunked + uploads and uploads with no + Content-Length. + + CopyObject Yes Including the metadata and tagging + directives and the + x-amz-copy-source-if-* conditions. + + DeleteObject, Yes + DeleteObjects + + Multipart uploads Yes CreateMultipartUpload, UploadPart, + UploadPartCopy, + CompleteMultipartUpload, + AbortMultipartUpload, + ListMultipartUploads and ListParts. + The ETag of the object is its hash, + not the -N suffixed one AWS gives. + The 5 MiB minimum part size isn't + enforced. + + Conditional writes Partial If-Match and If-None-Match on + PutObject and + CompleteMultipartUpload are checked, + but not atomically against changes + made to the remote some other way + (see Limitations). + + Authentication Partial AWS Signature Version 4, in headers, + presigned URLs and browser form + (POST) uploads. Signature Version 2 + isn't supported. + + Anonymous access Partial All requests are allowed without + --auth-key or --auth-proxy, and none + are with them, as buckets and + objects can't be made public. + + Metadata Partial x-amz-meta-*, the storage class and + the standard headers such as + Content-Type are kept in memory only + (see Limitations), except the + modification time. The storage class + is only recorded, so doesn't change + how the object is stored. + + Directory markers Partial Keys ending in / are stored as + directories, so can't hold data. A + marker put for a directory holding + other keys is only listed while it + is remembered in memory, unless + --directory-markers is set (see + Object names). + + Checksums Partial The x-amz-checksum-* of a PutObject + (CRC32, CRC32C, CRC64NVME, SHA1 or + SHA256) is checked and returned with + the metadata. The Content-MD5 and + x-amz-checksum-* of the bodies of + other requests, such as + DeleteObjects, are checked. The + checksums of multipart uploads + aren't supported. + + GetObjectAttributes Partial Everything but the checksums of + multipart uploads. + + Object tagging Partial GetObjectTagging, PutObjectTagging + and DeleteObjectTagging work, but + tags are kept in memory with the + metadata. + + Bucket owner No serve s3 has no AWS account IDs, so + x-amz-expected-bucket-owner and + x-amz-source-expected-bucket-owner + are ignored. + + ACLs Partial GetBucketAcl and GetObjectAcl give + the owner full control. Only the + private ACL can be set. + + CORS Partial Preflight (OPTIONS) requests are + answered, allowing any origin. CORS + configuration (PutBucketCors) isn't + supported. + + Server side encryption No SSE-S3 (AES256) is accepted but the + data isn't encrypted. SSE-KMS and + SSE-C are refused. + + Versioning No Buckets are reported as unversioned + and ListObjectVersions lists each + object as version null. Enabling + versioning is refused. + + Object lock, retention No + and legal hold + + Bucket configuration No Bucket policies, tagging, lifecycle, + logging, encryption, website, + replication, notifications and the + like. Getting them fails as for a + bucket without them configured. + + SelectObjectContent, No + RestoreObject, torrents + ------------------------------------------------------------------------------------------- + +The ceph s3-tests can be run against serve s3 to check its +compatibility. See cmd/serve/s3/s3tests for how. Authentication @@ -13085,8 +14100,20 @@ To create an htpasswd file: htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when --allow-origin is set, +which are answered without authentication as browsers never send +credentials with them. + Use --realm to set the authentication realm. Use --salt to change the password hashing salt from the default. @@ -13119,6 +14146,14 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value. +--allow-origin enables cross-origin (CORS) requests from browsers by +setting the Access-Control-Allow-Origin header on every response to the +origin given, e.g. --allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an authenticated +server. + --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 @@ -13229,8 +14264,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -13279,11 +14314,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -13430,640 +14466,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. - -Some experimentation will be needed to find the optimum values of ---vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend -on the backend in use and the latency to the backend. - -For high performance object stores (eg AWS S3) a reasonable place to -start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M. -In testing with AWS S3 the performance scaled roughly as the ---vfs-read-chunk-streams setting. - -Similar settings should work for high latency links, but depending on -the latency they may need more --vfs-read-chunk-streams in order to get -the throughput. - -VFS Performance - -These flags may be used to enable/disable features of the VFS for -performance or other reasons. See also the chunked reading feature. - -In particular S3 and Swift benefit hugely from the --no-modtime flag (or -use --use-server-modtime for a slightly different effect) as each read -of the modification time takes a transaction. - - --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 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 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) - -Symlinks - -By default the VFS does not support symlinks. However this may be -enabled with either of the following flags: - - --links Translate symlinks to/from regular files with a '.rclonelink' extension. - --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS - -As most cloud storage systems do not support symlinks directly, rclone -stores the symlink as a normal file with a special extension. So a file -which appears as a symlink link-to-file.txt would be stored on cloud -storage as link-to-file.txt.rclonelink and the contents would be the -path to the symlink destination. - -Note that --links enables symlink translation globally in rclone - this -includes any backend which supports the concept (for example the local -backend). --vfs-links just enables it for the VFS layer. - -This scheme is compatible with that used by the local backend with the ---local-links flag. - -The --vfs-links flag has been designed for rclone mount, rclone nfsmount -and rclone serve nfs. - -It hasn't been tested with the other rclone serve commands yet. - -A limitation of the current implementation is that it expects the caller -to resolve sub-symlinks. For example given this directory tree - - . - ├── dir - │   └── file.txt - └── linked-dir -> dir - -The VFS will correctly resolve linked-dir but not linked-dir/file.txt. -This is not a problem for the tested commands but may be for other -commands. - -Note that there is an outstanding issue with symlink support issue #8245 -with duplicate files being created when symlinks are moved into -directories where there is a file of the same name (or vice versa). - -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 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". - -The --no-unicode-normalization flag controls whether a similar "fixup" -is performed for filenames that differ but are canonically equivalent -with respect to unicode. Unicode normalization can be particularly -helpful for users of macOS, which prefers form NFD instead of the NFC -used by most other platforms. It is therefore highly recommended to keep -the default of false on macOS, to avoid encoding compatibility issues. - -In the (probably unlikely) event that a directory has multiple duplicate -filenames after applying case and unicode normalization, the ---vfs-block-norm-dupes flag allows hiding these duplicates. This comes -with a performance tradeoff, as rclone will have to scan the entire -directory for duplicates when listing a directory. For this reason, it -is recommended to leave this disabled if not needed. However, macOS -users may wish to consider using it, as otherwise, if a remote directory -contains both NFC and NFD versions of the same filename, an odd -situation will occur: both versions of the file will be visible in the -mount, and both will appear to be editable, however, editing either -version will actually result in only the NFD version getting edited -under the hood. --vfs-block- norm-dupes prevents this confusion by -detecting this scenario, hiding the duplicates, and logging an error, -similar to how this is handled in rclone sync. - -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. - -VFS Metadata - -If you use the --vfs-metadata-extension flag you can get the VFS to -expose files which contain the metadata as a JSON blob. These files will -not appear in the directory listing, but can be stat-ed and opened and -once they have been they will appear in directory listings until the -directory cache expires. - -Note that some backends won't create metadata unless you pass in the ---metadata flag. - -For example, using rclone mount with ---metadata --vfs-metadata-extension .metadata we get - - $ ls -l /mnt/ - total 1048577 - -rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G - - $ cat /mnt/1G.metadata - { - "atime": "2025-03-04T17:34:22.317069787Z", - "btime": "2025-03-03T16:03:37.708253808Z", - "gid": "1000", - "mode": "100664", - "mtime": "2025-03-03T16:03:39.640238323Z", - "uid": "1000" - } - - $ ls -l /mnt/ - total 1048578 - -rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G - -rw-rw-r-- 1 user user 185 Mar 3 16:03 1G.metadata - -If the file has no metadata it will be returned as {} and if there is an -error reading the metadata the error will be returned as -{"error":"error string"}. - - rclone serve s3 remote:path [flags] - -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-key stringArray Set key pair for v4 authorization: access_key_id,secret_access_key - --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 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-perms FileMode Directory permissions (default 777) - --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend (see the Multipart uploads docs section) - --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") - --file-perms FileMode File permissions (default 666) - --force-path-style If true use path style access if false use virtual hosted style (default true) - --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000) - -h, --help help for s3 - --htpasswd string A htpasswd file - if not provided no authentication is done - --key string TLS PEM Private key - --link-perms FileMode Link permissions (default 666) - --max-header-bytes int Maximum size of request header (default 4096) - --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") - --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (see the Multipart uploads docs section) (default 256Mi) - --no-checksum Don't compare checksums on up/download - --no-cleanup Not to cleanup empty folder after object is deleted - --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 Only allow read-only access - --realm string Realm for authentication - --response-header stringArray Set HTTP header for all responses, overriding existing values - --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) - --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) - --umask FileMode Override the permission bits set by the filesystem (not supported on Windows) (default 002) - --user string User name for authentication - --user-from-header string User name from a defined HTTP header - --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost) - --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-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-handle-caching Duration Time to keep file handle and downloaders alive after last close (default 5s) - --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS - --vfs-metadata-extension string Set the extension to read metadata from - --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-chunk-streams int The number of parallel streams to read at once - --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) - --vfs-refresh Refreshes the directory cache recursively in the background on start - --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) - -Options shared with other commands are described next. See the global -flags page for global options not listed here. - -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) - --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) - --hash-filter string Partition filenames by hash k/n or randomly @/n - --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 Also - -- rclone serve - Serve a remote over a protocol. - -rclone serve sftp - -Serve the remote over SFTP. - -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. - -This also supports being run with socket activation, in which case it -will listen on the first passed FD. It can be configured with .socket -and .service unit files as described in -https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html. - -Socket activation can be tested ad-hoc with the -systemd-socket-activatecommand: - - systemd-socket-activate -l 2222 -- rclone serve sftp :local:vfs/ - -This will socket-activate rclone on the first connection to port 2222 -over TCP. - -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 -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 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 - -Or individual files or directories: - - rclone rc vfs/forget file=path/to/file dir=path/to/dir - -VFS File Buffering - -The --buffer-size flag determines the amount of memory, that will be -used to buffer data in advance. - -Each open file will try to keep the specified amount of data in memory -at all times. The buffered data is bound to one open file and won't be -shared. - -This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. - -The maximum memory used by rclone for buffering can be up to ---buffer-size * open files. - -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 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 or --vfs-cache-min-free-space 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-space 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. - -This will mean some operations are not possible - -- Files can't be opened for both read AND write -- Files opened for write can't be seeked -- Existing files opened for write must have O_TRUNC set -- Files open for read with O_TRUNC will be opened write only -- Files open for write only will behave as if O_TRUNC was supplied -- Open modes O_APPEND, O_TRUNC are ignored -- If an upload fails it can't be retried - ---vfs-cache-mode minimal - -This is very similar to "off" except that files opened for read AND -write will be buffered to disk. This means that files opened for write -will be a lot more compatible, but uses the minimal disk space. - -These operations are not possible - -- Files opened for write only can't be seeked -- Existing files opened for write must have O_TRUNC set -- Files opened for write only will ignore O_APPEND, O_TRUNC -- If an upload fails it can't be retried - ---vfs-cache-mode writes - -In this mode files opened for read only are still read directly from the -remote, write only and read/write files are buffered to disk first. - -This mode should support all normal file system operations. - -If an upload fails it will be retried at exponentially increasing -intervals up to 1 minute. - ---vfs-cache-mode full - -In this mode all reads and writes are buffered to and from disk. When -data is read from the remote this is buffered to disk as well. - -In this mode the files in the cache will be sparse files and rclone will -keep track of which bits of the files it has downloaded. - -So if an application only reads the starts of each file, then rclone -will only buffer the start of the file. These files will appear to be -their full size in the cache, but they will be sparse files with only -the data that has been downloaded present in them. - -This mode should support all normal file system operations and is -otherwise identical to --vfs-cache-mode writes. - -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: - - --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M) - --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off) - --vfs-read-chunk-streams int The number of parallel streams to read at once - -The chunking behaves differently depending on the ---vfs-read-chunk-streams parameter. - ---vfs-read-chunk-streams == 0 - -Rclone will start reading a chunk of size --vfs-read-chunk-size, and -then double the size for each read. When --vfs-read-chunk-size-limit is -specified, and greater than --vfs-read-chunk-size, the chunk size for -each open file will get doubled only until the specified value is -reached. If the value is "off", which is the default, the limit is -disabled and the chunk size will grow indefinitely. - -With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the -following parts will be downloaded: 0-100M, 100M-200M, 200M-300M, -300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified, -the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M, -1200M-1700M and so on. - -Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading. - -The chunks will not be buffered in memory. - ---vfs-read-chunk-streams > 0 - -Rclone reads --vfs-read-chunk-streams chunks of size ---vfs-read-chunk-size concurrently. The size for each read will stay -constant. - -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -14290,16 +14694,18 @@ This config generated must have this extra parameter - _root - root to use for the backend -And it may have this parameter +And it may have these parameters - _obscure - comma separated strings for parameters to obscure +- _secret_access_key - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } If public-key authentication was used by the client, input to the proxy @@ -14307,9 +14713,41 @@ process (on STDIN) would look similar to this: { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } +If the client authenticated with an S3 access key (rclone serve s3), the +client never sends its secret, only a signature made with it, so the +input contains just the access key ID as the user with no pass or +public_key: + + { + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" + } + +In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the proxy +program is the source of truth for both the credentials and the backend +they map to. If the program does not return _secret_access_key or +returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but is +checked with the program again after 5 minutes even if the access key ID +is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it. + +The client_ip key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT { @@ -14333,11 +14771,773 @@ 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. -An internal cache of backends is keyed on the user and a hash of the -pass or public_key. This means that if a user's password or public-key -changes, or the proxy returns different config parameters (eg a rotated -api_key), a fresh backend will be created on the next request rather -than the cached one being reused. +An internal cache of backends is keyed on the user, the kind of +credential presented, a hash of the pass or public_key, and the +client_ip. This means that if a user's password or public-key changes, +the client connects from a new IP address, or the proxy returns +different config parameters (eg a rotated api_key), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. For serve sftp this applies to new logins - an +existing connection is not closed. + +This can be used to build general purpose proxies to any kind of backend +that rclone supports. + + rclone serve s3 remote:path [flags] + +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-key stringArray Set key pair for v4 authorization: access_key_id,secret_access_key + --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 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-perms FileMode Directory permissions (default 777) + --directory-markers List every directory as a directory marker object + --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend + --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") + --file-perms FileMode File permissions (default 666) + --force-path-style If true use path style access if false use virtual hosted style (default true) + --gid uint32 Override the gid field set by the filesystem (not supported on Windows) (default 1000) + -h, --help help for s3 + --htpasswd string A htpasswd file - if not provided no authentication is done + --key string TLS PEM Private key + --link-perms FileMode Link permissions (default 666) + --max-header-bytes int Maximum size of request header (default 4096) + --metadata-max-objects int Maximum number of objects of a user whose metadata is kept in memory, 0 for unlimited (default 100000) + --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") + --multipart-expiry Duration Abort incomplete multipart uploads idle for longer than this, 0 to keep forever (default 1d) + --multipart-max-uploads int Maximum number of streamed multipart uploads a user can have in progress at once, 0 for unlimited (default 1000) + --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (default 256Mi) + --multipart-streaming-buffer-total SizeSuffix Maximum memory buffered by all the streamed multipart uploads of a user for parts arriving out of order, 0 for unlimited (default 1Gi) + --no-checksum Don't compare checksums on up/download + --no-cleanup Deprecated: use --directory-markers instead + --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 Only allow read-only access + --realm string Realm for authentication + --response-header stringArray Set HTTP header for all responses, overriding existing values + --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) + --uid uint32 Override the uid field set by the filesystem (not supported on Windows) (default 1000) + --umask FileMode Override the permission bits set by the filesystem (not supported on Windows) (default 002) + --user string User name for authentication + --user-from-header string User name from a defined HTTP header + --vfs-block-norm-dupes If duplicate filenames exist in the same directory (after normalization), log an error and hide the duplicates (may have a performance cost) + --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-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-handle-caching Duration Time to keep file handle and downloaders alive after last close (default 5s) + --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS + --vfs-metadata-extension string Set the extension to read metadata from + --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-chunk-streams int The number of parallel streams to read at once + --vfs-read-wait Duration Time to wait for in-sequence read before seeking (default 20ms) + --vfs-refresh Refreshes the directory cache recursively in the background on start + --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) + +Options shared with other commands are described next. See the global +flags page for global options not listed here. + +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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly @/n + --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 Also + +- rclone serve - Serve a remote over a protocol. + +rclone serve sftp + +Serve the remote over SFTP. + +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. + +This also supports being run with socket activation, in which case it +will listen on the first passed FD. It can be configured with .socket +and .service unit files as described in +https://www.freedesktop.org/software/systemd/man/latest/systemd.socket.html. + +Socket activation can be tested ad-hoc with the +systemd-socket-activatecommand: + + systemd-socket-activate -l 2222 -- rclone serve sftp :local:vfs/ + +This will socket-activate rclone on the first connection to port 2222 +over TCP. + +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 +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 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 + +Or individual files or directories: + + rclone rc vfs/forget file=path/to/file dir=path/to/dir + +VFS File Buffering + +The --buffer-size flag determines the amount of memory, that will be +used to buffer data in advance. + +Each open file will try to keep the specified amount of data in memory +at all times. The buffered data is bound to one open file and won't be +shared. + +This flag is a upper limit for the used memory per open file. The buffer +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. + +The maximum memory used by rclone for buffering can be up to +--buffer-size * open files. + +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 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 or --vfs-cache-min-free-space 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-space 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; it is based on access time, not on +when the file was first added to the cache. 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. + +This will mean some operations are not possible + +- Files can't be opened for both read AND write +- Files opened for write can't be seeked +- Existing files opened for write must have O_TRUNC set +- Files open for read with O_TRUNC will be opened write only +- Files open for write only will behave as if O_TRUNC was supplied +- Open modes O_APPEND, O_TRUNC are ignored +- If an upload fails it can't be retried + +--vfs-cache-mode minimal + +This is very similar to "off" except that files opened for read AND +write will be buffered to disk. This means that files opened for write +will be a lot more compatible, but uses the minimal disk space. + +These operations are not possible + +- Files opened for write only can't be seeked +- Existing files opened for write must have O_TRUNC set +- Files opened for write only will ignore O_APPEND, O_TRUNC +- If an upload fails it can't be retried + +--vfs-cache-mode writes + +In this mode files opened for read only are still read directly from the +remote, write only and read/write files are buffered to disk first. + +This mode should support all normal file system operations. + +If an upload fails it will be retried at exponentially increasing +intervals up to 1 minute. + +--vfs-cache-mode full + +In this mode all reads and writes are buffered to and from disk. When +data is read from the remote this is buffered to disk as well. + +In this mode the files in the cache will be sparse files and rclone will +keep track of which bits of the files it has downloaded. + +So if an application only reads the starts of each file, then rclone +will only buffer the start of the file. These files will appear to be +their full size in the cache, but they will be sparse files with only +the data that has been downloaded present in them. + +This mode should support all normal file system operations and is +otherwise identical to --vfs-cache-mode writes. + +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: + + --vfs-read-chunk-size SizeSuffix Read the source objects in chunks (default 128M) + --vfs-read-chunk-size-limit SizeSuffix Max chunk doubling size (default off) + --vfs-read-chunk-streams int The number of parallel streams to read at once + +The chunking behaves differently depending on the +--vfs-read-chunk-streams parameter. + +--vfs-read-chunk-streams == 0 + +Rclone will start reading a chunk of size --vfs-read-chunk-size, and +then double the size for each read. When --vfs-read-chunk-size-limit is +specified, and greater than --vfs-read-chunk-size, the chunk size for +each open file will get doubled only until the specified value is +reached. If the value is "off", which is the default, the limit is +disabled and the chunk size will grow indefinitely. + +With --vfs-read-chunk-size 100M and --vfs-read-chunk-size-limit 0 the +following parts will be downloaded: 0-100M, 100M-200M, 200M-300M, +300M-400M and so on. When --vfs-read-chunk-size-limit 500M is specified, +the result would be 0-100M, 100M-300M, 300M-700M, 700M-1200M, +1200M-1700M and so on. + +Setting --vfs-read-chunk-size to 0 or "off" disables chunked reading. + +The chunks will not be buffered in memory. + +--vfs-read-chunk-streams > 0 + +Rclone reads --vfs-read-chunk-streams chunks of size +--vfs-read-chunk-size concurrently. The size for each read will stay +constant. + +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. + +Some experimentation will be needed to find the optimum values of +--vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend +on the backend in use and the latency to the backend. + +For high performance object stores (eg AWS S3) a reasonable place to +start might be --vfs-read-chunk-streams 16 and --vfs-read-chunk-size 4M. +In testing with AWS S3 the performance scaled roughly as the +--vfs-read-chunk-streams setting. + +Similar settings should work for high latency links, but depending on +the latency they may need more --vfs-read-chunk-streams in order to get +the throughput. + +VFS Performance + +These flags may be used to enable/disable features of the VFS for +performance or other reasons. See also the chunked reading feature. + +In particular S3 and Swift benefit hugely from the --no-modtime flag (or +use --use-server-modtime for a slightly different effect) as each read +of the modification time takes a transaction. + + --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 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 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) + +Symlinks + +By default the VFS does not support symlinks. However this may be +enabled with either of the following flags: + + --links Translate symlinks to/from regular files with a '.rclonelink' extension. + --vfs-links Translate symlinks to/from regular files with a '.rclonelink' extension for the VFS + +As most cloud storage systems do not support symlinks directly, rclone +stores the symlink as a normal file with a special extension. So a file +which appears as a symlink link-to-file.txt would be stored on cloud +storage as link-to-file.txt.rclonelink and the contents would be the +path to the symlink destination. + +Note that --links enables symlink translation globally in rclone - this +includes any backend which supports the concept (for example the local +backend). --vfs-links just enables it for the VFS layer. + +This scheme is compatible with that used by the local backend with the +--local-links flag. + +The --vfs-links flag has been designed for rclone mount, rclone nfsmount +and rclone serve nfs. + +It hasn't been tested with the other rclone serve commands yet. + +A limitation of the current implementation is that it expects the caller +to resolve sub-symlinks. For example given this directory tree + + . + ├── dir + │   └── file.txt + └── linked-dir -> dir + +The VFS will correctly resolve linked-dir but not linked-dir/file.txt. +This is not a problem for the tested commands but may be for other +commands. + +Note that there is an outstanding issue with symlink support issue #8245 +with duplicate files being created when symlinks are moved into +directories where there is a file of the same name (or vice versa). + +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 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". + +The --no-unicode-normalization flag controls whether a similar "fixup" +is performed for filenames that differ but are canonically equivalent +with respect to unicode. Unicode normalization can be particularly +helpful for users of macOS, which prefers form NFD instead of the NFC +used by most other platforms. It is therefore highly recommended to keep +the default of false on macOS, to avoid encoding compatibility issues. + +In the (probably unlikely) event that a directory has multiple duplicate +filenames after applying case and unicode normalization, the +--vfs-block-norm-dupes flag allows hiding these duplicates. This comes +with a performance tradeoff, as rclone will have to scan the entire +directory for duplicates when listing a directory. For this reason, it +is recommended to leave this disabled if not needed. However, macOS +users may wish to consider using it, as otherwise, if a remote directory +contains both NFC and NFD versions of the same filename, an odd +situation will occur: both versions of the file will be visible in the +mount, and both will appear to be editable, however, editing either +version will actually result in only the NFD version getting edited +under the hood. --vfs-block- norm-dupes prevents this confusion by +detecting this scenario, hiding the duplicates, and logging an error, +similar to how this is handled in rclone sync. + +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. + +VFS Metadata + +If you use the --vfs-metadata-extension flag you can get the VFS to +expose files which contain the metadata as a JSON blob. These files will +not appear in the directory listing, but can be stat-ed and opened and +once they have been they will appear in directory listings until the +directory cache expires. + +Note that some backends won't create metadata unless you pass in the +--metadata flag. + +For example, using rclone mount with +--metadata --vfs-metadata-extension .metadata we get + + $ ls -l /mnt/ + total 1048577 + -rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G + + $ cat /mnt/1G.metadata + { + "atime": "2025-03-04T17:34:22.317069787Z", + "btime": "2025-03-03T16:03:37.708253808Z", + "gid": "1000", + "mode": "100664", + "mtime": "2025-03-03T16:03:39.640238323Z", + "uid": "1000" + } + + $ ls -l /mnt/ + total 1048578 + -rw-rw-r-- 1 user user 1073741824 Mar 3 16:03 1G + -rw-rw-r-- 1 user user 185 Mar 3 16:03 1G.metadata + +If the file has no metadata it will be returned as {} and if there is an +error reading the metadata the error will be returned as +{"error":"error string"}. + +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 these parameters + +- _obscure - comma separated strings for parameters to obscure +- _secret_access_key - the secret for S3 access key auth (see below) + +If password authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this: + + { + "user": "me", + "pass": "mypassword", + "client_ip": "192.168.1.1" + } + +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", + "client_ip": "192.168.1.1" + } + +If the client authenticated with an S3 access key (rclone serve s3), the +client never sends its secret, only a signature made with it, so the +input contains just the access key ID as the user with no pass or +public_key: + + { + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" + } + +In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the proxy +program is the source of truth for both the credentials and the backend +they map to. If the program does not return _secret_access_key or +returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but is +checked with the program again after 5 minutes even if the access key ID +is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it. + +The client_ip key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + +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. + +An internal cache of backends is keyed on the user, the kind of +credential presented, a hash of the pass or public_key, and the +client_ip. This means that if a user's password or public-key changes, +the client connects from a new IP address, or the proxy returns +different config parameters (eg a rotated api_key), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. For serve sftp this applies to new logins - an +existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -14538,6 +15738,14 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format Header-Name: value. +--allow-origin enables cross-origin (CORS) requests from browsers by +setting the Access-Control-Allow-Origin header on every response to the +origin given, e.g. --allow-origin https://app.example.com. Browser CORS +preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting +this to * allows any origin which is a security risk on an authenticated +server. + --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 @@ -14625,6 +15833,34 @@ be used within the template to server pages: .Query Currently unused. + .Path The path of the + directory from the + root with leading and + trailing slashes, e.g. + '/dir/'. + + .IsRoot Boolean for if this is + the root directory. + + .UpLink The link to the parent + directory. + + .Static Boolean for if the + listing is being + written as a static + page by rclone index. + + .NumDirs The number of + directories in the + listing. + + .NumFiles The number of files in + the listing. + + .TotalSize The total size in + bytes of the files in + the listing. + .Breadcrumb Allows for creating a relative navigation. @@ -14653,6 +15889,11 @@ be used within the template to server pages: .ModTime The UTC timestamp of an entry. + + .MimeType The MIME type of an + entry guessed from its + name, or + 'inode/directory'. ----------------------------------------------------------------------- The server also makes the following functions available so that they can @@ -14704,8 +15945,20 @@ To create an htpasswd file: htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when --allow-origin is set, +which are answered without authentication as browsers never send +credentials with them. + Use --realm to set the authentication realm. Use --salt to change the password hashing salt from the default. @@ -14765,8 +16018,8 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The buffer -will only use memory for data that is downloaded but not not yet read. -If the buffer is empty, only a small amount of memory will be used. +will only use memory for data that is downloaded but not yet read. If +the buffer is empty, only a small amount of memory will be used. The maximum memory used by rclone for buffering can be up to --buffer-size * open files. @@ -14815,11 +16068,12 @@ 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 . +time since last access has passed; it is based on access time, not on +when the file was first added to the cache. 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 @@ -14966,8 +16220,8 @@ Rclone reads --vfs-read-chunk-streams chunks of size --vfs-read-chunk-size concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of --vfs-read-chunk-size and --vfs-read-chunk-streams as these will depend @@ -15194,16 +16448,18 @@ This config generated must have this extra parameter - _root - root to use for the backend -And it may have this parameter +And it may have these parameters - _obscure - comma separated strings for parameters to obscure +- _secret_access_key - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } If public-key authentication was used by the client, input to the proxy @@ -15211,9 +16467,41 @@ process (on STDIN) would look similar to this: { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } +If the client authenticated with an S3 access key (rclone serve s3), the +client never sends its secret, only a signature made with it, so the +input contains just the access key ID as the user with no pass or +public_key: + + { + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" + } + +In this case the program must look up the secret access key for that +access key ID and return it in the _secret_access_key field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the proxy +program is the source of truth for both the credentials and the backend +they map to. If the program does not return _secret_access_key or +returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but is +checked with the program again after 5 minutes even if the access key ID +is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. A rotated secret takes effect on the first +request signed with it. + +The client_ip key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT { @@ -15237,11 +16525,19 @@ 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. -An internal cache of backends is keyed on the user and a hash of the -pass or public_key. This means that if a user's password or public-key -changes, or the proxy returns different config parameters (eg a rotated -api_key), a fresh backend will be created on the next request rather -than the cached one being reused. +An internal cache of backends is keyed on the user, the kind of +credential presented, a hash of the pass or public_key, and the +client_ip. This means that if a user's password or public-key changes, +the client connects from a new IP address, or the proxy returns +different config parameters (eg a rotated api_key), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. For serve sftp this applies to new logins - an +existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -15577,7 +16873,7 @@ This command runs a series of uploads and downloads to the remote, measuring and printing the speed of each test using varying file sizes and numbers of files. -Test time can be innaccurate with small file caps and large files. As it +Test time can be inaccurate with small file caps and large files. As it uses the results of an initial test to determine how many files to use in each subsequent test. @@ -15634,9 +16930,11 @@ will touch --transfers files concurrently. If --timestamp is used then sets the modification time to that time instead of the current time. Times may be specified as one of: -- 'YYMMDD' - e.g. 17.10.30 +- 'YYMMDD' - e.g. 171030 +- 'YYYY-MM-DD' - e.g. 2006-01-02 - 'YYYY-MM-DDTHH:MM:SS' - e.g. 2006-01-02T15:04:05 - 'YYYY-MM-DDTHH:MM:SS.SSS' - e.g. 2006-01-02T15:04:05.123456789 +- 'YYYY-MM-DDTHH:MM:SSZ' - e.g. 2006-01-02T15:04:05Z Note that value of --timestamp is in UTC. If you want local time then add the --localtime flag. @@ -16015,6 +17313,11 @@ 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". +If you want to configure a remote using environment variables then its +name becomes part of the environment variable name, which in practice +restricts the characters you can use in it. See the Config file section +under Environment variables for details. + 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 @@ -16061,6 +17364,7 @@ Not all global variables make sense to be overridden like this as the config is only applied during the remote creation. Here is a non exhaustive list of ones which might be useful: +- allow_https_downgrade - bind_addr - ca_cert - client_cert @@ -16356,6 +17660,125 @@ time of the source object. Hashes are not included in system metadata as there is a well defined way of reading those already. +Performance + +Rclone's defaults are fairly conservative. They are chosen to work on +small machines, slow links and with cloud providers which rate limit +heavily. If you have plenty of bandwidth, memory and a fast storage +system then rclone can usually be made to run a great deal faster by +adjusting a few flags. + +The right values depend on the size of your files, your network and the +storage systems at each end, so treat the numbers below as starting +points. Change one thing at a time and measure the result. + +Measuring + +Use rclone copy with -P/--progress to watch the transfer rate while you +are experimenting. For unattended runs log the stats instead, e.g. +--stats 1m --stats-one-line --stats-log-level NOTICE. + +A transfer is always limited by something: the network bandwidth, the +rate at which the storage system will accept requests, disk IO, CPU or +memory. Tuning is working out which limit you are hitting and raising it +until you hit the next one. Watch the network, disk, CPU and memory use +of the machine rclone is running on as well as rclone's stats. + +Lots of files + +The time taken to transfer small files is dominated by the round trip +time of the requests rather than by the bandwidth, so the way to make +them go faster is to do more of them at once. + +--transfers sets the number of files transferred in parallel. The +default is 4. Double this until the transfer rate stops increasing or +the storage system starts returning errors. Values of 32 to 64 are +common and values in the hundreds work well with the large object +storage systems (e.g. s3, azureblob, googlecloudstorage, b2) when +transferring lots of small files. + +--checkers sets the number of directory listings and file comparisons +done in parallel. The default is 8. Raising this speeds up syncs where +most of the files are already present on the destination and stops the +checking being the bottleneck when --transfers is large. 16 to 64 is a +reasonable range. + +Not all storage systems like lots of parallel requests. If you see rate +limiting errors (e.g. HTTP 429 or 503 errors) or lots of low level +retries in the log then you have gone too far, so reduce --transfers and +--checkers or use --tpslimit to cap the request rate. Local disks, +especially spinning ones, and network file systems may get slower rather +than faster with too much parallelism. + +Large files + +A single stream often won't fill a fast link, so rclone can transfer a +large file as several chunks in parallel. These are called multi-thread +transfers and are used for files bigger than --multi-thread-cutoff on +backends which support them. + +The number of chunks transferred in parallel is set by +--multi-thread-streams (default 4) and this works for all backends so +increase this first to make large files transfer faster. + +The size of the chunks is set by the backend, usually with a +--backend-chunk-size flag, e.g. --s3-chunk-size. Backends without a +natural chunk size (e.g. local, smb) use --multi-thread-chunk-size. +Larger chunks mean fewer requests which increases throughput on big +files. See the docs for the backend you are using for details. + +Chunked uploads are usually buffered in memory, so in the worst case +rclone will use + + --transfers * upload concurrency * chunk size + +of memory for buffers. For example --transfers 256 with an upload +concurrency of 8 and a chunk size of 16 MiB could use up to 32 GiB. When +you raise --transfers to speed up small files you may therefore need to +lower the upload concurrency, or set --max-buffer-memory which limits +the total memory used for buffers and makes transfers wait when the +limit is reached. + +--use-mmap makes rclone return buffer memory to the OS as soon as it has +finished with it which is helpful when using lots of transfers or large +chunks. + +A mixture of large and small files + +By default rclone transfers files in roughly the order it finds them. +With a mixture of file sizes this means that at times all the transfers +are large files, which fill the bandwidth but make few requests, and at +other times all the transfers are small files, which make lots of +requests but use little of the bandwidth. + +Using --order-by size,mixed,50 makes half of the transfers take the +smallest files in the backlog and half of them take the largest. This +keeps both large and small files moving at once so the bandwidth and the +request rate are both kept full for the whole of the run. + +This works best if rclone has lots of files to choose from so use it +with a big --max-backlog, e.g. --max-backlog 2000000. Each item in the +backlog uses in the order of 1 KiB of memory. + +Doing less work + +Fewer requests to the storage system means a faster transfer. + +- If the source and destination are on the same remote then rclone + will use server-side copy where it is supported so the data doesn't + need to be downloaded and uploaded again. +- --fast-list lists bucket-based remotes with fewer transactions at + the cost of using more memory. This may be faster or slower than the + default so it is worth testing. +- --no-traverse stops rclone listing the destination which helps when + copying a small number of files into a large destination. +- --size-only or --checksum avoid reading the modification time. On + some object storage systems (e.g. s3, swift) this needs an extra + request for each file. Alternatively use --use-server-modtime with + --update. +- --no-check-dest skips checking the destination entirely. Only use + this if you know that none of the files are there already. + Options Rclone has a number of options to control its behaviour. These are @@ -16421,7 +17844,7 @@ treated as a number of seconds. The following suffixes are valid: - M - Months - y - Years -Examples: "10", "300ms", "-1.5h" or "2h45m". +Examples: "10", "300ms", "-1.5h", "2h45m" or "1d12h". Size options @@ -16436,6 +17859,21 @@ See also --human-readable. Main options +--allow-https-downgrade + +By default rclone refuses to follow a redirect from an https:// URL to a +plain http:// URL, as any credentials or other headers in the request +would then be sent unencrypted, and the response could be altered by +anyone on the network path. The request fails with an error which +mentions this flag. + +Set --allow-https-downgrade to follow such redirects, for example when +downloading from a mirror which redirects to plain HTTP. Some backends +still refuse to follow them, as doing so would send their credentials in +cleartext. + +This option defaults to false. + --backup-dir string When using sync, copy or move, any files which would have been @@ -16556,7 +17994,7 @@ example: Is equivalent to this: - --bwlimit "Mon-00:00,512Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off" + --bwlimit "Mon-00:00,512 Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off" Bandwidth limit apply to the data transfer for all backends. For most backends the directory listing bandwidth is also included (exceptions @@ -16856,7 +18294,7 @@ 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 +If a file or directory does not 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 @@ -17010,6 +18448,12 @@ This flag is supported for all HTTP based backends even those not supported by --header-upload and --header-download so may be used as a workaround for those with care. +The headers are only sent to the host of the original request. If the +server redirects to another host (including a subdomain or a different +port), or redirects an https request to http, the headers are not sent +to it, or to any further hop in that redirect chain. Rclone logs this at +debug level (-vv). + rclone ls remote:test --header "X-Rclone: Foo" --header "X-LetMeIn: Yes" --header-download stringArray @@ -17186,6 +18630,11 @@ 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. +On macOS, if rclone clones a file (see --local-no-clone) and the +destination already exists, the existing file is replaced with a new +one, even with --inplace, so hard links to it will be broken. Use +--local-no-clone to keep them. + Note also that versions of rclone prior to v1.63.0 behave as if the --inplace flag is always supplied. @@ -17235,8 +18684,8 @@ like symlinks under Windows). Ignored files won't be copied, moved or deleted in a sync. If you supply this flag then rclone will copy symbolic links from any -supported backend backend, and store them as text files, with a -.rclonelink suffix in the destination. +supported backend, and store them as text files, with a .rclonelink +suffix in the destination. The text file will contain the target of the symbolic link. @@ -17749,8 +19198,8 @@ 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 OpenChunkWriter internal -interfaces). These include include, local, s3, azureblob, b2, -oracleobjectstorage and smb at the time of writing. +interfaces). These 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 @@ -17772,8 +19221,8 @@ Most multi-thread transfers do not take additional memory, but some do (for example uploading to s3). In the worst case memory usage can be at maximum --transfers * --multi-thread-chunk-size * --multi-thread-streams or specifically for the s3 backend --transfers * --s3-chunk-size * ---s3-concurrency. However you can use the the --max-buffer-memory flag -to control the maximum memory used here. +--s3-concurrency. However you can use the --max-buffer-memory flag to +control the maximum memory used here. NB that this only works with supported backends as the destination but will work with any backend as the source. @@ -17889,8 +19338,10 @@ what aspect is being measured: - size - order by the size of the files - name - order by the full path of the files - modtime - order by the modification date of the files +- pattern - order by a list of path glob patterns -This can have a modifier appended with a comma: +The size, name and modtime comparisons can have a modifier appended with +a comma: - ascending or asc - order so that the smallest (or oldest) is processed first @@ -17910,11 +19361,19 @@ bandwidth and the small files will be processed continuously. If no modifier is supplied then the order is ascending. +For pattern, append one or more comma-separated patterns. Patterns use +the filter pattern syntax. Files matching the first pattern are +processed first, followed by files matching the second pattern, and so +on. Files which do not match a pattern are processed last. Within each +group, files are ordered by full path. Patterns cannot contain a comma. + For example - --order-by size,desc - send the largest files first - --order-by modtime,ascending - send the oldest files first - --order-by name - send the files with alphabetically by path first +- --order-by 'pattern,*.tar.gz,*.md5' - send archives before checksum + files If the --order-by flag is not supplied or it is supplied with an empty string then the default ordering will be used which is as scanned. With @@ -17957,13 +19416,16 @@ the config password for the first time. The argument to this should be a command with a space separated list of arguments. If one of the arguments has a space in then enclose it in ", if you want a literal " in an argument then enclose the argument in " -and double the ". See CSV encoding for more info. +and double the ". This includes the command itself: if the path to the +executable contains a space, it must be quoted too. See CSV encoding for +more info. Eg --password-command "echo hello" --password-command 'echo "hello with space"' --password-command 'echo "hello with ""quotes"" and space"' + --password-command '"/path with a space/get-password.sh"' Note that when changing the configuration password the environment variable RCLONE_PASSWORD_CHANGE=1 will be set. This can be used to @@ -18974,9 +20436,12 @@ 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. 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. +make it all uppercase. Note that the name of the remote is only +converted to uppercase - characters such as - and . are not changed to +_ - so a remote called my-remote needs RCLONE_CONFIG_MY-REMOTE_TYPE. +Many shells only allow letters, digits and _ (underscore) in environment +variable names, so it is best to use only those characters in the name +of a remote you want to configure this way. For example, to configure an S3 remote named mys3: without a config file (using unix ways of setting environment variables): @@ -19210,7 +20675,7 @@ Rclone matching rules follow a glob style: * matches any sequence of non-separator (/) characters ** matches any sequence of characters including / separators ? matches any single non-separator (/) character - [ [ ! ] { character-range } ] + [ [ ! | ^ ] { character-range } ] character class (must be non-empty) { pattern-list } pattern alternatives @@ -20171,6 +21636,10 @@ When you run rclone gui this is what happens - The URL already contains the username & password, in which case the GUI will use those values and log you in automatically. +The rc address is passed to the GUI via the url query parameter (the URL +printed in the terminal); append ?url=http://... to point it at a +different rc server. + Security It's important to think first about what rclone has access to and what @@ -20379,10 +21848,20 @@ Default Off. Set the allowed Access-Control-Allow-Origin for rc requests. -Can be used with --rc-web-gui if the rclone is running on different IP -than the web-gui. +This enables cross-origin (CORS) requests from browsers on the origin +given, for example --rc-allow-origin https://app.example.com. Browser +CORS preflight OPTIONS requests are answered by rclone without +authentication as browsers never send credentials with them. All other +requests, including other OPTIONS requests, must be authenticated when +authentication is enabled. -Default is IP address on which rc is running. +The rclone gui command sets this automatically to the origin the GUI is +served from if it is not set explicitly. + +Setting this to * allows any origin which is a security risk on an +authenticated server. + +Default is off (no CORS). --rc-web-fetch-url @@ -20431,6 +21910,9 @@ 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. +Without authorisation or this flag, POST request bodies are limited to +64 KiB. + Default Off. --rc-baseurl @@ -20499,6 +21981,27 @@ Rather than rclone rc operations/list --json '{"fs": "/tmp", "remote": "test", "opt": {"showHash": true}}' +Paths on Windows + +Prefer forward slashes (/) in Windows paths passed to the rc API, for +example C:/path1/path2. If you use backslashes (\) in a JSON string, +escape each one as \\. These JSON objects contain equivalent Windows +paths: + + {"remote": "C:/path1/path2"} + + {"remote": "C:\\path1\\path2"} + +This applies to JSON request bodies and to JSON-encoded object +parameters, such as parameters in config/create, even when that JSON is +sent in a query string or form data. An unescaped backslash can cause a +JSON parsing error or be interpreted as an escape sequence, such as \t +for a tab. + +String parameters sent directly in a query string or form data, without +JSON encoding, do not need JSON escaping. Use your HTTP client's URL +encoding for query strings and form data. + Special parameters The rc interface supports some special parameters which apply to all @@ -20651,6 +22154,14 @@ Or flat: If you wish to check the _config assignment has worked properly then calling options/local will show what the value got set to. +Setting LogLevel sets the log level for the logs made by the rc call +only, for example to debug a single call. + + "_config":{"LogLevel": "DEBUG"} + +Note that not all of rclone's logs support this yet. In particular the +backends log at the global log level. + Setting filter flags with _filter If you wish to set filters for the duration of an rc call only then pass @@ -21363,6 +22874,7 @@ Returns the following values: "totalTransfers": total number of transfers in the group, "transferTime" : total time spent on running jobs, "transfers": number of transferred files, + "updatedDirs": number of directories updated (modtime or metadata set), "transferring": an array of currently active file transfers: [ { @@ -21636,8 +23148,6 @@ Results: - runningIds - array of integer job ids that are running - finishedIds - array of integer job ids that are finished -Authentication is not required for this call. - job/status: Reads the status of the job ID Parameters: @@ -21662,8 +23172,6 @@ Results: synchronously - progress - output of the progress related to the underlying job -Authentication is not required for this call. - job/stop: Stop the running job Parameters: @@ -22010,6 +23518,30 @@ instead: rclone rc --loopback operations/fsinfo fs=remote: +operations/getfile: Get a single file into a JSON response. + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:path/to/file" or + "drive:path/to/dir" +- remote - (optional) a path within that remote e.g. "file.txt" +- offset - (optional) start reading at offset N (or from end if + negative) (default 0) +- count - (optional) only read N bytes (default -1) +- head - (optional) only read the first N bytes (default 0) +- tail - (optional) only read the last N bytes (default 0) +- maxSize - (optional) maximum size limit in bytes (can only lower the + built-in maximum) (default 2097152 / 2MiB) +- base64 - (optional) if true, returns the file contents + base64-encoded (default false) + +Returns: + +- result - contents of the file as string or base64-encoded string + +For streaming file content over HTTP with Range support, use the +--rc-serve flag instead. + operations/hashsum: Produces a hashsum file for all the objects in the path. Produces a hash file for all the objects in the path using the hash @@ -22086,6 +23618,33 @@ Example: See the hashsum command for more information on the above. +operations/index: Write static directory listings into a remote + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:" +- opt - a dictionary of options to control the indexing (optional) + - output - list of listings to write in each directory as + "NAME=FORMAT" (default ["index.html=html"]) + - rules - which directories get listings, e.g. {"ExcludeRule": + ["/private/**"]} + - maxDepth - only make listings this many directories deep + (default -1 for no limit) + - linkIndex - link to "dir/NAME" rather than "dir/" + - dirTime - how to work out directory times: "newest", "dir" or + "none" + - noModTime - don't show modification times + - rewrite - write every listing even if it is unchanged + - changed - list of changed paths for a partial run, directories + ending in "/" + - changedFrom - list of files of changed paths, one per line + - changedCombined - list of files in the sync --combined report + format + - changedMaxDirs - do a full run if a partial one would list more + directories than this + +See the index command for more information on the above. + operations/list: List the given remote and path in JSON format This takes the following parameters: @@ -22310,91 +23869,6 @@ And this sets NOTICE level logs (normal without -v) rclone rc options/set --json '{"main": {"LogLevel": "NOTICE"}}' -pluginsctl/addPlugin: Add a plugin using url - -Used for adding a plugin to the webgui. - -This takes the following parameters: - -- url - http url of the github repo where the plugin is hosted - (http://github.com/rclone/rclone-webui-react). - -Example: - -rclone rc pluginsctl/addPlugin - -pluginsctl/getPluginsForType: Get plugins with type criteria - -This shows all possible plugins by a mime type. - -This takes the following parameters: - -- type - supported mime type by a loaded plugin e.g. (video/mp4, - audio/mp3). -- pluginType - filter plugins based on their type e.g. (DASHBOARD, - FILE_HANDLER, TERMINAL). - -Returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, - usually running on a different server. - -Example: - -rclone rc pluginsctl/getPluginsForType type=video/mp4 - -pluginsctl/listPlugins: Get the list of currently loaded plugins - -This allows you to get the currently enabled plugins and their details. - -This takes no parameters and returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, - usually running on a different server. - -E.g. - -rclone rc pluginsctl/listPlugins - -pluginsctl/listTestPlugins: Show currently loaded test plugins - -Allows listing of test plugins with the rclone.test set to true in -package.json of the plugin. - -This takes no parameters and returns: - -- loadedTestPlugins - list of currently available test plugins. - -E.g. - - rclone rc pluginsctl/listTestPlugins - -pluginsctl/removePlugin: Remove a loaded plugin - -This allows you to remove a plugin using it's name. - -This takes parameters: - -- name - name of the plugin in the format author/plugin_name. - -E.g. - -rclone rc pluginsctl/removePlugin name=rclone/video-plugin - -pluginsctl/removeTestPlugin: Remove a test plugin - -This allows you to remove a plugin using it's name. - -This takes the following parameters: - -- name - name of the plugin in the format author/plugin_name. - -Example: - - rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react - rc/error: This returns an error This returns an error with the input as part of its error string. Useful @@ -22571,6 +24045,9 @@ This takes the following parameters: - path2 (required) - (string) a remote directory string e.g. drive:path2 - dryRun - (bool) dry-run mode +- maxDelete - (int) Safety check on maximum percentage of deleted + files allowed. If exceeded, the bisync run will abort. (default: + 50%) - backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote. - backupDir2 - (string) --backup-dir for Path2. Must be a @@ -22603,6 +24080,8 @@ This takes the following parameters: - ignoreListingChecksum - (bool) Do not use checksums for listings (add --ignore- checksum to additionally skip post-copy checksum checks) +- maxDeleteRenamesAware - (bool) Exclude tracked renames from the + --max-delete safety check (requires --track-renames) - maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) - noCleanup - (bool) Retain working files (useful for troubleshooting @@ -22636,6 +24115,34 @@ This takes the following parameters: - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default + false) +- missingOnDst - report all files missing from the destination + (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default + false) +- destAfter - report all files that exist on the destination post-copy + (default false) + +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the + destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or + reading) +- destAfter - array of strings of all files that exist on the + destination post-copy + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output. See the copy command for more information on the above. @@ -22648,6 +24155,34 @@ This takes the following parameters: - createEmptySrcDirs - create empty src directories on destination if set - deleteEmptySrcDirs - delete empty src directories if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default + false) +- missingOnDst - report all files missing from the destination + (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default + false) +- destAfter - report all files that exist on the destination post-move + (default false) + +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the + destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or + reading) +- destAfter - array of strings of all files that exist on the + destination post-move + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output. See the move command for more information on the above. @@ -22659,6 +24194,34 @@ This takes the following parameters: - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default + false) +- missingOnDst - report all files missing from the destination + (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default + false) +- destAfter - report all files that exist on the destination post-sync + (default false) + +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the + destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or + reading) +- destAfter - array of strings of all files that exist on the + destination post-sync + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +_async, as part of the job output. See the sync command for more information on the above. @@ -22883,9 +24446,11 @@ The keys in the error response are: CORS -The sever implements basic CORS support and allows all origins for that. -The response to a preflight OPTIONS request will echo the requested -"Access-Control-Request-Headers" back. +The server implements basic CORS support when --rc-allow-origin is set. +Browser CORS preflight OPTIONS requests are then answered by rclone +without authentication with the Access-Control-* headers. Without +--rc-allow-origin no CORS headers are sent and a preflight request is +authenticated like any other request. Using POST with URL parameters only @@ -23727,6 +25292,7 @@ Networking Flags for general networking and HTTP stuff. + --allow-https-downgrade Follow redirects from HTTPS to HTTP (insecure) --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 @@ -23750,7 +25316,7 @@ Flags for general networking and HTTP stuff. --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.75.0") + --user-agent string Set the user-agent to a specified string (default "rclone/v1.76.0") Performance @@ -23907,11 +25473,6 @@ Flags to control the Remote Control API. --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Metrics @@ -23967,8 +25528,10 @@ Backend-only flags (these can be set in the config file also). --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -23981,6 +25544,7 @@ Backend-only flags (these can be set in the config file also). --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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as 'true' @@ -24113,6 +25677,12 @@ Backend-only flags (these can be set in the config file also). --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under "API keys" + --dosya-api-url string API base URL (default "https://api.dosya.dev") + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -24335,6 +25905,8 @@ Backend-only flags (these can be set in the config file also). --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don't use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn't end directories with / --http-url string URL of HTTP host to connect to --huaweidrive-auth-url string Auth server URL @@ -24394,6 +25966,17 @@ Backend-only flags (these can be set in the config file also). --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) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -24479,6 +26062,7 @@ Backend-only flags (these can be set in the config file also). --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal's tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default "v2.0") --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -24493,7 +26077,7 @@ Backend-only flags (these can be set in the config file also). --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don't store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -24688,7 +26272,7 @@ Backend-only flags (these can be set in the config file also). --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-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -24703,6 +26287,7 @@ Backend-only flags (these can be set in the config file also). --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -24765,7 +26350,8 @@ Backend-only flags (these can be set in the config file also). --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default "$USER") + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --storj-access-grant string Access grant --storj-api-key string API key --storj-description string Description of the remote @@ -24840,6 +26426,7 @@ Backend-only flags (these can be set in the config file also). --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id @@ -25494,6 +27081,7 @@ Command line syntax --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -25871,6 +27459,25 @@ the check. Also see the all files changed check. +--max-delete-renames-aware + +When --track-renames is in use, --max-delete-renames-aware can exclude +files that are guaranteed to match as tracked renames from the deletion +count. If the initial deletion count exceeds --max-delete, bisync +performs a rename matching preflight before starting either sync +direction. The run still aborts if the remaining unmatched deletions +exceed the limit. + +The preflight uses the selected --track-renames-strategy and the +attributes stored in the normal bisync listings. A hash strategy forces +both listings to use a common hash and is incompatible with +--ignore-listing-checksum. The option only exempts matches when the +destination supports server-side moves or copies and the selected +strategy is supported by both paths. It requires --track-renames and is +disabled by default because hashing may add listing time. --force +bypasses both the safety check and this preflight. The preflight is also +disabled during --resync, when rename tracking is unavailable. + --filters-file By using rclone filter features you can exclude file types or directory @@ -26472,14 +28079,20 @@ The following backends have known issues that need more investigation: - TestHuaweiDrive (huaweidrive) - TestBisyncRemoteLocal/ext_paths - TestBisyncRemoteLocal/extended_filenames - - TestBisyncRemoteLocal/normalization - TestBisyncLocalRemote/ext_paths - TestBisyncLocalRemote/extended_filenames - - 4 more + - TestBisyncLocalRemote/normalization + - 3 more - TestPcloud (pcloud) - - TestBisyncRemoteRemote/check_access - - TestBisyncRemoteRemote/rmdirs -- Updated: 2026-07-31-010017 + - TestBisyncRemoteRemote/extended_filenames +- TestYandex (yandex) + - TestBisyncRemoteLocal/all_changed + - TestBisyncRemoteLocal/backupdir + - TestBisyncRemoteLocal/basic + - TestBisyncRemoteLocal/changes + - TestBisyncRemoteLocal/check_access + - 94 more +- Updated: 2026-11-06-010024 The following backends either have not been tested recently or have known issues that are deemed unfixable for the time being: @@ -26495,6 +28108,8 @@ known issues that are deemed unfixable for the time being: - TestFilesCom (filescom) - TestImageKit (imagekit) - TestJottacloud (jottacloud) +- TestKdrive (kdrive) + - TestBisyncRemoteRemote/normalization - TestLinkbox (linkbox) - TestMailru (mailru) - TestMega (mega) @@ -26507,7 +28122,8 @@ known issues that are deemed unfixable for the time being: - TestQuatrix (quatrix) - TestS3GCS (s3) - TestBisyncRemoteRemote/extended_filenames -- TestS3Rclone (s3) + - TestBisyncRemoteLocal/extended_filenames + - TestBisyncLocalRemote/extended_filenames - TestSFTPRsyncNet (sftp) - TestStorj (storj) - TestWebdavNextcloud (webdav) @@ -26585,10 +28201,11 @@ 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.) -Note that although the flag --track-renames ensures that renamed/moved -files won't be deleted and uploaded again, they are still counted as -deleted files for purposes of the --max-delete flag (as this check -happens before the rename detection operation). See this issue. +By default, renamed or moved files are still counted as deleted files +for purposes of --max-delete, because the safety check happens before +rename detection. Use --max-delete-renames-aware together with +--track-renames to run a rename preflight and exclude guaranteed matches +from this count. --fast-list used by default @@ -27328,136 +28945,8 @@ Unison and synchronization in general. Changelog -v1.74.2 - -- Fixed an issue causing --conflict-loser pathname to produce - unexpected behavior if using a non-default --conflict-resolve value. - -v1.74 - -- Added several missing rc parameters. -- Optional rc parameters are now truly optional. -- rc output now provides more structured information. - -v1.71 - -- bisync is now officially released from beta. - -- Fixed an issue causing hash type to be set incorrectly if path2 had - slow hashes and --no-slow-hash or --slow-hash-sync-only was in use. - -- Fixed an issue causing errors when running concurrent bisync runs - through the rc. - -v1.69.1 - -- Fixed an issue causing listings to not capture concurrent - modifications under certain conditions - -v1.68 - -- Fixed an issue affecting backends that round modtimes to a lower - precision. - -v1.67 - -- Added integration tests against all backends. - -v1.66 - -- Copies and deletes are now handled in one operation instead of two - -- --track-renames and --backup-dir are now supported - -- Partial uploads known issue on local/ftp/sftp has been resolved - (unless using --inplace) - -- Final listings are now generated from sync results, to avoid needing - to re-list - -- Bisync is now much more resilient to changes that happen during a - bisync run, and far less prone to critical errors / undetected - changes - -- Bisync is now capable of rolling a file listing back in cases of - uncertainty, essentially marking the file as needing to be rechecked - next time. - -- A few basic terminal colors are now supported, controllable with - --color (AUTO|NEVER|ALWAYS) - -- Initial listing snapshots of Path1 and Path2 are now generated - concurrently, using the same "march" infrastructure as check and - sync, for performance improvements and less risk of error. - -- Fixed handling of unicode normalization and case insensitivity, - support for --fix-case, --ignore-case-sync, - --no-unicode-normalization - -- --resync is now much more efficient (especially for users of - --create-empty-src-dirs) - -- Google Docs (and other files of unknown size) are now supported - (with the same options as in sync) - -- Equality checks before a sync conflict rename now fall back to - cryptcheck (when possible) or --download, instead of of --size-only, - when check is not available. - -- Bisync no longer fails to find the correct listing file when configs - are overridden with backend-specific flags. - -- Bisync now fully supports comparing based on any combination of - size, modtime, and checksum, lifting the prior restriction on - backends without modtime support. - -- Bisync now supports a "Graceful Shutdown" mode to cleanly cancel a - run early without requiring --resync. - -- New --recover flag allows robust recovery in the event of - interruptions, without requiring --resync. - -- A new --max-lock setting allows lock files to automatically renew - and expire, for better automatic recovery when a run is interrupted. - -- Bisync now supports auto-resolving sync conflicts and customizing - rename behavior with new --conflict-resolve, --conflict-loser, and - --conflict-suffix flags. - -- A new --resync-mode flag allows more control over which version of a - file gets kept during a --resync. - -- Bisync now supports --retries and --retries-sleep (when --resilient - is set.) - -v1.64 - -- Fixed an issue causing dry runs to inadvertently commit filter - changes - -- Fixed an issue causing --resync to erroneously delete empty folders - and duplicate files unique to Path2 - -- --check-access is now enforced during --resync, preventing data loss - in certain user error scenarios - -- Fixed an issue causing bisync to consider more files than necessary - due to overbroad filters during delete operations - -- Improved detection of false positive change conflicts (identical - files are now left alone instead of renamed) - -- Added support for --create-empty-src-dirs - -- Added experimental --resilient mode to allow recovery from - self-correctable errors - -- Added new --ignore-listing-checksum flag to distinguish from - --ignore-checksum - -- Performance improvements for large remotes - -- Documentation and testing improvements +Changes to bisync are listed in the rclone changelog. The changelog this +page kept until v1.76 is archived on GitHub. Release signing @@ -27574,16 +29063,18 @@ 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 +Extract the signed data with: + + $ gpg --output SHA256SUMS.signed --decrypt SHA256SUMS + +Then check the binaries: + + $ sha256sum -c --ignore-missing SHA256SUMS.signed 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 hashsum sha256 -C SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip = 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 @@ -27943,8 +29434,10 @@ The S3 backend can be used with a number of different providers: - Alibaba Cloud (Aliyun) Object Storage System (OSS) - Ceph - China Mobile Ecloud Elastic Object Storage (EOS) +- Clever Cloud Cellar - Cloudflare R2 - Arvan Cloud Object Storage (AOS) +- Autonomys Auto Drive - Bizfly Cloud Simple Storage - Cubbit DS3 - DigitalOcean Spaces @@ -27959,6 +29452,7 @@ The S3 backend can be used with a number of different providers: - IBM COS S3 - IDrive e2 - Impossible Cloud +- Infomaniak Swiss Backup - Intercolo Object Storage - IONOS Cloud - Leviia Object Storage @@ -27967,6 +29461,7 @@ The S3 backend can be used with a number of different providers: - Magalu Object Storage - MEGA S4 Object Storage - Minio +- Neon Object Storage - Outscale - OVHcloud - Petabox @@ -27975,6 +29470,7 @@ The S3 backend can be used with a number of different providers: - Rabata Cloud Storage - RackCorp Object Storage - Rclone Serve S3 +- RelAix.Storage - Scaleway - Scality (RING / ARTESCA) - Seagate Lyve Cloud @@ -28800,6 +30296,9 @@ glacier storage class you will see an error like below. 2017/09/11 19:07:43 Failed to sync: failed to open source object: Object in GLACIER, restore first: path/to/file +The message shows the object's actual storage class, for example +DEEP_ARCHIVE. + In this case you need to restore the object(s) in question before accessing object contents. The restore section below shows how to do this with rclone. @@ -28868,14 +30367,15 @@ Additional Object Lock options Standard options Here are the Standard options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other). +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other). --s3-provider @@ -28894,8 +30394,12 @@ Properties: - Alibaba Cloud Object Storage System (OSS) formerly Aliyun - "ArvanCloud" - Arvan Cloud Object Storage (AOS) + - "Autonomys" + - Autonomys Auto Drive - "BizflyCloud" - Bizfly Cloud Simple Storage + - "Cellar" + - Clever Cloud Cellar Object Storage - "Ceph" - Ceph Object Storage - "ChinaMobile" @@ -28930,6 +30434,8 @@ Properties: - IDrive e2 - "ImpossibleCloud" - Impossible Cloud Object Storage + - "Infomaniak" + - Infomaniak Swiss Backup - "Intercolo" - Intercolo Object Storage - "IONOS" @@ -28948,6 +30454,8 @@ Properties: - MEGA S4 Object Storage - "Minio" - Minio Object Storage + - "Neon" + - Neon Object Storage - "Netease" - Netease Object Storage (NOS) - "Outscale" @@ -28964,6 +30472,8 @@ Properties: - RackCorp Object Storage - "Rclone" - Rclone S3 Server + - "RelAix" + - RelAix.Storage - "Scaleway" - Scaleway Object Storage - "Scality" @@ -29051,7 +30561,7 @@ Properties: - Config: region - Env Var: RCLONE_S3_REGION - Provider: - AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,LyveCloud,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other + AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,LyveCloud,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -29189,6 +30699,9 @@ Properties: - "eu-central" - EU Central - Provider: Fastly + - "eu-central-1" + - EU Central 1 + - Provider: Fastly - "eu-south-1" - EU South 1 - Provider: Fastly @@ -29240,50 +30753,104 @@ Properties: - "nbg1" - Nuremberg - Provider: Hetzner + - "af-north-1" + - AF-Cairo + - Provider: HuaweiOBS - "af-south-1" - AF-Johannesburg - Provider: HuaweiOBS + - "ap-southeast-1" + - CN-Hong Kong + - Provider: HuaweiOBS - "ap-southeast-2" - AP-Bangkok - Provider: HuaweiOBS - "ap-southeast-3" - AP-Singapore - Provider: HuaweiOBS - - "cn-east-3" - - CN East-Shanghai1 + - "ap-southeast-4" + - AP-Jakarta + - Provider: HuaweiOBS + - "ap-southeast-5" + - AP-Manila - Provider: HuaweiOBS - "cn-east-2" - CN East-Shanghai2 - Provider: HuaweiOBS + - "cn-east-3" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "cn-east-4" + - CN East-Qingdao + - Provider: HuaweiOBS + - "cn-east-5" + - CN East-Suzhou + - Provider: HuaweiOBS - "cn-north-1" - CN North-Beijing1 - Provider: HuaweiOBS + - "cn-north-2" + - CN North-Beijing2 + - Provider: HuaweiOBS - "cn-north-4" - CN North-Beijing4 - Provider: HuaweiOBS + - "cn-north-9" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "cn-north-11" + - CN North-Hebei + - Provider: HuaweiOBS + - "cn-north-12" + - CN North-Hohhot + - Provider: HuaweiOBS - "cn-south-1" - CN South-Guangzhou - Provider: HuaweiOBS - - "ap-southeast-1" - - CN-Hong Kong + - "cn-south-2" + - CN South-Shenzhen - Provider: HuaweiOBS - - "sa-argentina-1" - - LA-Buenos Aires1 + - "cn-south-4" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "sa-peru-1" - - LA-Lima1 + - "cn-southwest-2" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "cn-southwest-3" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "eu-west-101" + - EU-Dublin + - Provider: HuaweiOBS + - "la-north-2" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "la-south-2" + - LA-Santiago + - Provider: HuaweiOBS + - "me-east-1" + - ME-Riyadh - Provider: HuaweiOBS - "na-mexico-1" - LA-Mexico City1 - Provider: HuaweiOBS - - "sa-chile-1" - - LA-Santiago2 + - "ru-northwest-2" + - RU-Moscow2 + - Provider: HuaweiOBS + - "sa-argentina-1" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "sa-brazil-1" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "ru-northwest-2" - - RU-Moscow2 + - "sa-chile-1" + - LA-Santiago2 + - Provider: HuaweiOBS + - "sa-peru-1" + - LA-Lima1 + - Provider: HuaweiOBS + - "tr-west-1" + - TR-Istanbul - Provider: HuaweiOBS - "eu-central-2" - Frankfurt, Germany @@ -29306,6 +30873,10 @@ Properties: - "us-east-1" - New York, USA - Provider: ImpossibleCloud + - "us-east-1" + - Default region for compatibility. + - All data is stored in Switzerland. + - Provider: Infomaniak - "de-fra" - Frankfurt, Germany - Provider: Intercolo @@ -29327,6 +30898,18 @@ Properties: - "us-central-1" - Lenexa, USA - Provider: IONOS + - "us-east-1" + - US East (N. Virginia) + - Provider: Neon,Petabox,Rabata + - "us-east-2" + - US East (Ohio) + - Provider: Neon + - "eu-central-1" + - Europe (Frankfurt) + - Provider: Neon,Petabox + - "ap-southeast-1" + - Asia Pacific (Singapore) + - Provider: Neon,Petabox - "eu-west-2" - Paris, France - Provider: Outscale @@ -29384,15 +30967,6 @@ Properties: - "rbx-archive" - Roubaix, France (Cold Archive) - Provider: OVHcloud - - "us-east-1" - - US East (N. Virginia) - - Provider: Petabox,Rabata - - "eu-central-1" - - Europe (Frankfurt) - - Provider: Petabox - - "ap-southeast-1" - - Asia Pacific (Singapore) - - Provider: Petabox - "me-south-1" - Middle East (Bahrain) - Provider: Petabox @@ -29500,6 +31074,9 @@ Properties: - "pl-waw" - Warsaw, Poland - Provider: Scaleway + - "it-mil" + - Milan, Italy + - Provider: Scaleway - "ru-1" - St. Petersburg - Provider: Selectel,Servercore @@ -29567,7 +31144,7 @@ Properties: - Config: endpoint - Env Var: RCLONE_S3_ENDPOINT - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,Autonomys,BizflyCloud,Cellar,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,RelAix,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -29653,12 +31230,18 @@ Properties: - "s3.ir-tbz-sh1.arvanstorage.ir" - Tabriz Iran (Shahriar) - Provider: ArvanCloud + - "s3.auto-drive.autonomys.xyz" + - Auto Drive mainnet S3 endpoint + - Provider: Autonomys - "hn.ss.bfcplatform.vn" - Hanoi endpoint - Provider: BizflyCloud - "hcm.ss.bfcplatform.vn" - Ho Chi Minh endpoint - Provider: BizflyCloud + - "cellar-c2.services.clever-cloud.com" + - Paris, France + - Provider: Cellar - "eos-wuxi-1.cmecloud.cn" - The default endpoint - a good choice if you are unsure. - East China (Suzhou) @@ -29796,6 +31379,9 @@ Properties: - "eu-central.object.fastlystorage.app" - EU Central - Provider: Fastly + - "eu-central-1.object.fastlystorage.app" + - EU Central 1 + - Provider: Fastly - "eu-south-1.object.fastlystorage.app" - EU South 1 - Provider: Fastly @@ -29850,50 +31436,104 @@ Properties: - "nbg1.your-objectstorage.com" - Nuremberg - Provider: Hetzner + - "obs.af-north-1.myhuaweicloud.com" + - AF-Cairo + - Provider: HuaweiOBS - "obs.af-south-1.myhuaweicloud.com" - AF-Johannesburg - Provider: HuaweiOBS + - "obs.ap-southeast-1.myhuaweicloud.com" + - CN-Hong Kong + - Provider: HuaweiOBS - "obs.ap-southeast-2.myhuaweicloud.com" - AP-Bangkok - Provider: HuaweiOBS - "obs.ap-southeast-3.myhuaweicloud.com" - AP-Singapore - Provider: HuaweiOBS - - "obs.cn-east-3.myhuaweicloud.com" - - CN East-Shanghai1 + - "obs.ap-southeast-4.myhuaweicloud.com" + - AP-Jakarta + - Provider: HuaweiOBS + - "obs.ap-southeast-5.myhuaweicloud.com" + - AP-Manila - Provider: HuaweiOBS - "obs.cn-east-2.myhuaweicloud.com" - CN East-Shanghai2 - Provider: HuaweiOBS + - "obs.cn-east-3.myhuaweicloud.com" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "obs.cn-east-4.myhuaweicloud.com" + - CN East-Qingdao + - Provider: HuaweiOBS + - "obs.cn-east-5.myhuaweicloud.com" + - CN East-Suzhou + - Provider: HuaweiOBS - "obs.cn-north-1.myhuaweicloud.com" - CN North-Beijing1 - Provider: HuaweiOBS + - "obs.cn-north-2.myhuaweicloud.com" + - CN North-Beijing2 + - Provider: HuaweiOBS - "obs.cn-north-4.myhuaweicloud.com" - CN North-Beijing4 - Provider: HuaweiOBS + - "obs.cn-north-9.myhuaweicloud.com" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "obs.cn-north-11.myhuaweicloud.com" + - CN North-Hebei + - Provider: HuaweiOBS + - "obs.cn-north-12.myhuaweicloud.com" + - CN North-Hohhot + - Provider: HuaweiOBS - "obs.cn-south-1.myhuaweicloud.com" - CN South-Guangzhou - Provider: HuaweiOBS - - "obs.ap-southeast-1.myhuaweicloud.com" - - CN-Hong Kong + - "obs.cn-south-2.myhuaweicloud.com" + - CN South-Shenzhen - Provider: HuaweiOBS - - "obs.sa-argentina-1.myhuaweicloud.com" - - LA-Buenos Aires1 + - "obs.cn-south-4.myhuaweicloud.com" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "obs.sa-peru-1.myhuaweicloud.com" - - LA-Lima1 + - "obs.cn-southwest-2.myhuaweicloud.com" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "obs.cn-southwest-3.myhuaweicloud.com" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "obs.eu-west-101.myhuaweicloud.eu" + - EU-Dublin + - Provider: HuaweiOBS + - "obs.la-north-2.myhuaweicloud.com" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "obs.la-south-2.myhuaweicloud.com" + - LA-Santiago + - Provider: HuaweiOBS + - "obs.me-east-1.myhuaweicloud.com" + - ME-Riyadh - Provider: HuaweiOBS - "obs.na-mexico-1.myhuaweicloud.com" - LA-Mexico City1 - Provider: HuaweiOBS - - "obs.sa-chile-1.myhuaweicloud.com" - - LA-Santiago2 + - "obs.ru-northwest-2.myhuaweicloud.com" + - RU-Moscow2 + - Provider: HuaweiOBS + - "obs.sa-argentina-1.myhuaweicloud.com" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "obs.sa-brazil-1.myhuaweicloud.com" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "obs.ru-northwest-2.myhuaweicloud.com" - - RU-Moscow2 + - "obs.sa-chile-1.myhuaweicloud.com" + - LA-Santiago2 + - Provider: HuaweiOBS + - "obs.sa-peru-1.myhuaweicloud.com" + - LA-Lima1 + - Provider: HuaweiOBS + - "obs.tr-west-1.myhuaweicloud.com" + - TR-Istanbul - Provider: HuaweiOBS - "s3.us.cloud-object-storage.appdomain.cloud" - US Cross Region Endpoint @@ -30102,6 +31742,18 @@ Properties: - "us-east-1.storage.impossibleapi.net" - New York, USA - Provider: ImpossibleCloud + - "s3.swiss-backup01.infomaniak.com" + - Swiss Backup Location 01 + - Provider: Infomaniak + - "s3.swiss-backup02.infomaniak.com" + - Swiss Backup Location 02 + - Provider: Infomaniak + - "s3.swiss-backup03.infomaniak.com" + - Swiss Backup Location 03 + - Provider: Infomaniak + - "s3.swiss-backup04.infomaniak.com" + - Swiss Backup Location 04 + - Provider: Infomaniak - "de-fra.i3storage.com" - Frankfurt, Germany - Provider: Intercolo @@ -30206,38 +31858,47 @@ Properties: - "br-ne1.magaluobjects.com" - Fortaleza, CE (BR), br-ne1 - Provider: Magalu - - "s3.eu-amsterdam.megas4.com" - - Mega S4 Amsterdam + - "s3.eu-luxembourg-1.megas4.com" + - Mega S4 Luxembourg 1 - Provider: Mega - - "s3.eu-luxembourg.megas4.com" - - Mega S4 Luxembourg + - "s3.eu-luxembourg-2.megas4.com" + - Mega S4 Luxembourg 2 - Provider: Mega - - "s3.eu-paris.megas4.com" - - Mega S4 Paris + - "s3.eu-amsterdam-1.megas4.com" + - Mega S4 Amsterdam 1 - Provider: Mega - - "s3.eu-barcelona.megas4.com" - - Mega S4 Barcelona + - "s3.eu-amsterdam-2.megas4.com" + - Mega S4 Amsterdam 2 - Provider: Mega - - "s3.ca-montreal.megas4.com" - - Mega S4 Montreal + - "s3.eu-paris-1.megas4.com" + - Mega S4 Paris 1 - Provider: Mega - - "s3.ca-vancouver.megas4.com" - - Mega S4 Vancouver + - "s3.eu-paris-2.megas4.com" + - Mega S4 Paris 2 - Provider: Mega - - "s3.ap-tokyo.megas4.com" - - Mega S4 Tokyo + - "s3.eu-barcelona-1.megas4.com" + - Mega S4 Barcelona 1 - Provider: Mega - - "s3.eu-central-1.s4.mega.io" - - Mega S4 eu-central-1 (Amsterdam, legacy) + - "s3.eu-barcelona-2.megas4.com" + - Mega S4 Barcelona 2 - Provider: Mega - - "s3.eu-central-2.s4.mega.io" - - Mega S4 eu-central-2 (Bettembourg, legacy) + - "s3.ca-montreal-1.megas4.com" + - Mega S4 Montreal 1 - Provider: Mega - - "s3.ca-central-1.s4.mega.io" - - Mega S4 ca-central-1 (Montreal, legacy) + - "s3.ca-montreal-2.megas4.com" + - Mega S4 Montreal 2 - Provider: Mega - - "s3.ca-west-1.s4.mega.io" - - Mega S4 ca-west-1 (Vancouver, legacy) + - "s3.ca-vancouver-1.megas4.com" + - Mega S4 Vancouver 1 + - Provider: Mega + - "s3.ca-vancouver-2.megas4.com" + - Mega S4 Vancouver 2 + - Provider: Mega + - "s3.ap-tokyo-1.megas4.com" + - Mega S4 Tokyo 1 + - Provider: Mega + - "s3.ap-tokyo-2.megas4.com" + - Mega S4 Tokyo 2 - Provider: Mega - "oos.eu-west-2.outscale.com" - Outscale EU West 2 (Paris) @@ -30404,6 +32065,12 @@ Properties: - "nz.s3.rackcorp.com" - Auckland (New Zealand) Endpoint - Provider: RackCorp + - "s3-gw1.relaix.net" + - Aachen-1, Germany + - Provider: RelAix + - "s3-gw2.relaix.net" + - Aachen-2, Germany + - Provider: RelAix - "s3.nl-ams.scw.cloud" - Amsterdam Endpoint - Provider: Scaleway @@ -30413,6 +32080,9 @@ Properties: - "s3.pl-waw.scw.cloud" - Warsaw Endpoint - Provider: Scaleway + - "s3.it-mil.scw.cloud" + - Milan Endpoint + - Provider: Scaleway - "localhost:8333" - SeaweedFS S3 localhost - Provider: SeaweedFS @@ -30650,7 +32320,7 @@ Properties: - Config: location_constraint - Env Var: RCLONE_S3_LOCATION_CONSTRAINT - Provider: - AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other + AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,Infomaniak,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -31033,7 +32703,7 @@ Properties: - Config: acl - Env Var: RCLONE_S3_ACL - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -31041,37 +32711,37 @@ Properties: - Owner gets FULL_CONTROL. - No one else has access rights (default). - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other - "public-read" - Owner gets FULL_CONTROL. - The AllUsers group gets READ access. - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - "public-read-write" - Owner gets FULL_CONTROL. - The AllUsers group gets READ and WRITE access. - Granting this on a bucket is generally not recommended. - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "authenticated-read" - Owner gets FULL_CONTROL. - The AuthenticatedUsers group gets READ access. - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-read" - Object owner gets FULL_CONTROL. - Bucket owner gets READ access. - If you specify this canned ACL when creating a bucket, Amazon S3 ignores it. - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-full-control" - 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. - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "private" - Owner gets FULL_CONTROL. - No one else has access rights (default). @@ -31275,14 +32945,15 @@ Properties: Advanced options Here are the Advanced options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other). +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other). --s3-bucket-acl @@ -31302,7 +32973,7 @@ Properties: - Config: bucket_acl - Env Var: RCLONE_S3_BUCKET_ACL - Provider: - AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other + AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -31341,7 +33012,7 @@ Properties: - Config: sse_customer_algorithm - Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -31355,13 +33026,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key-base64. Properties: - Config: sse_customer_key - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -31373,13 +33044,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key. Properties: - Config: sse_customer_key_base64 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -31398,7 +33069,7 @@ Properties: - Config: sse_customer_key_md5 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -32502,6 +34173,46 @@ arguments. These can be run on a running backend using the rc command backend/command. +link + +Generate a signed link with response header overrides. + + rclone backend link remote: [options] [+] + +This command generates a signed download link for one file, with +optional overrides for the HTTP response headers. Pass the file path as +a separate argument, relative to the remote path. + +Usage examples: + + rclone backend link s3:bucket path/to/file -o expire=1h + rclone backend link s3:bucket path/to/file -o response-expires="Thu, 01 Jan 1970 00:00:00 GMT" + rclone backend link s3:bucket path/to/file -o response-content-disposition='attachment; filename="download.txt"' + +The link expires after 7 days by default. Use -o expire=1h to change its +lifetime. Durations must be at least 1 second; values above 7 days are +limited to 7 days, as with rclone link. + +The response-expires option sets the HTTP Expires response header, not +the lifetime of the signed link. It must be an HTTP date, such as +Thu, 01 Jan 1970 00:00:00 GMT. + +The overrides are included in the signature and must not be changed in +the returned URL. They do not modify the object's stored metadata. + +Options: + +- "expire": How long the link will be valid (default 7d, maximum 7d). +- "response-cache-control": Set the Cache-Control response header. +- "response-content-disposition": Set the Content-Disposition response + header. +- "response-content-encoding": Set the Content-Encoding response + header. +- "response-content-language": Set the Content-Language response + header. +- "response-content-type": Set the Content-Type response header. +- "response-expires": Set the Expires response header to an HTTP date. + restore Restore objects from GLACIER or INTELLIGENT-TIERING archive tier. @@ -32756,15 +34467,15 @@ AWS Directory Buckets From rclone v1.69 Directory Buckets are supported. -You will need to set the directory_buckets = true config parameter or -use --s3-directory-buckets. +You will need to set the directory_bucket = true config parameter or use +--s3-directory-bucket. Note that rclone cannot yet: - Create directory buckets - List directory buckets -See the --s3-directory-buckets flag for more info +See the --s3-directory-bucket flag for more info AWS Snowball Edge @@ -33005,6 +34716,91 @@ This will leave the config file looking like this. server_side_encryption = storage_class = +Autonomys Auto Drive + +Auto Drive is permanent storage on the Autonomys Network, with an +S3-compatible API. Deleting an object hides it, but its data and every +earlier version are kept. Buckets are created by the first upload into +them. + +Use your Auto Drive API key as the access_key_id, and any value as the +secret_access_key. + +Here is an example of making a 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 + + Enter name for new remote. + name> autodrive + + Option Storage. + Type of storage to configure. + Storage> s3 + + Option provider. + Choose your S3 provider. + provider> Autonomys + + 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. + env_auth> false + + Option access_key_id. + AWS Access Key ID. + access_key_id> YOUR_API_KEY + + Option secret_access_key. + AWS Secret Access Key (password). + secret_access_key> ANY_VALUE + + Option endpoint. + Endpoint for S3 API. + Choose a number from below, or type in your own value. + 1 / Auto Drive mainnet S3 endpoint + \ (s3.auto-drive.autonomys.xyz) + endpoint> 1 + + Option bucket_object_lock_enabled. + Enable Object Lock when creating new buckets. + Enter a boolean value (true or false). Press Enter for the default (false). + bucket_object_lock_enabled> + + Edit advanced config? + y) Yes + n) No (default) + y/n> n + + Configuration complete. + Options: + - type: s3 + - provider: Autonomys + - access_key_id: YOUR_API_KEY + - secret_access_key: ANY_VALUE + - endpoint: s3.auto-drive.autonomys.xyz + Keep this "autodrive" remote? + y) Yes this is OK (default) + e) Edit this remote + d) Delete this remote + y/e/d> y + +The resulting configuration file should look like: + + [autodrive] + type = s3 + provider = Autonomys + access_key_id = YOUR_API_KEY + secret_access_key = ANY_VALUE + endpoint = s3.auto-drive.autonomys.xyz + BizflyCloud Bizfly Cloud Simple Storage is an S3-compatible service with regions in @@ -33061,6 +34857,12 @@ 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. +Rclone defaults sign_accept_encoding to false for the Ceph provider. +That avoids SignatureDoesNotMatch errors when a reverse proxy (for +example Cloudflare) rewrites the Accept-Encoding request header. You can +override this with --s3-sign-accept-encoding / sign_accept_encoding if +needed. + 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 @@ -33332,6 +35134,110 @@ This will guide you through an interactive setup process. d) Delete this remote y/e/d> y +Clever Cloud Cellar + +Cellar is the S3-compatible object storage service of Clever Cloud, +hosted in France. Credentials and the endpoint are shown in the Cellar +add-on dashboard, or in the CELLAR_ADDON_KEY_ID, CELLAR_ADDON_KEY_SECRET +and CELLAR_ADDON_HOST environment variables of applications linked to +it. + +Cellar does not apply Object Lock headers sent when initiating a +multipart upload. When setting Object Lock retention or legal hold +options, also set --s3-object-lock-set-after-upload: the lock is then +applied with separate API calls after the upload, so the object is not +protected by these settings until those calls succeed. + +Cellar supports server-side encryption with customer-provided keys +(SSE-C), set with sse_customer_algorithm and sse_customer_key_base64. It +rejects server-side copies of SSE-C objects unless they are done as +multipart copies, so use --no-update-modtime to avoid modification time +updates, and expect server-side moves and renames of encrypted objects +smaller than --s3-copy-cutoff to fail. See the Cellar SSE-C +documentation. + +First run: + + rclone config + + This will guide you through an interactive setup process: + + n) New remote + n/s/q> n + + Enter name for new remote. + name> cellar + + 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, ..., Cellar, ... and others + \ (s3) + Storage> s3 + + Option provider. + Choose your S3 provider. + [snip] + XX / Clever Cloud Cellar Object Storage + \ (Cellar) + provider> Cellar + + Option env_auth. + Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). + 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. + access_key_id> ACCESS_KEY + + Option secret_access_key. + AWS Secret Access Key (password). + secret_access_key> SECRET_KEY + + Option endpoint. + Endpoint for S3 API. + 1 / Paris, France + \ (cellar-c2.services.clever-cloud.com) + endpoint> 1 + + Option acl. + Canned ACL used when creating buckets and storing or copying objects. + [snip] + acl> 1 + + Option bucket_object_lock_enabled. + Enable Object Lock when creating new buckets. + bucket_object_lock_enabled> + + Edit advanced config? + y/n> n + + Configuration complete. + Options: + - type: s3 + - provider: Cellar + - access_key_id: ACCESS_KEY + - secret_access_key: SECRET_KEY + - endpoint: cellar-c2.services.clever-cloud.com + - acl: private + Keep this "cellar" remote? + y/e/d> y + +This will leave the config file looking like this. + + [cellar] + type = s3 + provider = Cellar + access_key_id = ACCESS_KEY + secret_access_key = SECRET_KEY + endpoint = cellar-c2.services.clever-cloud.com + acl = private + Cloudflare R2 Cloudflare R2 Storage allows developers to store large amounts of @@ -34583,6 +36489,104 @@ This will leave the config file looking like this. endpoint = eu-central-2.storage.impossibleapi.net acl = private +Infomaniak Swiss Backup + +Infomaniak Swiss Backup is a cloud backup space in Switzerland that you +can use however you want with the script or software of your choice that +is compatible with Swift, S3 or SFTP. + +Prerequisites + +Create and setup your Swiss Backup product following this documentation. +Memorize the generated Endpoint, Access Key, and Secret Key: + +Configuration + +To configure access to an S3 location on Swiss Backup, follow the steps +below: + +1. Run rclone config and select n for a new remote. + + rclone config + No remotes found, make a new one? + n) New remote + s) Set configuration password + q) Quit config + n/s/q> n + +2. Give the name of the configuration. For example, name it + 'swissbackup'. + + name> swissbackup + +3. Select s3 storage. + + Type of storage to configure. + XX / Amazon S3 Compliant Storage Providers including AWS, ... - Tier 1 + \ (s3) + Storage> s3 + +4. Select Infomaniak provider. + + Choose your S3 provider. + xx / Infomaniak Swiss Backup + \ (Infomaniak) + provider> Infomaniak + +5. Enter your Access Key and Secret Key. You can generate new ones by + clicking 'Generate new keys' on your Swiss Backup product dashboard. + + Option env_auth. + 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. + access_key_id> {YOUR-ACCESS-ID} + + AWS Secret Access Key (password) + secret_access_key> {YOUR-ACCESS-SECRET} + +6. Select us-east-1 region for compatibility. + + Region to connect to. + / Default region for compatibility. + 1 | All data is stored in Switzerland. + \ (us-east-1) + region> 1 + +7. Select the endpoint corresponding to the one generated with your + Access and Secret Keys. + + Endpoint for S3 API. + 1 / Swiss Backup Location 01 + \ (s3.swiss-backup01.infomaniak.com) + 2 / Swiss Backup Location 02 + \ (s3.swiss-backup02.infomaniak.com) + 3 / Swiss Backup Location 03 + \ (s3.swiss-backup03.infomaniak.com) + 4 / Swiss Backup Location 04 + \ (s3.swiss-backup04.infomaniak.com) + endpoint> 1 + +8. Adjust other parameters and advanced config at your convenience. + Leave blank if not sure. + +9. You should obtain something like this. + + Configuration complete. + Options: + - type: s3 + - provider: Infomaniak + - access_key_id: xxxxxxxxxx + - secret_access_key: xxxxxxxxxx + - region: us-east-1 + - endpoint: s3.swiss-backup01.infomaniak.com + +10. Press y to validate. Then q to quit. + Intercolo Object Storage Intercolo Object Storage offers GDPR-compliant, transparently priced, @@ -35222,6 +37226,10 @@ This will leave the config file looking like this. secret_access_key = SECRET_ACCESS_KEY endpoint = eu-central-1.linodeobjects.com +Linode Object Storage is Ceph-backed. Rclone defaults +sign_accept_encoding to false for this provider so SigV4 requests do not +fail with SignatureDoesNotMatch (see the Ceph section). + Magalu Here is an example of making a Magalu Object Storage configuration. @@ -35501,6 +37509,150 @@ So once set up, for example, to copy files into a bucket rclone copy /path/to/files minio:bucket +Neon Object Storage + +Neon Object Storage is S3 compatible object storage in a Neon project. +Each branch of the project has its own copy of the buckets and its own +S3 endpoint. The endpoint looks like +https://.storage...aws.neon.tech. + +In the Neon Console, click Connect, open the Storage tab and choose +Parameters only. Use AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, +AWS_ENDPOINT_URL_S3 and AWS_REGION as access_key_id, secret_access_key, +endpoint and region. To make a separate credential, use Settings > +Credentials or run +neon credentials create --scope storage:read --scope storage:write. + +A credential works on the branch it was made on and on that branch's +child branches. To use a child branch, change only endpoint. + +Neon also has these limits (see the S3 compatibility docs): + +- The maximum object size is 5 GiB for a single upload and 10 GiB for + a multipart upload. +- Neon rejects object keys containing control characters with + 400 InvalidURI. To store files with these names, add Ctl,Del to the + encoding, for example encoding = Slash,InvalidUtf8,Dot,Ctl,Del. +- Neon doesn't support ACLs over the S3 API. Leave acl and bucket_acl + empty and set bucket access (private or public_read) in Neon. +- Neon stores versioning and lifecycle configurations but doesn't + enforce them. +- Neon may throttle heavy use with 503 SlowDown errors. rclone retries + these. + +Here is an example of making a Neon Object Storage 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 + + Enter name for new remote. + name> neon + + 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, ... Neon, ... + \ (s3) + [snip] + Storage> s3 + + Option provider. + Choose your S3 provider. + Choose a number from below, or type in your own value. + Press Enter to leave empty. + [snip] + XX / Neon Object Storage + \ (Neon) + [snip] + provider> Neon + + 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> NEON_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> NEON_SECRET_ACCESS_KEY + + Option region. + 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. + 1 / US East (N. Virginia) + \ (us-east-1) + 2 / US East (Ohio) + \ (us-east-2) + 3 / Europe (Frankfurt) + \ (eu-central-1) + 4 / Asia Pacific (Singapore) + \ (ap-southeast-1) + region> us-east-2 + + Option endpoint. + Endpoint for S3 API. + Required when using an S3 clone. + Enter a value. Press Enter to leave empty. + endpoint> https://.storage...aws.neon.tech + + Option bucket_object_lock_enabled. + Enable Object Lock when creating new buckets. + Enter a boolean value (true or false). Press Enter for the default (false). + bucket_object_lock_enabled> + + Edit advanced config? + y) Yes + n) No (default) + y/n> n + + Configuration complete. + Options: + - type: s3 + - provider: Neon + - access_key_id: NEON_ACCESS_KEY_ID + - secret_access_key: NEON_SECRET_ACCESS_KEY + - region: us-east-2 + - endpoint: https://.storage...aws.neon.tech + Keep this "neon" remote? + y) Yes this is OK (default) + e) Edit this remote + d) Delete this remote + y/e/d> y + +This will leave the config file looking like this. + + [neon] + type = s3 + provider = Neon + access_key_id = NEON_ACCESS_KEY_ID + secret_access_key = NEON_SECRET_ACCESS_KEY + region = us-east-2 + endpoint = https://.storage...aws.neon.tech + Netease NOS For Netease NOS configure as per the configurator rclone config setting @@ -36579,6 +38731,127 @@ this: Note that setting use_multipart_uploads = false is to work around a bug which will be fixed in due course. +RelAix.Storage + +RelAix.Storage is S3 compatible object storage from RelAix Networks, +operated in its own data centres in Aachen, Germany. There are two +locations, Aachen-1 and Aachen-2, each with its own endpoint. Buckets +and data stay at the location of the endpoint you use. + +You get an access key and a secret key from RelAix Networks. 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 + + Enter name for new remote. + name> my-relaix + + 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, ... + \ (s3) + [snip] + Storage> s3 + + Option provider. + Choose your S3 provider. + Choose a number from below, or type in your own value. + Press Enter to leave empty. + [snip] + XX / RelAix.Storage + \ (RelAix) + [snip] + provider> RelAix + + 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> 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_KEY + + Option endpoint. + 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 / Aachen-1, Germany + \ (s3-gw1.relaix.net) + 2 / Aachen-2, Germany + \ (s3-gw2.relaix.net) + endpoint> 1 + + Option acl. + Canned ACL used when creating buckets and storing or copying objects. + [snip] + acl> + + Option bucket_object_lock_enabled. + Enable Object Lock when creating new buckets. + Enter a boolean value (true or false). Press Enter for the default (false). + bucket_object_lock_enabled> + + Edit advanced config? + y) Yes + n) No (default) + y/n> n + + Configuration complete. + Options: + - type: s3 + - provider: RelAix + - access_key_id: ACCESS_KEY + - secret_access_key: SECRET_KEY + - endpoint: s3-gw1.relaix.net + Keep this "my-relaix" remote? + y) Yes this is OK (default) + e) Edit this remote + d) Delete this remote + y/e/d> y + +This will leave the config file looking like this. + + [my-relaix] + type = s3 + provider = RelAix + access_key_id = ACCESS_KEY + secret_access_key = SECRET_KEY + endpoint = s3-gw1.relaix.net + +Object Lock can only be enabled when a bucket is created. To create +buckets with Object Lock, set bucket_object_lock_enabled = true before +running rclone mkdir. + +To lock objects on upload with object_lock_mode, also set +object_lock_set_after_upload = true. RelAix.Storage does not yet apply +Object Lock headers sent with multipart uploads, so rclone needs to set +the lock in a separate call after the upload. + Scaleway Scaleway The Object Storage platform allows you to store anything from @@ -38356,6 +40629,23 @@ Rclone works fastest with large squashfs block sizes. For example: mksquashfs 100files 100files.sqfs -comp zstd -b 1M +Symlinks + +Symlinks stored in an archive are skipped unless the -l/--links flag is +supplied, as they are on the other backends. With the flag they are +listed with a .rclonelink suffix and read back as the path they point +at, the same convention the local backend uses, so they can be copied +back as symlinks: + + $ rclone lsl --links :archive:/tmp/test.zip + 5 2026-09-28 14:16:59.000000000 src/file.txt + 8 2026-09-28 14:16:59.000000000 src/link.txt.rclonelink + $ rclone cat --links :archive:/tmp/test.zip/src/link.txt.rclonelink + file.txt + $ rclone copy --links :archive:/tmp/test.zip /tmp/out + $ ls -l /tmp/out/src/link.txt + lrwxr-xr-x 1 user user 8 Sep 28 14:16 /tmp/out/src/link.txt -> file.txt + Limitations Files in the archive backend are read only. It isn't possible to create @@ -39090,6 +41380,10 @@ 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. +Rclone will not follow a redirect from this endpoint which downgrades +HTTPS to HTTP, and will not send the "Authorization" header or the SSE-C +key headers once a redirect has left the host and port of this endpoint. + 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}". @@ -39189,7 +41483,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in a UTF-8 compatible string to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key-base64. +Alternatively you can provide --b2-sse-customer-key-base64. Properties: @@ -39206,7 +41500,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in Base64 format to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key. +Alternatively you can provide --b2-sse-customer-key. Properties: @@ -39473,7 +41767,8 @@ Invalid refresh token According to the box docs: - Each refresh_token is valid for one use in 60 days. + A Refresh Token is valid for 60 days and can be used to obtain a new + Access Token and Refresh Token only once. This means that if you @@ -42443,6 +44738,15 @@ This means that - filenames with the same name will encrypt the same - filenames which start the same won't have a common prefix +A version string of the form -vYYYY-MM-DD-HHMMSS-NNN on the end of a +file name (as added by --b2-versions / --s3-versions) is left in plain +text so that versioned files can be found. Directory names are encrypted +in full. Rclone before v1.76 left such a suffix in plain text on +directory names too, so a directory named like this created by an older +rclone will appear in listings with a warning but can't be opened or +removed until renamed on the underlying remote to the name given in the +warning. + This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password. @@ -43032,6 +45336,269 @@ will default to those currently in use. It doesn't return anything. +dosya.dev + +dosya.dev is a cloud file storage, sharing, and synchronization platform +with workspace-based multi-tenancy, file versioning, and team +collaboration features. + +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 + + 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 / dosya.dev + \ (dosya) + Storage> dosya + + Option api_key. + Your API Key, get it from https://dosya.dev/profile under "API keys". + Enter a value. + api_key> dos_YOURAPIKEY + + Option workspace_id. + Your workspace ID. + + Leave this blank to use the one workspace the API key can reach, which + is what a key restricted to a single workspace does. If the key can + reach several, rclone will refuse and list their IDs for you to choose + from. + Enter a value. Press Enter to leave empty. + workspace_id> + + Edit advanced config? + y) Yes + n) No (default) + y/n> n + + Configuration complete. + Options: + - type: dosya + - api_key: dos_YOURAPIKEY + Keep this "remote" remote? + 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 (replace remote with +the name you gave your remote): + +List directories and files in the top level of your dosya workspace + + rclone lsf remote: + +To copy a local directory to a dosya directory called backup + + rclone copy /home/source remote:backup + +The dosya backend uploads large files in parts and stores them as single +files that remain accessible through the web app and other clients. If +you previously used a WebDAV remote with a chunker overlay for large +uploads, you can use this backend without the overlay. + +Getting your API key + +1. Log in to dosya.dev +2. Go to Profile > API keys +3. Create a new API key +4. Copy the key (starts with dos_) + +A key can be restricted to a single workspace when you create it, which +is the simplest thing to do for rclone: workspace_id can then be left +out of the config entirely. + +Workspaces + +Leave workspace_id blank and rclone asks which workspaces the key can +reach. A key restricted to one workspace, and an account that has only +one, both resolve without any configuration. If the key can reach +several, rclone refuses and lists their IDs so you can set the one you +want: + + this API key can reach 2 workspaces, so workspace_id must be set to one of: + ws_AAAAAAAA (Work) + ws_BBBBBBBB (Personal) + +To access several workspaces at once, create a separate remote for each: + + rclone config create work dosya api_key=dos_XXX workspace_id=ws_WORK + rclone config create personal dosya api_key=dos_XXX workspace_id=ws_PERSONAL + +Then use them independently: + + rclone ls work: + rclone copy work:docs/ personal:backup/ + +Modification times and hashes + +dosya.dev supports modification times with a resolution of 1 second. The +modification time is sent with the upload, so a copied or synced file +keeps its original timestamp. Modification times cannot be changed after +upload without re-uploading the file. + +dosya.dev supports SHA-256 checksums. The server computes the hash of a +single-shot (small file) upload from the bytes it receives, so +rclone check and hash-based sync work without downloading. Large files +uploaded in multiple parts have no server-side hash (the parts are never +re-read to hash the whole object), the same limitation the S3 backend +has for multipart objects; those objects report an empty hash. + +Restricted filename characters + +In addition to the default restricted characters set the following +characters are also replaced: + + Character Value Replacement + ----------- ------- ------------- + " 0x22 " + ' 0x27 ' + < 0x3C < + > 0x3E > + \ 0x5C \ + +Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON +strings. + +Public Links + +dosya.dev supports rclone link to create public share links to files. +You can use the --expire flag to specify how long the link should be +valid. + + rclone link remote:path/to/file.txt + rclone link --expire 7d remote:path/to/file.txt + +Standard options + +Here are the Standard options specific to dosya (dosya.dev). + +--dosya-api-key + +Your API Key, get it from https://dosya.dev/profile under "API keys". + +Properties: + +- Config: api_key +- Env Var: RCLONE_DOSYA_API_KEY +- Type: string +- Required: true + +--dosya-workspace-id + +Your workspace ID. + +Leave this blank to use the one workspace the API key can reach, which +is what a key restricted to a single workspace does. If the key can +reach several, rclone will refuse and list their IDs for you to choose +from. + +Properties: + +- Config: workspace_id +- Env Var: RCLONE_DOSYA_WORKSPACE_ID +- Type: string +- Required: false + +Advanced options + +Here are the Advanced options specific to dosya (dosya.dev). + +--dosya-api-url + +API base URL. + +Properties: + +- Config: api_url +- Env Var: RCLONE_DOSYA_API_URL +- Type: string +- Default: "https://api.dosya.dev" + +--dosya-upload-concurrency + +Concurrency for multipart uploads. + +This is the number of parts of the same file that are uploaded +concurrently. The first part is always uploaded on its own, because the +server creates the upload when it receives it. + +Each part in flight is held in memory, so memory use grows with this +value times the part size the server chooses. + +If you are uploading 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_DOSYA_UPLOAD_CONCURRENCY +- Type: int +- Default: 4 + +--dosya-encoding + +The encoding for the backend. + +See the encoding section in the overview for more info. + +Properties: + +- Config: encoding +- Env Var: RCLONE_DOSYA_ENCODING +- Type: Encoding +- Default: + Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot + +--dosya-description + +Description of the remote. + +Properties: + +- Config: description +- Env Var: RCLONE_DOSYA_DESCRIPTION +- Type: string +- Required: false + +Limitations + +dosya.dev only supports filenames up to 255 characters in length. + +Empty files (0 bytes) cannot be uploaded to dosya.dev. + +Upload requires knowing the file size in advance, so streaming uploads +of unknown-size files are not supported. + +Each workspace limits the number of uploads a user can have in flight at +once (5 by default, configurable in the workspace settings). When +--transfers is set higher than that limit, rclone waits for a free +upload slot rather than failing the transfer, retrying every 5 seconds +for up to 10 minutes. + +Deleting files and directories + +rclone deletes files and directories permanently, in a single request +(DELETE ?permanent=1), bypassing the workspace trash. Removing a +directory also asks the server whether it is empty (?if_empty=1) rather +than listing it first. + Drime Drime is a cloud storage and transfer service focused on fast, resilient @@ -44862,6 +47429,33 @@ files in the directory. rclone sync --interactive /home/local/directory remote:dir +Restricted filename characters + +In addition to the default restricted characters set 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 ␠ + LF 0x0A ␊ + CR 0x0D ␍ + HT 0x09 ␉ + VT 0x0B ␋ + +Invalid UTF-8 bytes will also be replaced. + +Files.com treats the replacements / and \ as if they were / and \, and +the names . and .. as if they were . and .., and rejects them with +Invalid path. This means that files with / or \ in their names, or which +are called . or .., can't be stored on Files.com. + Hashes In December 2024 files.com started supporting more checksums. @@ -47749,7 +50343,7 @@ 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. +to use --ignore-size also. Properties: @@ -48609,7 +51203,7 @@ Here is how to create your own Google Drive client ID for rclone: You should now see the three scopes on your Data access page. Now press save at the bottom! -6. After adding scopes, click Audience Scroll down and click "+ Add +6. After adding scopes, click Audience. Scroll down and click "+ Add users". Add yourself as a test user and press save. 7. Go to Overview on the left panel, click "Create OAuth client". @@ -48625,6 +51219,15 @@ Here is how to create your own Google Drive client ID for rclone: 9. Go to "Audience" and then click "PUBLISH APP" button and confirm. Add yourself as a test user if you haven't already. + (If the "PUBLISH APP" button is greyed out, Google now requires a + homepage URL and a privacy policy URL before publishing, even for a + personal single-user app. Go to "Branding" in the left panel, fill + in "Application home page" and "Application privacy policy link" - a + free GitHub Pages site is fine for these if you don't have a domain + of your own - then "Authorized domains" with the domain you used, + and click Save. Return to "Audience" and the "PUBLISH APP" button + should now be available.) + 10. Provide the noted client ID and client secret to rclone. 11. Run the web-based authorization flow from within rclone config, by @@ -49792,12 +52395,18 @@ Development Guide". Enable Drive Application Switch -1. Log in to the AppGallery Connect website and click "My Projects". -2. Find your project in the project list, select the application that - needs to access Drive in the project, and click "API Management". -3. In the "API Management" area of the "Project Settings" page, click - the switch on the right side of Drive Kit to ensure the switch is in - the open state. +1. Log in to AppGallery Connect with your Huawei account. +2. Create a project or select an existing project. +3. Add a web application to the project. +4. Open "Project settings" for the application and copy the OAuth 2.0 + Client ID and Client Secret from the "General" tab. +5. Open "API Management" for the project and enable "Cloud Drive". +6. Add http://127.0.0.1:53682/ as a redirect URI for the OAuth 2.0 + Client ID. + +The older Huawei Developer Console may show some of the same credential +information, but AppGallery Connect is the place to create the project, +application, API permission, and redirect URI used by rclone. Sign Huawei Cloud Drive Privacy Notice and User Agreement @@ -49813,23 +52422,12 @@ Service Development Guide". Key steps summary: -1. Log into the Huawei Developer Console with your Huawei account. - -2. Create a new project or select an existing project. - -3. Go to "Manage APIs" and enable the "Drive Kit" API. - -4. Click on "Credentials" in the left side panel. - -5. Click "Create Credentials" and choose "OAuth client ID". - -6. Choose "Web application" as the application type. - -7. Add http://localhost:53682/ to the "Authorized redirect URIs". - -8. Click "Create" and note down the Client ID and Client Secret. - -9. Provide the noted client ID and client secret to rclone during +1. Create or select a project in AppGallery Connect. +2. Add a web application to the project. +3. Enable Cloud Drive in API Management. +4. Configure http://127.0.0.1:53682/ as the OAuth redirect URI. +5. Copy the OAuth 2.0 Client ID and Client Secret from the application. +6. Provide the client ID and client secret to rclone during configuration. Scopes @@ -50985,11 +53583,13 @@ 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. +absolute path is resolved from the root of the domain. The path can't +change the scheme, host or user of the configured url, so a path such as +//other.example.com/fix is rejected. 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 +request is sent and the response used to decide if 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 @@ -51158,6 +53758,13 @@ For example, to set a Cookie use 'Cookie,name=value', or You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. When headers are set, a redirect from https to http is +refused as it would send them in cleartext, even with +--allow-https-downgrade. + Properties: - Config: headers @@ -51212,6 +53819,44 @@ Properties: - Type: bool - Default: false +--http-no-head-size + +Set the reported file size for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unknown file +size. Set this option to a non-negative value to report that size for +every file, including 0. Leave it unset (the default, shown as "off") to +keep reporting an unknown size. + +The configured size is authoritative. If it does not match the actual +file size, transfers may fail their size check and retry unless +--ignore-size is used. It can also make multi-thread transfers request +incorrect ranges and make mounted files unreadable past the reported +size. + +Properties: + +- Config: no_head_size +- Env Var: RCLONE_HTTP_NO_HEAD_SIZE +- Type: SizeSuffix +- Default: off + +--http-no-head-time + +Set a default modification time for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unset +modification time. Set this option to report the specified time for +every file instead. Changing the configured time later makes every file +appear modified to a sync. + +Properties: + +- Config: no_head_time +- Env Var: RCLONE_HTTP_NO_HEAD_TIME +- Type: Time +- Default: off + --http-description Description of the remote. @@ -53127,6 +55772,322 @@ and folders which may cause Copy, Move and DirMove operations to previously deleted paths to fail. Emptying the trash should help in such cases. +kDrive + +Paths are specified as remote:path + +Paths may be as deep as required, e.g. remote:directory/subdirectory. + +Configuration + +The initial setup for kDrive involves getting an OAuth2 token which you +need to do in your browser. rclone config walks you through it. + +kDrive uses the PKCE OAuth2 flow (RFC 7636), which means no +client_secret is required. The client_id is optional and defaults to +rclone's built-in application credentials. + +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 / Infomaniak kDrive + \ "kdrive" + [snip] + Storage> kdrive + + Option client_id. + OAuth Client Id. + Leave blank normally. + Enter a value. Press Enter to leave empty. + client_id> + + Option drive_id. + ID of the kDrive to use. + When showing a folder on kdrive, you can find the drive_id here: + https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... + Enter a value. Press Enter to leave empty. + drive_id> 0654321 + + 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 + + Waiting for code... + Got code + + Configuration complete. + Options: + - type: kdrive + - drive_id: 0654321 + + Keep this "remote" remote? + 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 (replace remote with +the name you gave your remote): + +List directories in top level of your rclone + + rclone lsd remote: + +Note that by default the top level directory of a private kDrive storage +is your "Private" folder. When used with a Pro account, a second folder +"Common documents" is also available, which can be used as the root by +setting root_folder_id to common. These top-level folders cannot be +modified. + +List all the files in your kDrive + + rclone ls remote: + +To copy a local directory to a kDrive directory called backup + + rclone copy /home/source remote:backup + +Modification times and hashes + +kDrive allows modification times to be set on objects accurate to 1 +second. These will be used to detect whether objects need syncing or +not. + +kDrive supports the XXH3 checksum hash, so you can use the --checksum +flag. XXH3 is only available for files uploaded as a single chunk: files +uploaded in chunks (by rclone when larger than --kdrive-chunk-size, or +by the kDrive apps which chunk files at their own sizes) have a "nested" +hash which can't be compared with a plain XXH3, and rclone reports no +hash for those files. + +Restricted filename characters + +In addition to the default restricted characters set the following +characters are also replaced: + + Character Value Replacement + ------------ ------- ------------- + LeftSpace 0x20 ␠ + RightSpace 0x20 ␠ + +Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON +strings. + +Overwriting files + +When rclone overwrites an existing file, kDrive keeps the replaced +content as a new version of the file. Old versions count against the +drive quota, so repeatedly overwriting large files grows the storage +usage. Manage old versions from the kDrive web app. + +Uploading files of unknown size + +kDrive can't upload files of unknown size, so rclone rcat and streaming +uploads are not supported. + +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 numeric Folder ID) that rclone considers to be the +root of your kDrive drive. + +Normally you will leave this blank and rclone will use your private +directory. You can also use one of the convenience shortcuts: + +- private: your user private directory (default) +- common: the kDrive common directory, shared among users + +Or the numeric Folder ID of any directory in your drive. The root of the +drive only contains the Private and Common documents folders, so a +numeric ID is needed to use any other directory as root. In order to +find the Folder ID, list the parent directory of the folder you wish +rclone to use with rclone lsf; the first column of the output is the +folder ID: + +Example: + + $ rclone lsf --dirs-only -Fip --csv remote:Documents + 456,Sub folder/ + 789,Photos/ + +So if the folder you want rclone to use is "Photos/", then use the +returned id from rclone lsf command (ex. 789) as the root_folder_id +variable value in the config file. + +Standard options + +Here are the Standard options specific to kdrive (Infomaniak kDrive). + +--kdrive-client-id + +OAuth Client Id. + +Leave blank normally. + +Properties: + +- Config: client_id +- Env Var: RCLONE_KDRIVE_CLIENT_ID +- Type: string +- Required: false + +--kdrive-drive-id + +ID of the kDrive to use. + +When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... + +Properties: + +- Config: drive_id +- Env Var: RCLONE_KDRIVE_DRIVE_ID +- Type: string +- Required: false + +Advanced options + +Here are the Advanced options specific to kdrive (Infomaniak kDrive). + +--kdrive-token + +OAuth Access Token as a JSON blob. + +Properties: + +- Config: token +- Env Var: RCLONE_KDRIVE_TOKEN +- Type: string +- Required: false + +--kdrive-auth-url + +Auth server URL. + +Leave blank to use the provider defaults. + +Properties: + +- Config: auth_url +- Env Var: RCLONE_KDRIVE_AUTH_URL +- Type: string +- Required: false + +--kdrive-token-url + +Token server url. + +Leave blank to use the provider defaults. + +Properties: + +- Config: token_url +- Env Var: RCLONE_KDRIVE_TOKEN_URL +- Type: string +- Required: false + +--kdrive-encoding + +The encoding for the backend. + +See the encoding section in the overview for more info. + +Properties: + +- Config: encoding +- Env Var: RCLONE_KDRIVE_ENCODING +- Type: Encoding +- Default: Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot + +--kdrive-root-folder-id + +The folder to use as root. + +You may use either one of the convenience shortcuts [private or common] +or an explicit folder ID. + +- private: your user private directory +- common: the kDrive common directory, shared among users + +Properties: + +- Config: root_folder_id +- Env Var: RCLONE_KDRIVE_ROOT_FOLDER_ID +- Type: string +- Required: false + +--kdrive-chunk-size + +Files above this size are uploaded in chunks of this size. + +The kDrive API accepts chunks between 1 MB and 1 GB, up to 10,000 chunks +per file and a total file size of 1 TiB. The chunk size is raised +automatically for very large files to stay within the 10,000 chunks +limit. + +Properties: + +- Config: chunk_size +- Env Var: RCLONE_KDRIVE_CHUNK_SIZE +- Type: SizeSuffix +- Default: 20Mi + +--kdrive-upload-concurrency + +Concurrency for chunked uploads. + +Properties: + +- Config: upload_concurrency +- Env Var: RCLONE_KDRIVE_UPLOAD_CONCURRENCY +- Type: int +- Default: 4 + +--kdrive-endpoint + +The API endpoint to use. + +Leave blank normally. There is no reason to change the endpoint except +for internal use or beta-testing. + +Properties: + +- Config: endpoint +- Env Var: RCLONE_KDRIVE_ENDPOINT +- Type: string +- Required: false + +--kdrive-description + +Description of the remote. + +Properties: + +- Config: description +- Env Var: RCLONE_KDRIVE_DESCRIPTION +- Type: string +- Required: false + Koofr Paths are specified as remote:path @@ -53624,6 +56585,14 @@ Limitations Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings. +Linkbox converts file extensions to lower case on upload, so a file +uploaded as file.TXT is stored as file.txt. + +Linkbox renames an uploaded file to name(1) if its name is the start of +the name of a file already in the same directory, for example when +uploading apple to a directory containing applebanana. rclone then can't +find the file it uploaded and the upload fails with object not found. + Mail.ru Cloud Mail.ru Cloud is a cloud storage provided by a Russian internet company @@ -54909,6 +57878,23 @@ and tags when --metadata is enabled (or when using --metadata-set / Notes: - Rclone ignores reserved x-ms-* keys (except x-ms-tags) for user metadata. +Hierarchical namespace + +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories. On these accounts rclone supports +empty directories, creating them with rclone mkdir and removing them +with rclone rmdir, whatever the --azureblob-directory-markers setting. + +Note that deleting the last file in a directory leaves the directory +behind. Use rclone rmdirs or --delete-empty-src-dirs to remove empty +directories. + +Rclone reads whether the storage account has a hierarchical namespace +when it first uses the remote and saves it as the hns option in the +config file. Set --azureblob-hns to override this. + +Blob tags (x-ms-tags metadata) aren't supported on these accounts. + Performance When uploading large files, increasing the value of @@ -55132,14 +58118,14 @@ 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. +is equivalent to using env_auth. Federated Identity Credentials If these variables are set, rclone will authenticate with federated identity. -- tenant: tenant ID of of the storage +- tenant: tenant ID of the storage - client_id: client ID of the application the user will authenticate to storage - msi_client_id: managed identity client ID of the application the @@ -55656,6 +58642,52 @@ Properties: - Type: int - Default: 5000 +--azureblob-use-arrow-list + +Use the Apache Arrow listing format. + +If set, directory listings are fetched using the ListBlobs Apache Arrow +response format instead of XML. Arrow responses are smaller and much +cheaper to parse, making listings of large containers several times +faster. Combine with "list_parallelism" for the biggest gains. + +"Blob Listing with Apache Arrow" is in public preview at Microsoft and +is only supported on flat namespace accounts. On accounts with a +hierarchical namespace (ADLS Gen2), or where the feature is otherwise +unavailable, the server returns XML and the listing transparently falls +back to the normal XML path (logged at debug level). + +Properties: + +- Config: use_arrow_list +- Env Var: RCLONE_AZUREBLOB_USE_ARROW_LIST +- Type: bool +- Default: false + +--azureblob-list-parallelism + +Number of parallel shards to list a directory with. + +If set greater than 1, the blob name keyspace of each directory is split +into ranges which are listed concurrently using the Arrow +startFrom/endBefore range parameters. This can dramatically speed up +listing containers with millions of objects, for both recursive (ListR) +and single directory listings. Speed keeps improving up to a parallelism +of around 30. + +This has no effect unless "use_arrow_list" is also set, as Arrow is the +only listing path that supports server-side name ranges. If the account +does not support range listing (e.g. it has a hierarchical namespace) +the listing falls back to sequential. The default of 0 (or 1) lists +sequentially. + +Properties: + +- Config: list_parallelism +- Env Var: RCLONE_AZUREBLOB_LIST_PARALLELISM +- Type: int +- Default: 0 + --azureblob-access-tier Access tier of blob: hot, cool, cold or archive. @@ -55762,6 +58794,9 @@ 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. +This is not needed on storage accounts with a hierarchical namespace +(see the hns option) as these always support empty directories. + Properties: - Config: directory_markers @@ -55769,6 +58804,23 @@ Properties: - Type: bool - Default: false +--azureblob-hns + +Set if the storage account has a hierarchical namespace. + +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories which can be empty. + +If this is unset then rclone will read it from the storage account and +save it in the config file. + +Properties: + +- Config: hns +- Env Var: RCLONE_AZUREBLOB_HNS +- Type: Tristate +- Default: unset + --azureblob-no-check-container If set, don't attempt to check the container exists or create it. @@ -56233,14 +59285,14 @@ 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. +is equivalent to using env_auth. Federated Identity Credentials If these variables are set, rclone will authenticate with federated identity. -- tenant: tenant ID of of the storage +- tenant: tenant ID of the storage - client_id: client ID of the application the user will authenticate to storage - msi_client_id: managed identity client ID of the application the @@ -56626,7 +59678,7 @@ Properties: Upload chunk size. Note that this is stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: @@ -56648,7 +59700,7 @@ and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers. Note that chunks are stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: @@ -56730,6 +59782,9 @@ Paths are specified as remote:path Paths may be as deep as required, e.g. remote:directory/subdirectory. +Note: OneDrive for Business and SharePoint users need rclone v1.76 or +later from April 1, 2027 - see Pre-authenticated URLs. + Configuration The initial setup for OneDrive involves getting a token from Microsoft @@ -56955,7 +60010,7 @@ Non-admin access to Business OneDrive If you do not have admin access to your organization's OneDrive for Business, you can still connect by manually providing the SharePoint tenant URL and drive ID. This works by overriding the base API URL from -the standard Microsoft Graph endpoint to the SharePoint v2.0 endpoint. +the standard Microsoft Graph endpoint to the SharePoint API endpoint. Steps to manually obtain credentials @@ -56971,6 +60026,12 @@ Steps to manually obtain credentials ".driveUrl": "{tenant_url}/v2.0/drives/{drive_id}", ".driveAccessToken": "access_token={access_token}" + In some guest access scenarios SharePoint may also expose a matching + v2.1 URL and token pair: + + ".driveUrlV21": "{tenant_url}/v2.1/drives/{drive_id}", + ".driveAccessTokenV21": "access_token={access_token}" + Rclone configuration Use the extracted values to configure your remote: @@ -56981,6 +60042,12 @@ Use the extracted values to configure your remote: tenant_url = {tenant_url} drive_type = business +If you use a v2.1 token, set the matching SharePoint API version: + + tenant_api_version = v2.1 + +If tenant_api_version is omitted, rclone defaults to v2.0. + Since the exact expiry time cannot be determined from web traffic, set the expiry to a future date. Note that the token will eventually expire and you will need to repeat the process to obtain a new one. @@ -57024,10 +60091,11 @@ This can be useful with rclone mount and rclone rc vfs/refresh recursive=true) to very quickly fill the mount with information about all the files. -The API used for the recursive listing (ListR) only supports listing -from the root of the drive. This will become increasingly inefficient -the further away you get from the root as rclone will have to discard -files outside of the directory you are using. +Rclone asks for the delta listing of the directory being listed. Some +drives only support delta listings from the root of the drive, in which +case rclone lists the whole drive and discards the files outside of the +directory you are using, which is increasingly inefficient the further +away from the root you get. Some commands (like rclone lsf -R) will use ListR by default - you can turn this off with --disable ListR if you need to. @@ -57219,7 +60287,7 @@ Properties: The tenant URL for non-admin OneDrive access. -Set this to your SharePoint tenant URL to use the SharePoint v2.0 API +Set this to your SharePoint tenant URL to use the SharePoint API endpoint instead of the standard Microsoft Graph API. This allows accessing business OneDrive without admin consent. @@ -57236,6 +60304,22 @@ Properties: - Type: string - Required: false +--onedrive-tenant-api-version + +The SharePoint API version to use with tenant_url. + +Set this to the SharePoint API version matching the browser-extracted +access token. For example, use v2.1 with a driveAccessTokenV21 token. + +This only applies when tenant_url is set. + +Properties: + +- Config: tenant_api_version +- Env Var: RCLONE_ONEDRIVE_TENANT_API_VERSION +- Type: string +- Default: "v2.0" + --onedrive-chunk-size Chunk size to upload files with - must be multiple of 320k (327,680 @@ -57370,17 +60454,14 @@ Properties: 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. +Onedrive 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 @@ -57395,8 +60476,8 @@ Permanently delete files on removal. Normally files will get sent to the recycle bin on deletion. Setting this flag causes them to be permanently deleted. Use with care. -OneDrive personal accounts do not support the permanentDelete API, it -only applies to OneDrive for Business and SharePoint document libraries. +This works with OneDrive for Business, SharePoint document libraries, +and OneDrive personal accounts, including free accounts. Properties: @@ -57442,13 +60523,17 @@ Properties: - Creates a read-write link to the item. - "embed" - Creates an embeddable link to the item. + - Only available in OneDrive personal. --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. +At the time of writing this works with OneDrive for Business and +OneDrive personal paid accounts. + +OneDrive personal free accounts can't set a password or an expiry time +(with --expire) on links. Properties: @@ -57542,20 +60627,11 @@ Setting this flag speeds up these things greatly: rclone size onedrive: rclone rc vfs/refresh recursive=true -However the delta listing API only works at the root of the drive. If -you use it not at the root then it recurses from the root and discards -all the data that is not under the directory you asked for. So it will -be correct but may not be very efficient. - -This is why this flag is not set as the default. - -As a rule of thumb if nearly all of your data is under rclone's root -directory (the root/directory in onedrive:root/directory) then using -this flag will be a big performance win. If your data is mostly not -under the root then using this flag will be a big performance loss. - -It is recommended if you are mounting your onedrive at the root (or near -the root when using crypt) and using rclone rc vfs/refresh. +Rclone asks for the delta listing of the directory being listed. If the +drive only supports delta listings at the root of the drive (as some +older OneDrive for Business and SharePoint drives do) then rclone lists +from the root and discards all the data that is not under the directory +you asked for. So it will be correct but may not be very efficient. Properties: @@ -57750,8 +60826,7 @@ Here are the possible system metadata items for the onedrive backend. Name Help Type Example Read Only ------------------------------- ---------------------------------- ----------- -------------------------------------- -------------------- btime Time of file birth (creation) with RFC 3339 2006-01-02T15:04:05Z N - S accuracy (mS for OneDrive - Personal). + S accuracy. content-type The MIME type of the file. string text/plain Y @@ -57778,8 +60853,7 @@ Here are the possible system metadata items for the onedrive backend. the item contains malware. mtime Time of last modification with S RFC 3339 2006-01-02T15:04:05Z N - accuracy (mS for OneDrive - Personal). + accuracy. package-type If present, indicates that this string oneNote Y item is a package instead of a @@ -57806,11 +60880,9 @@ Here are the possible system metadata items for the onedrive backend. organization, or users. shared-time Time when the item was shared, RFC 3339 2006-01-02T15:04:05Z Y - with S accuracy (mS for OneDrive - Personal). + with S accuracy. - utime Time of upload with S accuracy (mS RFC 3339 2006-01-02T15:04:05Z Y - for OneDrive Personal). + utime Time of upload with S accuracy. RFC 3339 2006-01-02T15:04:05Z Y ------------------------------------------------------------------------------------------------------------------------------------------ See the metadata docs for more info. @@ -57906,11 +60978,6 @@ 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 @@ -57961,10 +61028,36 @@ 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 +Pre-authenticated URLs + +Microsoft is retiring pre-authenticated (tempauth) URLs in OneDrive for +Business and SharePoint from April 1, 2027. + +Upgrade to rclone v1.76 or later before April 1, 2027. Earlier versions +rely on pre-authenticated URLs, so after that date their downloads, +chunked uploads and server-side copies will fail with OneDrive for +Business and SharePoint. Rclone v1.76 and later keep working with the +existing configuration, apart from the client credentials flow with a +client secret (see below). + +Rclone uses these URLs when downloading files, when uploading files +bigger than --onedrive-upload-cutoff in chunks and when doing +server-side copies. When SharePoint returns them without +pre-authentication rclone authenticates them with a SharePoint token +which it gets using the existing login, so no reconfiguration is needed. +OneDrive Personal is not affected. + +If rclone can't get a SharePoint token, or SharePoint refuses it, you +will see the error SharePoint refused to authenticate a request. In this +case rclone uploads files smaller than 250 MiB in a single request +instead and copies files by downloading and uploading them, but bigger +files can't be uploaded and downloads may fail. + +SharePoint does not accept tokens from the client credentials flow which +were got with a client secret, so this affects client_credentials users. + Excessive throttling or blocked on SharePoint If you experience excessive throttling or is being blocked on SharePoint @@ -58020,7 +61113,8 @@ 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 +Have a look at the WebDAV backend: +https://rclone.org/webdav/#sharepoint-online invalid_grant (AADSTS50076) @@ -58056,6 +61150,25 @@ a workaround: 3. The shortcut will appear in My files, you can access it with rclone, it behaves like a normal folder/file. [in_my_files] [rclone_mount] +Listing such a shortcut may still fail with + + invalidRequest: The provided drive id appears to be malformed, or does not represent a valid drive. + +as the drive it points to can't always be read with the drive ID the API +supplies. Personal Vault is a shortcut of the same kind and fails to +list in the same way, though it reports +invalidResourceId: ObjectHandle is Invalid. + +A normal listing reports the error for that folder and carries on, so +the rest of the drive is still listed, and excluding the folder (for +example with --exclude "/Personal Vault/**") avoids the error. + +A recursive listing with --fast-list stops at the first error, so +listing the root of a drive which has one of these shortcuts in it will +fail. Filters don't help here as the folder is listed by the backend +before the filters are applied - use --disable ListR (or don't use +--fast-list) on such a drive. + Live Photos uploaded from iOS (small video clips in .heic files) The iOS OneDrive app introduced upload and storage of Live Photos in @@ -58899,7 +62012,7 @@ Properties: - Config: encoding - Env Var: RCLONE_OOS_ENCODING - Type: Encoding -- Default: Slash,InvalidUtf8,Dot +- Default: Slash,CrLf,InvalidUtf8,Dot --oos-leave-parts-on-error @@ -60069,6 +63182,7 @@ that being: - Oracle Cloud Storage - Blomp Cloud Storage - IBM Bluemix Cloud ObjectStorage Swift +- Infomaniak Swiss Backup Paths are specified as remote:container (or remote: for the lsd command.) You may put subdirectories in too, e.g. @@ -60194,8 +63308,8 @@ files in the container. Configuration from an OpenStack credentials file -An OpenStack credentials file typically looks something something like -this (without the comments) +An OpenStack credentials file typically looks something like this +(without the comments) export OS_AUTH_URL=https://a.provider.net/v2.0 export OS_TENANT_ID=ffffffffffffffffffffffffffffffff @@ -60364,6 +63478,14 @@ Properties: - OVH - "https://authenticate.ain.net" - Blomp Cloud Storage + - "https://swiss-backup01.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 01 + - "https://swiss-backup02.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 02 + - "https://swiss-backup03.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 03 + - "https://swiss-backup04.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 04 --swift-user-id @@ -60744,7 +63866,7 @@ 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. +investigate further with the --dump bodies flag. This may also be caused by specifying the region when you shouldn't have (e.g. OVH). @@ -61321,6 +64443,8 @@ Properties: Files bigger than this will be cached on disk to calculate hash if required. +Files of unknown size are always cached on disk. + Properties: - Config: hash_memory_limit @@ -63028,6 +66152,12 @@ characters are also replaced: Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings. +Seafile stores file and directory names in Unicode NFC form whatever +form they are uploaded in, so rclone normalizes names to NFC before +sending them. Listings therefore always show NFC names, even for files +created with decomposed (NFD) names as macOS produces them. Library +names are not normalized as Seafile keeps them exactly as entered. + Seafile and rclone link Rclone supports generating share links for non-encrypted libraries only. @@ -63649,6 +66779,22 @@ 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. +Restricted filename characters + +SFTP servers on Unix-like systems can store any character in a file name +except NUL and /, so by default only these are replaced: + + Character Value Replacement + ----------- ------- ------------- + NUL 0x00 ␀ + / 0x2F / + +If the server runs on Windows, which can't store many more characters, +add the Windows restricted characters with --sftp-encoding, as in the +FTP example: + + --sftp-encoding "Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot" + About command The about command returns the total space, free space, and used space on @@ -64041,7 +67187,7 @@ Properties: - Config: encoding - Env Var: RCLONE_SFTP_ENCODING - Type: Encoding -- Default: Slash,Del,Ctl,Dot +- Default: Slash,Dot --sftp-set-modtime @@ -64288,6 +67434,33 @@ Properties: - Type: bool - Default: false +--sftp-multithread-upload + +Set this to use multi-thread (multi-connection) uploads. + +Normally rclone uploads a single large file over one SFTP connection. +With this set rclone uploads large files over several SFTP connections +at once (one per chunk), which greatly improves throughput on high +latency links, the same way multi-thread downloads already work. Each +connection writes a different, non-overlapping byte range of the file, +so this requires a server that allows several handles to the same file +with writes at arbitrary offsets, which OpenSSH does. + +This is off by default because many SFTP servers only accept sequential +writes (for example some object storage backed SFTP gateways) and would +fail large uploads with "truncate failed" or "invalid offset" style +errors. + +This is ignored (uploads stay single-threaded) when +--sftp-disable-concurrent-writes or --sftp-connections is in use. + +Properties: + +- Config: multithread_upload +- Env Var: RCLONE_SFTP_MULTITHREAD_UPLOAD +- Type: bool +- Default: false + --sftp-idle-timeout Max time before closing idle connections. @@ -64569,7 +67742,7 @@ 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. +with it: --dump headers, --dump bodies, --dump auth. Note that --timeout and --contimeout are both supported. @@ -64980,12 +68153,14 @@ Properties: SMB username. +Leave blank to use the current user name. + Properties: - Config: user - Env Var: RCLONE_SMB_USER - Type: string -- Default: "$USER" +- Required: false --smb-port @@ -65061,6 +68236,23 @@ Advanced options Here are the Advanced options specific to smb (SMB / CIFS). +--smb-workstation + +Workstation name sent in NTLM authentication. + +The NetBIOS name sent as the client workstation in the NTLM AUTHENTICATE +message. Some servers (e.g. domain-joined Windows servers with +per-account workstation restrictions or NTLM allow-lists) require this +to match a specific name. Leave blank to send no workstation name (the +default). + +Properties: + +- Config: workstation +- Env Var: RCLONE_SMB_WORKSTATION +- Type: string +- Required: false + --smb-idle-timeout Max time before closing idle connections. @@ -66626,7 +69818,9 @@ 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. +with them. With Nextcloud, rclone asks the server to calculate the SHA1 +of uploads which had no hash to send, such as streamed uploads, and +after setting the modification time, which discards the stored hash. Standard options @@ -66760,6 +69954,13 @@ For example, to set a Cookie use 'Cookie,name=value', or You can set multiple headers, e.g. '"Cookie","name=value","Authorization","xxx"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. The exception is the directory listing and file download +requests when auth_redirect is set, as that keeps all credentials across +redirects. + Properties: - Config: headers @@ -67165,6 +70366,17 @@ The default restricted characters set are replaced. Invalid UTF-8 bytes will also be replaced, as they can't be used in JSON strings. +Application folder + +If you registered your own OAuth application with Yandex and only +granted it the "Application Folder" permission +(cloud_api:disk.app_folder) instead of full disk access, then you must +set the app_folder option to true. Yandex Disk requires paths to be +addressed with an app:/ prefix instead of the usual disk:/ prefix when +using this restricted scope, and rclone will return a 403 Forbidden +error on every request if this option isn't set correctly for the token +in use. + Standard options Here are the Standard options specific to yandex (Yandex Disk). @@ -67309,6 +70521,26 @@ Properties: - Type: Duration - Default: 0s +--yandex-app-folder + +Use the application folder as the root. + +If you registered your own OAuth application with Yandex with only the +"Application Folder" permission (cloud_api:disk.app_folder) instead of +full disk access, then rclone needs to address paths with the "app:/" +prefix instead of the usual "disk:/" prefix, otherwise all requests fail +with a 403 Forbidden error. + +Set this to true if your OAuth token only has access to the application +folder. + +Properties: + +- Config: app_folder +- Env Var: RCLONE_YANDEX_APP_FOLDER +- Type: bool +- Default: false + --yandex-description Description of the remote. @@ -67961,6 +71193,9 @@ and 6 b/two 6 b/one +Symlinks which point to a parent directory would loop forever, so rclone +reports them as errors and skips them. + --local-links, --links, -l Normally rclone will ignore symlinks or junction points (which behave @@ -68009,6 +71244,9 @@ Copying them back with '-l' ├── file1 -> ./file4 └── file2 -> /home/user/file3 +A .rclonelink file whose contents are too long to be a path (more than +128 KiB) is refused rather than turned into a symlink. + However, if copied back without '-l' $ rclone copyto remote:/tmp/a/ /tmp/b/ @@ -68308,6 +71546,14 @@ consume more storage than having just one.) However, for use cases where data redundancy is preferable, --local-no-clone can be used to disable cloning and force "deep" copies. +Cloning also preserves macOS-specific metadata such as extended +attributes, which a normal copy does not, so this metadata is lost when +cloning is disabled. + +If the destination file already exists, cloning replaces it with a new +file, even with --inplace, so hard links to it are broken. Use +--local-no-clone to update existing files in place. + Currently, cloning is only supported when using APFS on macOS (support for other platforms may be added in the future.) @@ -68397,10 +71643,10 @@ Properties: Make out-of-space errors fatal during transfers. -When enabled, an ENOSPC error during a write returns a fatal error so -that rclone aborts rather than retrying the operation. Useful for backup -scripts that should halt loudly on a full disk rather than spin -retrying. +When enabled, an out of space error while writing, creating a directory, +or creating a file returns a fatal error so that rclone aborts rather +than retrying the operation. Useful for backup scripts that should halt +loudly on a full disk rather than spin retrying. Properties: @@ -68498,9 +71744,10 @@ Metadata is supported on files and directories. When restoring metadata with --metadata rclone applies the "mode", "uid" and "gid" from the source. These come from the source remote which may not be trusted, so restoring metadata as root from an untrusted source -can change file ownership and is not recommended. The setuid, setgid and -sticky bits are not restored by default - see the ---local-metadata-restore-special-bits flag. +can change file ownership and is not recommended. A user other than root +keeps its own uid and sets the gid only to a group it is a member of, as +rsync does. The setuid, setgid and sticky bits are not restored by +default - see the --local-metadata-restore-special-bits flag. Here are the possible system metadata items for the local backend. @@ -68564,6 +71811,1018 @@ Options: Changelog +v1.76.0 - 2026-11-06 + +See commits + +- New backends + - Dosya (Kaya) + - Infomaniak kDrive (Guillaume MALLERET) +- New S3 Providers + - Autonomys Auto Drive (Jim Counter) + - Clever Cloud Cellar (David Legrand) + - Infomaniak Swiss Backup (Louis) + - Neon Object Storage (Rishi Raj Jain) + - RelAix.Storage (mygrexit) +- New commands + - index: Write static directory listings into a remote (Nick + Craig-Wood) +- Security + - build + - Disable Multipath TCP listeners by default to mitigate + CVE-2026-98432 (Nick Craig-Wood) + - Fix multiple CVEs including CVE-2026-111943 by upgrading to + go1.27.3 (Nick Craig-Wood) + - Update golang.org/x/net to v0.62.0 to fix multiple CVEs + (Nick Craig-Wood) + - Update github.com/andybalholm/brotli to v1.2.7 to fix + CVE-2026-111497 (Nick Craig-Wood) + - fshttp: Refuse HTTPS to HTTP redirects unless + --allow-https-downgrade GHSA-m97j-7x65-wh93 CVE-PENDING (Nick + Craig-Wood) + - lib/http: Stop --htpasswd and --user revealing which usernames + exist through timing GHSA-hwj7-wp9g-wrv9 CVE-PENDING (Nick + Craig-Wood) + - local + - Fix user metadata escaping the root through a planted + symlink GHSA-r5wv-vqqh-2r9c CVE-PENDING (Nick Craig-Wood) + - Fix MkdirMetadata finding directories outside the root + through a planted symlink (Nick Craig-Wood) + - Fix Remove and Rmdir deleting outside the root through a + planted symlink (Nick Craig-Wood) + - Fix DirMove creating the destination parent through a + planted symlink (Nick Craig-Wood) + - netstorage: Fix API auth headers leaking to other hosts on + redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - rc + - Limit request size when the rc server has no authentication + GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - Reject unauthorised and unknown calls before reading the + request GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - seafile: Fix HTTPS to HTTP redirects leaking credentials + GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - serve: Make auth proxy revocation take effect within 5 minutes + GHSA-vmgx-g9c5-669p CVE-PENDING (Nick Craig-Wood) + - serve sftp + - Fix auth proxy letting a public key be used as a password + GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - Fix auth proxy running for public keys the client can't use + GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - swift + - Fix auth token leaking to other hosts or over plaintext on + redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - Fix password being resent to another host on auth redirect + GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - ulozto: Fix auth tokens leaking on redirects from download links + GHSA-3xpx-hjg2-vrjh CVE-PENDING (Nick Craig-Wood) +- New Features + - accounting + - Stop --max-transfer overshooting the limit (Nick Craig-Wood) + - Add "Updated dirs" count of directory modtime/metadata + updates to the stats (Nick Craig-Wood) + - batcher: Log when committing uploads has finished (phatlc) + - bisync + - Make --max-delete aware of --track-renames (Morax) + - Fall back to --download when a checksum is missing (nielash) + - Reject --max-delete above 100 (nielash) + - build + - Update to go1.27 and make go1.26 the minimum required + version (Nick Craig-Wood) + - Update all dependencies (Nick Craig-Wood) + - cmd: Complete enum flag values from their choices (Demiao Huang) + - config: Only run --password-command once when using --daemon + (phatlc) + - doc fixes (ashwinibailangadi, ferrumclaudepilgrim, frodleTian, + FTCHD, gomitrah, Nick Craig-Wood, qodelicious, Satvik Mishra, + ZainnQureshii) + - docker: Make container user UID and GID configurable via build + ARGs (Vaibhav Mashal) + - filter + - Speed up large --include-from lists of directories (kaii9) + - Make [!...] in globs a negated character class (kevin9327) + - Make [^...] in globs exclude / and document it (kevin9327) + - fs + - Reject sizes too large for SizeSuffix instead of silently + disabling the limit (KBS) + - Stop writing config for on the fly and environment variable + remotes into the config file (Nick Craig-Wood) + - Reject durations like 300y that overflow instead of wrapping + (kevin9327) + - Accept multi-unit relative times like 1d12h in Time options + (kevin) + - Reject NaN sizes and CountSuffix values that overflow + (kevin9327) + - Reject --bwlimit times without a colon or with signed digits + (kevin9327) + - Reject NaN durations instead of wrapping (Soujas K) + - Add MIME type for JPEG XL (.jxl) files (Seth Westphal) + - gui + - Take the GUI out of beta (Nick Craig-Wood) + - Update embedded release to 1.2.1 (Nick Craig-Wood) + - hash: Add CRC-32C (Castagnoli) support (Dirk Petersen) + - index: Add partial runs which only re-index changed directories + (Nick Craig-Wood) + - lib/http + - Return 416 for ranges --rc-serve and serve restic can't + satisfy (Rohit Behera) + - Replace github.com/abbot/go-http-auth with built in htpasswd + support (Nick Craig-Wood) + - Accept the Basic auth scheme in any case (kevin) + - lib/proxy: Send the decoded user and password in + Proxy-Authorization (kevin) + - lib/transform: Make titlecase capitalise words instead of + upper-casing them (kevin) + - ncdu: Show progress and the item count when deleting a selection + (Lev Devaev) + - operations + - Check checksums in rcat with known size (phatlc) + - Speed up checksum by hashing files in parallel (Teddy + Tennant) + - Fall back to a single stream when a multi-thread source + ignores ranges (Morax) + - Show directory operations in the --progress display (Nick + Craig-Wood) + - Add operations/getfile remote control API endpoint (Hakan + İSMAİL) + - Make --immutable work with copyto, moveto and single file + copy (phatlc) + - Respect --backup-dir in deletefile (Cao Yuhang) + - rc + - Deprecate --rc-web-gui flag (Nick Craig-Wood) + - Add sync report parameters to sync/sync, sync/copy and + sync/move (Nick Craig-Wood) + - rest: Reject negative sizes in HTTP response headers (Yousef + Issa) + - serve http + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - serve s3 + - Report the object's modtime as Last-Modified after a PUT + (kevin9327) + - Support changing object tags (Nick Craig-Wood) + - Quote the ETags of objects in listings (Nick Craig-Wood) + - Support listing with delimiters other than "/" (Nick + Craig-Wood) + - Support directory markers and refuse file/directory + conflicts (Nick Craig-Wood) + - Make the ETag of multipart uploads agree with HEAD and + support partNumber (Nick Craig-Wood) + - Make conditional writes atomic against other writes through + the server (Nick Craig-Wood) + - Make the ETag returned on upload agree with HEAD for any + --etag-hash (Nick Craig-Wood) + - List empty directories as directory markers (Nick + Craig-Wood) + - Allow copying directory markers (Nick Craig-Wood) + - Remove the directories made for a failed upload (Nick + Craig-Wood) + - Keep the MD5 ETag of objects on remotes without MD5 (Nick + Craig-Wood) + - Don't read directories needlessly when listing with a + delimiter (Nick Craig-Wood) + - Don't compute the MD5 of multipart uploads unless the ETag + is MD5 (Nick Craig-Wood) + - List the directory markers put for directories holding other + keys (Nick Craig-Wood) + - Let a failed CompleteMultipartUpload be retried (Nick + Craig-Wood) + - List objects with the storage class they were put with (Nick + Craig-Wood) + - Add --directory-markers to list every directory as a marker + (Nick Craig-Wood) + - Remove a directory with its last key after its marker is + deleted (Nick Craig-Wood) + - Make --no-cleanup a deprecated alias of --directory-markers + (Nick Craig-Wood) + - Document which S3 features are supported and the design + goals (Nick Craig-Wood) + - serve webdav + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - size: Include source in JSON output (Jiacheng Xu) + - sync: Add pattern-based transfer ordering (Shurong Cao) + - touch: Parse documented timestamp formats (Nicholas Velten) +- Bug Fixes + - accounting: Fix totalBytes counting server-side copies and moves + twice (ilya lavrenov) + - bisync + - Fix conflict winner missing from listings when Path2 wins + (nielash) + - Fix --conflict-resolve comparing a zero size or modtime + (nielash) + - Fix endless retry loop for skipped files (nielash) + - Fix listings ignoring a modtime less than 1s older (nielash) + - Fix rc ignoring global --dry-run and --max-delete settings + (nielash) + - Fix rc ignoring legacy backupdir1/2 and invalid values + (nielash) + - Fix internal error when a conflict rename reuses deleted + names (TastyHeadphones) + - fs: Fix durations like 1d12h being rejected (Rohit Behera) + - lib/encoder: Fix decoding a trailing character after an escaped + quote (kevin9327) + - list: Fix ext sort error sometimes being ignored at the end of a + listing (Nick Craig-Wood) + - ncdu: Update to tcell v3 which fixes duplicated keys on Windows + (Nick Craig-Wood) + - operations + - Fix making a directory with modtime asking twice with + --interactive (Nick Craig-Wood) + - Fix case- or Unicode-only renames deleting the file + (nielash) + - Fix moving a file onto its own name deleting it (nielash) + - Fix cat --offset before the start of a file printing its end + (b84330808) + - Fix oversized getfile tail requests (唐僧洗发用飘柔) + - rc: Fix LogLevel in _config being ignored (Nick Craig-Wood) + - rest: Fix retries reading the request body after the request has + finished (Nick Craig-Wood) + - serve dlna: Fix crash on Browse with a negative StartingIndex or + RequestedCount (phatlc) + - serve restic: Fix temporary errors confusing restic into leaving + locks behind (Azhar) + - serve s3 + - Update to gofakes3 v0.0.8 which fixes 500 errors with go1.27 + (Nick Craig-Wood) + - Upgrade gofakes3 to v0.0.11 to fix IsTruncated and Docker + Distribution Registry (DEVN) + - Fix buckets being undeletable after an aborted multipart + upload (Nick Craig-Wood) + - Fix CopyObject metadata including the source's and an mtime + (Nick Craig-Wood) + - serve sftp: Fix rmdir deleting a file instead of returning an + error (phatlc) + - sync + - Fix directory modtimes being set twice (Nick Craig-Wood) + - Fix --delete-empty-src-dirs disabled by a prior error in a + reused stats group (ghwany) + - walk: Fix duplicate directories with --fast-list when + directories are listed after their contents (Nick Craig-Wood) +- Mount + - Fix VFS instance leaks on mount failures and unmounts (Hakan + İSMAİL) +- VFS + - Preserve shrinking truncate on uncached files (47th) + - Fix crash renaming a directory while the dir cache expires + (Shreyansh Jain) + - Fix virtual entries leak in removed directory (Biagio + Peccerillo) + - Fix renamed items listed twice after a case or Unicode-only + match (nielash) + - Fix uploads never starting while a dirty file keeps being read + (Neil Cawse) +- Local + - Speed up default checksummed copies by writing in larger blocks + (Dominik Sander) + - Make out of space errors fatal during multi-thread transfers + (ferrumclaudepilgrim) + - Stop --copy-links following symlink loops (phatlc) + - Limit the size of symlink targets read from .rclonelink files + (Nick Craig-Wood) + - Fix server-side copy on macOS when the destination exists (Ayush + Sharma) + - Set only the ownership a non-root user may set (Dirk Petersen) +- Crypt + - Fix nil pointer panic in ObjectInfo.Hash (fixfon) +- Archive + - Read symlinks stored in zip and squashfs archives (Lev Devaev) + - Fix reading an archive in the root of a remote (Oshino Penguin) +- Azure Blob + - Enable on Solaris (acoeur) + - Fix directories on storage accounts with hierarchical namespace + (Nick Craig-Wood) + - Fix NewObject on a directory returning "is not a regular file" + (Nick Craig-Wood) + - Fix listing a file as a directory on hierarchical namespace + accounts (Nick Craig-Wood) + - Fix sync at the root failing on soft deleted containers (Ludovic + Bondon) +- Box + - Reuse multipart upload part buffers via the global pool (Nick + Craig-Wood) + - Fix ~ and environment variables not being expanded in + box_config_file (Nick Craig-Wood) +- Chunker + - Clean stale chunks after server-side overwrite + (hahahahahayesyeseys) +- Compress + - Buffer small uploads in the global memory pool (Nick Craig-Wood) + - Stop buffering the compressibility check output in memory (Nick + Craig-Wood) +- Drime + - Fix endless listing of directories with more than 20,000 entries + (Maksym Tymoshyk) +- Drive + - Fetch metadata permissions concurrently (Loi Nguyen) + - Reuse resumable-upload chunk buffers via the global memory pool + (SillyZir) + - Stop a fast-list error from hanging the sync (Sash) +- Dropbox + - Reuse upload chunk buffers via the global memory pool (Nick + Craig-Wood) +- Filelu + - Reuse multipart upload buffers via the global pool and retry + failed parts (Nick Craig-Wood) + - Encode multipart init paths (wjc) +- FTP + - Discard connections that fail with non-FTP errors (Daniel Bae) + - Fix ranged reads failing when the server answers 425 to an early + close (Robert Kubiś) +- Hasher + - Keep cached hash when only the modtime changes (Aniket) +- Hidrive + - Stop copying every upload chunk a second time (Nick Craig-Wood) + - Buffer the start of each upload from the global memory pool + (Nick Craig-Wood) + - Reuse chunked upload buffers via the global memory pool (Nick + Craig-Wood) + - Buffer small file updates from the global memory pool (Nick + Craig-Wood) + - Fix truncated file left behind when an upload hits + --max-transfer (Nick Craig-Wood) +- HTTP + - Add metadata defaults for --http-no-head (Giridhar) +- Huaweidrive + - Build small uploads in pooled memory instead of a growing buffer + (Nick Craig-Wood) + - Reuse resumable-upload chunk buffers via the global pool (Nick + Craig-Wood) + - Fix creating, copying and renaming files with non-ASCII names + (Nick Craig-Wood) +- Iclouddrive + - Mark the backend as case insensitive (berce) +- Imagekit + - Stop multipart writers after failed uploads (Florian Josef + Altendorfer) +- Jottacloud + - Buffer MD5 pre-reads in the global memory pool (Nick Craig-Wood) + - Fix server-side copy onto a trashed file failing as corrupted + (Nick Craig-Wood) + - Fix server-side copy onto a trashed file keeping the old name + case (Nick Craig-Wood) + - Fix authentication with whitelabel services elkjop and elko + (albertony) + - Fix traditional authentication failing with invalid_client + (albertony) +- Linkbox + - Buffer the hashed 10 MiB file prefix in the global memory pool + (Nick Craig-Wood) +- Mailru + - Buffer speedup hashing in the global memory pool and fix upload + retries (Nick Craig-Wood) +- Onedrive + - OneDrive for Business and SharePoint users must upgrade to + v1.76+ before April 1, 2027 (Nick Craig-Wood) + - Authenticate SharePoint downloads, uploads and copies after + tempauth retirement (Nick Craig-Wood) + - Return an error if a ranged download doesn't return the + requested range (Nick Craig-Wood) + - Reuse upload chunk buffers via the global memory pool (Nick + Craig-Wood) + - Allow --onedrive-upload-cutoff up to the documented limit of 250 + MiB (Can Arslan) + - Add configurable SharePoint tenant API version (Mattias Michaux) + - Make --onedrive-delta quicker when not listing from the drive + root (Nick Craig-Wood) + - Keep the delta token when a ChangeNotify poll fails + (xiaozou-wine) + - Show the size of directories in listings (GingerAdonis) + - Poll async copy status with the configured HTTP client (Soujas + K) +- Opendrive + - Reuse upload chunk buffers via the global memory pool (Nick + Craig-Wood) +- Oracleobjectstorage + - Add server-side object moves (tomaszni) + - Encode carriage returns and line feeds (tomaszni) + - Purge objects in batches (tomaszni) + - Retry 409 ConcurrentObjectUpdate errors (berce) +- Pcloud + - Stop multipart writers after failed uploads (Florian Josef + Altendorfer) +- Pikpak + - Share upload chunk buffers with the global memory pool (Nick + Craig-Wood) + - Use pooled memory for the gcid hash buffer and spool + unknown-size uploads to disk (Nick Craig-Wood) + - Fix downloads that return an HTTP error page as the file + (Cestercian) + - Stop multipart writers after failed uploads (Florian Josef + Altendorfer) + - Fix uploads failing when the server is slow to complete them + (Nick Craig-Wood) +- Putio + - Reuse upload chunk buffers via the global memory pool (Nick + Craig-Wood) +- S3 + - Avoid buffering Object Lock uploads when the source MD5 is known + (Nick Craig-Wood) + - Add backend link command with signed response header overrides + (eliotee) + - Add Fastly EU Central 1 region (Leon Brocard) + - Add the MD5 of multipart chunks to the debug log + (interested.tortoise) + - Report the real storage class when an object needs restoring + (Dirk Petersen) + - Speed up multi-thread uploads by checksumming chunks in 1 MiB + reads (Roman Butor) + - Add IT-MIL region to Scaleway (Alessio Margelli) + - Add missing Huawei OBS regions (Enbiya Göral) + - Fix rmdir of the root directory with --s3-directory-markers + (Nick Craig-Wood) + - Fix presigned URLs for GCS, Linode and Ceph (Leon Brocard) +- Seafile + - Fix operations on files whose names are not in Unicode NFC form + (Fred) + - Stop multipart writers after failed uploads (Florian Josef + Altendorfer) + - Fix double slash in the URL when getting a 2FA token (Nick + Craig-Wood) +- SFTP + - Implement multi-thread uploads (Splainte) + - Fix data race when using --sftp-ssh (Dirk Petersen) + - Fix hash check for names starting with "-" with relative + --sftp-path-override (Dirk Einecke) + - Fix sync deleting files with control characters in their names + (nielash) + - Fix hashing files with a newline in their name on rsync.net + (Nick Craig-Wood) +- Shade + - Stop copying each upload chunk into a second heap buffer (Nick + Craig-Wood) +- Smb + - Add workstation field to smb backend (Kalin Stoyanov) +- Swift + - Add Infomaniak Swiss Backup provider (Louis) +- WebDAV + - Reject ranged responses which ignore the range (Morax) + - Retry Nextcloud chunk uploads individually (Stochastic) + - Fix Nextcloud public share access by sending X-Requested-With + (drakeo338) + - Fix memory leak uploading to Infinite Scale (jxj) +- Yandex + - Add app_folder option to support cloud_api:disk.app_folder OAuth + scope (Sanjay Kanth A) +- Zoho + - Stop multipart writers after failed uploads (Florian Josef + Altendorfer) + +v1.75.2 - 2026-10-09 + +See commits + +- Security + - b2: Fix account token and SSE-C key leaking on redirects from + --b2-download-url GHSA-gpw7-77cq-9f72 CVE-2026-116196 (Nick + Craig-Wood) + - build + - Fix multiple CVEs by upgrading to go1.26.9 (Nick Craig-Wood) + - CVE-2026-97032: net/http: HTTP/2 server crash due to + HPACK encoder race + - CVE-2026-78659: net/http: HTTP/2 server memory + exhaustion due to Trailer headers + - CVE-2026-97031: crypto/tls: reject malformed ECH outer + extension references + - CVE-2026-94444: cmd/go: checksum bypass for + golang.org/fips140 + - CVE-2026-94447: cmd/go: checksum database bypass for + golang.org/toolchain + - CVE-2026-94448: html/template: reset context tracking on + consecutive template expressions + - CVE-2026-97030: html/template: recognize |yield| as + regexp preceder keyword + - CVE-2026-94440: net/textproto, mime/multipart: memory + limit bypass when parsing MIME headers + - CVE-2026-56866: net/http: HTTP/1 client connection + desynchronization after CONNECT rejection + - CVE-2026-94439: net/http: HTTP/1 server connection + desynchronization after 2xx CONNECT response + - CVE-2026-78669: net/http: excessive CPU consumption from + repeated initial window changes + - CVE-2026-78660: net/http: HTTP/2 transport accepts + malformed framing-related headers + - CVE-2026-56857: os: Root.Mkdir(All) can follow junctions + out of the root on Windows + - CVE-2026-78667: net/http: lack of limit on size of + parsed Range headers + - CVE-2026-78663: net/http: double flow control refund on + HTTP/2 server streams + - Update golang.org/x/net to v0.60.0 to fix multiple CVEs + (Nick Craig-Wood) + - CVE-2026-78659: net/http: HTTP/2 server memory + exhaustion due to Trailer headers + - CVE-2026-78669: net/http: excessive CPU consumption from + repeated initial window changes + - CVE-2026-78663: net/http: double flow control refund on + HTTP/2 server streams + - CVE-2026-97032: net/http: HTTP/2 server crash due to + HPACK encoder race + - Update google.golang.org/grpc to fix CVE-2026-84445 + (dependabot[bot]) + - CVE-2026-84445: xds: server panic on a request missing + both :authority and Host headers + - fshttp: Drop --header values over HTTP after HTTPS downgrade + GHSA-rrwf-2qr6-p832 CVE-PENDING (Nick Craig-Wood) + - http: Stop a path starting with // moving the remote to another + host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) + - lib/http: Require authentication for OPTIONS requests + GHSA-gj73-fh6v-92fj CVE-2026-116193 (Nick Craig-Wood) + - local: Fix .rclonelink names escaping the root with --links + GHSA-55qp-jrwr-x827 CVE-2026-116195 (Nick Craig-Wood) + - netstorage + - Stop a path starting with // moving the remote to another + host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) + - Stop a listing resume token moving signed requests to + another host GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick + Craig-Wood) + - pcloud + - Fix OAuth config accepting callbacks without state + GHSA-hvpr-p4pv-4f46 CVE-2026-116194 (Nick Craig-Wood) + - Only accept pCloud hosts from the hostname in the OAuth + callback GHSA-hvpr-p4pv-4f46 (Nick Craig-Wood) + - selfupdate + - Fix hash check trusting unsigned data in the signed + SHA256SUMS GHSA-w33h-3qgq-8mv8 CVE-2026-116189 (Nick + Craig-Wood) + - Fix release verification instructions trusting unsigned + hashes GHSA-w33h-3qgq-8mv8 (Nick Craig-Wood) + - serve nfs: Fix path traversal by refusing unsafe file names in + the VFS GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) + - serve s3 + - Fix presigned URL being turned into a copy of any object + GHSA-w3h7-jxxq-vfrp CVE-PENDING (Nick Craig-Wood) + - Stop auth proxy users listing or using each other's + multipart uploads and metadata GHSA-35g6-9fjv-rmx5 + CVE-2026-116187 (Nick Craig-Wood) + - Fix multipart buffer limits being bypassed by overflowing + part sizes GHSA-qjw8-8hmp-c3m6 CVE-2026-116188 (Nick + Craig-Wood) + - Add --multipart-max-uploads to limit uploads in progress + (Nick Craig-Wood) + - Add --multipart-streaming-buffer-total to limit memory + across uploads (Nick Craig-Wood) + - Add --metadata-max-objects to limit the metadata kept in + memory (Nick Craig-Wood) + - serve webdav: Fix path traversal above the served directory + GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) + - webdav: Fix headers option leaking to other hosts on redirect + GHSA-3rqf-7h69-gg5v CVE-2026-116190 (Nick Craig-Wood) +- Bug Fixes + - accounting + - Stop averaging when the last check finishes (Kunpeng Xie) + - Keep speed averaging active when transfers overlap (kaii9) + - dedupe: Fix rename mode giving up after 100 names and make it + faster (Nick Craig-Wood) + - doc fixes (Dhevenddra K G, enkvadrat, GhostCoder6969, James + Truitt, maximilize, n4n5, Nick Craig-Wood, PSR94, Rohit Behera, + shaurya, subomi) + - docker: Fix files uploaded with the wrong mime type (hsdfat) + - fs + - Fix about showing a negative total when a quota reaches the + int64 maximum (youdie006) + - Fix bandwidth limits below 1 KiB being multiplied by 1024 + (Roland) + - Fix --bwlimit timetables written out of order using the + wrong limit (Rohit Behera) + - Make BwTimetable.Set replace the timetable instead of + appending to it (youdie006) + - Retry "network is unreachable" and "network is down" errors + (nielash) + - fserrors: Fix out of space detection on Windows + (ferrumclaudepilgrim) + - lib/rest: Limit the size of HTTP response bodies read into + memory (Nick Craig-Wood) + - log: Fix race when adding a log output while logging (Nick + Craig-Wood) + - oauthutil: Fix Renew.Shutdown nil timer panic and race + (TastyHeadphones) + - operations + - Stop --copy-dest replacing files with --immutable (phatlc) + - Fix ignored error in rcat probe reads (Wang Chencheng) + - Fix hang when deleting files and a fatal error occurs (Nick + Craig-Wood) + - Fix hang and lost context when moving a directory file by + file (Nick Craig-Wood) + - Don't sleep for a Retry-After error when the transfer is + cancelled (Nick Craig-Wood) + - rc + - Make job/status and job/list require authentication (Nick + Craig-Wood) + - Fix rc API accepting an out of range number and overflowing + 64 bits (KBS) + - Reject out of range integer parameters instead of truncating + them (Nick Craig-Wood) + - Fix large numeric parameters being rejected on 32 bit builds + (Jeremy Schoemaker) + - selfupdate: Fix --version X.Y depending on ./ in the download + site links (Nick Craig-Wood) + - serve + - Fix --auth-proxy stopping VFS cache uploads after 5 minutes + (Nick Craig-Wood) + - Fix --auth-proxy backends never being shut down after + simultaneous logins (Nick Craig-Wood) + - serve dlna: Log unescaped paths (phatlc) + - serve docker: Fix volume path being lost when the plugin + restarts (phatlc) + - serve ftp + - Fix transfers failing after 5 minutes with --auth-proxy + (Nick Craig-Wood) + - Fix VFS leak when the server fails to start (Nick + Craig-Wood) + - serve http + - Fix downloads failing after 5 minutes with --auth-proxy + (Nick Craig-Wood) + - Escape filename in zip download Content-Disposition header + (Harsh Raj Singhania) + - serve restic + - Fix repositories named data (kaii9) + - Prevent concurrent append-only overwrites (Vasek Sraier) + - serve s3 + - Apply the multipart upload limits and --metadata-max-objects + to each user separately (Nick Craig-Wood) + - Stream in-order multipart parts without buffering them (Nick + Craig-Wood) + - Start the upload to the backend on the first multipart part + (Nick Craig-Wood) + - Don't buffer re-uploads of multipart parts already streamed + (Nick Craig-Wood) + - Count buffered multipart parts in whole memory pages (Nick + Craig-Wood) + - Time out multipart parts waiting for buffer space (Nick + Craig-Wood) + - Limit the memory requests can use (Nick Craig-Wood) + - Forget expired multipart uploads completely (Nick + Craig-Wood) + - Forget the metadata of deleted objects (Nick Craig-Wood) + - List objects lazily so paging a deep hierarchy is fast (Nick + Craig-Wood) + - Fix multipart upload corruption if the backend write of an + early part fails (Nick Craig-Wood) + - Fix uploads failing when the auth proxy expires the user's + backend (Nick Craig-Wood) + - Fix stale metadata being returned for objects changed + elsewhere (Nick Craig-Wood) + - Fix --etag-hash auto crashing or using the wrong hash with + --auth-proxy (Nick Craig-Wood) + - Fix CopyObject of a missing object not returning NoSuchKey + (Nick Craig-Wood) + - Fix log messages with bad format strings (Nick Craig-Wood) + - Document memory use and bring the docs up to date (Nick + Craig-Wood) + - serve webdav + - Fix transfers failing after 5 minutes with --auth-proxy + (Nick Craig-Wood) + - Fix crash when the server fails to start (Nick Craig-Wood) + - Escape filename in zip download Content-Disposition header + (Harsh Raj Singhania) + - vfscache: Fix hang when the cache cleaner is disabled + (ferrumclaudepilgrim) +- Mount + - Fix --daemon failing when --rc is enabled (somaz) + - Ignore com.apple.* xattrs on the macOS FSKit backend (Eugene) +- VFS + - Fix reads returning zeros after a file changes during handle + caching (Neil Cawse) + - Stop setting a file's modtime from discarding its cached data + (Neil Cawse) + - Fix crash reading the metadata of a file which is being written + (Nick Craig-Wood) + - Fix a VFS being reused while it is being shut down (Nick + Craig-Wood) + - Fix AddVirtual ignoring isDir (phatlc) + - Stop --links objects called "...rclonelink" appearing as ".." in + directory listings (Nick Craig-Wood) +- Local + - Fix directories named *.rclonelink being treated as links with + --links (Nick Craig-Wood) +- Archive + - Fix corrupt listings when listing a zip directory more than once + (Nick Craig-Wood) + - Fix zip file entries named for a directory causing confusion + (Nick Craig-Wood) + - Fix listing entries with a leading slash as if they were in the + root (Nick Craig-Wood) + - Fix crash when creating archive to stdout (Vladimir Babin) + - Fix a squashfs path to a single file listing its whole directory + (Nick Craig-Wood) +- Azure Blob + - Use the released Azure SDK for Apache Arrow listing (Nick + Craig-Wood) +- Box + - Fix log messages with bad format strings (Nick Craig-Wood) +- Chunker + - Fix panic listing a directory after an interrupted upload with + meta_format none (Nick Craig-Wood) +- Compress + - Fix crash on ranged reads when gzip metadata is corrupted + (Acts1631) +- Drime + - Fix server-side copy over an existing file leaving a "name (1)" + copy (Nick Craig-Wood) + - Fix deleted files and directories still being listed with + hard_delete (Nick Craig-Wood) +- Drive + - Document the Branding step needed to publish your own client_id + (Sanjay Kanth A) +- Dropbox + - Fix shared folder mount for roots nested more than one level + deep (phatlc) + - Match shared-folder and received-file names case-insensitively + (phatlc) +- Filescom + - Fix corrupted uploads after a retried upload error (Nick + Craig-Wood) + - Document that names with / or  in can't be stored (Nick + Craig-Wood) +- HTTP + - Fix crash when the server fails to start (Nick Craig-Wood) +- Iclouddrive + - Fix potential crash looking up items (Nick Craig-Wood) +- Imagekit + - Fix potential crash in rmdir and purge (Nick Craig-Wood) +- Internxt + - Fix lookups of files starting with a dot and dropped uploads + (jzunigax2) + - Fix sync with --backup-dir or --suffix deleting the backed up + file (Nick Craig-Wood) + - Fix server-side moves failing with "Not Found" or "already + exists" (Nick Craig-Wood) + - Fix "directory not empty" and stale directories after moves and + deletes (Nick Craig-Wood) + - Fix server-side directory move failing after a gateway timeout + (Nick Craig-Wood) +- Onedrive + - Update docs for versions, links and time precision on personal + accounts (Nick Craig-Wood) + - Document that shared with me shortcuts may fail to list on + personal (Nick Craig-Wood) + - Update --onedrive-hard-delete docs to mention personal account + support (foecmke) +- Oracleobjectstorage + - Fix SSE-C server-side copies (tomaszni) + - Upload empty streams without multipart (tomaszni) +- Pixeldrain + - Fix corrupted uploads after a retried upload error (Nick + Craig-Wood) +- Premiumizeme + - Fix uploading files with ";" in their names (Nick Craig-Wood) +- S3 + - Disable signing Accept-Encoding for Ceph and Linode (Aditya) + - Fix version-at listings with URL encoded keys (jxj) + - Fix storage class missing from --s3-versions listings (Dirk + Petersen) +- Seafile + - Fix corrupted uploads after a retried upload error (Nick + Craig-Wood) +- SFTP + - Fix failed uploads leaving disk space in use on the server (Nick + Craig-Wood) +- Shade + - Fix potential crash in directory move (Nick Craig-Wood) +- Smb + - Save the user name in the config even if it matches the current + user (phatlc) +- WebDAV + - Fix duplicated listing entries after retried PROPFIND (ZRHann) + - Fix "XML syntax error" on paths which don't exist with ownCloud + 10.16 (Nick Craig-Wood) + +v1.75.1 - 2026-09-04 + +See commits + +- Security + - archive + - Fix zip slip path traversal in untrusted zip files + GHSA-66hp-wgxq-6f5q CVE-2026-88014 (Nick Craig-Wood) + - Hide any archive entry which escapes the directory being + listed GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Reject unsafe entry names when mounting squashfs images + GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix zip subdirectory root matching sibling directories + GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix zip entry named "." hiding every other file + GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - Fix "directory not found" for archive paths containing "./" + or "//" GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) + - build + - Fix multiple CVEs by upgrading to go1.26.6 (Nick Craig-Wood) + - CVE-2026-56860: net/url: quadratic complexity in + resolvePath + - CVE-2026-56858: html/template: JavaScript regexp context + tracking + - CVE-2026-56862: crypto/tls: limit handshake messages + accepted post-handshake + - CVE-2026-56853: net/http: apply ReadHeaderTimeout to + unencrypted HTTP/2 check + - CVE-2026-56859: encoding/xml: recursion depth guard + during decode + - CVE-2026-33818: encoding/asn1: enforce maximum recursion + depth + - CVE-2026-46600: net: panic parsing an invalid SVCB or + HTTPS RR in dnsmessage + - CVE-2026-39821: net/http: reject ASCII-only + Punycode-encoded labels in idna + - Update golang.org/x/crypto to v0.56.0 to fix multiple CVEs + (Nick Craig-Wood) + - CVE-2026-56854: ssh: source-address critical option not + enforced for non-public-key auth callbacks + - CVE-2026-78662: ssh: a malicious peer could flood an + undecided channel's incoming requests, deadlocking the + connection + - CVE-2026-56855: ssh: a malicious peer could send crafted + messages on an established channel, deadlocking the + connection + - Update golang.org/x/image to v0.45.0 to fix CVE-2026-46603 + (Nick Craig-Wood) + - CVE-2026-46603: excessive memory allocation during VP8L + decoding + - fs: Confine directory listing entries that escape the root + GHSA-3vxh-3pcx-9m8q CVE-2026-93986 GHSA-38xv-hf3p-h7mq + CVE-2026-88046 (Nick Craig-Wood) + - fshttp: Don't send --header values to other hosts on redirect + GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) + - http: Don't leak configured headers to other hosts or over + plaintext on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick + Craig-Wood) + - lib/rest: Check HTTPS downgrades against the original request on + redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) + - local + - Fix dir metadata escaping the root through a planted symlink + GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood) + - Fix btime escaping the root via a planted symlink + GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood) + - Fix panic on Range request past the end of a symlink + GHSA-p6m2-r3w9-mpxw CVE-2026-88015 (Nick Craig-Wood) + - serve docker + - Reject volume names that escape the base directory + GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - Reject volume names resolving to the base directory itself + GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - Re-derive volume mountpoint from name when restoring state + GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) + - serve ftp: Fix auth-proxy sessions sharing credentials by + username GHSA-c476-6w5q-jw77 CVE-2026-88017 (Nick Craig-Wood) + - serve s3 + - Fix memory exhaustion from client-declared multipart part + size GHSA-2p48-j3qc-rx9f CVE-2026-88045 (Nick Craig-Wood) + - Reject bogus multipart part sizes in the reorder buffer + GHSA-2p48-j3qc-rx9f (Nick Craig-Wood) + - Fix auth proxy accepting any request signed with an empty + secret GHSA-xwwr-4h3p-r22c CVE-2026-88018 (Nick Craig-Wood) + - NB the auth proxy protocol for serve s3 has changed - + the proxy program is now given the access key ID as user + and must return the secret as _secret_access_key + - Fix each server accepting the --auth-key credentials of all + the others (Nick Craig-Wood) + - Fix misleading anonymous access log when using an auth proxy + via rc GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) + - serve sftp: Fix auth proxy configured via rc being silently + ignored GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) +- Bug Fixes + - accounting + - Fix memory leak on long-running rcd (nielash) + - Fix memory leak from stats groups on long-running rcd + (nielash) + - Fix bwlimit burst overflow (Rayan Salhab) + - bisync + - Fix memory leak when running via the rc (nielash) + - Fix failed transfers of empty files being recorded as synced + (Nick Craig-Wood) + - build: Make go1.26 the minimum required version as needed by + golang.org/x/crypto v0.56.0 (Nick Craig-Wood) + - config: Redact env var config values in logs (Pastalikek65) + - doc fixes (Anton Karpov, CAOShurong, Dean Chen, Nick Craig-Wood, + Recoordinate, Rodrigo Rodrigues, Shantanav Mukherjee, shaurya) + - lib/batcher: Prevent commits racing shutdown (Loi Nguyen) + - lib/transform: Fix panic in truncate_keep_extension (VXNCXNX) + - multipart: Fix chunked uploads storing truncated objects when + the source ends early (Nick Craig-Wood) + - operations: Fix silent truncation of streaming uploads whose + source ends early (Nick Craig-Wood) + - serve + - Fix VFS instance leaks on server startup failures and + shutdown (Hakan İSMAİL) + - Pass the client IP address to the auth proxy + (am-at-enrollvb) + - serve http: Prevent scrolling to the top on page reload (Sune + Mølgaard) + - serve nfs: Fix EIO when creating symlinks with --vfs-links + (SillyZir) + - serve s3 + - Fix failed uploads deleting or corrupting the object at the + key (Nick Craig-Wood) + - Fix crash when a multipart upload is aborted while a part is + uploading (Nick Craig-Wood) + - Fix modtime not being set when only mtime metadata is + supplied on PUT (Nick Craig-Wood) + - Upload all multipart uploads via the VFS so they obey + --bwlimit and show in stats (Nick Craig-Wood) + - Reserve the .rclone_temp_ prefix for temporary objects (Nick + Craig-Wood) + - Clean up abandoned multipart uploads after + --multipart-expiry (Nick Craig-Wood) + - vfscache + - Fix reader deadlock when the item size drops below the read + offset (Dave) + - Fix log message growing without bound on repeated write + errors (Vijay Misal) + - walk: Stop directory traversal when the context is cancelled + (Rahman Yilmaz) +- VFS + - Synchronize poll updates with shutdown (Loi Nguyen) + - Make poll shutdown lifecycle deterministic (Loi Nguyen) +- Crypt + - Fix hash mismatches with no_data_encryption on backends which + check upload hashes (Nick Craig-Wood) + - Fix directory names which look like versioned file names + (TowyTowy) + - Warn about directories with legacy version-like encrypted names + (Nick Craig-Wood) +- Azure Blob + - Fix Entra ID server-side copy source authentication (Edward + Klesel) + - Fix spurious vfs cache corruption errors during chunked reads + (Nick Craig-Wood) +- Azurefiles + - Fix zero padded files being created when the source ends early + (Nick Craig-Wood) +- Box + - Fix truncated files being uploaded successfully when the source + ends early (Rohit Behera) +- Compress + - Fix corrupted objects being created when the source ends early + (Nick Craig-Wood) +- Drive + - Don't list trashed files when removing a directory into the + trash (alliasgher) +- Dropbox + - Preserve Paper export paths on lookup (Loi Nguyen) + - Fix context cancellation (e.g. --max-duration limit) not + stopping in-flight requests (debaditya) + - Fix chunked uploads of truncated files never finishing (Nick + Craig-Wood) + - Don't retry chunked upload requests when the upload has been + cancelled (Nick Craig-Wood) + - Decode received shared-file names (Sanjay Kanth A) + - Fix ChangeNotify when the root's case differs from Dropbox's + (Loi Nguyen) +- Filelu + - Fix truncated files being uploaded successfully when the source + ends early (Nick Craig-Wood) + - Fix duplicate root path during multipart folder creation + (kingston125) +- Huaweidrive + - Fix truncated files being uploaded successfully when the source + ends early (Rohit Behera) +- Iclouddrive + - Fix uploads into an app container failing with 412 (Christian De + Santis) +- Internetarchive + - Fix corrupted files being created when the source ends early + (Nick Craig-Wood) +- Internxt + - Persist rotated token returned by the user info call + (0rangeSeaW0lf) +- Onedrive + - Fix 403 Forbidden for configuration personal onedrive (machsix) + - Fall back to manual drive ID entry when drive listing fails + (SillyZir) + - Don't retry multipart upload chunk on 404 (upload session not + found) (water) +- Overview + - Fix "internal error: no overview data found" on 32 bit + architectures (Nick Craig-Wood) +- Pikpak + - Fix truncated files being created when the source ends early + (Nick Craig-Wood) + - Fix truncated single part uploads reported as ok when source + ends early (Nick Craig-Wood) +- Protondrive + - Fix files uploaded with v1.75.0 not being readable in the Proton + apps (Nick Craig-Wood) + - Fix corrupted uploads after a retried upload error (Nick + Craig-Wood) +- Quatrix + - Fix chunk upload retries and fix memory leak (Nick Craig-Wood) +- S3 + - Update Mega endpoints (Nick Craig-Wood) + - Treat UploadPart success without ETag as retryable error + (CAOShurong) + - Fix server side copy failing with --s3-no-head-object (Anatoly + Tarnavsky) +- Sia + - Fix corrupted files being created when the source ends early + (Nick Craig-Wood) +- Smb + - Reuse the upload connection for SetModTime (alliasgher) +- WebDAV + - Fix SetModTime failing and hashes missing on Nextcloud (Nick + Craig-Wood) +- Yandex + - Fix truncated files being uploaded successfully when the source + ends early (Rohit Behera) + v1.75.0 - 2026-07-31 See commits @@ -68573,42 +72832,42 @@ See commits - Zero Services (ZERO-Z3) - Security - archive: Don't crash on malformed squashfs images - GHSA-6jcg-q3wp-x2f4 CVE-PENDING (Nick Craig-Wood) + GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) - ftp: Fix ftp command injection when encoding doesn't include - CRLF GHSA-8c48-q9wj-3w37 CVE-PENDING (Nick Craig-Wood) + CRLF GHSA-8c48-q9wj-3w37 CVE-2026-71311 (Nick Craig-Wood) - lib/http: Use TLS on all --addr listeners when --cert and --key are set GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - lib/proxy: Fix unbounded HTTP CONNECT headers causing OOM - GHSA-xhf4-832v-7xcr CVE-PENDING (Nick Craig-Wood) + GHSA-xhf4-832v-7xcr CVE-2026-71310 (Nick Craig-Wood) - local: Stop source file names escaping the destination directory - GHSA-7p4m-qxvv-g567 CVE-PENDING (Nick Craig-Wood) + GHSA-7p4m-qxvv-g567 CVE-2026-71313 (Nick Craig-Wood) - rc - Don't expose pprof debug handlers on an unauthenticated - server GHSA-mfvx-7rcj-9m5g CVE-PENDING (Nick Craig-Wood) + server GHSA-mfvx-7rcj-9m5g CVE-2026-79776 (Nick Craig-Wood) - Require authentication to list the remotes with --rc-serve GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - - Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv (Nick - Craig-Wood) + - Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv + CVE-2026-79777 (Nick Craig-Wood) - s3 - Fix redirect credential leaks, reject HTTPS->HTTP and strip - secrets GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) + secrets GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) - Strip S3 Express session token on cross-host redirects - GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) + GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) - serve ftp: Use constant time comparison for password check GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) - serve restic: Fix path traversal above the served directory - GHSA-45pq-889g-fcgh CVE-PENDING (Nick Craig-Wood) + GHSA-45pq-889g-fcgh CVE-2026-71309 (Nick Craig-Wood) - serve sftp: Don't crash the whole server on a bad request - GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) + GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) - sftp: Fix command injection via crafted filenames on PowerShell - remotes GHSA-2m8m-jhrm-w6j2 CVE-PENDING (Nick Craig-Wood) + remotes GHSA-2m8m-jhrm-w6j2 CVE-2026-71312 (Nick Craig-Wood) - vfs: Don't crash the process if a backend panics on a background - goroutine GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) + goroutine GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) - webdav - Fix HTTPS to HTTP redirects leaking credentials - GHSA-h4mf-4v27-hggj (Nick Craig-Wood) + GHSA-h4mf-4v27-hggj CVE-2026-79779 (Nick Craig-Wood) - Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv - (Nick Craig-Wood) + CVE-2026-79778 (Nick Craig-Wood) - Update google.golang.org/grpc to fix multiple security problems (Nick Craig-Wood) - New Features @@ -68954,7 +73213,7 @@ See commits - serve s3 - Fix spurious 404 on HEAD/GET during VFS writeback (max) - Fix path traversal letting clients see files in the root - GHSA-8v25-v8p6-qf7v (Nick Craig-Wood) + GHSA-8v25-v8p6-qf7v CVE-2026-79781 (Nick Craig-Wood) - serve webdav: Fix MOVE overwrite failing without Overwrite header (Sanjay Santhanam) - serve/http: Fix --disable-zip so it works over rc (Nick @@ -68966,7 +73225,7 @@ See commits - Stop --links symlinks escaping the destination directory CVE-2026-54572 (Nick Craig-Wood) - Don't restore setuid/setgid/sticky bits from metadata by default - GHSA-945v-v9p3-v5xw (Nick Craig-Wood) + GHSA-945v-v9p3-v5xw CVE-2026-79783 (Nick Craig-Wood) - Drive - Warn when non-exportable Google documents are skipped (Nick Craig-Wood) @@ -79253,6 +83512,143 @@ Contributors - Socialpranker 273312799+Socialpranker@users.noreply.github.com - phatlc phatle.hsd@gmail.com - Punya Jain 4511945+punya10@users.noreply.github.com +- acoeur 7315110+forestrock@users.noreply.github.com +- SillyZir 269283839+SillyZir@users.noreply.github.com +- am-at-enrollvb arthur.melton@enrollvb.com +- Loi Nguyen vanloi999@gmail.com +- debaditya 82204129+DebadityaHait@users.noreply.github.com +- alliasgher alliasgher123@gmail.com +- Anton Karpov karpovantonme@gmail.com +- Edward Klesel eklesel@bluecove.com +- Christian De Santis + 41491267+christiandesantis@users.noreply.github.com +- Rodrigo Rodrigues 191260313+MVP0TAT0@users.noreply.github.com +- Recoordinate 296084221+latent-9@users.noreply.github.com +- Jiacheng Xu 169599847+Stardust0831@users.noreply.github.com +- Teddy Tennant teddytennant@icloud.com +- Dean Chen 862469039@qq.com +- Pastalikek65 Pastalikek65@users.noreply.github.com +- Morax james20081204@gmail.com +- Shurong Cao 170531907+CAOShurong@users.noreply.github.com +- Dave davixk83@gmail.com +- max max@maxmax.ch +- Hakan İSMAİL hakanismail53@gmail.com +- Shantanav Mukherjee shantanav7@gmail.com +- VXNCXNX VXNCXNX@users.noreply.github.com +- Rohit Behera 126186063+r0h1tb@users.noreply.github.com +- Rahman Yilmaz 85690773+Sudo-Rahman@users.noreply.github.com +- Sanjay Kanth A sanjaykanthsk09@gmail.com +- machsix 28209092+machsix@users.noreply.github.com +- CAOShurong 3502119616@qq.com +- shaurya shauryajaiswal.dev@gmail.com +- water 672684719@qq.com +- Rayan Salhab r.salhab@aiyexpertsolutions.com +- Vijay Misal misalvijay153@gmail.com +- Sune Mølgaard sune@molgaard.org +- Anatoly Tarnavsky anatolyt@gmail.com +- cyphercodes cyphercodes@users.noreply.github.com +- shaurya 19599684+no-hup@users.noreply.github.com +- no-hup shauryaj.finance@gmail.com +- Dhevenddra dhevg20020402@gmail.com +- Splainte r.wycke@hotmail.fr +- PSR94 88868390+PSR94@users.noreply.github.com +- Shane McCarron shane.mccarron@corvexconnect.com +- Dhevenddra K G 121691114+Dhevenddra@users.noreply.github.com +- Vaibhav Mashal 110161673+vaibhavmashal@users.noreply.github.com +- Murat Topcu murat-topcu@outlook.com +- tomaszni tomaszni@users.noreply.github.com +- eliotee 17210244+eliotee@users.noreply.github.com +- Aditya f20220497@goa.bits-pilani.ac.in +- Nicholas Velten nikvelten@gmail.com +- youdie006 xncb135@korea.ac.kr +- subomi 86053854+ubmids@users.noreply.github.com +- Can Arslan 138895927+mc2rcanarslan@users.noreply.github.com +- Can Arslan carslan@viyaenv.com +- ZRHann 2829442630@qq.com +- enkvadrat 123565769+enkvadrat@users.noreply.github.com +- Vladimir Babin vovababin@gmail.com +- Eugene inbox@null.page +- Kunpeng Xie 68572236+pentaoa@users.noreply.github.com +- foecmke 221832573+foecmke@users.noreply.github.com +- Vasek Sraier git@vakabus.cz +- Kalin Stoyanov kalin.stoyanov@kiteworks.com +- NytePlus nyte_plus@sjtu.edu.cn +- Jeremy Schoemaker jeremy@shoemoney.com +- solunolab solunolab@outlook.com +- Mattias Michaux mattias.michaux@gmail.com +- jxj xinjun.jiang@daocloud.io +- Harsh Raj Singhania + 40535627+HarshRajSinghania@users.noreply.github.com +- Roland vv22345@163.com +- interested.tortoise interested.tortoise@proton.me +- hsdfat 118717478+hsdfat@users.noreply.github.com +- Dirk Petersen dirkpetersen@users.noreply.github.com +- TastyHeadphones 76083688+TastyHeadphones@users.noreply.github.com +- Neil Cawse 8085959+neilcawse@users.noreply.github.com +- Lev Devaev 102860715+Exxxxpo@users.noreply.github.com +- GhostCoder6969 ahmadbannout191999@gmail.com +- bounty-agent bounty@example.com +- mygrexit 33792951+mygrexit@users.noreply.github.com +- Kaya firat.kaya@mail.com +- somaz genius5711@gmail.com +- xiaozou-wine 243062178+xiaozou-wine@users.noreply.github.com +- Roman Butor rbutor@gmail.com +- kaii9 107882135+kaii9@users.noreply.github.com +- Stochastic 138764723+Asthenia0412@users.noreply.github.com +- James Truitt 80006053+jtruitt1@users.noreply.github.com +- firatkaya firat@netiket.com.tr +- kevin9327 5299031+kevin9327@users.noreply.github.com +- drakeo338 paranoyouz@gmail.com +- Alessio Margelli alex9446@gmail.com +- Ludovic Bondon ludovic.bondon@360learning.com +- fmterrors fmterrors@outlook.com +- GingerAdonis 2751672+GingerAdonis@users.noreply.github.com +- Satvik Mishra Satvikmishra.ipu146183@maims.ac.in +- wjc 2821296948@qq.com +- Maksym Tymoshyk maksym.tymoshyk@gmail.com +- Aniket aniketkomailkro@gmail.com +- Oshino Penguin penguin@oshino.moe +- Yousef Issa yousef@u.northwestern.edu +- ghwany 9hwany@gmail.com +- DEVN nguyenvanthe994@gmail.com +- 47th 161213233+flcrom@users.noreply.github.com +- Sash sash@ela.city +- Shreyansh Jain shreyanshjain646@gmail.com +- Biagio Peccerillo biagio.peccerillo@isti.cnr.it +- gomitrah bala.c@mitrahsoft.in +- Jim Counter jim@autonomys.xyz +- Dirk Einecke dirk.einecke@gmail.com +- ASRodrigo1 45823308+asrodrigo1@users.noreply.github.com +- chaogeshuodiannao chaogeshuodiannao@users.noreply.github.com +- David Legrand david.legrand@clever.cloud +- Azhar stfuazzo@gmail.com +- Daniel Bae rootdevdb@gmail.com +- frodleTian 16165444+tianhaotian@users.noreply.github.com +- Cestercian yashafaid@gmail.com +- Ayush Sharma 175855728+DurdensDream@users.noreply.github.com +- Dirk Petersen 1427719+dirkpetersen@users.noreply.github.com +- Codex noreply@openai.com +- bunnysayzz bunnysayzz@users.noreply.github.com +- hahahahahayesyeseys 1145018948@qq.com +- qodelicious 162776175+qodelicious@users.noreply.github.com +- fixfon 12512757+fixfon@users.noreply.github.com +- berce 75228263+bercedev@users.noreply.github.com +- Fred 24314560+creativeprojects@users.noreply.github.com +- Florian Josef Altendorfer info@altendorfer.dev +- ashwinibailangadi ashwinib40@gmail.com +- ilya lavrenov 17838283+ilyalavrenov@users.noreply.github.com +- Soujas K kudchadkarsoujas@gmail.com +- Robert Kubiś robert.h3x@gmail.com +- b84330808 b84330808@gmail.com +- Guillaume MALLERET guillaume.malleret@infomaniak.com +- Louis louis.amoudruz@gmail.com +- 唐僧洗发用飘柔 2906266135@qq.com +- Seth Westphal westy92@gmail.com +- ZainnQureshii 43629888+ZainnQureshii@users.noreply.github.com +- Rishi Raj Jain jain71000@gmail.com +- Enbiya Göral 100806254+enbiyagoral@users.noreply.github.com +- Florian Josef Altendorfer + 341419330+florianaltendorfer@users.noreply.github.com Contact the rclone project diff --git a/cmd/bisync/rc.md b/cmd/bisync/rc.md index dc3efd482..52bc24b27 100644 --- a/cmd/bisync/rc.md +++ b/cmd/bisync/rc.md @@ -5,6 +5,8 @@ This takes the following parameters: - path1 (required) - (string) a remote directory string e.g. `drive:path1` - path2 (required) - (string) a remote directory string e.g. `drive:path2` - dryRun - (bool) dry-run mode +- maxDelete - (int) Safety check on maximum percentage of deleted files +allowed. If exceeded, the bisync run will abort. (default: 50%) - backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote. - backupDir2 - (string) --backup-dir for Path2. Must be a non-overlapping path on @@ -34,6 +36,8 @@ unavailable. (warning: may be slow and use lots of data!) using with --verbose - ignoreListingChecksum - (bool) Do not use checksums for listings (add --ignore- checksum to additionally skip post-copy checksum checks) +- maxDeleteRenamesAware - (bool) Exclude tracked renames from the --max-delete +safety check (requires --track-renames) - maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) - noCleanup - (bool) Retain working files (useful for troubleshooting and diff --git a/docs/content/azureblob.md b/docs/content/azureblob.md index f341917d2..915b00775 100644 --- a/docs/content/azureblob.md +++ b/docs/content/azureblob.md @@ -919,6 +919,52 @@ Properties: - Type: int - Default: 5000 +#### --azureblob-use-arrow-list + +Use the Apache Arrow listing format. + +If set, directory listings are fetched using the ListBlobs Apache +Arrow response format instead of XML. Arrow responses are smaller and +much cheaper to parse, making listings of large containers several +times faster. Combine with "list_parallelism" for the biggest gains. + +"Blob Listing with Apache Arrow" is in public preview at Microsoft and +is only supported on flat namespace accounts. On accounts with a +hierarchical namespace (ADLS Gen2), or where the feature is otherwise +unavailable, the server returns XML and the listing transparently +falls back to the normal XML path (logged at debug level). + +Properties: + +- Config: use_arrow_list +- Env Var: RCLONE_AZUREBLOB_USE_ARROW_LIST +- Type: bool +- Default: false + +#### --azureblob-list-parallelism + +Number of parallel shards to list a directory with. + +If set greater than 1, the blob name keyspace of each directory is +split into ranges which are listed concurrently using the Arrow +startFrom/endBefore range parameters. This can dramatically speed up +listing containers with millions of objects, for both recursive +(ListR) and single directory listings. Speed keeps improving up to a +parallelism of around 30. + +This has no effect unless "use_arrow_list" is also set, as Arrow is the +only listing path that supports server-side name ranges. If the +account does not support range listing (e.g. it has a hierarchical +namespace) the listing falls back to sequential. The default of 0 (or +1) lists sequentially. + +Properties: + +- Config: list_parallelism +- Env Var: RCLONE_AZUREBLOB_LIST_PARALLELISM +- Type: int +- Default: 0 + #### --azureblob-access-tier Access tier of blob: hot, cool, cold or archive. @@ -1022,6 +1068,9 @@ 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. + +This is not needed on storage accounts with a hierarchical namespace +(see the hns option) as these always support empty directories. Properties: @@ -1031,6 +1080,24 @@ Properties: - Type: bool - Default: false +#### --azureblob-hns + +Set if the storage account has a hierarchical namespace. + +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories which can be empty. + +If this is unset then rclone will read it from the storage account +and save it in the config file. + + +Properties: + +- Config: hns +- Env Var: RCLONE_AZUREBLOB_HNS +- Type: Tristate +- Default: unset + #### --azureblob-no-check-container If set, don't attempt to check the container exists or create it. diff --git a/docs/content/azurefiles.md b/docs/content/azurefiles.md index 370a21310..f6358a503 100644 --- a/docs/content/azurefiles.md +++ b/docs/content/azurefiles.md @@ -736,7 +736,7 @@ Properties: Upload chunk size. Note that this is stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: @@ -758,7 +758,7 @@ links and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers. Note that chunks are stored in memory and there may be up to -"--transfers" * "--azurefile-upload-concurrency" chunks stored at once +"--transfers" * "--azurefiles-upload-concurrency" chunks stored at once in memory. Properties: diff --git a/docs/content/b2.md b/docs/content/b2.md index d6976e609..cf1d4fb66 100644 --- a/docs/content/b2.md +++ b/docs/content/b2.md @@ -569,6 +569,11 @@ 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. +Rclone will not follow a redirect from this endpoint which downgrades +HTTPS to HTTP, and will not send the "Authorization" header or the +SSE-C key headers once a redirect has left the host and port of this +endpoint. + 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}". @@ -665,7 +670,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in a UTF-8 compatible string to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key-base64. +Alternatively you can provide --b2-sse-customer-key-base64. Properties: @@ -681,7 +686,7 @@ Properties: To use SSE-C, you may provide the secret encryption key encoded in Base64 format to encrypt/decrypt your data -Alternatively you can provide --sse-customer-key. +Alternatively you can provide --b2-sse-customer-key. Properties: diff --git a/docs/content/bisync.md b/docs/content/bisync.md index ea1ec7829..bbda67319 100644 --- a/docs/content/bisync.md +++ b/docs/content/bisync.md @@ -1074,14 +1074,20 @@ The following backends have known issues that need more investigation: - `TestHuaweiDrive` (`huaweidrive`) - [`TestBisyncRemoteLocal/ext_paths`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncRemoteLocal/extended_filenames`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - - [`TestBisyncRemoteLocal/normalization`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncLocalRemote/ext_paths`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - [`TestBisyncLocalRemote/extended_filenames`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) - - [4 more](https://pub.rclone.org/integration-tests/current/) + - [`TestBisyncLocalRemote/normalization`](https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) + - [3 more](https://pub.rclone.org/integration-tests/current/) - `TestPcloud` (`pcloud`) - - [`TestBisyncRemoteRemote/check_access`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) - - [`TestBisyncRemoteRemote/rmdirs`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) -- Updated: 2026-07-31-010017 + - [`TestBisyncRemoteRemote/extended_filenames`](https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) +- `TestYandex` (`yandex`) + - [`TestBisyncRemoteLocal/all_changed`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/backupdir`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/basic`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/changes`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [`TestBisyncRemoteLocal/check_access`](https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) + - [94 more](https://pub.rclone.org/integration-tests/current/) +- Updated: 2026-11-06-010024 The following backends either have not been tested recently or have known issues @@ -1099,6 +1105,8 @@ that are deemed unfixable for the time being: - `TestFilesCom` (`filescom`) - `TestImageKit` (`imagekit`) - `TestJottacloud` (`jottacloud`) +- `TestKdrive` (`kdrive`) + - `TestBisyncRemoteRemote/normalization` - `TestLinkbox` (`linkbox`) - `TestMailru` (`mailru`) - `TestMega` (`mega`) @@ -1111,7 +1119,8 @@ that are deemed unfixable for the time being: - `TestQuatrix` (`quatrix`) - `TestS3GCS` (`s3`) - `TestBisyncRemoteRemote/extended_filenames` -- `TestS3Rclone` (`s3`) + - `TestBisyncRemoteLocal/extended_filenames` + - `TestBisyncLocalRemote/extended_filenames` - `TestSFTPRsyncNet` (`sftp`) - `TestStorj` (`storj`) - `TestWebdavNextcloud` (`webdav`) diff --git a/docs/content/changelog.md b/docs/content/changelog.md index 32bc34014..04cd6268e 100644 --- a/docs/content/changelog.md +++ b/docs/content/changelog.md @@ -6,6 +6,306 @@ description: "Rclone Changelog" # Changelog +## v1.76.0 - 2026-11-06 + +[See commits](https://github.com/rclone/rclone/compare/v1.75.0...v1.76.0) + +- New backends + - [Dosya](/dosya/) (Kaya) + - [Infomaniak kDrive](/kdrive/) (Guillaume MALLERET) +- New S3 Providers + - [Autonomys Auto Drive](/s3/#autonomys) (Jim Counter) + - [Clever Cloud Cellar](/s3/#clever-cloud-cellar) (David Legrand) + - [Infomaniak Swiss Backup](/s3/#infomaniak) (Louis) + - [Neon Object Storage](/s3/#neon) (Rishi Raj Jain) + - [RelAix.Storage](/s3/#relaix) (mygrexit) +- New commands + - [index](/commands/rclone_index/): Write static directory listings into a remote (Nick Craig-Wood) +- Security + - build + - Disable Multipath TCP listeners by default to mitigate CVE-2026-98432 (Nick Craig-Wood) + - Fix multiple CVEs including CVE-2026-111943 by upgrading to go1.27.3 (Nick Craig-Wood) + - Update `golang.org/x/net` to v0.62.0 to fix multiple CVEs (Nick Craig-Wood) + - Update `github.com/andybalholm/brotli` to v1.2.7 to fix CVE-2026-111497 (Nick Craig-Wood) + - fshttp: Refuse HTTPS to HTTP redirects unless `--allow-https-downgrade` GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - lib/http: Stop `--htpasswd` and `--user` revealing which usernames exist through timing GHSA-hwj7-wp9g-wrv9 CVE-PENDING (Nick Craig-Wood) + - local + - Fix user metadata escaping the root through a planted symlink GHSA-r5wv-vqqh-2r9c CVE-PENDING (Nick Craig-Wood) + - Fix MkdirMetadata finding directories outside the root through a planted symlink (Nick Craig-Wood) + - Fix Remove and Rmdir deleting outside the root through a planted symlink (Nick Craig-Wood) + - Fix DirMove creating the destination parent through a planted symlink (Nick Craig-Wood) + - netstorage: Fix API auth headers leaking to other hosts on redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - rc + - Limit request size when the rc server has no authentication GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - Reject unauthorised and unknown calls before reading the request GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) + - seafile: Fix HTTPS to HTTP redirects leaking credentials GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - serve: Make auth proxy revocation take effect within 5 minutes GHSA-vmgx-g9c5-669p CVE-PENDING (Nick Craig-Wood) + - serve sftp + - Fix auth proxy letting a public key be used as a password GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - Fix auth proxy running for public keys the client can't use GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) + - swift + - Fix auth token leaking to other hosts or over plaintext on redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - Fix password being resent to another host on auth redirect GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) + - ulozto: Fix auth tokens leaking on redirects from download links GHSA-3xpx-hjg2-vrjh CVE-PENDING (Nick Craig-Wood) +- New Features + - accounting + - Stop `--max-transfer` overshooting the limit (Nick Craig-Wood) + - Add "Updated dirs" count of directory modtime/metadata updates to the stats (Nick Craig-Wood) + - batcher: Log when committing uploads has finished (phatlc) + - bisync + - Make `--max-delete` aware of `--track-renames` (Morax) + - Fall back to `--download` when a checksum is missing (nielash) + - Reject `--max-delete` above 100 (nielash) + - build + - Update to go1.27 and make go1.26 the minimum required version (Nick Craig-Wood) + - Update all dependencies (Nick Craig-Wood) + - cmd: Complete enum flag values from their choices (Demiao Huang) + - config: Only run `--password-command` once when using `--daemon` (phatlc) + - doc fixes (ashwinibailangadi, ferrumclaudepilgrim, frodleTian, FTCHD, gomitrah, Nick Craig-Wood, qodelicious, Satvik Mishra, ZainnQureshii) + - docker: Make container user UID and GID configurable via build ARGs (Vaibhav Mashal) + - filter + - Speed up large `--include-from` lists of directories (kaii9) + - Make `[!...]` in globs a negated character class (kevin9327) + - Make `[^...]` in globs exclude `/` and document it (kevin9327) + - fs + - Reject sizes too large for SizeSuffix instead of silently disabling the limit (KBS) + - Stop writing config for on the fly and environment variable remotes into the config file (Nick Craig-Wood) + - Reject durations like 300y that overflow instead of wrapping (kevin9327) + - Accept multi-unit relative times like 1d12h in Time options (kevin) + - Reject NaN sizes and CountSuffix values that overflow (kevin9327) + - Reject `--bwlimit` times without a colon or with signed digits (kevin9327) + - Reject NaN durations instead of wrapping (Soujas K) + - Add MIME type for JPEG XL (.jxl) files (Seth Westphal) + - gui + - Take the GUI out of beta (Nick Craig-Wood) + - Update embedded release to 1.2.1 (Nick Craig-Wood) + - hash: Add CRC-32C (Castagnoli) support (Dirk Petersen) + - index: Add partial runs which only re-index changed directories (Nick Craig-Wood) + - lib/http + - Return 416 for ranges `--rc-serve` and serve restic can't satisfy (Rohit Behera) + - Replace `github.com/abbot/go-http-auth` with built in htpasswd support (Nick Craig-Wood) + - Accept the Basic auth scheme in any case (kevin) + - lib/proxy: Send the decoded user and password in Proxy-Authorization (kevin) + - lib/transform: Make titlecase capitalise words instead of upper-casing them (kevin) + - ncdu: Show progress and the item count when deleting a selection (Lev Devaev) + - operations + - Check checksums in rcat with known size (phatlc) + - Speed up checksum by hashing files in parallel (Teddy Tennant) + - Fall back to a single stream when a multi-thread source ignores ranges (Morax) + - Show directory operations in the `--progress` display (Nick Craig-Wood) + - Add `operations/getfile` remote control API endpoint (Hakan İSMAİL) + - Make `--immutable` work with copyto, moveto and single file copy (phatlc) + - Respect `--backup-dir` in deletefile (Cao Yuhang) + - rc + - Deprecate `--rc-web-gui` flag (Nick Craig-Wood) + - Add sync report parameters to `sync/sync`, `sync/copy` and `sync/move` (Nick Craig-Wood) + - rest: Reject negative sizes in HTTP response headers (Yousef Issa) + - serve http + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - serve s3 + - Report the object's modtime as Last-Modified after a PUT (kevin9327) + - Support changing object tags (Nick Craig-Wood) + - Quote the ETags of objects in listings (Nick Craig-Wood) + - Support listing with delimiters other than "/" (Nick Craig-Wood) + - Support directory markers and refuse file/directory conflicts (Nick Craig-Wood) + - Make the ETag of multipart uploads agree with HEAD and support partNumber (Nick Craig-Wood) + - Make conditional writes atomic against other writes through the server (Nick Craig-Wood) + - Make the ETag returned on upload agree with HEAD for any `--etag-hash` (Nick Craig-Wood) + - List empty directories as directory markers (Nick Craig-Wood) + - Allow copying directory markers (Nick Craig-Wood) + - Remove the directories made for a failed upload (Nick Craig-Wood) + - Keep the MD5 ETag of objects on remotes without MD5 (Nick Craig-Wood) + - Don't read directories needlessly when listing with a delimiter (Nick Craig-Wood) + - Don't compute the MD5 of multipart uploads unless the ETag is MD5 (Nick Craig-Wood) + - List the directory markers put for directories holding other keys (Nick Craig-Wood) + - Let a failed CompleteMultipartUpload be retried (Nick Craig-Wood) + - List objects with the storage class they were put with (Nick Craig-Wood) + - Add `--directory-markers` to list every directory as a marker (Nick Craig-Wood) + - Remove a directory with its last key after its marker is deleted (Nick Craig-Wood) + - Make `--no-cleanup` a deprecated alias of `--directory-markers` (Nick Craig-Wood) + - Document which S3 features are supported and the design goals (Nick Craig-Wood) + - serve webdav + - Sort directory listings in the browser (Nick Craig-Wood) + - Redesign the directory listing page (Nick Craig-Wood) + - size: Include source in JSON output (Jiacheng Xu) + - sync: Add pattern-based transfer ordering (Shurong Cao) + - touch: Parse documented timestamp formats (Nicholas Velten) +- Bug Fixes + - accounting: Fix totalBytes counting server-side copies and moves twice (ilya lavrenov) + - bisync + - Fix conflict winner missing from listings when Path2 wins (nielash) + - Fix `--conflict-resolve` comparing a zero size or modtime (nielash) + - Fix endless retry loop for skipped files (nielash) + - Fix listings ignoring a modtime less than 1s older (nielash) + - Fix rc ignoring global `--dry-run` and `--max-delete` settings (nielash) + - Fix rc ignoring legacy backupdir1/2 and invalid values (nielash) + - Fix internal error when a conflict rename reuses deleted names (TastyHeadphones) + - fs: Fix durations like 1d12h being rejected (Rohit Behera) + - lib/encoder: Fix decoding a trailing character after an escaped quote (kevin9327) + - list: Fix ext sort error sometimes being ignored at the end of a listing (Nick Craig-Wood) + - ncdu: Update to tcell v3 which fixes duplicated keys on Windows (Nick Craig-Wood) + - operations + - Fix making a directory with modtime asking twice with `--interactive` (Nick Craig-Wood) + - Fix case- or Unicode-only renames deleting the file (nielash) + - Fix moving a file onto its own name deleting it (nielash) + - Fix cat `--offset` before the start of a file printing its end (b84330808) + - Fix oversized getfile tail requests (唐僧洗发用飘柔) + - rc: Fix LogLevel in `_config` being ignored (Nick Craig-Wood) + - rest: Fix retries reading the request body after the request has finished (Nick Craig-Wood) + - serve dlna: Fix crash on Browse with a negative StartingIndex or RequestedCount (phatlc) + - serve restic: Fix temporary errors confusing restic into leaving locks behind (Azhar) + - serve s3 + - Update to gofakes3 v0.0.8 which fixes 500 errors with go1.27 (Nick Craig-Wood) + - Upgrade gofakes3 to v0.0.11 to fix IsTruncated and Docker Distribution Registry (DEVN) + - Fix buckets being undeletable after an aborted multipart upload (Nick Craig-Wood) + - Fix CopyObject metadata including the source's and an mtime (Nick Craig-Wood) + - serve sftp: Fix rmdir deleting a file instead of returning an error (phatlc) + - sync + - Fix directory modtimes being set twice (Nick Craig-Wood) + - Fix `--delete-empty-src-dirs` disabled by a prior error in a reused stats group (ghwany) + - walk: Fix duplicate directories with `--fast-list` when directories are listed after their contents (Nick Craig-Wood) +- Mount + - Fix VFS instance leaks on mount failures and unmounts (Hakan İSMAİL) +- VFS + - Preserve shrinking truncate on uncached files (47th) + - Fix crash renaming a directory while the dir cache expires (Shreyansh Jain) + - Fix virtual entries leak in removed directory (Biagio Peccerillo) + - Fix renamed items listed twice after a case or Unicode-only match (nielash) + - Fix uploads never starting while a dirty file keeps being read (Neil Cawse) +- Local + - Speed up default checksummed copies by writing in larger blocks (Dominik Sander) + - Make out of space errors fatal during multi-thread transfers (ferrumclaudepilgrim) + - Stop `--copy-links` following symlink loops (phatlc) + - Limit the size of symlink targets read from .rclonelink files (Nick Craig-Wood) + - Fix server-side copy on macOS when the destination exists (Ayush Sharma) + - Set only the ownership a non-root user may set (Dirk Petersen) +- Crypt + - Fix nil pointer panic in ObjectInfo.Hash (fixfon) +- Archive + - Read symlinks stored in zip and squashfs archives (Lev Devaev) + - Fix reading an archive in the root of a remote (Oshino Penguin) +- Azure Blob + - Enable on Solaris (acoeur) + - Fix directories on storage accounts with hierarchical namespace (Nick Craig-Wood) + - Fix NewObject on a directory returning "is not a regular file" (Nick Craig-Wood) + - Fix listing a file as a directory on hierarchical namespace accounts (Nick Craig-Wood) + - Fix sync at the root failing on soft deleted containers (Ludovic Bondon) +- Box + - Reuse multipart upload part buffers via the global pool (Nick Craig-Wood) + - Fix ~ and environment variables not being expanded in `box_config_file` (Nick Craig-Wood) +- Chunker + - Clean stale chunks after server-side overwrite (hahahahahayesyeseys) +- Compress + - Buffer small uploads in the global memory pool (Nick Craig-Wood) + - Stop buffering the compressibility check output in memory (Nick Craig-Wood) +- Drime + - Fix endless listing of directories with more than 20,000 entries (Maksym Tymoshyk) +- Drive + - Fetch metadata permissions concurrently (Loi Nguyen) + - Reuse resumable-upload chunk buffers via the global memory pool (SillyZir) + - Stop a fast-list error from hanging the sync (Sash) +- Dropbox + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- Filelu + - Reuse multipart upload buffers via the global pool and retry failed parts (Nick Craig-Wood) + - Encode multipart init paths (wjc) +- FTP + - Discard connections that fail with non-FTP errors (Daniel Bae) + - Fix ranged reads failing when the server answers 425 to an early close (Robert Kubiś) +- Hasher + - Keep cached hash when only the modtime changes (Aniket) +- Hidrive + - Stop copying every upload chunk a second time (Nick Craig-Wood) + - Buffer the start of each upload from the global memory pool (Nick Craig-Wood) + - Reuse chunked upload buffers via the global memory pool (Nick Craig-Wood) + - Buffer small file updates from the global memory pool (Nick Craig-Wood) + - Fix truncated file left behind when an upload hits `--max-transfer` (Nick Craig-Wood) +- HTTP + - Add metadata defaults for `--http-no-head` (Giridhar) +- Huaweidrive + - Build small uploads in pooled memory instead of a growing buffer (Nick Craig-Wood) + - Reuse resumable-upload chunk buffers via the global pool (Nick Craig-Wood) + - Fix creating, copying and renaming files with non-ASCII names (Nick Craig-Wood) +- Iclouddrive + - Mark the backend as case insensitive (berce) +- Imagekit + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) +- Jottacloud + - Buffer MD5 pre-reads in the global memory pool (Nick Craig-Wood) + - Fix server-side copy onto a trashed file failing as corrupted (Nick Craig-Wood) + - Fix server-side copy onto a trashed file keeping the old name case (Nick Craig-Wood) + - Fix authentication with whitelabel services elkjop and elko (albertony) + - Fix traditional authentication failing with invalid_client (albertony) +- Linkbox + - Buffer the hashed 10 MiB file prefix in the global memory pool (Nick Craig-Wood) +- Mailru + - Buffer speedup hashing in the global memory pool and fix upload retries (Nick Craig-Wood) +- Onedrive + - OneDrive for Business and SharePoint users must upgrade to v1.76+ before April 1, 2027 (Nick Craig-Wood) + - Authenticate SharePoint downloads, uploads and copies after tempauth retirement (Nick Craig-Wood) + - Return an error if a ranged download doesn't return the requested range (Nick Craig-Wood) + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) + - Allow `--onedrive-upload-cutoff` up to the documented limit of 250 MiB (Can Arslan) + - Add configurable SharePoint tenant API version (Mattias Michaux) + - Make `--onedrive-delta` quicker when not listing from the drive root (Nick Craig-Wood) + - Keep the delta token when a ChangeNotify poll fails (xiaozou-wine) + - Show the size of directories in listings (GingerAdonis) + - Poll async copy status with the configured HTTP client (Soujas K) +- Opendrive + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- Oracleobjectstorage + - Add server-side object moves (tomaszni) + - Encode carriage returns and line feeds (tomaszni) + - Purge objects in batches (tomaszni) + - Retry 409 ConcurrentObjectUpdate errors (berce) +- Pcloud + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) +- Pikpak + - Share upload chunk buffers with the global memory pool (Nick Craig-Wood) + - Use pooled memory for the gcid hash buffer and spool unknown-size uploads to disk (Nick Craig-Wood) + - Fix downloads that return an HTTP error page as the file (Cestercian) + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + - Fix uploads failing when the server is slow to complete them (Nick Craig-Wood) +- Putio + - Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +- S3 + - Avoid buffering Object Lock uploads when the source MD5 is known (Nick Craig-Wood) + - Add backend link command with signed response header overrides (eliotee) + - Add Fastly EU Central 1 region (Leon Brocard) + - Add the MD5 of multipart chunks to the debug log (interested.tortoise) + - Report the real storage class when an object needs restoring (Dirk Petersen) + - Speed up multi-thread uploads by checksumming chunks in 1 MiB reads (Roman Butor) + - Add IT-MIL region to Scaleway (Alessio Margelli) + - Add missing Huawei OBS regions (Enbiya Göral) + - Fix rmdir of the root directory with `--s3-directory-markers` (Nick Craig-Wood) + - Fix presigned URLs for GCS, Linode and Ceph (Leon Brocard) +- Seafile + - Fix operations on files whose names are not in Unicode NFC form (Fred) + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + - Fix double slash in the URL when getting a 2FA token (Nick Craig-Wood) +- SFTP + - Implement multi-thread uploads (Splainte) + - Fix data race when using `--sftp-ssh` (Dirk Petersen) + - Fix hash check for names starting with "-" with relative `--sftp-path-override` (Dirk Einecke) + - Fix sync deleting files with control characters in their names (nielash) + - Fix hashing files with a newline in their name on rsync.net (Nick Craig-Wood) +- Shade + - Stop copying each upload chunk into a second heap buffer (Nick Craig-Wood) +- Smb + - Add workstation field to smb backend (Kalin Stoyanov) +- Swift + - Add Infomaniak Swiss Backup provider (Louis) +- WebDAV + - Reject ranged responses which ignore the range (Morax) + - Retry Nextcloud chunk uploads individually (Stochastic) + - Fix Nextcloud public share access by sending X-Requested-With (drakeo338) + - Fix memory leak uploading to Infinite Scale (jxj) +- Yandex + - Add `app_folder` option to support `cloud_api:disk.app_folder` OAuth scope (Sanjay Kanth A) +- Zoho + - Stop multipart writers after failed uploads (Florian Josef Altendorfer) + ## v1.75.2 - 2026-10-09 [See commits](https://github.com/rclone/rclone/compare/v1.75.1...v1.75.2) diff --git a/docs/content/commands/rclone.md b/docs/content/commands/rclone.md index 33446e0ae..2ac7491da 100644 --- a/docs/content/commands/rclone.md +++ b/docs/content/commands/rclone.md @@ -24,6 +24,7 @@ rclone [flags] ``` --alias-description string Description of the remote --alias-remote string Remote or path to alias + --allow-https-downgrade Follow redirects from HTTPS to HTTP (insecure) --archive-description string Description of the remote --archive-remote string Remote to wrap to read archives from --ask-password Allow prompt for password for encrypted configuration (default true) @@ -50,8 +51,10 @@ rclone [flags] --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -64,6 +67,7 @@ rclone [flags] --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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as 'true' @@ -224,6 +228,12 @@ rclone [flags] --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under "API keys" + --dosya-api-url string API base URL (default "https://api.dosya.dev") + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -470,6 +480,8 @@ rclone [flags] --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don't use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn't end directories with / --http-proxy string HTTP proxy URL --http-url string URL of HTTP host to connect to @@ -543,6 +555,17 @@ rclone [flags] --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) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -695,6 +718,7 @@ rclone [flags] --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal's tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default "v2.0") --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -709,7 +733,7 @@ rclone [flags] --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don't store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -840,11 +864,6 @@ rclone [flags] --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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) (default 0s) @@ -945,7 +964,7 @@ rclone [flags] --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-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -960,6 +979,7 @@ rclone [flags] --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -1023,7 +1043,8 @@ rclone [flags] --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default "$USER") + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --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 LogLevel Log level to show --stats output DEBUG|INFO|NOTICE|ERROR (default INFO) @@ -1107,7 +1128,7 @@ rclone [flags] --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.75.0") + --user-agent string Set the user-agent to a specified string (default "rclone/v1.76.0") -v, --verbose count Print lots more stuff (repeat for more) -V, --version Print the version number --webdav-auth-redirect Preserve authentication on redirect @@ -1125,6 +1146,7 @@ rclone [flags] --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id @@ -1183,6 +1205,7 @@ rclone [flags] * [rclone gitannex](/commands/rclone_gitannex/) - Speaks with git-annex over stdin/stdout. * [rclone gui](/commands/rclone_gui/) - Open the web based GUI. * [rclone hashsum](/commands/rclone_hashsum/) - Produces a hashsum file for all the objects in the path. +* [rclone index](/commands/rclone_index/) - Write static directory listings into a remote. * [rclone link](/commands/rclone_link/) - Generate public link to file/folder. * [rclone listremotes](/commands/rclone_listremotes/) - List all the remotes in the config file and defined in environment variables. * [rclone ls](/commands/rclone_ls/) - List the objects in the path with size and path. diff --git a/docs/content/commands/rclone_bisync.md b/docs/content/commands/rclone_bisync.md index c74c2a5e4..4d1ce16e3 100644 --- a/docs/content/commands/rclone_bisync.md +++ b/docs/content/commands/rclone_bisync.md @@ -52,6 +52,7 @@ rclone bisync remote1:path1 remote2:path2 [flags] --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow diff --git a/docs/content/commands/rclone_completion.md b/docs/content/commands/rclone_completion.md index 2f43ab108..a06fc10fc 100644 --- a/docs/content/commands/rclone_completion.md +++ b/docs/content/commands/rclone_completion.md @@ -14,6 +14,8 @@ Output completion script for a given shell. Generates a shell completion script for rclone. Run with `--help` to list the supported shells. +Enum-valued flags such as `--log-level` and `--vfs-cache-mode` +also complete their supported values. ## Options diff --git a/docs/content/commands/rclone_convmv.md b/docs/content/commands/rclone_convmv.md index 379c8e17a..00f7e13c5 100644 --- a/docs/content/commands/rclone_convmv.md +++ b/docs/content/commands/rclone_convmv.md @@ -231,12 +231,12 @@ rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,command=e ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}" -// Output: stories/The Quick Brown Fox!-20260731 +// Output: stories/The Quick Brown Fox!-20261106 ``` ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}" -// Output: stories/The Quick Brown Fox!-2026-07-31 0340PM +// Output: stories/The Quick Brown Fox!-2026-11-06 0220PM ``` ```console diff --git a/docs/content/commands/rclone_deletefile.md b/docs/content/commands/rclone_deletefile.md index 19143176c..87c9a4d8d 100644 --- a/docs/content/commands/rclone_deletefile.md +++ b/docs/content/commands/rclone_deletefile.md @@ -10,9 +10,11 @@ Remove a single file from remote. ## Synopsis -Remove a single file from remote. Unlike `delete` it cannot be used to +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. +specified file exists, it will always be removed from its original location. + +The `--backup-dir` and `--suffix` flags are honored when set. ``` rclone deletefile remote:path [flags] @@ -27,6 +29,26 @@ rclone deletefile remote:path [flags] Options shared with other commands are described next. See the [global flags page](/flags/) for global options not listed here. +### Sync Options + +Flags used for sync commands + +```text + --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 + --fix-case Force rename of case insensitive dest to match source + --ignore-errors Delete even if there are I/O errors + --list-cutoff int To save memory, sort directory listings on disk above this threshold (default 1000000) + --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 Options Important flags useful for most commands diff --git a/docs/content/commands/rclone_gui.md b/docs/content/commands/rclone_gui.md index 77c4e54ec..98ea25a76 100644 --- a/docs/content/commands/rclone_gui.md +++ b/docs/content/commands/rclone_gui.md @@ -101,11 +101,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also diff --git a/docs/content/commands/rclone_hashsum.md b/docs/content/commands/rclone_hashsum.md index 4d8fa3796..873b8ea7c 100644 --- a/docs/content/commands/rclone_hashsum.md +++ b/docs/content/commands/rclone_hashsum.md @@ -41,6 +41,7 @@ Supported hashes are: - blake3 - xxh3 - xxh128 +- crc32c ``` Then diff --git a/docs/content/commands/rclone_index.md b/docs/content/commands/rclone_index.md new file mode 100644 index 000000000..eed11006d --- /dev/null +++ b/docs/content/commands/rclone_index.md @@ -0,0 +1,331 @@ +--- +title: "rclone index" +description: "Write static directory listings into a remote." +versionIntroduced: v1.76 +# autogenerated - DO NOT EDIT, instead edit the source code in cmd/index/ and as part of making a release run "make commanddocs" +--- +# rclone index + +Write static directory listings into a remote. + +## Synopsis + +Write a directory listing, `index.html` by default, into every +directory of `remote:path` so that it can be browsed when it is served +as a static website, for example from an S3 website endpoint, a bucket +behind a CDN, or a plain web server. + +This works like `rclone sync`: each run makes the minimum changes needed +to bring the listings into line with the files. Listings which haven't +changed aren't rewritten, so a run with no changes makes no uploads. The +listings never show the listing files themselves. + +**Note** that `rclone index` treats every file with an output name +(`index.html` by default) in the directories it indexes as its own, and +will overwrite it or delete it without checking where it came from. To +protect a hand-written index, exclude its directory with +`--index-exclude`. + +## Outputs + +`--output NAME=FORMAT` says what to write in each directory and can be +repeated. NAME is the file name, and FORMAT is one of the built-in +formats below or the path of a Go template file. + +| Format | MIME type | Contents | +|:-------|:----------|:---------| +| `html` | `text/html; charset=utf-8` | The HTML listing from the `rclone serve http` template | +| `json` | `application/json` | JSON in the format of `rclone lsjson` for the directory | +| `caddy` | `application/json` | JSON in the format of Caddy's `file_server browse` | + +The default is `--output index.html=html`. The built-in formats are +templates, so they can be printed with `--print-template FORMAT`, copied +and changed. Outputs whose name ends in `.html` or `.htm` are rendered +with Go's `html/template` and everything else with `text/template`, which +has a `json` function for safe encoding. The template data is that of +`rclone serve http` with `.Static` set (see +[rclone serve http](/commands/rclone_serve_http/#template)). Outputs are +uploaded with the MIME type of the built-in format, or that of the +output name's extension for template outputs, since static hosts serve +the stored type. + +## Filters + +The normal filters (`--include`, `--exclude`, `--filter-from`, `--max-age`, ...) +control what appears in the listings. An excluded file isn't listed, and +an excluded directory isn't listed or indexed. + +The `--index-include`, `--index-exclude`, `--index-filter` flags and their +`-from` variants control which directories get listings. They take the same +patterns as the normal filters, applied to directory paths, and +`--index-include` implies excluding all other directories. A directory +excluded here still appears in its parent's listing, but nothing is written +or deleted inside it, so it can have its own hand-made index. +`--index-max-depth` limits how deep listings are written. + +## Modification times + +Listings show the modification time of each file. When using the s3, +oracleobjectstorage and swift backends rclone stores the modification time as +metadata which isn't returned by the bucket listing, so **every object needs +a HEAD request**, which can mean thousands of transactions per run. Avoid +this with one of: + +- `--use-server-modtime` uses the time the object was uploaded instead, + which is what the web server sends as `Last-Modified`. Recommended for s3 + unless the original modification times matter. +- `--no-modtime` shows no times at all, which is the cheapest option. + +`--dir-time` sets the time shown for directories: + +- `newest` (default): the newest modification time of anything below the + directory. Note that this means one new file changes the listing of + every directory above it. +- `dir`: the directory's own modification time. On most file systems + writing a listing into a directory changes its time, so this can take + more than one run to settle. +- `none`: no time. + +The listing files are given the newest modification time below their +directory, so the `Last-Modified` header of a listing is meaningful. + +## Links + +Directory links are `dir/` by default, which works on hosts that serve +index documents: S3 website endpoints, GCS and Azure static websites, +nginx and Apache, and R2 custom domains with a URL rewrite rule. For +hosts that don't (plain S3 REST URLs, B2 friendly URLs) use +`--link-index` to make directory links `dir/index.html` instead. + +## Partial runs + +After a sync which changed a known set of files there is no need to +walk the whole remote. Tell `rclone index` what changed and it re-indexes +only the directories that could be affected: + + rclone index r2:bucket --changed v1.76.0/ --changed version.txt + rclone index r2:bucket --changed-from changes.txt + rclone sync ./public r2:bucket --exclude index.html --combined - | rclone index r2:bucket --changed-combined - + +- `--changed PATH` names a changed file or directory relative to + `remote:path` and can be repeated. A directory, given with a trailing + slash or found to be one, is re-indexed completely. +- `--changed-from FILE` reads one path per line exactly as written. +- `--changed-combined FILE` reads the `--combined` report of + `rclone sync`: lines starting with `+`, `-`, `*` and `!` are changes and + `=` lines are ignored. +- Both files accept `-` for standard input and all three flags can be + combined. + +A changed file re-indexes its directory and every directory above it, +since their times and their listings can change too, and on bucket +based storage a directory can cease to exist. Each of those is one +directory listing. With `--dir-time newest` the directories above also +need the times of their unchanged subdirectories, which are read from +the modification times of those subdirectories' listings at the cost +of one small request each. With `--use-server-modtime` that is the time +the listing was written rather than the time of the newest file, so +partial runs can drift by the indexing delay until the next full run. +`--dir-time dir` and `none` need no such lookups. + +Directories which are neither named nor above a named path are left +alone, as are directories deeper than `--max-depth`. An empty change +list does nothing, and naming the root does a full run. There is no +automatic cutover to a full run since that depends on the size of the +whole remote: a partial run costs one listing per affected directory, +a full run one request per thousand objects on S3-like storage or one +per directory elsewhere. The number +of directories a partial run will list is logged with `-v`, and +`--changed-max-dirs` makes it fall back to a full run above that +number. A good pattern is a partial run after each upload and a +scheduled full run to catch anything missed. + +## Site icon + +The listings carry no icon or branding of their own. To give a site an +icon, upload a `favicon.ico` to the root of the remote, which browsers +fetch from there for every page. Exclude it from the listings with +`--exclude /favicon.ico` so it stays on the site but isn't shown. + +## Deleting listings + +On backends which can't have empty directories (S3, B2 and other +bucket-based storage) a directory only exists while it has files in it. +Once the last file in a directory has been removed its listing is +deleted, since the directory only existed because of it. Backends which +can have empty directories keep a listing for each empty directory. + +## Using with sync + +A sync from a local build deletes files on the destination which aren't +in the source, which includes the listings. Either index the local build +before syncing: + + rclone index ./public + rclone sync ./public r2:bucket + +or exclude the listings from the sync so it neither uploads nor deletes +them, then index the remote: + + rclone sync ./public r2:bucket --exclude index.html + rclone index r2:bucket + +## Examples + +An S3 website bucket, using the upload times so no object needs a HEAD +request: + + rclone index s3:my-site --use-server-modtime + +HTML and rclone JSON listings, setting `Cache-Control` on them: + + rclone index s3:bucket --output index.html=html --output index.json=json --header-upload "Cache-Control: max-age=300" + +Only list release files, and don't write listings under `/private`: + + rclone index r2:bucket --include "*.{zip,deb,rpm}" --index-exclude "/private/**" + +A B2 bucket served from its friendly URLs: + + rclone index b2:bucket --link-index + +See what would change: + + rclone index r2:bucket --dry-run -v + +Listings which haven't changed aren't normally rewritten, so changing +the headers or metadata set on them needs `--index-rewrite`, which +writes every listing a run would render whether it changed or not: + + rclone index r2:bucket --index-rewrite --header-upload "Cache-Control: max-age=3600" + +``` +rclone index remote:path [flags] +``` + +## Options + +``` + --changed stringArray Only re-index directories affected by this changed path (directories end in /) + --changed-combined stringArray Read changed paths from a sync --combined report (use - to read from stdin) + --changed-from stringArray Read changed paths from file, one per line (use - to read from stdin) + --changed-max-dirs int Do a full index if a partial one would list more than this many directories (0 for no limit) + --dir-time newest|dir|none How to work out the time shown for a directory (default newest) + -h, --help help for index + --index-exclude stringArray Don't write listings in directories matching pattern + --index-exclude-from stringArray Read directory exclude patterns from file (use - to read from stdin) + --index-filter stringArray Add a rule for which directories get listings + --index-filter-from stringArray Read directory rules from a file (use - to read from stdin) + --index-include stringArray Only write listings in directories matching pattern + --index-include-from stringArray Read directory include patterns from file (use - to read from stdin) + --index-max-depth int Only write listings this many directories deep (-1 for no limit) (default -1) + --index-rewrite Write every listing even if it is unchanged + --link-index Link to dir/NAME rather than dir/ for hosts without index documents + --no-modtime Don't show modification times in listings + --output stringArray Listing to write in each directory as NAME=FORMAT (default [index.html=html]) + --print-template string Print the built-in template for FORMAT and exit +``` + +Options shared with other commands are described next. +See the [global flags page](/flags/) for global options not listed here. + +### Copy Options + +Flags for anything which can copy a file + +```text + --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 server-side paths during comparison + --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination + --cutoff-mode HARD|SOFT|CAUTIOUS 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 modtime or checksum + -I, --ignore-times Don't skip items that match size and time - transfer all unconditionally + --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 + -l, --links Translate symlinks to/from regular files with a '.rclonelink' extension + --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) + --name-transform stringArray Transform paths during the copy process + --no-check-dest Don't check the destination, copy regardless + --no-traverse Don't traverse destination file system on copy + --no-update-dir-modtime Don't update directory modification times + --no-update-modtime Don't update destination modtime if files identical + --order-by string Instructions on how to order the transfers, e.g. 'size,descending' + --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default ".partial") + --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 modtime 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 + +```text + -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 + +```text + --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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly @/n + --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 + +```text + --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 Also + + + + +* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. + + + diff --git a/docs/content/commands/rclone_ls.md b/docs/content/commands/rclone_ls.md index e463876b6..cdb42ac0e 100644 --- a/docs/content/commands/rclone_ls.md +++ b/docs/content/commands/rclone_ls.md @@ -41,6 +41,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](/docs/#fast-list) for more details. diff --git a/docs/content/commands/rclone_lsd.md b/docs/content/commands/rclone_lsd.md index b736c08c3..e82dd621e 100644 --- a/docs/content/commands/rclone_lsd.md +++ b/docs/content/commands/rclone_lsd.md @@ -13,7 +13,7 @@ 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 +not), the modification time (if known, the `--default-time` if not), the number of objects in the directory (if known, -1 if not) and the name of the directory, E.g. @@ -53,6 +53,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](/docs/#fast-list) for more details. diff --git a/docs/content/commands/rclone_lsf.md b/docs/content/commands/rclone_lsf.md index 6c53e66bd..cfd3aab88 100644 --- a/docs/content/commands/rclone_lsf.md +++ b/docs/content/commands/rclone_lsf.md @@ -164,6 +164,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](/docs/#fast-list) for more details. diff --git a/docs/content/commands/rclone_lsjson.md b/docs/content/commands/rclone_lsjson.md index dd50cbb48..017c77f76 100644 --- a/docs/content/commands/rclone_lsjson.md +++ b/docs/content/commands/rclone_lsjson.md @@ -111,6 +111,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](/docs/#fast-list) for more details. diff --git a/docs/content/commands/rclone_lsl.md b/docs/content/commands/rclone_lsl.md index 9e3b6acc3..5fdf194bc 100644 --- a/docs/content/commands/rclone_lsl.md +++ b/docs/content/commands/rclone_lsl.md @@ -42,6 +42,10 @@ Note that `ls` and `lsl` recurse by default - use `--max-depth 1` to stop the re The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use `-R` to make them recurse. +On the bucket-based remotes (e.g. s3, gcs, b2) a directory is a key prefix +rather than an object, so a listing without `-R` shows each prefix as one +directory entry and not the objects stored under it. + List commands prefer a recursive method that uses more memory but fewer transactions by default. Use `--disable ListR` to suppress the behavior. See [`--fast-list`](/docs/#fast-list) for more details. diff --git a/docs/content/commands/rclone_mount.md b/docs/content/commands/rclone_mount.md index 89fff842a..812f8a72a 100644 --- a/docs/content/commands/rclone_mount.md +++ b/docs/content/commands/rclone_mount.md @@ -292,6 +292,11 @@ for all `mount` and `serve` commands on macOS. For details, see [vfs-case-sensit ### NFS mount +For macOS (and other platforms where this path is supported), prefer the dedicated +[rclone nfsmount](/commands/rclone_nfsmount/) command. It starts the NFS server and +performs the mount for you. `rclone mount` itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using [serve nfs](/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -629,7 +634,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -684,7 +689,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -838,7 +844,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of diff --git a/docs/content/commands/rclone_nfsmount.md b/docs/content/commands/rclone_nfsmount.md index f298ed210..925c298cd 100644 --- a/docs/content/commands/rclone_nfsmount.md +++ b/docs/content/commands/rclone_nfsmount.md @@ -293,6 +293,11 @@ for all `mount` and `serve` commands on macOS. For details, see [vfs-case-sensit ### NFS mount +For macOS (and other platforms where this path is supported), prefer the dedicated +[rclone nfsmount](/commands/rclone_nfsmount/) command. It starts the NFS server and +performs the mount for you. `rclone mount` itself still uses FUSE (macFUSE/FUSE-T) +and does not switch to NFS via a flag. + This method spins up an NFS server using [serve nfs](/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. If you run this in background mode using |--daemon|, you will need to send SIGTERM signal to the rclone process @@ -630,7 +635,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -685,7 +690,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -839,7 +845,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of diff --git a/docs/content/commands/rclone_rcd.md b/docs/content/commands/rclone_rcd.md index 2a87513f8..3aa7538c4 100644 --- a/docs/content/commands/rclone_rcd.md +++ b/docs/content/commands/rclone_rcd.md @@ -47,6 +47,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--rc-allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--rc-allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -116,6 +123,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -125,6 +139,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -165,8 +180,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--rc-allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--rc-realm` to set the authentication realm. Use `--rc-salt` to change the password hashing salt from the default. @@ -215,11 +242,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 Also diff --git a/docs/content/commands/rclone_serve_dlna.md b/docs/content/commands/rclone_serve_dlna.md index c93394468..7dc17799a 100644 --- a/docs/content/commands/rclone_serve_dlna.md +++ b/docs/content/commands/rclone_serve_dlna.md @@ -100,7 +100,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -155,7 +155,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -309,7 +310,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of diff --git a/docs/content/commands/rclone_serve_docker.md b/docs/content/commands/rclone_serve_docker.md index c0674d67e..8464081c7 100644 --- a/docs/content/commands/rclone_serve_docker.md +++ b/docs/content/commands/rclone_serve_docker.md @@ -162,7 +162,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -217,7 +217,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -371,7 +372,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of diff --git a/docs/content/commands/rclone_serve_ftp.md b/docs/content/commands/rclone_serve_ftp.md index c8bb7c7b5..b8e2ebd36 100644 --- a/docs/content/commands/rclone_serve_ftp.md +++ b/docs/content/commands/rclone_serve_ftp.md @@ -93,7 +93,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -148,7 +148,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -302,7 +303,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -545,9 +546,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -555,7 +557,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -565,10 +568,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -594,11 +631,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. diff --git a/docs/content/commands/rclone_serve_http.md b/docs/content/commands/rclone_serve_http.md index 1ea78cae8..4837b37a3 100644 --- a/docs/content/commands/rclone_serve_http.md +++ b/docs/content/commands/rclone_serve_http.md @@ -49,6 +49,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -118,6 +125,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -127,6 +141,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -167,8 +182,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -236,7 +263,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -291,7 +318,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -445,7 +473,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -688,9 +716,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -698,7 +727,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -708,10 +738,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -737,11 +801,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. diff --git a/docs/content/commands/rclone_serve_nfs.md b/docs/content/commands/rclone_serve_nfs.md index 52a94b3e2..88ca29966 100644 --- a/docs/content/commands/rclone_serve_nfs.md +++ b/docs/content/commands/rclone_serve_nfs.md @@ -167,7 +167,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -222,7 +222,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -376,7 +377,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of diff --git a/docs/content/commands/rclone_serve_restic.md b/docs/content/commands/rclone_serve_restic.md index 5a4a9e6d2..7202146d8 100644 --- a/docs/content/commands/rclone_serve_restic.md +++ b/docs/content/commands/rclone_serve_restic.md @@ -126,6 +126,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -210,8 +217,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. diff --git a/docs/content/commands/rclone_serve_s3.md b/docs/content/commands/rclone_serve_s3.md index c831576eb..d59bf8b63 100644 --- a/docs/content/commands/rclone_serve_s3.md +++ b/docs/content/commands/rclone_serve_s3.md @@ -26,6 +26,21 @@ docs](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)). `--auth-key` is not provided then `serve s3` will allow anonymous access. +Alternatively `--auth-proxy` can be used to look up the secret for each +access key ID and choose the backend it maps to (see [Auth +Proxy](#auth-proxy) below). When an auth proxy is in use `--auth-key` +is ignored and every request must be signed with the secret the proxy +returns for its access key ID. Each access key ID is a separate user, +whose multipart uploads and object metadata are private to it, even if +the proxy maps several access key IDs to the same backend. + +As on AWS, every `x-amz-*` header in an authenticated request must be +in its signed headers list; a request with an unsigned `x-amz-*` +header is refused with `AccessDenied`. S3 clients sign these headers +as a matter of course, but a header added after signing (for example +by a proxy in front of the server, or `x-amz-meta-*` headers sent +with a presigned URL which only signs the host) is refused. + Like all rclone flags `--auth-key` can be set via environment variables, in this case `RCLONE_AUTH_KEY`. Since this flag can be repeated, the input to `RCLONE_AUTH_KEY` is CSV encoded. Because the @@ -60,6 +75,14 @@ part of the hostname (such as mybucket.local) Use `--etag-hash` if you want to change the hash uses for the `ETag`. Note that using anything other than `MD5` (the default) is likely to cause problems for S3 clients which rely on the Etag being the MD5. +Use `--etag-hash auto` to use the best hash the backend supports - with +`--auth-proxy` that of each user's backend. + +The `ETag` of an object made by a multipart upload is its hash, like +any other object, rather than the `-N` suffixed `ETag` AWS S3 gives +these. If the remote doesn't have the MD5 of objects, `HeadObject` +and listings only return the MD5 of objects uploaded through `serve +s3` while the object's metadata is kept (see below). ## Quickstart @@ -101,29 +124,78 @@ access_key_id = ACCESS_KEY_ID secret_access_key = SECRET_ACCESS_KEY ``` +## Object uploads (PUT) + +A `PutObject` upload only ever changes the object at its key atomically, on +success, a failed or interrupted PUT neither removes nor overwrites the +object already stored at the key, and never leaves a partial object visible +at it. + +Remotes that upload atomically (e.g. object stores such as `s3`) are streamed +straight to the destination. On remotes where a partial upload would +otherwise be visible (e.g. `local`), and whenever `--vfs-cache-mode` is +`writes` or above, the upload is written to a temporary object that is +renamed into place on success; these remotes need to support a server-side +move or copy for this (nearly all do - without move or copy the upload is +written directly and a failed PUT may leave a partial object at the key). If +`serve s3` is killed part-way through an upload the temporary object (named +with a leading `.rclone_temp_put_`) may be left behind; it is hidden from +S3 listings but must be removed manually. + ## Multipart uploads -By default `serve s3` **streams** each multipart upload, in part-number -order, into a single `PutStream` upload to the underlying remote, so the -whole file is never buffered in memory - memory use stays bounded by the -parts in flight. The remote then performs its own internal upload (for -example its own multipart upload, still with bounded memory). This works -for any remote that supports `PutStream`, which is nearly all of them, -including through `crypt`. - -The upload is atomic so the destination object only ever changes on a +Multipart uploads are written, in part-number order, to a temporary +object which is renamed into place, server-side, on completion, so the +upload is atomic. The object at the key only ever changes on a successful completion. A failed or aborted upload never affects any -object already stored under that name. Remotes that upload atomically -already (object stores such as `s3`) are streamed straight to the -destination. On remotes where a partial upload would otherwise be visible -(such as `local`), the parts are streamed to a temporary object that is -moved into place, server-side, on completion; these remotes therefore -also need to support a server-side move or copy. +object already stored under that name and a partly-uploaded object +never becomes visible under it. + +With the default `--vfs-cache-mode off` `serve s3` **streams** each +multipart upload, in part-number order, into a single streaming upload +to the underlying remote, so the whole file is never buffered in +memory: only parts which arrive out of order are buffered, within the +limits described below. The remote then performs its own internal upload (for example its own multipart +upload, still with bounded memory). Remotes that don't support +streaming uploads (those that must know the file size before the +upload starts, such as `onedrive`, `pcloud`, `jottacloud`, `mailru`, +`opendrive`, `putio`, `protondrive` and `zoho`) have the parts spooled +to a temporary file on **local disk** instead, and uploaded with the +size then known on completion, so they need local disk space for the +largest objects in flight rather than memory. + +With `--vfs-cache-mode writes` (or `full`) the parts are written to a +temporary file in the VFS cache and uploaded by the VFS write-back - +see [Multipart uploads and the VFS +cache](#multipart-uploads-and-the-vfs-cache) below. + +The rename into place needs the remote to support a server-side move +or copy, which nearly all do. It is a cheap rename on most remotes, +but on object stores without a real rename (such as `s3` itself) the +move is performed as a server-side copy and delete of the whole +object, which can take time and API calls for large objects. +Concurrent multipart uploads of the same key (which S3 permits) are +safe. Each writes its own temporary object and the last to complete +wins. + +On the few remotes that support neither server side move nor copy, the +parts are written straight to the destination object instead and never +buffered in memory. This is at some cost in atomicity - the incomplete +object is visible under its final name while the upload is in flight, +as it also is for a plain object PUT on such remotes, and concurrent +multipart uploads of the same key write to the same object and can +interleave. A failed or aborted upload still leaves any pre-existing +object untouched provided the remote uploads atomically and the VFS +cache is off; on a remote where partial uploads are visible it may +leave partial data at the key (like a plain PUT there), and with +`--vfs-cache-mode writes` (or `full`) a write to the cache cannot be +abandoned, so an aborted upload's partial data is written back to the +remote as if it had completed. **Features** -- The whole object is never buffered in memory; memory use is bounded by - the parts in flight, not the upload size. +- The whole object is never buffered in memory; only parts arriving out + of order are, within fixed limits, whatever the upload size. - Parts can be any size. Clients that don't produce uniform-sized parts work fine - for example PostgreSQL backup tools such as **pgBarman** and **pgBackRest**, which flush an upload buffer once it grows past @@ -133,69 +205,275 @@ also need to support a server-side move or copy. as one continuous stream. - The destination object only ever changes atomically, on completion: an aborted or failed upload leaves any pre-existing object of the same - name untouched, and a partly-uploaded object never becomes visible. -- Backend-agnostic - it only needs the remote to support `PutStream` - (plus a server-side move or copy on remotes that don't upload - atomically). + name untouched, and a partly-uploaded object never becomes visible + (except on the few remotes with no server-side move or copy, as + above). +- Multipart uploads go through the VFS like any other upload, so they + show in rclone's transfer stats and obey `--bwlimit`. +- Backend-agnostic - it only needs the remote to support a server-side + move or copy for the rename into place, which nearly all do; a remote + without streaming upload support spools to local disk as above. **Limitations** -- Parts must arrive in ascending, contiguous part-number order - (1, 2, 3, ...). Parts the client uploads concurrently or out of order - are buffered until their turn. The memory used for this buffering is - capped, per upload, by `--multipart-streaming-buffer-limit` (default - `256M`, `0` for no limit): a part that would take the buffer over the - limit is stalled until the stream drains, so a client that uploads - faster than the remote can accept sees backpressure rather than - unbounded server memory use. Since a stalled part holds its HTTP - request open, clients whose upload concurrency times chunk size - exceeds the limit may need a longer read timeout when the remote is - slow. Non-contiguous part numbers are rejected on completion. - Configure the client to upload in part order, ideally with low - concurrency, for the lowest memory use. +- Parts must arrive in ascending, contiguous part-number order (1, 2, 3, + ...). The part the stream needs next is written straight through as it + arrives, so it is never buffered, whatever its size. Parts the client + uploads concurrently or out of order are buffered until their turn. + The memory used for this buffering is capped, per upload, by + `--multipart-streaming-buffer-limit` (default `256M`, `0` for no + limit), and across all the uploads of each user (each access key) by + `--multipart-streaming-buffer-total` (default `1G`, `0` for no + limit), counting each buffered part in the + whole 1 MiB memory pages it occupies: a part that would take the + buffer over either limit is stalled until the stream drains (or, if it + is bigger than the limits, until it is the next part), so a client + that uploads faster than the remote can accept sees backpressure + rather than unbounded server memory use. A stalled part holds its HTTP + request open, and one stalled for more than a minute is failed with a + `SlowDown` error, which S3 clients retry. Clients whose upload + concurrency times part size exceeds the limits will see these stalls + and retries when the remote is slower than the client. Non-contiguous + part numbers are rejected on completion. Configure the client to + upload in part order, ideally with low concurrency, for the lowest + memory use. - A part uploaded again before completion - typically a client retrying after a timeout - is accepted: if the earlier copy is still buffered it is replaced, and if it has already been streamed an identical - re-upload is a no-op. What isn't possible is replacing a part that has - already been streamed with *different* content - that is rejected. A - failure in the stream to the remote itself still aborts the whole - upload and the client must start it again. (The remote's own upload + re-upload is a no-op (a re-upload which arrives while the part is + being streamed waits for it to finish first). If a part fails part way + through being streamed + (for example the client's connection drops) the client's retry of it + carries on where it stopped, provided it has the same content. What + isn't possible is replacing a part that has already been streamed, + in whole or in part, with *different* content - that is rejected. A + part which arrives in full but is then rejected, for example because + it doesn't match the `Content-MD5` the client declared, has already + been streamed, so the whole upload is failed and the client must + start it again. So is a failure in the stream to the remote itself. (The remote's own upload still retries its internal chunks.) +- A `CompleteMultipartUpload` which fails because the parts it lists + don't match those uploaded, or there is a gap in the part numbers, + leaves the upload open, as on S3, so the client can upload any + missing parts and complete it again. If writing the completed object + to the remote fails, the upload is failed and must be started again. - Parts are serialised into one stream, so ingest from the client is - effectively single-threaded, although the remote's own upload still - runs concurrently. -- On remotes that don't upload atomically (such as `local`), the - completed object is moved into place with a server-side operation. - This is a cheap rename on most such remotes. On these remotes, if - `serve s3` is killed part-way through an upload the temporary object - (named with a leading `.rclone_multipart_upload_`) may be left behind; - it is hidden from S3 listings but must be removed manually. + effectively single-threaded. When streaming, the remote's own upload + runs concurrently with the parts arriving; with the local disk spool + or the VFS cache the upload to the remote only starts on completion. +- If `serve s3` is killed part-way through an upload the temporary + object (named with a leading `.rclone_temp_multipart_`) may be left + behind; it is hidden from S3 listings but must be removed manually. + +### Multipart uploads and the VFS cache + +With `--vfs-cache-mode writes` (or `full`) multipart uploads do not +stream to the remote at all. The parts are written, in part-number +order, to a temporary file in the VFS cache. On completion the file is +renamed into place and uploaded by the VFS write-back, exactly like a +plain object PUT. This needs no streaming upload support from the +remote. The rename normally happens in the cache before the upload has +started, but the VFS requires the remote to support a server-side move +or copy to rename files at all (and uses one if the temporary file has +already been written back, e.g. with `--vfs-write-back 0`). On remotes +without either, the parts are written to the cache directly under the +final key instead: the upload still never touches memory, but it loses +its atomicity - the in-flight upload is visible at the key, and an +aborted upload cannot be abandoned once in the cache, so its partial +data is written back to the remote as if it were a completed object. + +Remotes that benefit from `--vfs-cache-mode writes`: + +- **Remotes over slow or unreliable links.** A failure in a streamed + upload aborts the whole multipart upload and the client must start + again from the first part; a failed write-back upload is retried by + the VFS (see `--vfs-cache-max-age` and friends) without the client + being involved. Ingest from the client also runs at local disk speed + rather than being throttled to the remote's pace. +- **Workloads that read back or overwrite what they just wrote.** The + completed object stays in the cache, so subsequent `GET`/`HEAD` + requests are served locally, and plain PUTs and multipart uploads to + the same key go through the same cache entry so the last write wins + regardless of upload style. + +The trade-offs of the VFS cache: + +- The whole object lands on local disk, so the cache (`--cache-dir`) + needs space for the largest objects in flight; `--vfs-cache-max-size` + cannot evict files which are still being uploaded. +- The `200 OK` for `CompleteMultipartUpload` means the data is safely + in the **local cache**, not yet on the remote - the same durability + the cache gives plain PUTs. If an acknowledgement must mean the data + has reached the remote (for example WAL archiving), use the default + `--vfs-cache-mode off`. +- The upload to the remote only starts on completion, rather than + overlapping with the parts arriving, so the data reaches the remote + later than with streaming. +- If `serve s3` is killed part-way through an upload, the temporary + file survives in the cache and the VFS cache recovery uploads it to + the remote on restart as a temporary object (named with a leading + `.rclone_temp_multipart_`); as with the streaming path, it is + hidden from S3 listings but must be removed manually. + +### Cleaning up temporary objects + +If `serve s3` is killed part-way through an upload it can leave a +temporary object behind, named with a leading `.rclone_temp_`. This +whole prefix is reserved: any object whose name (the last +`/`-separated segment of its key) starts with `.rclone_temp_` is +hidden from S3 listings, so don't give real objects such names - an +existing object with such a name disappears from listings (though it +stays accessible directly by its key: only listings hide reserved +names, `GET`, `HEAD` and `DELETE` of the exact key still work). A +temporary object never holds acknowledged data - uploads whose +temporary object survived were never confirmed to the client - so old +ones are safe to delete: + + rclone delete --min-age 24h --include ".rclone_temp_*" remote:path + +The `--min-age` protects uploads which are still in progress: make sure +it is longer than your longest upload, especially if several `serve s3` +instances share the same remote. + +rclone v1.75 named its temporary multipart objects +`.rclone_multipart_upload_*`; leftovers from an older server are also +hidden from listings and can be cleaned up the same way. + +### Abandoned uploads + +A client which starts a multipart upload and vanishes without either +completing or aborting it would otherwise hold on to its resources +forever. + +An incomplete multipart upload which has had no activity for +`--multipart-expiry` (default `24h`) is therefore aborted and cleaned +up, exactly as if the client had called `AbortMultipartUpload`, and a +`NOTICE` is logged. + +An upload with a part still being received is never expired, however +slowly the part is arriving, and each completed part restarts the +clock, so the expiry only needs to outlast the client's pauses +*between* parts, not the whole upload. + +Late operations on an expired upload fail with `NoSuchUpload`, as they +do on real S3 when a lifecycle rule has aborted the upload. Set +`--multipart-expiry 0` to keep incomplete uploads forever - but note +that abandoned uploads are then never cleaned up and go on counting +towards `--multipart-max-uploads` below, so enough of them will stop +the user starting any new multipart upload until the server is +restarted. + +Each multipart upload in progress holds server resources - for example +the buffers the remote's own upload uses once the first part has +arrived - so each user (each access key) can have no more than +`--multipart-max-uploads` (default `1000`, `0` for no limit) in +progress at once. Starting another fails with a `SlowDown` error, +which S3 clients retry, and a one-off `NOTICE` is logged. ### Disabling streaming -If you pass `--disable-multipart-streaming`, or the remote doesn't -support `PutStream` (or doesn't upload atomically and can't move or copy -server-side), multipart uploads are instead **buffered in memory** -by the underlying S3 library: every part is held in memory and the whole -object is written out in one go when the upload completes (the previous -behaviour). This removes the in-order/contiguous-part restriction above, -so parts can be uploaded in any order, but **memory use grows with the -size of the upload**, so it is only suitable for small objects. A one-off -`NOTICE` is logged the first time this happens. +If you pass `--disable-multipart-streaming`, multipart uploads are +instead **buffered in memory** by the underlying S3 library: every +part is held in memory and the whole object is written out in one go +when the upload completes. This removes the in-order/contiguous-part +restriction above, so parts can be uploaded in any order, but **memory +use grows with the size of the upload**, so it is only suitable for +small objects. A one-off `NOTICE` is logged the first time this +happens. This flag is the only thing that makes multipart uploads +buffer in memory - it is never done because of missing remote +capabilities. The limits on multipart uploads above +(`--multipart-streaming-buffer-limit`, +`--multipart-streaming-buffer-total` and `--multipart-max-uploads`) do +not apply to uploads buffered in memory, so don't use this flag if the +server is open to clients you don't trust. Consider +`--vfs-cache-mode writes` instead, which buffers the upload in the VFS +cache on disk and takes precedence over +`--disable-multipart-streaming`. -Alternatively, if the client is an rclone `s3` remote (like the -`[serves3]` example above), you can set `use_multipart_uploads = false` -on it so it uploads each object as a single stream and skips multipart -uploads altogether. +## Memory use + +`serve s3` never buffers whole objects in memory (except with +`--disable-multipart-streaming`, above), and limits the memory each +kind of request can use, so that a client, even a hostile one, can't +make it use unbounded memory. + +- **Object data.** `PutObject` bodies and multipart parts arriving in + order are streamed straight through to the remote. Parts arriving out + of order are buffered, up to `--multipart-streaming-buffer-limit` + per upload and `--multipart-streaming-buffer-total` per user. +- **Uploads in progress.** Each user can have at most + `--multipart-max-uploads` multipart uploads in progress. An upload + holds little memory until its + first part arrives. After that, with `--vfs-cache-mode off`, it holds + a `--streaming-upload-cutoff` sized buffer plus whatever the remote's + own upload buffers, which for many remotes is up to their chunk size + times their upload concurrency (for example `--s3-chunk-size` times + `--s3-upload-concurrency`). Plain `PutObject` uploads use the same + while they are in progress. +- **Metadata.** The metadata of at most `--metadata-max-objects` + objects of each user is kept, each limited to 2 KB. +- **Request bodies.** The XML bodies of requests such as + `CompleteMultipartUpload` and `DeleteObjects` are limited to 10 MiB, + and `DeleteObjects` to 1000 keys. A browser form (`POST`) upload + holds at most 1 MiB in memory, spooling the rest to a temporary file, + and is limited to 5 GB. +- **Listings.** Each page of a `ListObjects` listing reads only the + directories needed to fill it, and returns at most 1000 keys. + Directory listings are cached by the [VFS directory + cache](#vfs-directory-cache). + +The largest of these is usually the remote's upload buffers, which can +be up to `--multipart-max-uploads` times the buffers of one upload for +each user if clients start many uploads and send part of each. The +limits apply to each user separately, so that one user can't stop +others uploading, which means the memory use grows with the number of +users. To limit it, lower +`--multipart-max-uploads`, the remote's chunk size or upload +concurrency, or set `--max-buffer-memory` to limit the memory used by +the buffers of all uploads to remotes which use rclone's buffer pool +(including `s3`, `azureblob` and `b2`). Buffered multipart parts come +from the same pool, so if you set `--max-buffer-memory` make it +comfortably bigger than `--multipart-streaming-buffer-total` times the +number of users uploading at once, otherwise +buffered parts can use up all the memory the remote needs to upload the +parts which would free them. + +The number of connections is not limited, so if the server is open to +clients you don't trust, use `--auth-key` or `--auth-proxy` and +consider putting it behind a reverse proxy which limits connections. + +## Design goals + +These goals explain many of the limitations below. + +- **Objects are plain files on the remote.** A bucket is a directory + in the root and a key is a path in it, so the remote stays usable by + other tools, such as `rclone mount` or `rclone sync`. So keys must + be paths (see [Object names](#object-names)). +- **No database.** `serve s3` stores nothing but the objects. What the + remote can't hold, such as user metadata, tags, the MD5 `ETag` of an + object on a remote without MD5 and the directory markers put, is + kept in memory as a best effort, and lost on restart. +- **Works with any rclone remote.** What `serve s3` can do depends on + what the remote supports, such as the hashes used for `ETag`s and + modification times, rather than needing a particular backend. +- **Bounded memory.** Uploads, including multipart uploads, are + streamed to the remote and the memory each request can use is + limited (see [Memory use](#memory-use)). Nothing is written to local + disk unless the VFS cache is used or the remote can't stream uploads + (see [Multipart uploads](#multipart-uploads)). +- **Refuse rather than ignore.** Unsupported features are refused, or + answered as S3 answers when the feature isn't configured, so a + client is never told something was done which wasn't (see + [Compatibility](#compatibility)). +- **A storage gateway, not a full S3.** `serve s3` implements the parts + of the S3 API clients use to store and fetch objects. Versioning, + ACLs, bucket policies, lifecycle rules and the like are out of scope. +- **Compatible with rclone's s3 backend.** This includes its directory + markers, which the tests check. ## Bugs -Multipart server side copies do not work (see -[#7454](https://github.com/rclone/rclone/issues/7454)). These take a -very long time and eventually fail. The default threshold for -multipart server side copies is 5G which is the maximum it can be, so -files above this side will fail to be server side copied. - For a current list of `serve s3` bugs see the [serve s3](https://github.com/rclone/rclone/labels/serve%20s3) bug category on GitHub. @@ -204,57 +482,124 @@ on GitHub. `serve s3` will treat all directories in the root as buckets and ignore all files in the root. You can use `CreateBucket` to create -folders under the root, but you can't create empty folders under other -folders not in the root. +folders under the root, and put a directory marker to create an empty +folder below them (see [Object names](#object-names)). When using `PutObject` or `DeleteObject`, rclone will automatically create or clean up empty folders. If you don't want to clean up empty -folders automatically, use `--no-cleanup`. +folders automatically, use `--directory-markers` (see [Object +names](#object-names)). The deprecated `--no-cleanup` does the same. -When using `ListObjects`, rclone will use `/` when the delimiter is -empty. This reduces backend requests with no effect on most -operations, but if the delimiter is something other than `/` and -empty, rclone will do a full recursive search of the backend, which -can take some time. +When using `ListObjects` with the delimiter `/`, rclone lists the +directory the prefix is in, showing its subdirectories as common +prefixes, including empty ones. Without a delimiter the listing is +recursive: rclone walks the directory tree below the prefix, reading +only as many directories as it needs to fill each page, and lists +empty directories as their directory markers (see below). Any other +delimiter is supported too, but needs the whole directory tree below +the prefix walking, unless the delimiter is in the directory names. -Versioning is not currently supported. +Versioning is not supported (see [Design goals](#design-goals)). -Metadata will only be saved in memory other than the rclone `mtime` -metadata which will be set as the modification time of the file. +Conditional writes, `PutObject` and `CompleteMultipartUpload` with +`If-None-Match` or `If-Match`, are supported. The conditions are +checked before the object is written, and again as it is moved into +place when it is written to a temporary object first. This happens for +multipart uploads and, for `PutObject`, with remotes which can upload +partial files (such as local disk) or with `--vfs-cache-mode minimal` +or above. The second check is atomic against other writes through +`serve s3`, but neither is atomic against changes made to the remote +some other way. If the remote doesn't support the `--etag-hash`, +objects have no `ETag` so `If-Match` with an `ETag` always fails. + +Metadata will only be saved in memory (see [Design +goals](#design-goals)) other than the rclone `mtime` metadata which +will be set as the modification time of the file. The +metadata of at most `--metadata-max-objects` objects (default `100000`, +`0` for no limit) of each user (each access key) is kept; after that +the metadata of the user's least recently used object is forgotten. The metadata of an object is +ignored once the object has been changed some other way, for example +by another `--auth-proxy` user or directly on the backend. Object tags +are kept with the metadata in the same way. ## Object names `serve s3` stores objects as files in the backend, so object keys are mapped to file paths rather than treated as the opaque strings AWS S3 allows. Keys must be in canonical path form: keys that contain `..` or -`.` path segments, repeated slashes (`//`), or a leading or trailing -slash are rejected with a `400 Bad Request` (`InvalidArgument`) -instead of being normalised, since normalising them could alias two -distinct keys to the same file or resolve a key outside its bucket. -This matches the behaviour of other S3 servers such as MinIO. +`.` path segments, repeated slashes (`//`), or a leading slash are +rejected with a `400 Bad Request` (`InvalidArgument`) instead of being +normalised, since normalising them could alias two distinct keys to +the same file or resolve a key outside its bucket. This matches the +behaviour of other S3 servers such as MinIO. -## Supported operations +A key ending in `/`, such as `dir/`, is a directory marker, standing +for the directory `dir`. Putting an empty directory marker creates the +directory (one with data is rejected with `400 Bad Request`), and +deleting it removes the directory if it is empty. Directory markers +are found by `HeadObject`, `GetObject` and `CopyObject` for any +directory, but only the markers of empty directories, and of the +directories a marker was put for, are listed as objects, as other +directories may not have been made by putting a marker. The markers +put are remembered in memory with the metadata (see +[Limitations](#limitations)), so after a restart, or once forgotten, +the marker of a directory holding other keys is no longer listed. +While a marker is remembered its directory isn't removed when the +last key below it is deleted. -`serve s3` currently supports the following operations. +With `--directory-markers` every directory is listed as a directory +marker, so the markers are listed after a restart too, as needed by +clients which rely on them, such as rclone's s3 backend with +`--s3-directory-markers`. As every directory has a marker, a directory +isn't removed when the last key below it is deleted. Deleting the +marker of a directory which holds other keys stops it being listed, +and the directory is then removed with the last key below it, but this +is only remembered in memory, like the markers put without +`--directory-markers`. -- Bucket - - `ListBuckets` - - `CreateBucket` - - `DeleteBucket` -- Object - - `HeadObject` - - `ListObjects` - - `GetObject` - - `PutObject` - - `DeleteObject` - - `DeleteObjects` - - `CreateMultipartUpload` - - `CompleteMultipartUpload` - - `AbortMultipartUpload` - - `CopyObject` - - `UploadPart` +As keys are file paths, a key can't be both an object and a directory +holding other objects, for example `a/b` and `a/b/c`. Writing an +object which would need this fails with `400 Bad Request` +(`InvalidRequest`). -Other operations will return error `Unimplemented`. +## Compatibility + +`serve s3` implements the parts of the S3 API that S3 clients commonly +use to store and fetch objects. Features it doesn't support are +refused with `501 NotImplemented`, or answered as AWS S3 answers for a +bucket without that feature configured, rather than being silently +ignored. + +| Feature | Supported | Notes | +| ------- | --------- | ----- | +| `ListBuckets`, `CreateBucket`, `DeleteBucket`, `HeadBucket`, `GetBucketLocation` | Yes | Buckets are the directories in the root of the remote. | +| `ListObjects`, `ListObjectsV2` | Yes | Prefixes, delimiters, markers, `start-after`, continuation tokens, `fetch-owner` and `encoding-type=url` all work. Delimiters other than `/` need the whole directory tree walking. | +| `HeadObject`, `GetObject` | Yes | Including `Range`, `partNumber`, the `response-*` header overrides and the `If-Match`, `If-None-Match`, `If-Modified-Since` and `If-Unmodified-Since` conditions. | +| `PutObject` | Yes | Including `Content-MD5`, `aws-chunked` uploads and uploads with no `Content-Length`. | +| `CopyObject` | Yes | Including the metadata and tagging directives and the `x-amz-copy-source-if-*` conditions. | +| `DeleteObject`, `DeleteObjects` | Yes | | +| Multipart uploads | Yes | `CreateMultipartUpload`, `UploadPart`, `UploadPartCopy`, `CompleteMultipartUpload`, `AbortMultipartUpload`, `ListMultipartUploads` and `ListParts`. The `ETag` of the object is its hash, not the `-N` suffixed one AWS gives. The 5 MiB minimum part size isn't enforced. | +| Conditional writes | Partial | `If-Match` and `If-None-Match` on `PutObject` and `CompleteMultipartUpload` are checked, but not atomically against changes made to the remote some other way (see [Limitations](#limitations)). | +| Authentication | Partial | AWS Signature Version 4, in headers, presigned URLs and browser form (`POST`) uploads. Signature Version 2 isn't supported. | +| Anonymous access | Partial | All requests are allowed without `--auth-key` or `--auth-proxy`, and none are with them, as buckets and objects can't be made public. | +| Metadata | Partial | `x-amz-meta-*`, the storage class and the standard headers such as `Content-Type` are kept in memory only (see [Limitations](#limitations)), except the modification time. The storage class is only recorded, so doesn't change how the object is stored. | +| Directory markers | Partial | Keys ending in `/` are stored as directories, so can't hold data. A marker put for a directory holding other keys is only listed while it is remembered in memory, unless `--directory-markers` is set (see [Object names](#object-names)). | +| Checksums | Partial | The `x-amz-checksum-*` of a `PutObject` (CRC32, CRC32C, CRC64NVME, SHA1 or SHA256) is checked and returned with the metadata. The `Content-MD5` and `x-amz-checksum-*` of the bodies of other requests, such as `DeleteObjects`, are checked. The checksums of multipart uploads aren't supported. | +| `GetObjectAttributes` | Partial | Everything but the checksums of multipart uploads. | +| Object tagging | Partial | `GetObjectTagging`, `PutObjectTagging` and `DeleteObjectTagging` work, but tags are kept in memory with the metadata. | +| Bucket owner | No | `serve s3` has no AWS account IDs, so `x-amz-expected-bucket-owner` and `x-amz-source-expected-bucket-owner` are ignored. | +| ACLs | Partial | `GetBucketAcl` and `GetObjectAcl` give the owner full control. Only the `private` ACL can be set. | +| CORS | Partial | Preflight (`OPTIONS`) requests are answered, allowing any origin. CORS configuration (`PutBucketCors`) isn't supported. | +| Server side encryption | No | SSE-S3 (`AES256`) is accepted but the data isn't encrypted. SSE-KMS and SSE-C are refused. | +| Versioning | No | Buckets are reported as unversioned and `ListObjectVersions` lists each object as version `null`. Enabling versioning is refused. | +| Object lock, retention and legal hold | No | | +| Bucket configuration | No | Bucket policies, tagging, lifecycle, logging, encryption, website, replication, notifications and the like. Getting them fails as for a bucket without them configured. | +| `SelectObjectContent`, `RestoreObject`, torrents | No | | + +The [ceph s3-tests](https://github.com/ceph/s3-tests) can be run +against `serve s3` to check its compatibility. See +[cmd/serve/s3/s3tests](https://github.com/rclone/rclone/tree/master/cmd/serve/s3/s3tests) +for how. ### Authentication @@ -284,8 +629,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -317,6 +674,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -436,7 +800,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -491,7 +855,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -645,7 +1010,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -862,6 +1227,135 @@ If the file has no metadata it will be returned as `{}` and if there is an error reading the metadata the error will be returned as `{"error":"error string"}`. +## 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](https://github.com/rclone/rclone/blob/master/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 these parameters + +- `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) + +If password authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this: + +```json +{ + "user": "me", + "pass": "mypassword", + "client_ip": "192.168.1.1" +} +``` + +If public-key authentication was used by the client, input to the +proxy process (on STDIN) would look similar to this: + +```json +{ + "user": "me", + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" +} +``` + +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + +And as an example return this on STDOUT + +```json +{ + "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. + +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. + +This can be used to build general purpose proxies to any kind of +backend that rclone supports. + ``` rclone serve s3 remote:path [flags] ``` @@ -878,7 +1372,8 @@ rclone serve s3 remote:path [flags] --client-ca string Client certificate authority to verify clients with --dir-cache-time Duration Time to cache directory entries for (default 5m0s) --dir-perms FileMode Directory permissions (default 777) - --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend (see the Multipart uploads docs section) + --directory-markers List every directory as a directory marker object + --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend --etag-hash string Which hash to use for the ETag, or auto or blank for off (default "MD5") --file-perms FileMode File permissions (default 666) --force-path-style If true use path style access if false use virtual hosted style (default true) @@ -888,10 +1383,14 @@ rclone serve s3 remote:path [flags] --key string TLS PEM Private key --link-perms FileMode Link permissions (default 666) --max-header-bytes int Maximum size of request header (default 4096) + --metadata-max-objects int Maximum number of objects of a user whose metadata is kept in memory, 0 for unlimited (default 100000) --min-tls-version string Minimum TLS version that is acceptable (default "tls1.0") - --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (see the Multipart uploads docs section) (default 256Mi) + --multipart-expiry Duration Abort incomplete multipart uploads idle for longer than this, 0 to keep forever (default 1d) + --multipart-max-uploads int Maximum number of streamed multipart uploads a user can have in progress at once, 0 for unlimited (default 1000) + --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (default 256Mi) + --multipart-streaming-buffer-total SizeSuffix Maximum memory buffered by all the streamed multipart uploads of a user for parts arriving out of order, 0 for unlimited (default 1Gi) --no-checksum Don't compare checksums on up/download - --no-cleanup Not to cleanup empty folder after object is deleted + --no-cleanup Deprecated: use --directory-markers instead --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 diff --git a/docs/content/commands/rclone_serve_sftp.md b/docs/content/commands/rclone_serve_sftp.md index d74f23bea..a9c3958c1 100644 --- a/docs/content/commands/rclone_serve_sftp.md +++ b/docs/content/commands/rclone_serve_sftp.md @@ -140,7 +140,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -195,7 +195,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -349,7 +350,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -592,9 +593,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -602,7 +604,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -612,10 +615,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -641,11 +678,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. diff --git a/docs/content/commands/rclone_serve_webdav.md b/docs/content/commands/rclone_serve_webdav.md index 3196a03ab..b7d4ac1be 100644 --- a/docs/content/commands/rclone_serve_webdav.md +++ b/docs/content/commands/rclone_serve_webdav.md @@ -126,6 +126,13 @@ accept in the HTTP header. will overriding existing values. The flag may be repeated to add multiple headers. Use the format `Header-Name: value`. +`--allow-origin` enables cross-origin (CORS) requests from browsers +by setting the `Access-Control-Allow-Origin` header on every response to the +origin given, e.g. `--allow-origin https://app.example.com`. Browser +CORS preflight OPTIONS requests are answered by rclone without needing +authentication as browsers never send credentials with them. Setting this +to `*` allows any origin which is a security risk on an authenticated server. + `--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 @@ -195,6 +202,13 @@ to be used within the template to server pages: | .Sort | | The current sort used. This is changeable via '?sort=' parameter. Possible values: namedirfirst, name, size, time (default namedirfirst). | | .Order | | The current ordering used. This is changeable via '?order=' parameter. Possible values: asc, desc (default asc). | | .Query | | Currently unused. | +| .Path | | The path of the directory from the root with leading and trailing slashes, e.g. '/dir/'. | +| .IsRoot | | Boolean for if this is the root directory. | +| .UpLink | | The link to the parent directory. | +| .Static | | Boolean for if the listing is being written as a static page by rclone index. | +| .NumDirs | | The number of directories in the listing. | +| .NumFiles | | The number of files in the listing. | +| .TotalSize | | The total size in bytes of the files in the listing. | | .Breadcrumb | | Allows for creating a relative navigation. | | | .Link | The link of the Text relative to the root. | | | .Text | The Name of the directory. | @@ -204,6 +218,7 @@ to be used within the template to server pages: | | .IsDir | Boolean for if an entry is a directory or not. | | | .Size | Size in bytes of the entry. | | | .ModTime | The UTC timestamp of an entry. | +| | .MimeType | The MIME type of an entry guessed from its name, or 'inode/directory'. | The server also makes the following functions available so that they can be used within the template. These functions help extend the options for dynamic @@ -244,8 +259,20 @@ htpasswd -B htpasswd user htpasswd -B htpasswd anotherUser ``` +Use the same hash format and cost for every entry in the file. If the +entries differ, the time taken to reject a wrong password can reveal +which usernames exist. + The password file can be updated while rclone is running. +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. Health checks or monitoring which use +unauthenticated OPTIONS requests will need to send credentials. The +exception is browser CORS preflight requests when `--allow-origin` +is set, which are answered without authentication as browsers never send +credentials with them. + Use `--realm` to set the authentication realm. Use `--salt` to change the password hashing salt from the default. @@ -313,7 +340,7 @@ at all times. The buffered data is bound to one open file and won't be shared. This flag is a upper limit for the used memory per open file. The -buffer will only use memory for data that is downloaded but not not +buffer will only use memory for data that is downloaded but not yet read. If the buffer is empty, only a small amount of memory will be used. @@ -368,7 +395,8 @@ 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 +after the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. 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 @@ -522,7 +550,7 @@ Rclone reads `--vfs-read-chunk-streams` chunks of size `--vfs-read-chunk-size` concurrently. The size for each read will stay constant. -This improves performance performance massively on high latency links +This improves performance massively on high latency links or very high bandwidth links to high performance object stores. Some experimentation will be needed to find the optimum values of @@ -765,9 +793,10 @@ This config generated must have this extra parameter - `_root` - root to use for the backend -And it may have this parameter +And it may have these parameters - `_obscure` - comma separated strings for parameters to obscure +- `_secret_access_key` - the secret for S3 access key auth (see below) If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -775,7 +804,8 @@ process (on STDIN) would look similar to this: ```json { "user": "me", - "pass": "mypassword" + "pass": "mypassword", + "client_ip": "192.168.1.1" } ``` @@ -785,10 +815,44 @@ proxy process (on STDIN) would look similar to this: ```json { "user": "me", - "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf" + "public_key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf", + "client_ip": "192.168.1.1" } ``` +If the client authenticated with an S3 access key (`rclone serve s3`), +the client never sends its secret, only a signature made with it, so +the input contains just the access key ID as the `user` with no `pass` +or `public_key`: + +```json +{ + "user": "AKIAIOSFODNN7EXAMPLE", + "client_ip": "192.168.1.1" +} +``` + +In this case the program must look up the secret access key for that +access key ID and return it in the `_secret_access_key` field of the +output. Rclone then uses that secret to verify the signature on the +request, refusing the request if it does not match. This means the +proxy program is the source of truth for both the credentials and the +backend they map to. If the program does not return +`_secret_access_key` or returns it empty the request is refused. + +The program's answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access +key ID is in constant use, so revoking an access key ID in the +program takes effect within 5 minutes. A rotated secret takes effect +on the first request signed with it. + +The `client_ip` key holds the IP address the client connected from, +without a port number. It can be used to restrict logins to certain +networks, or to log authentication attempts centrally. It is omitted if +the client has no IP address, for example when connecting over a unix +socket. Note that if rclone is behind a reverse proxy this will be the +address of the reverse proxy and not the original client. + And as an example return this on STDOUT ```json @@ -814,11 +878,20 @@ to make proxy to many different sftp backends, you could make the in the output and the user to `user`. For security you'd probably want to restrict the `host` to a limited list. -An internal cache of backends is keyed on the `user` and a hash of the -`pass` or `public_key`. This means that if a user's password or -public-key changes, or the proxy returns different config parameters -(eg a rotated `api_key`), a fresh backend will be created on the next -request rather than the cached one being reused. +An internal cache of backends is keyed on the `user`, the kind of +credential presented, a hash of the `pass` or `public_key`, and the +`client_ip`. This means that if a user's password or public-key +changes, the client connects from a new IP address, or the proxy +returns different config parameters (eg a rotated `api_key`), a fresh +backend will be created on the next request rather than the cached one +being reused. A backend created for a public key login is never +reused for a password login, so a public key cannot be sent as a +password to skip the program. + +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program +takes effect within 5 minutes. For `serve sftp` this applies to new +logins - an existing connection is not closed. This can be used to build general purpose proxies to any kind of backend that rclone supports. diff --git a/docs/content/commands/rclone_test_speed.md b/docs/content/commands/rclone_test_speed.md index 8a5cb9697..32f4d452d 100644 --- a/docs/content/commands/rclone_test_speed.md +++ b/docs/content/commands/rclone_test_speed.md @@ -16,7 +16,7 @@ This command runs a series of uploads and downloads to the remote, measuring and printing the speed of each test using varying file sizes and numbers of files. -Test time can be innaccurate with small file caps and large files. As it +Test time can be inaccurate with small file caps and large files. As it uses the results of an initial test to determine how many files to use in each subsequent test. diff --git a/docs/content/drive.md b/docs/content/drive.md index 4c9f07111..04f0f007f 100644 --- a/docs/content/drive.md +++ b/docs/content/drive.md @@ -1131,7 +1131,7 @@ 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. +need to use --ignore-size also. Properties: @@ -1838,7 +1838,7 @@ The result is a JSON array of matches, for example: "webViewLink": "https://drive.google.com/file/d/0AxBe_CDEF4zkGHI4d0FjYko2QkD/view?usp=drivesdk\u0026resourcekey=0-ABCDEFGHIXJQpIGqBJq3MC" } ] -``` +```console ### rescue diff --git a/docs/content/flags.md b/docs/content/flags.md index 335608f0a..7e933490b 100644 --- a/docs/content/flags.md +++ b/docs/content/flags.md @@ -98,6 +98,7 @@ Flags used for check commands. Flags for general networking and HTTP stuff. ``` + --allow-https-downgrade Follow redirects from HTTPS to HTTP (insecure) --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 @@ -121,7 +122,7 @@ Flags for general networking and HTTP stuff. --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.75.0") + --user-agent string Set the user-agent to a specified string (default "rclone/v1.76.0") ``` @@ -302,11 +303,6 @@ Flags to control the Remote Control API. --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --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 ``` @@ -368,8 +364,10 @@ Backend-only flags (these can be set in the config file also). --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -382,6 +380,7 @@ Backend-only flags (these can be set in the config file also). --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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as 'true' @@ -514,6 +513,12 @@ Backend-only flags (these can be set in the config file also). --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under "API keys" + --dosya-api-url string API base URL (default "https://api.dosya.dev") + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -736,6 +741,8 @@ Backend-only flags (these can be set in the config file also). --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don't use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn't end directories with / --http-url string URL of HTTP host to connect to --huaweidrive-auth-url string Auth server URL @@ -795,6 +802,17 @@ Backend-only flags (these can be set in the config file also). --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) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -880,6 +898,7 @@ Backend-only flags (these can be set in the config file also). --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal's tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default "v2.0") --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -894,7 +913,7 @@ Backend-only flags (these can be set in the config file also). --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don't store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -1089,7 +1108,7 @@ Backend-only flags (these can be set in the config file also). --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-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -1104,6 +1123,7 @@ Backend-only flags (these can be set in the config file also). --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -1166,7 +1186,8 @@ Backend-only flags (these can be set in the config file also). --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default "$USER") + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --storj-access-grant string Access grant --storj-api-key string API key --storj-description string Description of the remote @@ -1241,6 +1262,7 @@ Backend-only flags (these can be set in the config file also). --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id diff --git a/docs/content/http.md b/docs/content/http.md index c3c8beccd..9f4e36d8e 100644 --- a/docs/content/http.md +++ b/docs/content/http.md @@ -212,6 +212,13 @@ 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"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. When headers are set, a redirect from https to http is +refused as it would send them in cleartext, even with +--allow-https-downgrade. + Properties: - Config: headers @@ -265,6 +272,42 @@ Properties: - Type: bool - Default: false +#### --http-no-head-size + +Set the reported file size for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unknown file size. +Set this option to a non-negative value to report that size for every file, +including 0. Leave it unset (the default, shown as "off") to keep reporting +an unknown size. + +The configured size is authoritative. If it does not match the actual file +size, transfers may fail their size check and retry unless --ignore-size is +used. It can also make multi-thread transfers request incorrect ranges and +make mounted files unreadable past the reported size. + +Properties: + +- Config: no_head_size +- Env Var: RCLONE_HTTP_NO_HEAD_SIZE +- Type: SizeSuffix +- Default: off + +#### --http-no-head-time + +Set a default modification time for --http-no-head. + +When HEAD requests are disabled, rclone normally reports an unset modification +time. Set this option to report the specified time for every file instead. +Changing the configured time later makes every file appear modified to a sync. + +Properties: + +- Config: no_head_time +- Env Var: RCLONE_HTTP_NO_HEAD_TIME +- Type: Time +- Default: off + #### --http-description Description of the remote. diff --git a/docs/content/local.md b/docs/content/local.md index 433a48774..68ee79948 100644 --- a/docs/content/local.md +++ b/docs/content/local.md @@ -583,6 +583,13 @@ deduplicated by default (i.e. having two identical files does not consume more storage than having just one.) However, for use cases where data redundancy is preferable, --local-no-clone can be used to disable cloning and force "deep" copies. +Cloning also preserves macOS-specific metadata such as extended attributes, +which a normal copy does not, so this metadata is lost when cloning is disabled. + +If the destination file already exists, cloning replaces it with a new file, +even with --inplace, so hard links to it are broken. Use --local-no-clone to +update existing files in place. + Currently, cloning is only supported when using APFS on macOS (support for other platforms may be added in the future.) @@ -672,10 +679,10 @@ Properties: Make out-of-space errors fatal during transfers. -When enabled, an ENOSPC error during a write returns a fatal error so -that rclone aborts rather than retrying the operation. Useful for -backup scripts that should halt loudly on a full disk rather than spin -retrying. +When enabled, an out of space error while writing, creating a directory, +or creating a file returns a fatal error so that rclone aborts rather +than retrying the operation. Useful for backup scripts that should halt +loudly on a full disk rather than spin retrying. Properties: @@ -773,8 +780,10 @@ Metadata is supported on files and directories. When restoring metadata with `--metadata` rclone applies the "mode", "uid" and "gid" from the source. These come from the source remote which may not be trusted, so restoring metadata as root from an -untrusted source can change file ownership and is not recommended. The -setuid, setgid and sticky bits are not restored by default - see the +untrusted source can change file ownership and is not recommended. A +user other than root keeps its own uid and sets the gid only to a group +it is a member of, as rsync does. The setuid, setgid and sticky bits are +not restored by default - see the `--local-metadata-restore-special-bits` flag. Here are the possible system metadata items for the local backend. diff --git a/docs/content/onedrive.md b/docs/content/onedrive.md index 88884003c..e3df69c9d 100644 --- a/docs/content/onedrive.md +++ b/docs/content/onedrive.md @@ -528,7 +528,7 @@ Properties: The tenant URL for non-admin OneDrive access. -Set this to your SharePoint tenant URL to use the SharePoint v2.0 API +Set this to your SharePoint tenant URL to use the SharePoint API endpoint instead of the standard Microsoft Graph API. This allows accessing business OneDrive without admin consent. @@ -545,6 +545,22 @@ Properties: - Type: string - Required: false +#### --onedrive-tenant-api-version + +The SharePoint API version to use with tenant_url. + +Set this to the SharePoint API version matching the browser-extracted +access token. For example, use v2.1 with a driveAccessTokenV21 token. + +This only applies when tenant_url is set. + +Properties: + +- Config: tenant_api_version +- Env Var: RCLONE_ONEDRIVE_TENANT_API_VERSION +- Type: string +- Default: "v2.0" + #### --onedrive-chunk-size Chunk size to upload files with - must be multiple of 320k (327,680 bytes). @@ -671,7 +687,7 @@ Properties: Remove all versions on modifying operations. -Onedrive for business creates versions when rclone uploads new files +Onedrive 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. @@ -679,9 +695,6 @@ 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: @@ -697,8 +710,7 @@ Permanently delete files on removal. Normally files will get sent to the recycle bin on deletion. Setting this flag causes them to be permanently deleted. Use with care. -OneDrive personal accounts do not support the permanentDelete API, -it only applies to OneDrive for Business and SharePoint document libraries. +This works with OneDrive for Business, SharePoint document libraries, and OneDrive personal accounts, including free accounts. Properties: @@ -744,12 +756,17 @@ Properties: - Creates a read-write link to the item. - "embed" - Creates an embeddable link to the item. + - Only available in OneDrive personal. #### --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. +At the time of writing this works with OneDrive for Business and +OneDrive personal paid accounts. + +OneDrive personal free accounts can't set a password or an expiry time +(with --expire) on links. Properties: @@ -848,21 +865,12 @@ Setting this flag speeds up these things greatly: rclone size onedrive: rclone rc vfs/refresh recursive=true -**However** the delta listing API **only** works at the root of the -drive. If you use it not at the root then it recurses from the root -and discards all the data that is not under the directory you asked -for. So it will be correct but may not be very efficient. - -This is why this flag is not set as the default. - -As a rule of thumb if nearly all of your data is under rclone's root -directory (the `root/directory` in `onedrive:root/directory`) then -using this flag will be a big performance win. If your data is -mostly not under the root then using this flag will be a big -performance loss. - -It is recommended if you are mounting your onedrive at the root -(or near the root when using crypt) and using rclone `rc vfs/refresh`. +Rclone asks for the delta listing of the directory being listed. If +the drive only supports delta listings at the root of the drive (as +some older OneDrive for Business and SharePoint drives do) then +rclone lists from the root and discards all the data that is not +under the directory you asked for. So it will be correct but may not +be very efficient. Properties: @@ -1060,7 +1068,7 @@ Here are the possible system metadata items for the onedrive backend. | Name | Help | Type | Example | Read Only | |------|------|------|---------|-----------| -| btime | Time of file birth (creation) with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | N | +| btime | Time of file birth (creation) with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | N | | content-type | The MIME type of the file. | string | text/plain | **Y** | | created-by-display-name | Display name of the user that created the item. | string | John Doe | **Y** | | created-by-id | ID of the user that created the item. | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | @@ -1069,14 +1077,14 @@ Here are the possible system metadata items for the onedrive backend. | last-modified-by-display-name | Display name of the user that last modified the item. | string | John Doe | **Y** | | last-modified-by-id | ID of the user that last modified the item. | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | malware-detected | Whether OneDrive has detected that the item contains malware. | boolean | true | **Y** | -| mtime | Time of last modification with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | N | +| mtime | Time of last modification with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | N | | package-type | If present, indicates that this item is a package instead of a folder or file. Packages are treated like files in some contexts and folders in others. | string | oneNote | **Y** | | permissions | Permissions in a JSON dump of OneDrive format. Enable with --onedrive-metadata-permissions. Properties: id, grantedTo, grantedToIdentities, invitation, inheritedFrom, link, roles, shareId | JSON | {} | N | | shared-by-id | ID of the user that shared the item (if shared). | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | shared-owner-id | ID of the owner of the shared item (if shared). | string | 48d31887-5fad-4d73-a9f5-3c356e68a038 | **Y** | | shared-scope | If shared, indicates the scope of how the item is shared: anonymous, organization, or users. | string | users | **Y** | -| shared-time | Time when the item was shared, with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | -| utime | Time of upload with S accuracy (mS for OneDrive Personal). | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | +| shared-time | Time when the item was shared, with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | +| utime | Time of upload with S accuracy. | RFC 3339 | 2006-01-02T15:04:05Z | **Y** | See the [metadata](/docs/#metadata) docs for more info. diff --git a/docs/content/oracleobjectstorage/_index.md b/docs/content/oracleobjectstorage/_index.md index 5398e1e9a..09b05ccd5 100644 --- a/docs/content/oracleobjectstorage/_index.md +++ b/docs/content/oracleobjectstorage/_index.md @@ -610,7 +610,7 @@ Properties: - Config: encoding - Env Var: RCLONE_OOS_ENCODING - Type: Encoding -- Default: Slash,InvalidUtf8,Dot +- Default: Slash,CrLf,InvalidUtf8,Dot #### --oos-leave-parts-on-error diff --git a/docs/content/pikpak.md b/docs/content/pikpak.md index bb374c9d8..d446fd21e 100644 --- a/docs/content/pikpak.md +++ b/docs/content/pikpak.md @@ -196,6 +196,8 @@ Properties: Files bigger than this will be cached on disk to calculate hash if required. +Files of unknown size are always cached on disk. + Properties: - Config: hash_memory_limit diff --git a/docs/content/rc.md b/docs/content/rc.md index 309437921..33aa23777 100644 --- a/docs/content/rc.md +++ b/docs/content/rc.md @@ -1225,6 +1225,7 @@ Returns the following values: "totalTransfers": total number of transfers in the group, "transferTime" : total time spent on running jobs, "transfers": number of transferred files, + "updatedDirs": number of directories updated (modtime or metadata set), "transferring": an array of currently active file transfers: [ { @@ -1490,8 +1491,6 @@ Results: - runningIds - array of integer job ids that are running - finishedIds - array of integer job ids that are finished -**Authentication is not required for this call.** - ### job/status: Reads the status of the job ID {#job-status} Parameters: @@ -1512,8 +1511,6 @@ Results: - output - output of the job as would have been returned if called synchronously - progress - output of the progress related to the underlying job -**Authentication is not required for this call.** - ### job/stop: Stop the running job {#job-stop} Parameters: @@ -1843,6 +1840,25 @@ This command does not have a command line equivalent so use this instead: rclone rc --loopback operations/fsinfo fs=remote: +### operations/getfile: Get a single file into a JSON response. {#operations-getfile} + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:path/to/file" or "drive:path/to/dir" +- remote - (optional) a path within that remote e.g. "file.txt" +- offset - (optional) start reading at offset N (or from end if negative) (default 0) +- count - (optional) only read N bytes (default -1) +- head - (optional) only read the first N bytes (default 0) +- tail - (optional) only read the last N bytes (default 0) +- maxSize - (optional) maximum size limit in bytes (can only lower the built-in maximum) (default 2097152 / 2MiB) +- base64 - (optional) if true, returns the file contents base64-encoded (default false) + +Returns: + +- result - contents of the file as string or base64-encoded string + +For streaming file content over HTTP with Range support, use the --rc-serve flag instead. + ### operations/hashsum: Produces a hashsum file for all the objects in the path. {#operations-hashsum} Produces a hash file for all the objects in the path using the hash @@ -1917,6 +1933,26 @@ Example: See the [hashsum](/commands/rclone_hashsum/) command for more information on the above. +### operations/index: Write static directory listings into a remote {#operations-index} + +This takes the following parameters: + +- fs - a remote name string e.g. "drive:" +- opt - a dictionary of options to control the indexing (optional) + - output - list of listings to write in each directory as "NAME=FORMAT" (default ["index.html=html"]) + - rules - which directories get listings, e.g. {"ExcludeRule": ["/private/**"]} + - maxDepth - only make listings this many directories deep (default -1 for no limit) + - linkIndex - link to "dir/NAME" rather than "dir/" + - dirTime - how to work out directory times: "newest", "dir" or "none" + - noModTime - don't show modification times + - rewrite - write every listing even if it is unchanged + - changed - list of changed paths for a partial run, directories ending in "/" + - changedFrom - list of files of changed paths, one per line + - changedCombined - list of files in the sync --combined report format + - changedMaxDirs - do a full run if a partial one would list more directories than this + +See the [index](/commands/rclone_index/) command for more information on the above. + ### operations/list: List the given remote and path in JSON format {#operations-list} This takes the following parameters: @@ -2136,85 +2172,6 @@ And this sets NOTICE level logs (normal without -v) rclone rc options/set --json '{"main": {"LogLevel": "NOTICE"}}' -### pluginsctl/addPlugin: Add a plugin using url {#pluginsctl-addPlugin} - -Used for adding a plugin to the webgui. - -This takes the following parameters: - -- url - http url of the github repo where the plugin is hosted (http://github.com/rclone/rclone-webui-react). - -Example: - - rclone rc pluginsctl/addPlugin - -### pluginsctl/getPluginsForType: Get plugins with type criteria {#pluginsctl-getPluginsForType} - -This shows all possible plugins by a mime type. - -This takes the following parameters: - -- type - supported mime type by a loaded plugin e.g. (video/mp4, audio/mp3). -- pluginType - filter plugins based on their type e.g. (DASHBOARD, FILE_HANDLER, TERMINAL). - -Returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, usually running on a different server. - -Example: - - rclone rc pluginsctl/getPluginsForType type=video/mp4 - -### pluginsctl/listPlugins: Get the list of currently loaded plugins {#pluginsctl-listPlugins} - -This allows you to get the currently enabled plugins and their details. - -This takes no parameters and returns: - -- loadedPlugins - list of current production plugins. -- testPlugins - list of temporarily loaded development plugins, usually running on a different server. - -E.g. - - rclone rc pluginsctl/listPlugins - -### pluginsctl/listTestPlugins: Show currently loaded test plugins {#pluginsctl-listTestPlugins} - -Allows listing of test plugins with the rclone.test set to true in package.json of the plugin. - -This takes no parameters and returns: - -- loadedTestPlugins - list of currently available test plugins. - -E.g. - - rclone rc pluginsctl/listTestPlugins - -### pluginsctl/removePlugin: Remove a loaded plugin {#pluginsctl-removePlugin} - -This allows you to remove a plugin using it's name. - -This takes parameters: - -- name - name of the plugin in the format `author`/`plugin_name`. - -E.g. - - rclone rc pluginsctl/removePlugin name=rclone/video-plugin - -### pluginsctl/removeTestPlugin: Remove a test plugin {#pluginsctl-removeTestPlugin} - -This allows you to remove a plugin using it's name. - -This takes the following parameters: - -- name - name of the plugin in the format `author`/`plugin_name`. - -Example: - - rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react - ### rc/error: This returns an error {#rc-error} This returns an error with the input as part of its error string. @@ -2389,6 +2346,8 @@ This takes the following parameters: - path1 (required) - (string) a remote directory string e.g. `drive:path1` - path2 (required) - (string) a remote directory string e.g. `drive:path2` - dryRun - (bool) dry-run mode +- maxDelete - (int) Safety check on maximum percentage of deleted files +allowed. If exceeded, the bisync run will abort. (default: 50%) - backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote. - backupDir2 - (string) --backup-dir for Path2. Must be a non-overlapping path on @@ -2418,6 +2377,8 @@ unavailable. (warning: may be slow and use lots of data!) using with --verbose - ignoreListingChecksum - (bool) Do not use checksums for listings (add --ignore- checksum to additionally skip post-copy checksum checks) +- maxDeleteRenamesAware - (bool) Exclude tracked renames from the --max-delete +safety check (requires --track-renames) - maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) - noCleanup - (bool) Retain working files (useful for troubleshooting and @@ -2451,7 +2412,27 @@ This takes the following parameters: - srcFs - a remote name string e.g. "drive:src" for the source - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-copy (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-copy + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [copy](/commands/rclone_copy/) command for more information on the above. @@ -2463,7 +2444,27 @@ This takes the following parameters: - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set - deleteEmptySrcDirs - delete empty src directories if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-move (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-move + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [move](/commands/rclone_move/) command for more information on the above. @@ -2474,7 +2475,27 @@ This takes the following parameters: - srcFs - a remote name string e.g. "drive:src" for the source - dstFs - a remote name string e.g. "drive:dst" for the destination - createEmptySrcDirs - create empty src directories on destination if set +- combined - make a combined report of changes (default false) +- missingOnSrc - report all files missing from the source (default false) +- missingOnDst - report all files missing from the destination (default false) +- match - report all matching files (default false) +- differ - report all non-matching files (default false) +- error - report all files with errors (hashing or reading) (default false) +- destAfter - report all files that exist on the destination post-sync (default false) +Returns: + +- combined - array of strings of combined report of changes +- missingOnSrc - array of strings of all files missing from the source +- missingOnDst - array of strings of all files missing from the destination +- match - array of strings of all matching files +- differ - array of strings of all non-matching files +- error - array of strings of all files with errors (hashing or reading) +- destAfter - array of strings of all files that exist on the destination post-sync + +Each report is only returned if its parameter is set to true. If the +operation fails the reports are only available if it was run with +`_async`, as part of the job output. See the [sync](/commands/rclone_sync/) command for more information on the above. diff --git a/docs/content/s3.md b/docs/content/s3.md index e26320760..aa3b7c7b3 100644 --- a/docs/content/s3.md +++ b/docs/content/s3.md @@ -975,7 +975,7 @@ mode from COMPLIANCE to GOVERNANCE while preserving the original retention date: ### Standard options -Here are the Standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). +Here are the Standard options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). #### --s3-provider @@ -994,8 +994,12 @@ Properties: - Alibaba Cloud Object Storage System (OSS) formerly Aliyun - "ArvanCloud" - Arvan Cloud Object Storage (AOS) + - "Autonomys" + - Autonomys Auto Drive - "BizflyCloud" - Bizfly Cloud Simple Storage + - "Cellar" + - Clever Cloud Cellar Object Storage - "Ceph" - Ceph Object Storage - "ChinaMobile" @@ -1030,6 +1034,8 @@ Properties: - IDrive e2 - "ImpossibleCloud" - Impossible Cloud Object Storage + - "Infomaniak" + - Infomaniak Swiss Backup - "Intercolo" - Intercolo Object Storage - "IONOS" @@ -1048,6 +1054,8 @@ Properties: - MEGA S4 Object Storage - "Minio" - Minio Object Storage + - "Neon" + - Neon Object Storage - "Netease" - Netease Object Storage (NOS) - "Outscale" @@ -1064,6 +1072,8 @@ Properties: - RackCorp Object Storage - "Rclone" - Rclone S3 Server + - "RelAix" + - RelAix.Storage - "Scaleway" - Scaleway Object Storage - "Scality" @@ -1149,7 +1159,7 @@ Properties: - Config: region - Env Var: RCLONE_S3_REGION -- Provider: AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,LyveCloud,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other +- Provider: AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,LyveCloud,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -1284,6 +1294,9 @@ Properties: - "eu-central" - EU Central - Provider: Fastly + - "eu-central-1" + - EU Central 1 + - Provider: Fastly - "eu-south-1" - EU South 1 - Provider: Fastly @@ -1335,50 +1348,104 @@ Properties: - "nbg1" - Nuremberg - Provider: Hetzner + - "af-north-1" + - AF-Cairo + - Provider: HuaweiOBS - "af-south-1" - AF-Johannesburg - Provider: HuaweiOBS + - "ap-southeast-1" + - CN-Hong Kong + - Provider: HuaweiOBS - "ap-southeast-2" - AP-Bangkok - Provider: HuaweiOBS - "ap-southeast-3" - AP-Singapore - Provider: HuaweiOBS - - "cn-east-3" - - CN East-Shanghai1 + - "ap-southeast-4" + - AP-Jakarta + - Provider: HuaweiOBS + - "ap-southeast-5" + - AP-Manila - Provider: HuaweiOBS - "cn-east-2" - CN East-Shanghai2 - Provider: HuaweiOBS + - "cn-east-3" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "cn-east-4" + - CN East-Qingdao + - Provider: HuaweiOBS + - "cn-east-5" + - CN East-Suzhou + - Provider: HuaweiOBS - "cn-north-1" - CN North-Beijing1 - Provider: HuaweiOBS + - "cn-north-2" + - CN North-Beijing2 + - Provider: HuaweiOBS - "cn-north-4" - CN North-Beijing4 - Provider: HuaweiOBS + - "cn-north-9" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "cn-north-11" + - CN North-Hebei + - Provider: HuaweiOBS + - "cn-north-12" + - CN North-Hohhot + - Provider: HuaweiOBS - "cn-south-1" - CN South-Guangzhou - Provider: HuaweiOBS - - "ap-southeast-1" - - CN-Hong Kong + - "cn-south-2" + - CN South-Shenzhen - Provider: HuaweiOBS - - "sa-argentina-1" - - LA-Buenos Aires1 + - "cn-south-4" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "sa-peru-1" - - LA-Lima1 + - "cn-southwest-2" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "cn-southwest-3" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "eu-west-101" + - EU-Dublin + - Provider: HuaweiOBS + - "la-north-2" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "la-south-2" + - LA-Santiago + - Provider: HuaweiOBS + - "me-east-1" + - ME-Riyadh - Provider: HuaweiOBS - "na-mexico-1" - LA-Mexico City1 - Provider: HuaweiOBS - - "sa-chile-1" - - LA-Santiago2 + - "ru-northwest-2" + - RU-Moscow2 + - Provider: HuaweiOBS + - "sa-argentina-1" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "sa-brazil-1" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "ru-northwest-2" - - RU-Moscow2 + - "sa-chile-1" + - LA-Santiago2 + - Provider: HuaweiOBS + - "sa-peru-1" + - LA-Lima1 + - Provider: HuaweiOBS + - "tr-west-1" + - TR-Istanbul - Provider: HuaweiOBS - "eu-central-2" - Frankfurt, Germany @@ -1401,6 +1468,10 @@ Properties: - "us-east-1" - New York, USA - Provider: ImpossibleCloud + - "us-east-1" + - Default region for compatibility. + - All data is stored in Switzerland. + - Provider: Infomaniak - "de-fra" - Frankfurt, Germany - Provider: Intercolo @@ -1422,6 +1493,18 @@ Properties: - "us-central-1" - Lenexa, USA - Provider: IONOS + - "us-east-1" + - US East (N. Virginia) + - Provider: Neon,Petabox,Rabata + - "us-east-2" + - US East (Ohio) + - Provider: Neon + - "eu-central-1" + - Europe (Frankfurt) + - Provider: Neon,Petabox + - "ap-southeast-1" + - Asia Pacific (Singapore) + - Provider: Neon,Petabox - "eu-west-2" - Paris, France - Provider: Outscale @@ -1479,15 +1562,6 @@ Properties: - "rbx-archive" - Roubaix, France (Cold Archive) - Provider: OVHcloud - - "us-east-1" - - US East (N. Virginia) - - Provider: Petabox,Rabata - - "eu-central-1" - - Europe (Frankfurt) - - Provider: Petabox - - "ap-southeast-1" - - Asia Pacific (Singapore) - - Provider: Petabox - "me-south-1" - Middle East (Bahrain) - Provider: Petabox @@ -1595,6 +1669,9 @@ Properties: - "pl-waw" - Warsaw, Poland - Provider: Scaleway + - "it-mil" + - Milan, Italy + - Provider: Scaleway - "ru-1" - St. Petersburg - Provider: Selectel,Servercore @@ -1661,7 +1738,7 @@ Properties: - Config: endpoint - Env Var: RCLONE_S3_ENDPOINT -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,Autonomys,BizflyCloud,Cellar,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,RelAix,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -1747,12 +1824,18 @@ Properties: - "s3.ir-tbz-sh1.arvanstorage.ir" - Tabriz Iran (Shahriar) - Provider: ArvanCloud + - "s3.auto-drive.autonomys.xyz" + - Auto Drive mainnet S3 endpoint + - Provider: Autonomys - "hn.ss.bfcplatform.vn" - Hanoi endpoint - Provider: BizflyCloud - "hcm.ss.bfcplatform.vn" - Ho Chi Minh endpoint - Provider: BizflyCloud + - "cellar-c2.services.clever-cloud.com" + - Paris, France + - Provider: Cellar - "eos-wuxi-1.cmecloud.cn" - The default endpoint - a good choice if you are unsure. - East China (Suzhou) @@ -1889,6 +1972,9 @@ Properties: - "eu-central.object.fastlystorage.app" - EU Central - Provider: Fastly + - "eu-central-1.object.fastlystorage.app" + - EU Central 1 + - Provider: Fastly - "eu-south-1.object.fastlystorage.app" - EU South 1 - Provider: Fastly @@ -1943,50 +2029,104 @@ Properties: - "nbg1.your-objectstorage.com" - Nuremberg - Provider: Hetzner + - "obs.af-north-1.myhuaweicloud.com" + - AF-Cairo + - Provider: HuaweiOBS - "obs.af-south-1.myhuaweicloud.com" - AF-Johannesburg - Provider: HuaweiOBS + - "obs.ap-southeast-1.myhuaweicloud.com" + - CN-Hong Kong + - Provider: HuaweiOBS - "obs.ap-southeast-2.myhuaweicloud.com" - AP-Bangkok - Provider: HuaweiOBS - "obs.ap-southeast-3.myhuaweicloud.com" - AP-Singapore - Provider: HuaweiOBS - - "obs.cn-east-3.myhuaweicloud.com" - - CN East-Shanghai1 + - "obs.ap-southeast-4.myhuaweicloud.com" + - AP-Jakarta + - Provider: HuaweiOBS + - "obs.ap-southeast-5.myhuaweicloud.com" + - AP-Manila - Provider: HuaweiOBS - "obs.cn-east-2.myhuaweicloud.com" - CN East-Shanghai2 - Provider: HuaweiOBS + - "obs.cn-east-3.myhuaweicloud.com" + - CN East-Shanghai1 + - Provider: HuaweiOBS + - "obs.cn-east-4.myhuaweicloud.com" + - CN East-Qingdao + - Provider: HuaweiOBS + - "obs.cn-east-5.myhuaweicloud.com" + - CN East-Suzhou + - Provider: HuaweiOBS - "obs.cn-north-1.myhuaweicloud.com" - CN North-Beijing1 - Provider: HuaweiOBS + - "obs.cn-north-2.myhuaweicloud.com" + - CN North-Beijing2 + - Provider: HuaweiOBS - "obs.cn-north-4.myhuaweicloud.com" - CN North-Beijing4 - Provider: HuaweiOBS + - "obs.cn-north-9.myhuaweicloud.com" + - CN North-Ulanqab + - Provider: HuaweiOBS + - "obs.cn-north-11.myhuaweicloud.com" + - CN North-Hebei + - Provider: HuaweiOBS + - "obs.cn-north-12.myhuaweicloud.com" + - CN North-Hohhot + - Provider: HuaweiOBS - "obs.cn-south-1.myhuaweicloud.com" - CN South-Guangzhou - Provider: HuaweiOBS - - "obs.ap-southeast-1.myhuaweicloud.com" - - CN-Hong Kong + - "obs.cn-south-2.myhuaweicloud.com" + - CN South-Shenzhen - Provider: HuaweiOBS - - "obs.sa-argentina-1.myhuaweicloud.com" - - LA-Buenos Aires1 + - "obs.cn-south-4.myhuaweicloud.com" + - CN South-Guangzhou-InvitationOnly - Provider: HuaweiOBS - - "obs.sa-peru-1.myhuaweicloud.com" - - LA-Lima1 + - "obs.cn-southwest-2.myhuaweicloud.com" + - CN Southwest-Guiyang1 + - Provider: HuaweiOBS + - "obs.cn-southwest-3.myhuaweicloud.com" + - CN Southwest-Chongqing + - Provider: HuaweiOBS + - "obs.eu-west-101.myhuaweicloud.eu" + - EU-Dublin + - Provider: HuaweiOBS + - "obs.la-north-2.myhuaweicloud.com" + - LA-Mexico City2 + - Provider: HuaweiOBS + - "obs.la-south-2.myhuaweicloud.com" + - LA-Santiago + - Provider: HuaweiOBS + - "obs.me-east-1.myhuaweicloud.com" + - ME-Riyadh - Provider: HuaweiOBS - "obs.na-mexico-1.myhuaweicloud.com" - LA-Mexico City1 - Provider: HuaweiOBS - - "obs.sa-chile-1.myhuaweicloud.com" - - LA-Santiago2 + - "obs.ru-northwest-2.myhuaweicloud.com" + - RU-Moscow2 + - Provider: HuaweiOBS + - "obs.sa-argentina-1.myhuaweicloud.com" + - LA-Buenos Aires1 - Provider: HuaweiOBS - "obs.sa-brazil-1.myhuaweicloud.com" - LA-Sao Paulo1 - Provider: HuaweiOBS - - "obs.ru-northwest-2.myhuaweicloud.com" - - RU-Moscow2 + - "obs.sa-chile-1.myhuaweicloud.com" + - LA-Santiago2 + - Provider: HuaweiOBS + - "obs.sa-peru-1.myhuaweicloud.com" + - LA-Lima1 + - Provider: HuaweiOBS + - "obs.tr-west-1.myhuaweicloud.com" + - TR-Istanbul - Provider: HuaweiOBS - "s3.us.cloud-object-storage.appdomain.cloud" - US Cross Region Endpoint @@ -2195,6 +2335,18 @@ Properties: - "us-east-1.storage.impossibleapi.net" - New York, USA - Provider: ImpossibleCloud + - "s3.swiss-backup01.infomaniak.com" + - Swiss Backup Location 01 + - Provider: Infomaniak + - "s3.swiss-backup02.infomaniak.com" + - Swiss Backup Location 02 + - Provider: Infomaniak + - "s3.swiss-backup03.infomaniak.com" + - Swiss Backup Location 03 + - Provider: Infomaniak + - "s3.swiss-backup04.infomaniak.com" + - Swiss Backup Location 04 + - Provider: Infomaniak - "de-fra.i3storage.com" - Frankfurt, Germany - Provider: Intercolo @@ -2299,38 +2451,47 @@ Properties: - "br-ne1.magaluobjects.com" - Fortaleza, CE (BR), br-ne1 - Provider: Magalu - - "s3.eu-amsterdam.megas4.com" - - Mega S4 Amsterdam + - "s3.eu-luxembourg-1.megas4.com" + - Mega S4 Luxembourg 1 - Provider: Mega - - "s3.eu-luxembourg.megas4.com" - - Mega S4 Luxembourg + - "s3.eu-luxembourg-2.megas4.com" + - Mega S4 Luxembourg 2 - Provider: Mega - - "s3.eu-paris.megas4.com" - - Mega S4 Paris + - "s3.eu-amsterdam-1.megas4.com" + - Mega S4 Amsterdam 1 - Provider: Mega - - "s3.eu-barcelona.megas4.com" - - Mega S4 Barcelona + - "s3.eu-amsterdam-2.megas4.com" + - Mega S4 Amsterdam 2 - Provider: Mega - - "s3.ca-montreal.megas4.com" - - Mega S4 Montreal + - "s3.eu-paris-1.megas4.com" + - Mega S4 Paris 1 - Provider: Mega - - "s3.ca-vancouver.megas4.com" - - Mega S4 Vancouver + - "s3.eu-paris-2.megas4.com" + - Mega S4 Paris 2 - Provider: Mega - - "s3.ap-tokyo.megas4.com" - - Mega S4 Tokyo + - "s3.eu-barcelona-1.megas4.com" + - Mega S4 Barcelona 1 - Provider: Mega - - "s3.eu-central-1.s4.mega.io" - - Mega S4 eu-central-1 (Amsterdam, legacy) + - "s3.eu-barcelona-2.megas4.com" + - Mega S4 Barcelona 2 - Provider: Mega - - "s3.eu-central-2.s4.mega.io" - - Mega S4 eu-central-2 (Bettembourg, legacy) + - "s3.ca-montreal-1.megas4.com" + - Mega S4 Montreal 1 - Provider: Mega - - "s3.ca-central-1.s4.mega.io" - - Mega S4 ca-central-1 (Montreal, legacy) + - "s3.ca-montreal-2.megas4.com" + - Mega S4 Montreal 2 - Provider: Mega - - "s3.ca-west-1.s4.mega.io" - - Mega S4 ca-west-1 (Vancouver, legacy) + - "s3.ca-vancouver-1.megas4.com" + - Mega S4 Vancouver 1 + - Provider: Mega + - "s3.ca-vancouver-2.megas4.com" + - Mega S4 Vancouver 2 + - Provider: Mega + - "s3.ap-tokyo-1.megas4.com" + - Mega S4 Tokyo 1 + - Provider: Mega + - "s3.ap-tokyo-2.megas4.com" + - Mega S4 Tokyo 2 - Provider: Mega - "oos.eu-west-2.outscale.com" - Outscale EU West 2 (Paris) @@ -2497,6 +2658,12 @@ Properties: - "nz.s3.rackcorp.com" - Auckland (New Zealand) Endpoint - Provider: RackCorp + - "s3-gw1.relaix.net" + - Aachen-1, Germany + - Provider: RelAix + - "s3-gw2.relaix.net" + - Aachen-2, Germany + - Provider: RelAix - "s3.nl-ams.scw.cloud" - Amsterdam Endpoint - Provider: Scaleway @@ -2506,6 +2673,9 @@ Properties: - "s3.pl-waw.scw.cloud" - Warsaw Endpoint - Provider: Scaleway + - "s3.it-mil.scw.cloud" + - Milan Endpoint + - Provider: Scaleway - "localhost:8333" - SeaweedFS S3 localhost - Provider: SeaweedFS @@ -2742,7 +2912,7 @@ Properties: - Config: location_constraint - Env Var: RCLONE_S3_LOCATION_CONSTRAINT -- Provider: AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,Infomaniak,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -3123,36 +3293,36 @@ Properties: - Config: acl - Env Var: RCLONE_S3_ACL -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: - "private" - Owner gets FULL_CONTROL. - No one else has access rights (default). - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other - "public-read" - Owner gets FULL_CONTROL. - The AllUsers group gets READ access. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - "public-read-write" - Owner gets FULL_CONTROL. - The AllUsers group gets READ and WRITE access. - Granting this on a bucket is generally not recommended. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "authenticated-read" - Owner gets FULL_CONTROL. - The AuthenticatedUsers group gets READ access. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-read" - Object owner gets FULL_CONTROL. - Bucket owner gets READ access. - If you specify this canned ACL when creating a bucket, Amazon S3 ignores it. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "bucket-owner-full-control" - 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. - - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other + - Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other - "private" - Owner gets FULL_CONTROL. - No one else has access rights (default). @@ -3346,7 +3516,7 @@ Properties: ### Advanced options -Here are the Advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). +Here are the Advanced options specific to s3 (Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, ZeroServices, Other). #### --s3-bucket-acl @@ -3365,7 +3535,7 @@ Properties: - Config: bucket_acl - Env Var: RCLONE_S3_BUCKET_ACL -- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +- Provider: AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other - Type: string - Required: false - Examples: @@ -3403,7 +3573,7 @@ Properties: - Config: sse_customer_algorithm - Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -3416,13 +3586,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key-base64. Properties: - Config: sse_customer_key - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -3433,13 +3603,13 @@ Properties: 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. +Alternatively you can provide --s3-sse-customer-key. Properties: - Config: sse_customer_key_base64 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -3457,7 +3627,7 @@ Properties: - Config: sse_customer_key_md5 - Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5 -- Provider: AWS,Ceph,ChinaMobile,Minio +- Provider: AWS,Cellar,Ceph,ChinaMobile,Minio - Type: string - Required: false - Examples: @@ -4547,6 +4717,47 @@ info on how to pass options and arguments. These can be run on a running backend using the rc command [backend/command](/rc/#backend-command). +### link + +Generate a signed link with response header overrides. + +```console +rclone backend link remote: [options] [+] +``` + +This command generates a signed download link for one file, with optional +overrides for the HTTP response headers. Pass the file path as a separate +argument, relative to the remote path. + +Usage examples: + +```console +rclone backend link s3:bucket path/to/file -o expire=1h +rclone backend link s3:bucket path/to/file -o response-expires="Thu, 01 Jan 1970 00:00:00 GMT" +rclone backend link s3:bucket path/to/file -o response-content-disposition='attachment; filename="download.txt"' +``` + +The link expires after 7 days by default. Use `-o expire=1h` to change +its lifetime. Durations must be at least 1 second; values above 7 days are +limited to 7 days, as with `rclone link`. + +The `response-expires` option sets the HTTP Expires response header, +not the lifetime of the signed link. It must be an HTTP date, such as +`Thu, 01 Jan 1970 00:00:00 GMT`. + +The overrides are included in the signature and must not be changed in the +returned URL. They do not modify the object's stored metadata. + +Options: + +- "expire": How long the link will be valid (default 7d, maximum 7d). +- "response-cache-control": Set the Cache-Control response header. +- "response-content-disposition": Set the Content-Disposition response header. +- "response-content-encoding": Set the Content-Encoding response header. +- "response-content-language": Set the Content-Language response header. +- "response-content-type": Set the Content-Type response header. +- "response-expires": Set the Expires response header to an HTTP date. + ### restore Restore objects from GLACIER or INTELLIGENT-TIERING archive tier. diff --git a/docs/content/sftp.md b/docs/content/sftp.md index 1fff363c7..52280c2b1 100644 --- a/docs/content/sftp.md +++ b/docs/content/sftp.md @@ -920,7 +920,7 @@ Properties: - Config: encoding - Env Var: RCLONE_SFTP_ENCODING - Type: Encoding -- Default: Slash,Del,Ctl,Dot +- Default: Slash,Dot #### --sftp-set-modtime @@ -1169,6 +1169,34 @@ Properties: - Type: bool - Default: false +#### --sftp-multithread-upload + +Set this to use multi-thread (multi-connection) uploads. + +Normally rclone uploads a single large file over one SFTP connection. +With this set rclone uploads large files over several SFTP connections +at once (one per chunk), which greatly improves throughput on high +latency links, the same way multi-thread downloads already work. Each +connection writes a different, non-overlapping byte range of the file, +so this requires a server that allows several handles to the same file +with writes at arbitrary offsets, which OpenSSH does. + +This is off by default because many SFTP servers only accept sequential +writes (for example some object storage backed SFTP gateways) and would +fail large uploads with "truncate failed" or "invalid offset" style +errors. + +This is ignored (uploads stay single-threaded) when +--sftp-disable-concurrent-writes or --sftp-connections is in use. + + +Properties: + +- Config: multithread_upload +- Env Var: RCLONE_SFTP_MULTITHREAD_UPLOAD +- Type: bool +- Default: false + #### --sftp-idle-timeout Max time before closing idle connections. diff --git a/docs/content/smb.md b/docs/content/smb.md index a95ca4d33..e76b267b5 100644 --- a/docs/content/smb.md +++ b/docs/content/smb.md @@ -137,12 +137,14 @@ Properties: SMB username. +Leave blank to use the current user name. + Properties: - Config: user - Env Var: RCLONE_SMB_USER - Type: string -- Default: "$USER" +- Required: false #### --smb-port @@ -219,6 +221,23 @@ Properties: Here are the Advanced options specific to smb (SMB / CIFS). +#### --smb-workstation + +Workstation name sent in NTLM authentication. + +The NetBIOS name sent as the client workstation in the NTLM AUTHENTICATE +message. Some servers (e.g. domain-joined Windows servers with per-account +workstation restrictions or NTLM allow-lists) require this to match a +specific name. Leave blank to send no workstation name (the default). + + +Properties: + +- Config: workstation +- Env Var: RCLONE_SMB_WORKSTATION +- Type: string +- Required: false + #### --smb-idle-timeout Max time before closing idle connections. diff --git a/docs/content/swift.md b/docs/content/swift.md index 1124424c7..e61837a34 100644 --- a/docs/content/swift.md +++ b/docs/content/swift.md @@ -328,6 +328,14 @@ Properties: - OVH - "https://authenticate.ain.net" - Blomp Cloud Storage + - "https://swiss-backup01.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 01 + - "https://swiss-backup02.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 02 + - "https://swiss-backup03.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 03 + - "https://swiss-backup04.infomaniak.com/identity/v3" + - Infomaniak Swiss Backup Location 04 #### --swift-user-id diff --git a/docs/content/webdav.md b/docs/content/webdav.md index 8e59bc952..72cfe5c94 100644 --- a/docs/content/webdav.md +++ b/docs/content/webdav.md @@ -249,6 +249,13 @@ 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"'. +The headers are only sent to the host in the configured URL. If the +server redirects to another host (including a subdomain or a different +port) the headers are not sent to it, or to any further hop in that +redirect chain. The exception is the directory listing and file +download requests when auth_redirect is set, as that keeps all +credentials across redirects. + Properties: diff --git a/docs/content/yandex.md b/docs/content/yandex.md index d1558dc28..5b248702c 100644 --- a/docs/content/yandex.md +++ b/docs/content/yandex.md @@ -278,6 +278,26 @@ Properties: - Type: Duration - Default: 0s +#### --yandex-app-folder + +Use the application folder as the root. + +If you registered your own OAuth application with Yandex with only +the "Application Folder" permission (cloud_api:disk.app_folder) +instead of full disk access, then rclone needs to address paths with +the "app:/" prefix instead of the usual "disk:/" prefix, otherwise +all requests fail with a 403 Forbidden error. + +Set this to true if your OAuth token only has access to the +application folder. + +Properties: + +- Config: app_folder +- Env Var: RCLONE_YANDEX_APP_FOLDER +- Type: bool +- Default: false + #### --yandex-description Description of the remote. diff --git a/lib/transform/transform.md b/lib/transform/transform.md index 5e6bab81f..573669bf0 100644 --- a/lib/transform/transform.md +++ b/lib/transform/transform.md @@ -218,12 +218,12 @@ rclone convmv "stories/The Quick Brown Fox!.txt" --name-transform "all,command=e ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{YYYYMMDD}" -// Output: stories/The Quick Brown Fox!-20260731 +// Output: stories/The Quick Brown Fox!-20261106 ``` ```console rclone convmv "stories/The Quick Brown Fox!" --name-transform "date=-{macfriendlytime}" -// Output: stories/The Quick Brown Fox!-2026-07-31 0455PM +// Output: stories/The Quick Brown Fox!-2026-11-06 0235PM ``` ```console diff --git a/rclone.1 b/rclone.1 index 38b3c5526..557777f8f 100644 --- a/rclone.1 +++ b/rclone.1 @@ -15,7 +15,7 @@ . ftr VB CB . ftr VBI CBI .\} -.TH "rclone" "1" "Jul 31, 2026" "User Manual" "" +.TH "rclone" "1" "Nov 06, 2026" "User Manual" "" .hy .SH NAME .PP @@ -54,6 +54,7 @@ Available commands: gui Open the web based GUI. hashsum Produces a hashsum file for all the objects in the path. help Show help for rclone commands, flags and backends. + index Write static directory listings into a remote. link Generate public link to file/folder. listremotes List all the remotes in the config file and defined in environment variables. ls List the objects in the path with size and path. @@ -240,6 +241,8 @@ Alibaba Cloud (Aliyun) Object Storage System (OSS) .IP \[bu] 2 Amazon S3 .IP \[bu] 2 +Autonomys Auto Drive +.IP \[bu] 2 Bizfly Cloud Simple Storage .IP \[bu] 2 Backblaze B2 @@ -254,6 +257,8 @@ Arvan Cloud Object Storage (AOS) .IP \[bu] 2 Citrix ShareFile .IP \[bu] 2 +Clever Cloud Cellar +.IP \[bu] 2 Cloudflare R2 .IP \[bu] 2 Cloudinary @@ -264,6 +269,8 @@ DigitalOcean Spaces .IP \[bu] 2 Digi Storage .IP \[bu] 2 +dosya.dev +.IP \[bu] 2 Dreamhost .IP \[bu] 2 Drime @@ -330,10 +337,16 @@ IDrive e2 .IP \[bu] 2 Impossible Cloud .IP \[bu] 2 +Infomaniak Swiss Backup (S3) +.IP \[bu] 2 +Infomaniak Swiss Backup (Swift) +.IP \[bu] 2 Intercolo Object Storage .IP \[bu] 2 IONOS Cloud .IP \[bu] 2 +kDrive +.IP \[bu] 2 Koofr .IP \[bu] 2 Leviia Object Storage @@ -364,6 +377,8 @@ Microsoft OneDrive .IP \[bu] 2 Minio .IP \[bu] 2 +Neon Object Storage +.IP \[bu] 2 Nextcloud .IP \[bu] 2 Blomp Cloud Storage @@ -412,6 +427,8 @@ Rackspace Cloud Files .IP \[bu] 2 Rclone Serve S3 .IP \[bu] 2 +RelAix.Storage +.IP \[bu] 2 rsync.net .IP \[bu] 2 Scaleway @@ -814,12 +831,6 @@ status (https://repology.org/badge/vertical-allrepos/rclone.svg?columns=3)] (htt The rclone developers maintain a docker image for rclone (https://hub.docker.com/r/rclone/rclone). .PP -\f[B]Note:\f[R] We also now offer a paid version of rclone with -enterprise-grade security and zero CVEs through our partner -SecureBuild (https://securebuild.com/blog/introducing-securebuild). -If you are interested, check out their website and the Rclone -SecureBuild Image (https://securebuild.com/images/rclone). -.PP These images are built as part of the release process based on a minimal Alpine Linux. .PP @@ -961,7 +972,7 @@ Its current version is as below. .SS Source installation .PP Make sure you have git and Go (https://golang.org/) installed. -Go version 1.25 or newer is required, the latest release is recommended. +Go version 1.26 or newer is required, the latest release is recommended. You can get it from your package manager, or download it from golang.org/dl (https://golang.org/dl/). Then you can run the following: @@ -1399,6 +1410,8 @@ DigitalOcean Spaces (https://rclone.org/s3/#digitalocean-spaces) .IP \[bu] 2 Digi Storage (https://rclone.org/koofr/#digi-storage) .IP \[bu] 2 +dosya.dev (https://rclone.org/dosya/) +.IP \[bu] 2 Drime (https://rclone.org/drime/) .IP \[bu] 2 Dropbox (https://rclone.org/dropbox/) @@ -1442,6 +1455,8 @@ Internxt (https://rclone.org/internxt/) .IP \[bu] 2 Jottacloud (https://rclone.org/jottacloud/) .IP \[bu] 2 +kDrive (https://rclone.org/kdrive/) +.IP \[bu] 2 Koofr (https://rclone.org/koofr/) .IP \[bu] 2 Linkbox (https://rclone.org/linkbox/) @@ -2901,6 +2916,11 @@ Note that \f[V]ls\f[R] and \f[V]lsl\f[R] recurse by default - use The other list commands \f[V]lsd\f[R],\f[V]lsf\f[R],\f[V]lsjson\f[R] do not recurse by default - use \f[V]-R\f[R] to make them recurse. .PP +On the bucket-based remotes (e.g. +s3, gcs, b2) a directory is a key prefix rather than an object, so a +listing without \f[V]-R\f[R] shows each prefix as one directory entry +and not the objects stored under it. +.PP List commands prefer a recursive method that uses more memory but fewer transactions by default. Use \f[V]--disable ListR\f[R] to suppress the behavior. @@ -2983,9 +3003,9 @@ Does not recurse by default. Use the \f[V]-R\f[R] flag to recurse. .PP 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, E.g. +not), the modification time (if known, the \f[V]--default-time\f[R] if +not), the number of objects in the directory (if known, -1 if not) and +the name of the directory, E.g. .IP .nf \f[C] @@ -3034,6 +3054,11 @@ Note that \f[V]ls\f[R] and \f[V]lsl\f[R] recurse by default - use The other list commands \f[V]lsd\f[R],\f[V]lsf\f[R],\f[V]lsjson\f[R] do not recurse by default - use \f[V]-R\f[R] to make them recurse. .PP +On the bucket-based remotes (e.g. +s3, gcs, b2) a directory is a key prefix rather than an object, so a +listing without \f[V]-R\f[R] shows each prefix as one directory entry +and not the objects stored under it. +.PP List commands prefer a recursive method that uses more memory but fewer transactions by default. Use \f[V]--disable ListR\f[R] to suppress the behavior. @@ -3153,6 +3178,11 @@ Note that \f[V]ls\f[R] and \f[V]lsl\f[R] recurse by default - use The other list commands \f[V]lsd\f[R],\f[V]lsf\f[R],\f[V]lsjson\f[R] do not recurse by default - use \f[V]-R\f[R] to make them recurse. .PP +On the bucket-based remotes (e.g. +s3, gcs, b2) a directory is a key prefix rather than an object, so a +listing without \f[V]-R\f[R] shows each prefix as one directory entry +and not the objects stored under it. +.PP List commands prefer a recursive method that uses more memory but fewer transactions by default. Use \f[V]--disable ListR\f[R] to suppress the behavior. @@ -4462,6 +4492,7 @@ rclone bisync remote1:path1 remote2:path2 [flags] --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -4853,6 +4884,8 @@ Output completion script for a given shell. .PP Generates a shell completion script for rclone. Run with \f[V]--help\f[R] to list the supported shells. +Enum-valued flags such as \f[V]--log-level\f[R] and +\f[V]--vfs-cache-mode\f[R] also complete their supported values. .SS Options .IP .nf @@ -6393,14 +6426,14 @@ rclone convmv \[dq]stories/The Quick Brown Fox!.txt\[dq] --name-transform \[dq]a .nf \f[C] rclone convmv \[dq]stories/The Quick Brown Fox!\[dq] --name-transform \[dq]date=-{YYYYMMDD}\[dq] -// Output: stories/The Quick Brown Fox!-20260731 +// Output: stories/The Quick Brown Fox!-20261106 \f[R] .fi .IP .nf \f[C] rclone convmv \[dq]stories/The Quick Brown Fox!\[dq] --name-transform \[dq]date=-{macfriendlytime}\[dq] -// Output: stories/The Quick Brown Fox!-2026-07-31 0340PM +// Output: stories/The Quick Brown Fox!-2026-11-06 0220PM \f[R] .fi .IP @@ -7213,7 +7246,10 @@ Remove a single file from remote. Remove a single file from remote. Unlike \f[V]delete\f[R] it cannot be used to remove a directory and it doesn\[aq]t obey include/exclude filters - if the specified file exists, -it will always be removed. +it will always be removed from its original location. +.PP +The \f[V]--backup-dir\f[R] and \f[V]--suffix\f[R] flags are honored when +set. .IP .nf \f[C] @@ -7231,6 +7267,27 @@ rclone deletefile remote:path [flags] Options shared with other commands are described next. See the global flags page (https://rclone.org/flags/) for global options not listed here. +.SS Sync Options +.PP +Flags used for sync commands +.IP +.nf +\f[C] + --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 + --fix-case Force rename of case insensitive dest to match source + --ignore-errors Delete even if there are I/O errors + --list-cutoff int To save memory, sort directory listings on disk above this threshold (default 1000000) + --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 \[dq]hash\[dq]) +\f[R] +.fi .SS Important Options .PP Important flags useful for most commands @@ -7518,11 +7575,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --rc-web-fetch-url string URL to fetch the releases for webgui (default \[dq]https://api.github.com/repos/rclone/rclone-webui-react/releases/latest\[dq]) - --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\[aq]t open the browser automatically - --rc-web-gui-update Check and update to latest version of web gui \f[R] .fi .SS See Also @@ -7567,6 +7619,7 @@ Supported hashes are: - blake3 - xxh3 - xxh128 +- crc32c \f[R] .fi .PP @@ -7647,6 +7700,421 @@ Flags for listing directories .IP \[bu] 2 rclone (https://rclone.org/commands/rclone/) - Show help for rclone commands, flags and backends. +.SH rclone index +.PP +Write static directory listings into a remote. +.SS Synopsis +.PP +Write a directory listing, \f[V]index.html\f[R] by default, into every +directory of \f[V]remote:path\f[R] so that it can be browsed when it is +served as a static website, for example from an S3 website endpoint, a +bucket behind a CDN, or a plain web server. +.PP +This works like \f[V]rclone sync\f[R]: each run makes the minimum +changes needed to bring the listings into line with the files. +Listings which haven\[aq]t changed aren\[aq]t rewritten, so a run with +no changes makes no uploads. +The listings never show the listing files themselves. +.PP +\f[B]Note\f[R] that \f[V]rclone index\f[R] treats every file with an +output name (\f[V]index.html\f[R] by default) in the directories it +indexes as its own, and will overwrite it or delete it without checking +where it came from. +To protect a hand-written index, exclude its directory with +\f[V]--index-exclude\f[R]. +.SS Outputs +.PP +\f[V]--output NAME=FORMAT\f[R] says what to write in each directory and +can be repeated. +NAME is the file name, and FORMAT is one of the built-in formats below +or the path of a Go template file. +.PP +.TS +tab(@); +lw(19.3n) lw(26.6n) lw(24.1n). +T{ +Format +T}@T{ +MIME type +T}@T{ +Contents +T} +_ +T{ +\f[V]html\f[R] +T}@T{ +\f[V]text/html; charset=utf-8\f[R] +T}@T{ +The HTML listing from the \f[V]rclone serve http\f[R] template +T} +T{ +\f[V]json\f[R] +T}@T{ +\f[V]application/json\f[R] +T}@T{ +JSON in the format of \f[V]rclone lsjson\f[R] for the directory +T} +T{ +\f[V]caddy\f[R] +T}@T{ +\f[V]application/json\f[R] +T}@T{ +JSON in the format of Caddy\[aq]s \f[V]file_server browse\f[R] +T} +.TE +.PP +The default is \f[V]--output index.html=html\f[R]. +The built-in formats are templates, so they can be printed with +\f[V]--print-template FORMAT\f[R], copied and changed. +Outputs whose name ends in \f[V].html\f[R] or \f[V].htm\f[R] are +rendered with Go\[aq]s \f[V]html/template\f[R] and everything else with +\f[V]text/template\f[R], which has a \f[V]json\f[R] function for safe +encoding. +The template data is that of \f[V]rclone serve http\f[R] with +\f[V].Static\f[R] set (see rclone serve +http (https://rclone.org/commands/rclone_serve_http/#template)). +Outputs are uploaded with the MIME type of the built-in format, or that +of the output name\[aq]s extension for template outputs, since static +hosts serve the stored type. +.SS Filters +.PP +The normal filters (\f[V]--include\f[R], \f[V]--exclude\f[R], +\f[V]--filter-from\f[R], \f[V]--max-age\f[R], ...) +control what appears in the listings. +An excluded file isn\[aq]t listed, and an excluded directory isn\[aq]t +listed or indexed. +.PP +The \f[V]--index-include\f[R], \f[V]--index-exclude\f[R], +\f[V]--index-filter\f[R] flags and their \f[V]-from\f[R] variants +control which directories get listings. +They take the same patterns as the normal filters, applied to directory +paths, and \f[V]--index-include\f[R] implies excluding all other +directories. +A directory excluded here still appears in its parent\[aq]s listing, but +nothing is written or deleted inside it, so it can have its own +hand-made index. +\f[V]--index-max-depth\f[R] limits how deep listings are written. +.SS Modification times +.PP +Listings show the modification time of each file. +When using the s3, oracleobjectstorage and swift backends rclone stores +the modification time as metadata which isn\[aq]t returned by the bucket +listing, so \f[B]every object needs a HEAD request\f[R], which can mean +thousands of transactions per run. +Avoid this with one of: +.IP \[bu] 2 +\f[V]--use-server-modtime\f[R] uses the time the object was uploaded +instead, which is what the web server sends as \f[V]Last-Modified\f[R]. +Recommended for s3 unless the original modification times matter. +.IP \[bu] 2 +\f[V]--no-modtime\f[R] shows no times at all, which is the cheapest +option. +.PP +\f[V]--dir-time\f[R] sets the time shown for directories: +.IP \[bu] 2 +\f[V]newest\f[R] (default): the newest modification time of anything +below the directory. +Note that this means one new file changes the listing of every directory +above it. +.IP \[bu] 2 +\f[V]dir\f[R]: the directory\[aq]s own modification time. +On most file systems writing a listing into a directory changes its +time, so this can take more than one run to settle. +.IP \[bu] 2 +\f[V]none\f[R]: no time. +.PP +The listing files are given the newest modification time below their +directory, so the \f[V]Last-Modified\f[R] header of a listing is +meaningful. +.SS Links +.PP +Directory links are \f[V]dir/\f[R] by default, which works on hosts that +serve index documents: S3 website endpoints, GCS and Azure static +websites, nginx and Apache, and R2 custom domains with a URL rewrite +rule. +For hosts that don\[aq]t (plain S3 REST URLs, B2 friendly URLs) use +\f[V]--link-index\f[R] to make directory links \f[V]dir/index.html\f[R] +instead. +.SS Partial runs +.PP +After a sync which changed a known set of files there is no need to walk +the whole remote. +Tell \f[V]rclone index\f[R] what changed and it re-indexes only the +directories that could be affected: +.IP +.nf +\f[C] +rclone index r2:bucket --changed v1.76.0/ --changed version.txt +rclone index r2:bucket --changed-from changes.txt +rclone sync ./public r2:bucket --exclude index.html --combined - | rclone index r2:bucket --changed-combined - +\f[R] +.fi +.IP \[bu] 2 +\f[V]--changed PATH\f[R] names a changed file or directory relative to +\f[V]remote:path\f[R] and can be repeated. +A directory, given with a trailing slash or found to be one, is +re-indexed completely. +.IP \[bu] 2 +\f[V]--changed-from FILE\f[R] reads one path per line exactly as +written. +.IP \[bu] 2 +\f[V]--changed-combined FILE\f[R] reads the \f[V]--combined\f[R] report +of \f[V]rclone sync\f[R]: lines starting with \f[V]+\f[R], \f[V]-\f[R], +\f[V]*\f[R] and \f[V]!\f[R] are changes and \f[V]=\f[R] lines are +ignored. +.IP \[bu] 2 +Both files accept \f[V]-\f[R] for standard input and all three flags can +be combined. +.PP +A changed file re-indexes its directory and every directory above it, +since their times and their listings can change too, and on bucket based +storage a directory can cease to exist. +Each of those is one directory listing. +With \f[V]--dir-time newest\f[R] the directories above also need the +times of their unchanged subdirectories, which are read from the +modification times of those subdirectories\[aq] listings at the cost of +one small request each. +With \f[V]--use-server-modtime\f[R] that is the time the listing was +written rather than the time of the newest file, so partial runs can +drift by the indexing delay until the next full run. +\f[V]--dir-time dir\f[R] and \f[V]none\f[R] need no such lookups. +.PP +Directories which are neither named nor above a named path are left +alone, as are directories deeper than \f[V]--max-depth\f[R]. +An empty change list does nothing, and naming the root does a full run. +There is no automatic cutover to a full run since that depends on the +size of the whole remote: a partial run costs one listing per affected +directory, a full run one request per thousand objects on S3-like +storage or one per directory elsewhere. +The number of directories a partial run will list is logged with +\f[V]-v\f[R], and \f[V]--changed-max-dirs\f[R] makes it fall back to a +full run above that number. +A good pattern is a partial run after each upload and a scheduled full +run to catch anything missed. +.SS Site icon +.PP +The listings carry no icon or branding of their own. +To give a site an icon, upload a \f[V]favicon.ico\f[R] to the root of +the remote, which browsers fetch from there for every page. +Exclude it from the listings with \f[V]--exclude /favicon.ico\f[R] so it +stays on the site but isn\[aq]t shown. +.SS Deleting listings +.PP +On backends which can\[aq]t have empty directories (S3, B2 and other +bucket-based storage) a directory only exists while it has files in it. +Once the last file in a directory has been removed its listing is +deleted, since the directory only existed because of it. +Backends which can have empty directories keep a listing for each empty +directory. +.SS Using with sync +.PP +A sync from a local build deletes files on the destination which +aren\[aq]t in the source, which includes the listings. +Either index the local build before syncing: +.IP +.nf +\f[C] +rclone index ./public +rclone sync ./public r2:bucket +\f[R] +.fi +.PP +or exclude the listings from the sync so it neither uploads nor deletes +them, then index the remote: +.IP +.nf +\f[C] +rclone sync ./public r2:bucket --exclude index.html +rclone index r2:bucket +\f[R] +.fi +.SS Examples +.PP +An S3 website bucket, using the upload times so no object needs a HEAD +request: +.IP +.nf +\f[C] +rclone index s3:my-site --use-server-modtime +\f[R] +.fi +.PP +HTML and rclone JSON listings, setting \f[V]Cache-Control\f[R] on them: +.IP +.nf +\f[C] +rclone index s3:bucket --output index.html=html --output index.json=json --header-upload \[dq]Cache-Control: max-age=300\[dq] +\f[R] +.fi +.PP +Only list release files, and don\[aq]t write listings under +\f[V]/private\f[R]: +.IP +.nf +\f[C] +rclone index r2:bucket --include \[dq]*.{zip,deb,rpm}\[dq] --index-exclude \[dq]/private/**\[dq] +\f[R] +.fi +.PP +A B2 bucket served from its friendly URLs: +.IP +.nf +\f[C] +rclone index b2:bucket --link-index +\f[R] +.fi +.PP +See what would change: +.IP +.nf +\f[C] +rclone index r2:bucket --dry-run -v +\f[R] +.fi +.PP +Listings which haven\[aq]t changed aren\[aq]t normally rewritten, so +changing the headers or metadata set on them needs +\f[V]--index-rewrite\f[R], which writes every listing a run would render +whether it changed or not: +.IP +.nf +\f[C] +rclone index r2:bucket --index-rewrite --header-upload \[dq]Cache-Control: max-age=3600\[dq] +\f[R] +.fi +.IP +.nf +\f[C] +rclone index remote:path [flags] +\f[R] +.fi +.SS Options +.IP +.nf +\f[C] + --changed stringArray Only re-index directories affected by this changed path (directories end in /) + --changed-combined stringArray Read changed paths from a sync --combined report (use - to read from stdin) + --changed-from stringArray Read changed paths from file, one per line (use - to read from stdin) + --changed-max-dirs int Do a full index if a partial one would list more than this many directories (0 for no limit) + --dir-time newest|dir|none How to work out the time shown for a directory (default newest) + -h, --help help for index + --index-exclude stringArray Don\[aq]t write listings in directories matching pattern + --index-exclude-from stringArray Read directory exclude patterns from file (use - to read from stdin) + --index-filter stringArray Add a rule for which directories get listings + --index-filter-from stringArray Read directory rules from a file (use - to read from stdin) + --index-include stringArray Only write listings in directories matching pattern + --index-include-from stringArray Read directory include patterns from file (use - to read from stdin) + --index-max-depth int Only write listings this many directories deep (-1 for no limit) (default -1) + --index-rewrite Write every listing even if it is unchanged + --link-index Link to dir/NAME rather than dir/ for hosts without index documents + --no-modtime Don\[aq]t show modification times in listings + --output stringArray Listing to write in each directory as NAME=FORMAT (default [index.html=html]) + --print-template string Print the built-in template for FORMAT and exit +\f[R] +.fi +.PP +Options shared with other commands are described next. +See the global flags page (https://rclone.org/flags/) for global options +not listed here. +.SS Copy Options +.PP +Flags for anything which can copy a file +.IP +.nf +\f[C] + --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 server-side paths during comparison + --copy-dest stringArray Implies --compare-dest but also copies files from paths into destination + --cutoff-mode HARD|SOFT|CAUTIOUS 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 modtime or checksum + -I, --ignore-times Don\[aq]t skip items that match size and time - transfer all unconditionally + --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 + -l, --links Translate symlinks to/from regular files with a \[aq].rclonelink\[aq] extension + --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) + --name-transform stringArray Transform paths during the copy process + --no-check-dest Don\[aq]t check the destination, copy regardless + --no-traverse Don\[aq]t traverse destination file system on copy + --no-update-dir-modtime Don\[aq]t update directory modification times + --no-update-modtime Don\[aq]t update destination modtime if files identical + --order-by string Instructions on how to order the transfers, e.g. \[aq]size,descending\[aq] + --partial-suffix string Add partial-suffix to temporary file name when --inplace is not used (default \[dq].partial\[dq]) + --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 modtime 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 +\f[R] +.fi +.SS Important Options +.PP +Important flags useful for most commands +.IP +.nf +\f[C] + -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) +\f[R] +.fi +.SS Filter Options +.PP +Flags for filtering directory listings +.IP +.nf +\f[C] + --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) + --files-from0 stringArray Read list of source-file names from file using NUL as separator (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) + --hash-filter string Partition filenames by hash k/n or randomly \[at]/n + --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) +\f[R] +.fi +.SS Listing Options +.PP +Flags for listing directories +.IP +.nf +\f[C] + --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 +\f[R] +.fi +.SS See Also +.IP \[bu] 2 +rclone (https://rclone.org/commands/rclone/) - Show help for rclone +commands, flags and backends. .SH rclone link .PP Generate public link to file/folder. @@ -7942,6 +8410,11 @@ Note that \f[V]ls\f[R] and \f[V]lsl\f[R] recurse by default - use The other list commands \f[V]lsd\f[R],\f[V]lsf\f[R],\f[V]lsjson\f[R] do not recurse by default - use \f[V]-R\f[R] to make them recurse. .PP +On the bucket-based remotes (e.g. +s3, gcs, b2) a directory is a key prefix rather than an object, so a +listing without \f[V]-R\f[R] shows each prefix as one directory entry +and not the objects stored under it. +.PP List commands prefer a recursive method that uses more memory but fewer transactions by default. Use \f[V]--disable ListR\f[R] to suppress the behavior. @@ -8155,6 +8628,11 @@ Note that \f[V]ls\f[R] and \f[V]lsl\f[R] recurse by default - use The other list commands \f[V]lsd\f[R],\f[V]lsf\f[R],\f[V]lsjson\f[R] do not recurse by default - use \f[V]-R\f[R] to make them recurse. .PP +On the bucket-based remotes (e.g. +s3, gcs, b2) a directory is a key prefix rather than an object, so a +listing without \f[V]-R\f[R] shows each prefix as one directory entry +and not the objects stored under it. +.PP List commands prefer a recursive method that uses more memory but fewer transactions by default. Use \f[V]--disable ListR\f[R] to suppress the behavior. @@ -8592,6 +9070,13 @@ For details, see vfs-case-sensitivity (https://rclone.org/commands/rclone_mount/#vfs-case-sensitivity). .SS NFS mount .PP +For macOS (and other platforms where this path is supported), prefer the +dedicated rclone nfsmount (https://rclone.org/commands/rclone_nfsmount/) +command. +It starts the NFS server and performs the mount for you. +\f[V]rclone mount\f[R] itself still uses FUSE (macFUSE/FUSE-T) and does +not switch to NFS via a flag. +.PP This method spins up an NFS server using serve nfs (https://rclone.org/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. @@ -8993,8 +9478,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -9056,7 +9541,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -9229,8 +9715,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -10319,6 +10805,13 @@ For details, see vfs-case-sensitivity (https://rclone.org/commands/rclone_mount/#vfs-case-sensitivity). .SS NFS mount .PP +For macOS (and other platforms where this path is supported), prefer the +dedicated rclone nfsmount (https://rclone.org/commands/rclone_nfsmount/) +command. +It starts the NFS server and performs the mount for you. +\f[V]rclone mount\f[R] itself still uses FUSE (macFUSE/FUSE-T) and does +not switch to NFS via a flag. +.PP This method spins up an NFS server using serve nfs (https://rclone.org/commands/rclone_serve_nfs/) command and mounts it to the specified mountpoint. @@ -10721,8 +11214,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -10784,7 +11277,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -10957,8 +11451,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -11622,6 +12116,15 @@ responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format \f[V]Header-Name: value\f[R]. .PP +\f[V]--rc-allow-origin\f[R] enables cross-origin (CORS) requests from +browsers by setting the \f[V]Access-Control-Allow-Origin\f[R] header on +every response to the origin given, e.g. +\f[V]--rc-allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +needing authentication as browsers never send credentials with them. +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP \f[V]--rc-baseurl\f[R] controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used \f[V]--rc-baseurl \[dq]/rclone\[dq]\f[R] then rclone would @@ -11744,6 +12247,51 @@ T}@T{ Currently unused. T} T{ +\&.Path +T}@T{ +T}@T{ +The path of the directory from the root with leading and trailing +slashes, e.g. +\[aq]/dir/\[aq]. +T} +T{ +\&.IsRoot +T}@T{ +T}@T{ +Boolean for if this is the root directory. +T} +T{ +\&.UpLink +T}@T{ +T}@T{ +The link to the parent directory. +T} +T{ +\&.Static +T}@T{ +T}@T{ +Boolean for if the listing is being written as a static page by rclone +index. +T} +T{ +\&.NumDirs +T}@T{ +T}@T{ +The number of directories in the listing. +T} +T{ +\&.NumFiles +T}@T{ +T}@T{ +The number of files in the listing. +T} +T{ +\&.TotalSize +T}@T{ +T}@T{ +The total size in bytes of the files in the listing. +T} +T{ \&.Breadcrumb T}@T{ T}@T{ @@ -11797,6 +12345,13 @@ T}@T{ T}@T{ The UTC timestamp of an entry. T} +T{ +T}@T{ +\&.MimeType +T}@T{ +The MIME type of an entry guessed from its name, or +\[aq]inode/directory\[aq]. +T} .TE .PP The server also makes the following functions available so that they can @@ -11870,8 +12425,21 @@ htpasswd -B htpasswd anotherUser \f[R] .fi .PP +Use the same hash format and cost for every entry in the file. +If the entries differ, the time taken to reject a wrong password can +reveal which usernames exist. +.PP The password file can be updated while rclone is running. .PP +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. +Health checks or monitoring which use unauthenticated OPTIONS requests +will need to send credentials. +The exception is browser CORS preflight requests when +\f[V]--rc-allow-origin\f[R] is set, which are answered without +authentication as browsers never send credentials with them. +.PP Use \f[V]--rc-realm\f[R] to set the authentication realm. .PP Use \f[V]--rc-salt\f[R] to change the password hashing salt from the @@ -11925,11 +12493,6 @@ Flags to control the Remote Control API --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --rc-web-fetch-url string URL to fetch the releases for webgui (default \[dq]https://api.github.com/repos/rclone/rclone-webui-react/releases/latest\[dq]) - --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\[aq]t open the browser automatically - --rc-web-gui-update Check and update to latest version of web gui \f[R] .fi .SS See Also @@ -12263,8 +12826,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -12326,7 +12889,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -12499,8 +13063,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -13028,8 +13592,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -13091,7 +13655,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -13264,8 +13829,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -13726,8 +14291,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -13789,7 +14354,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -13962,8 +14528,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -14243,9 +14809,12 @@ This config generated must have this extra parameter .IP \[bu] 2 \f[V]_root\f[R] - root to use for the backend .PP -And it may have this parameter +And it may have these parameters .IP \[bu] 2 \f[V]_obscure\f[R] - comma separated strings for parameters to obscure +.IP \[bu] 2 +\f[V]_secret_access_key\f[R] - the secret for S3 access key auth (see +below) .PP If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -14254,7 +14823,8 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]pass\[dq]: \[dq]mypassword\[dq] + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi @@ -14266,11 +14836,51 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq] + \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi .PP +If the client authenticated with an S3 access key +(\f[V]rclone serve s3\f[R]), the client never sends its secret, only a +signature made with it, so the input contains just the access key ID as +the \f[V]user\f[R] with no \f[V]pass\f[R] or \f[V]public_key\f[R]: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]AKIAIOSFODNN7EXAMPLE\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +In this case the program must look up the secret access key for that +access key ID and return it in the \f[V]_secret_access_key\f[R] field of +the output. +Rclone then uses that secret to verify the signature on the request, +refusing the request if it does not match. +This means the proxy program is the source of truth for both the +credentials and the backend they map to. +If the program does not return \f[V]_secret_access_key\f[R] or returns +it empty the request is refused. +.PP +The program\[aq]s answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. +A rotated secret takes effect on the first request signed with it. +.PP +The \f[V]client_ip\f[R] key holds the IP address the client connected +from, without a port number. +It can be used to restrict logins to certain networks, or to log +authentication attempts centrally. +It is omitted if the client has no IP address, for example when +connecting over a unix socket. +Note that if rclone is behind a reverse proxy this will be the address +of the reverse proxy and not the original client. +.PP And as an example return this on STDOUT .IP .nf @@ -14301,12 +14911,21 @@ the \f[V]user\f[R] be \f[V]user\[at]example.com\f[R] and then set the For security you\[aq]d probably want to restrict the \f[V]host\f[R] to a limited list. .PP -An internal cache of backends is keyed on the \f[V]user\f[R] and a hash -of the \f[V]pass\f[R] or \f[V]public_key\f[R]. -This means that if a user\[aq]s password or public-key changes, or the -proxy returns different config parameters (eg a rotated -\f[V]api_key\f[R]), a fresh backend will be created on the next request -rather than the cached one being reused. +An internal cache of backends is keyed on the \f[V]user\f[R], the kind +of credential presented, a hash of the \f[V]pass\f[R] or +\f[V]public_key\f[R], and the \f[V]client_ip\f[R]. +This means that if a user\[aq]s password or public-key changes, the +client connects from a new IP address, or the proxy returns different +config parameters (eg a rotated \f[V]api_key\f[R]), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. +.PP +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. +For \f[V]serve sftp\f[R] this applies to new logins - an existing +connection is not closed. .PP This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -14453,6 +15072,15 @@ responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format \f[V]Header-Name: value\f[R]. .PP +\f[V]--allow-origin\f[R] enables cross-origin (CORS) requests from +browsers by setting the \f[V]Access-Control-Allow-Origin\f[R] header on +every response to the origin given, e.g. +\f[V]--allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +needing authentication as browsers never send credentials with them. +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP \f[V]--baseurl\f[R] controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used \f[V]--baseurl \[dq]/rclone\[dq]\f[R] then rclone would @@ -14573,6 +15201,51 @@ T}@T{ Currently unused. T} T{ +\&.Path +T}@T{ +T}@T{ +The path of the directory from the root with leading and trailing +slashes, e.g. +\[aq]/dir/\[aq]. +T} +T{ +\&.IsRoot +T}@T{ +T}@T{ +Boolean for if this is the root directory. +T} +T{ +\&.UpLink +T}@T{ +T}@T{ +The link to the parent directory. +T} +T{ +\&.Static +T}@T{ +T}@T{ +Boolean for if the listing is being written as a static page by rclone +index. +T} +T{ +\&.NumDirs +T}@T{ +T}@T{ +The number of directories in the listing. +T} +T{ +\&.NumFiles +T}@T{ +T}@T{ +The number of files in the listing. +T} +T{ +\&.TotalSize +T}@T{ +T}@T{ +The total size in bytes of the files in the listing. +T} +T{ \&.Breadcrumb T}@T{ T}@T{ @@ -14626,6 +15299,13 @@ T}@T{ T}@T{ The UTC timestamp of an entry. T} +T{ +T}@T{ +\&.MimeType +T}@T{ +The MIME type of an entry guessed from its name, or +\[aq]inode/directory\[aq]. +T} .TE .PP The server also makes the following functions available so that they can @@ -14698,8 +15378,21 @@ htpasswd -B htpasswd anotherUser \f[R] .fi .PP +Use the same hash format and cost for every entry in the file. +If the entries differ, the time taken to reject a wrong password can +reveal which usernames exist. +.PP The password file can be updated while rclone is running. .PP +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. +Health checks or monitoring which use unauthenticated OPTIONS requests +will need to send credentials. +The exception is browser CORS preflight requests when +\f[V]--allow-origin\f[R] is set, which are answered without +authentication as browsers never send credentials with them. +.PP Use \f[V]--realm\f[R] to set the authentication realm. .PP Use \f[V]--salt\f[R] to change the password hashing salt from the @@ -14777,8 +15470,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -14840,7 +15533,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -15013,8 +15707,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -15294,9 +15988,12 @@ This config generated must have this extra parameter .IP \[bu] 2 \f[V]_root\f[R] - root to use for the backend .PP -And it may have this parameter +And it may have these parameters .IP \[bu] 2 \f[V]_obscure\f[R] - comma separated strings for parameters to obscure +.IP \[bu] 2 +\f[V]_secret_access_key\f[R] - the secret for S3 access key auth (see +below) .PP If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -15305,7 +16002,8 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]pass\[dq]: \[dq]mypassword\[dq] + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi @@ -15317,11 +16015,51 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq] + \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi .PP +If the client authenticated with an S3 access key +(\f[V]rclone serve s3\f[R]), the client never sends its secret, only a +signature made with it, so the input contains just the access key ID as +the \f[V]user\f[R] with no \f[V]pass\f[R] or \f[V]public_key\f[R]: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]AKIAIOSFODNN7EXAMPLE\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +In this case the program must look up the secret access key for that +access key ID and return it in the \f[V]_secret_access_key\f[R] field of +the output. +Rclone then uses that secret to verify the signature on the request, +refusing the request if it does not match. +This means the proxy program is the source of truth for both the +credentials and the backend they map to. +If the program does not return \f[V]_secret_access_key\f[R] or returns +it empty the request is refused. +.PP +The program\[aq]s answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. +A rotated secret takes effect on the first request signed with it. +.PP +The \f[V]client_ip\f[R] key holds the IP address the client connected +from, without a port number. +It can be used to restrict logins to certain networks, or to log +authentication attempts centrally. +It is omitted if the client has no IP address, for example when +connecting over a unix socket. +Note that if rclone is behind a reverse proxy this will be the address +of the reverse proxy and not the original client. +.PP And as an example return this on STDOUT .IP .nf @@ -15352,12 +16090,21 @@ the \f[V]user\f[R] be \f[V]user\[at]example.com\f[R] and then set the For security you\[aq]d probably want to restrict the \f[V]host\f[R] to a limited list. .PP -An internal cache of backends is keyed on the \f[V]user\f[R] and a hash -of the \f[V]pass\f[R] or \f[V]public_key\f[R]. -This means that if a user\[aq]s password or public-key changes, or the -proxy returns different config parameters (eg a rotated -\f[V]api_key\f[R]), a fresh backend will be created on the next request -rather than the cached one being reused. +An internal cache of backends is keyed on the \f[V]user\f[R], the kind +of credential presented, a hash of the \f[V]pass\f[R] or +\f[V]public_key\f[R], and the \f[V]client_ip\f[R]. +This means that if a user\[aq]s password or public-key changes, the +client connects from a new IP address, or the proxy returns different +config parameters (eg a rotated \f[V]api_key\f[R]), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. +.PP +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. +For \f[V]serve sftp\f[R] this applies to new logins - an existing +connection is not closed. .PP This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -15655,8 +16402,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -15718,7 +16465,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -15891,8 +16639,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -16364,6 +17112,15 @@ responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format \f[V]Header-Name: value\f[R]. .PP +\f[V]--allow-origin\f[R] enables cross-origin (CORS) requests from +browsers by setting the \f[V]Access-Control-Allow-Origin\f[R] header on +every response to the origin given, e.g. +\f[V]--allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +needing authentication as browsers never send credentials with them. +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP \f[V]--baseurl\f[R] controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used \f[V]--baseurl \[dq]/rclone\[dq]\f[R] then rclone would @@ -16466,8 +17223,21 @@ htpasswd -B htpasswd anotherUser \f[R] .fi .PP +Use the same hash format and cost for every entry in the file. +If the entries differ, the time taken to reject a wrong password can +reveal which usernames exist. +.PP The password file can be updated while rclone is running. .PP +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. +Health checks or monitoring which use unauthenticated OPTIONS requests +will need to send credentials. +The exception is browser CORS preflight requests when +\f[V]--allow-origin\f[R] is set, which are answered without +authentication as browsers never send credentials with them. +.PP Use \f[V]--realm\f[R] to set the authentication realm. .PP Use \f[V]--salt\f[R] to change the password hashing salt from the @@ -16536,6 +17306,24 @@ docs (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)). If \f[V]--auth-key\f[R] is not provided then \f[V]serve s3\f[R] will allow anonymous access. .PP +Alternatively \f[V]--auth-proxy\f[R] can be used to look up the secret +for each access key ID and choose the backend it maps to (see Auth Proxy +below). +When an auth proxy is in use \f[V]--auth-key\f[R] is ignored and every +request must be signed with the secret the proxy returns for its access +key ID. +Each access key ID is a separate user, whose multipart uploads and +object metadata are private to it, even if the proxy maps several access +key IDs to the same backend. +.PP +As on AWS, every \f[V]x-amz-*\f[R] header in an authenticated request +must be in its signed headers list; a request with an unsigned +\f[V]x-amz-*\f[R] header is refused with \f[V]AccessDenied\f[R]. +S3 clients sign these headers as a matter of course, but a header added +after signing (for example by a proxy in front of the server, or +\f[V]x-amz-meta-*\f[R] headers sent with a presigned URL which only +signs the host) is refused. +.PP Like all rclone flags \f[V]--auth-key\f[R] can be set via environment variables, in this case \f[V]RCLONE_AUTH_KEY\f[R]. Since this flag can be repeated, the input to \f[V]RCLONE_AUTH_KEY\f[R] @@ -16577,6 +17365,15 @@ Use \f[V]--etag-hash\f[R] if you want to change the hash uses for the Note that using anything other than \f[V]MD5\f[R] (the default) is likely to cause problems for S3 clients which rely on the Etag being the MD5. +Use \f[V]--etag-hash auto\f[R] to use the best hash the backend supports +- with \f[V]--auth-proxy\f[R] that of each user\[aq]s backend. +.PP +The \f[V]ETag\f[R] of an object made by a multipart upload is its hash, +like any other object, rather than the \f[V]-N\f[R] suffixed +\f[V]ETag\f[R] AWS S3 gives these. +If the remote doesn\[aq]t have the MD5 of objects, \f[V]HeadObject\f[R] +and listings only return the MD5 of objects uploaded through +\f[V]serve s3\f[R] while the object\[aq]s metadata is kept (see below). .SS Quickstart .PP For a simple set up, to serve \f[V]remote:path\f[R] over s3, run the @@ -16626,32 +17423,84 @@ access_key_id = ACCESS_KEY_ID secret_access_key = SECRET_ACCESS_KEY \f[R] .fi +.SS Object uploads (PUT) +.PP +A \f[V]PutObject\f[R] upload only ever changes the object at its key +atomically, on success, a failed or interrupted PUT neither removes nor +overwrites the object already stored at the key, and never leaves a +partial object visible at it. +.PP +Remotes that upload atomically (e.g. +object stores such as \f[V]s3\f[R]) are streamed straight to the +destination. +On remotes where a partial upload would otherwise be visible (e.g. +\f[V]local\f[R]), and whenever \f[V]--vfs-cache-mode\f[R] is +\f[V]writes\f[R] or above, the upload is written to a temporary object +that is renamed into place on success; these remotes need to support a +server-side move or copy for this (nearly all do - without move or copy +the upload is written directly and a failed PUT may leave a partial +object at the key). +If \f[V]serve s3\f[R] is killed part-way through an upload the temporary +object (named with a leading \f[V].rclone_temp_put_\f[R]) may be left +behind; it is hidden from S3 listings but must be removed manually. .SS Multipart uploads .PP -By default \f[V]serve s3\f[R] \f[B]streams\f[R] each multipart upload, -in part-number order, into a single \f[V]PutStream\f[R] upload to the -underlying remote, so the whole file is never buffered in memory - -memory use stays bounded by the parts in flight. +Multipart uploads are written, in part-number order, to a temporary +object which is renamed into place, server-side, on completion, so the +upload is atomic. +The object at the key only ever changes on a successful completion. +A failed or aborted upload never affects any object already stored under +that name and a partly-uploaded object never becomes visible under it. +.PP +With the default \f[V]--vfs-cache-mode off\f[R] \f[V]serve s3\f[R] +\f[B]streams\f[R] each multipart upload, in part-number order, into a +single streaming upload to the underlying remote, so the whole file is +never buffered in memory: only parts which arrive out of order are +buffered, within the limits described below. The remote then performs its own internal upload (for example its own multipart upload, still with bounded memory). -This works for any remote that supports \f[V]PutStream\f[R], which is -nearly all of them, including through \f[V]crypt\f[R]. +Remotes that don\[aq]t support streaming uploads (those that must know +the file size before the upload starts, such as \f[V]onedrive\f[R], +\f[V]pcloud\f[R], \f[V]jottacloud\f[R], \f[V]mailru\f[R], +\f[V]opendrive\f[R], \f[V]putio\f[R], \f[V]protondrive\f[R] and +\f[V]zoho\f[R]) have the parts spooled to a temporary file on \f[B]local +disk\f[R] instead, and uploaded with the size then known on completion, +so they need local disk space for the largest objects in flight rather +than memory. .PP -The upload is atomic so the destination object only ever changes on a -successful completion. -A failed or aborted upload never affects any object already stored under -that name. -Remotes that upload atomically already (object stores such as -\f[V]s3\f[R]) are streamed straight to the destination. -On remotes where a partial upload would otherwise be visible (such as -\f[V]local\f[R]), the parts are streamed to a temporary object that is -moved into place, server-side, on completion; these remotes therefore -also need to support a server-side move or copy. +With \f[V]--vfs-cache-mode writes\f[R] (or \f[V]full\f[R]) the parts are +written to a temporary file in the VFS cache and uploaded by the VFS +write-back - see Multipart uploads and the VFS cache below. +.PP +The rename into place needs the remote to support a server-side move or +copy, which nearly all do. +It is a cheap rename on most remotes, but on object stores without a +real rename (such as \f[V]s3\f[R] itself) the move is performed as a +server-side copy and delete of the whole object, which can take time and +API calls for large objects. +Concurrent multipart uploads of the same key (which S3 permits) are +safe. +Each writes its own temporary object and the last to complete wins. +.PP +On the few remotes that support neither server side move nor copy, the +parts are written straight to the destination object instead and never +buffered in memory. +This is at some cost in atomicity - the incomplete object is visible +under its final name while the upload is in flight, as it also is for a +plain object PUT on such remotes, and concurrent multipart uploads of +the same key write to the same object and can interleave. +A failed or aborted upload still leaves any pre-existing object +untouched provided the remote uploads atomically and the VFS cache is +off; on a remote where partial uploads are visible it may leave partial +data at the key (like a plain PUT there), and with +\f[V]--vfs-cache-mode writes\f[R] (or \f[V]full\f[R]) a write to the +cache cannot be abandoned, so an aborted upload\[aq]s partial data is +written back to the remote as if it had completed. .PP \f[B]Features\f[R] .IP \[bu] 2 -The whole object is never buffered in memory; memory use is bounded by -the parts in flight, not the upload size. +The whole object is never buffered in memory; only parts arriving out of +order are, within fixed limits, whatever the upload size. .IP \[bu] 2 Parts can be any size. Clients that don\[aq]t produce uniform-sized parts work fine - for @@ -16665,27 +17514,39 @@ encrypted as one continuous stream. .IP \[bu] 2 The destination object only ever changes atomically, on completion: an aborted or failed upload leaves any pre-existing object of the same name -untouched, and a partly-uploaded object never becomes visible. +untouched, and a partly-uploaded object never becomes visible (except on +the few remotes with no server-side move or copy, as above). .IP \[bu] 2 -Backend-agnostic - it only needs the remote to support -\f[V]PutStream\f[R] (plus a server-side move or copy on remotes that -don\[aq]t upload atomically). +Multipart uploads go through the VFS like any other upload, so they show +in rclone\[aq]s transfer stats and obey \f[V]--bwlimit\f[R]. +.IP \[bu] 2 +Backend-agnostic - it only needs the remote to support a server-side +move or copy for the rename into place, which nearly all do; a remote +without streaming upload support spools to local disk as above. .PP \f[B]Limitations\f[R] .IP \[bu] 2 Parts must arrive in ascending, contiguous part-number order (1, 2, 3, \&...). +The part the stream needs next is written straight through as it +arrives, so it is never buffered, whatever its size. Parts the client uploads concurrently or out of order are buffered until their turn. The memory used for this buffering is capped, per upload, by \f[V]--multipart-streaming-buffer-limit\f[R] (default \f[V]256M\f[R], -\f[V]0\f[R] for no limit): a part that would take the buffer over the -limit is stalled until the stream drains, so a client that uploads -faster than the remote can accept sees backpressure rather than +\f[V]0\f[R] for no limit), and across all the uploads of each user (each +access key) by \f[V]--multipart-streaming-buffer-total\f[R] (default +\f[V]1G\f[R], \f[V]0\f[R] for no limit), counting each buffered part in +the whole 1 MiB memory pages it occupies: a part that would take the +buffer over either limit is stalled until the stream drains (or, if it +is bigger than the limits, until it is the next part), so a client that +uploads faster than the remote can accept sees backpressure rather than unbounded server memory use. -Since a stalled part holds its HTTP request open, clients whose upload -concurrency times chunk size exceeds the limit may need a longer read -timeout when the remote is slow. +A stalled part holds its HTTP request open, and one stalled for more +than a minute is failed with a \f[V]SlowDown\f[R] error, which S3 +clients retry. +Clients whose upload concurrency times part size exceeds the limits will +see these stalls and retries when the remote is slower than the client. Non-contiguous part numbers are rejected on completion. Configure the client to upload in part order, ideally with low concurrency, for the lowest memory use. @@ -16693,50 +17554,276 @@ concurrency, for the lowest memory use. A part uploaded again before completion - typically a client retrying after a timeout - is accepted: if the earlier copy is still buffered it is replaced, and if it has already been streamed an identical re-upload -is a no-op. +is a no-op (a re-upload which arrives while the part is being streamed +waits for it to finish first). +If a part fails part way through being streamed (for example the +client\[aq]s connection drops) the client\[aq]s retry of it carries on +where it stopped, provided it has the same content. What isn\[aq]t possible is replacing a part that has already been -streamed with \f[I]different\f[R] content - that is rejected. -A failure in the stream to the remote itself still aborts the whole -upload and the client must start it again. +streamed, in whole or in part, with \f[I]different\f[R] content - that +is rejected. +A part which arrives in full but is then rejected, for example because +it doesn\[aq]t match the \f[V]Content-MD5\f[R] the client declared, has +already been streamed, so the whole upload is failed and the client must +start it again. +So is a failure in the stream to the remote itself. (The remote\[aq]s own upload still retries its internal chunks.) .IP \[bu] 2 -Parts are serialised into one stream, so ingest from the client is -effectively single-threaded, although the remote\[aq]s own upload still -runs concurrently. +A \f[V]CompleteMultipartUpload\f[R] which fails because the parts it +lists don\[aq]t match those uploaded, or there is a gap in the part +numbers, leaves the upload open, as on S3, so the client can upload any +missing parts and complete it again. +If writing the completed object to the remote fails, the upload is +failed and must be started again. .IP \[bu] 2 -On remotes that don\[aq]t upload atomically (such as \f[V]local\f[R]), -the completed object is moved into place with a server-side operation. -This is a cheap rename on most such remotes. -On these remotes, if \f[V]serve s3\f[R] is killed part-way through an -upload the temporary object (named with a leading -\f[V].rclone_multipart_upload_\f[R]) may be left behind; it is hidden -from S3 listings but must be removed manually. +Parts are serialised into one stream, so ingest from the client is +effectively single-threaded. +When streaming, the remote\[aq]s own upload runs concurrently with the +parts arriving; with the local disk spool or the VFS cache the upload to +the remote only starts on completion. +.IP \[bu] 2 +If \f[V]serve s3\f[R] is killed part-way through an upload the temporary +object (named with a leading \f[V].rclone_temp_multipart_\f[R]) may be +left behind; it is hidden from S3 listings but must be removed manually. +.SS Multipart uploads and the VFS cache +.PP +With \f[V]--vfs-cache-mode writes\f[R] (or \f[V]full\f[R]) multipart +uploads do not stream to the remote at all. +The parts are written, in part-number order, to a temporary file in the +VFS cache. +On completion the file is renamed into place and uploaded by the VFS +write-back, exactly like a plain object PUT. +This needs no streaming upload support from the remote. +The rename normally happens in the cache before the upload has started, +but the VFS requires the remote to support a server-side move or copy to +rename files at all (and uses one if the temporary file has already been +written back, e.g. +with \f[V]--vfs-write-back 0\f[R]). +On remotes without either, the parts are written to the cache directly +under the final key instead: the upload still never touches memory, but +it loses its atomicity - the in-flight upload is visible at the key, and +an aborted upload cannot be abandoned once in the cache, so its partial +data is written back to the remote as if it were a completed object. +.PP +Remotes that benefit from \f[V]--vfs-cache-mode writes\f[R]: +.IP \[bu] 2 +\f[B]Remotes over slow or unreliable links.\f[R] A failure in a streamed +upload aborts the whole multipart upload and the client must start again +from the first part; a failed write-back upload is retried by the VFS +(see \f[V]--vfs-cache-max-age\f[R] and friends) without the client being +involved. +Ingest from the client also runs at local disk speed rather than being +throttled to the remote\[aq]s pace. +.IP \[bu] 2 +\f[B]Workloads that read back or overwrite what they just wrote.\f[R] +The completed object stays in the cache, so subsequent +\f[V]GET\f[R]/\f[V]HEAD\f[R] requests are served locally, and plain PUTs +and multipart uploads to the same key go through the same cache entry so +the last write wins regardless of upload style. +.PP +The trade-offs of the VFS cache: +.IP \[bu] 2 +The whole object lands on local disk, so the cache +(\f[V]--cache-dir\f[R]) needs space for the largest objects in flight; +\f[V]--vfs-cache-max-size\f[R] cannot evict files which are still being +uploaded. +.IP \[bu] 2 +The \f[V]200 OK\f[R] for \f[V]CompleteMultipartUpload\f[R] means the +data is safely in the \f[B]local cache\f[R], not yet on the remote - the +same durability the cache gives plain PUTs. +If an acknowledgement must mean the data has reached the remote (for +example WAL archiving), use the default \f[V]--vfs-cache-mode off\f[R]. +.IP \[bu] 2 +The upload to the remote only starts on completion, rather than +overlapping with the parts arriving, so the data reaches the remote +later than with streaming. +.IP \[bu] 2 +If \f[V]serve s3\f[R] is killed part-way through an upload, the +temporary file survives in the cache and the VFS cache recovery uploads +it to the remote on restart as a temporary object (named with a leading +\f[V].rclone_temp_multipart_\f[R]); as with the streaming path, it is +hidden from S3 listings but must be removed manually. +.SS Cleaning up temporary objects +.PP +If \f[V]serve s3\f[R] is killed part-way through an upload it can leave +a temporary object behind, named with a leading \f[V].rclone_temp_\f[R]. +This whole prefix is reserved: any object whose name (the last +\f[V]/\f[R]-separated segment of its key) starts with +\f[V].rclone_temp_\f[R] is hidden from S3 listings, so don\[aq]t give +real objects such names - an existing object with such a name disappears +from listings (though it stays accessible directly by its key: only +listings hide reserved names, \f[V]GET\f[R], \f[V]HEAD\f[R] and +\f[V]DELETE\f[R] of the exact key still work). +A temporary object never holds acknowledged data - uploads whose +temporary object survived were never confirmed to the client - so old +ones are safe to delete: +.IP +.nf +\f[C] +rclone delete --min-age 24h --include \[dq].rclone_temp_*\[dq] remote:path +\f[R] +.fi +.PP +The \f[V]--min-age\f[R] protects uploads which are still in progress: +make sure it is longer than your longest upload, especially if several +\f[V]serve s3\f[R] instances share the same remote. +.PP +rclone v1.75 named its temporary multipart objects +\f[V].rclone_multipart_upload_*\f[R]; leftovers from an older server are +also hidden from listings and can be cleaned up the same way. +.SS Abandoned uploads +.PP +A client which starts a multipart upload and vanishes without either +completing or aborting it would otherwise hold on to its resources +forever. +.PP +An incomplete multipart upload which has had no activity for +\f[V]--multipart-expiry\f[R] (default \f[V]24h\f[R]) is therefore +aborted and cleaned up, exactly as if the client had called +\f[V]AbortMultipartUpload\f[R], and a \f[V]NOTICE\f[R] is logged. +.PP +An upload with a part still being received is never expired, however +slowly the part is arriving, and each completed part restarts the clock, +so the expiry only needs to outlast the client\[aq]s pauses +\f[I]between\f[R] parts, not the whole upload. +.PP +Late operations on an expired upload fail with \f[V]NoSuchUpload\f[R], +as they do on real S3 when a lifecycle rule has aborted the upload. +Set \f[V]--multipart-expiry 0\f[R] to keep incomplete uploads forever - +but note that abandoned uploads are then never cleaned up and go on +counting towards \f[V]--multipart-max-uploads\f[R] below, so enough of +them will stop the user starting any new multipart upload until the +server is restarted. +.PP +Each multipart upload in progress holds server resources - for example +the buffers the remote\[aq]s own upload uses once the first part has +arrived - so each user (each access key) can have no more than +\f[V]--multipart-max-uploads\f[R] (default \f[V]1000\f[R], \f[V]0\f[R] +for no limit) in progress at once. +Starting another fails with a \f[V]SlowDown\f[R] error, which S3 clients +retry, and a one-off \f[V]NOTICE\f[R] is logged. .SS Disabling streaming .PP -If you pass \f[V]--disable-multipart-streaming\f[R], or the remote -doesn\[aq]t support \f[V]PutStream\f[R] (or doesn\[aq]t upload -atomically and can\[aq]t move or copy server-side), multipart uploads +If you pass \f[V]--disable-multipart-streaming\f[R], multipart uploads are instead \f[B]buffered in memory\f[R] by the underlying S3 library: every part is held in memory and the whole object is written out in one -go when the upload completes (the previous behaviour). +go when the upload completes. This removes the in-order/contiguous-part restriction above, so parts can be uploaded in any order, but \f[B]memory use grows with the size of the upload\f[R], so it is only suitable for small objects. A one-off \f[V]NOTICE\f[R] is logged the first time this happens. +This flag is the only thing that makes multipart uploads buffer in +memory - it is never done because of missing remote capabilities. +The limits on multipart uploads above +(\f[V]--multipart-streaming-buffer-limit\f[R], +\f[V]--multipart-streaming-buffer-total\f[R] and +\f[V]--multipart-max-uploads\f[R]) do not apply to uploads buffered in +memory, so don\[aq]t use this flag if the server is open to clients you +don\[aq]t trust. +Consider \f[V]--vfs-cache-mode writes\f[R] instead, which buffers the +upload in the VFS cache on disk and takes precedence over +\f[V]--disable-multipart-streaming\f[R]. +.SS Memory use .PP -Alternatively, if the client is an rclone \f[V]s3\f[R] remote (like the -\f[V][serves3]\f[R] example above), you can set -\f[V]use_multipart_uploads = false\f[R] on it so it uploads each object -as a single stream and skips multipart uploads altogether. +\f[V]serve s3\f[R] never buffers whole objects in memory (except with +\f[V]--disable-multipart-streaming\f[R], above), and limits the memory +each kind of request can use, so that a client, even a hostile one, +can\[aq]t make it use unbounded memory. +.IP \[bu] 2 +\f[B]Object data.\f[R] \f[V]PutObject\f[R] bodies and multipart parts +arriving in order are streamed straight through to the remote. +Parts arriving out of order are buffered, up to +\f[V]--multipart-streaming-buffer-limit\f[R] per upload and +\f[V]--multipart-streaming-buffer-total\f[R] per user. +.IP \[bu] 2 +\f[B]Uploads in progress.\f[R] Each user can have at most +\f[V]--multipart-max-uploads\f[R] multipart uploads in progress. +An upload holds little memory until its first part arrives. +After that, with \f[V]--vfs-cache-mode off\f[R], it holds a +\f[V]--streaming-upload-cutoff\f[R] sized buffer plus whatever the +remote\[aq]s own upload buffers, which for many remotes is up to their +chunk size times their upload concurrency (for example +\f[V]--s3-chunk-size\f[R] times \f[V]--s3-upload-concurrency\f[R]). +Plain \f[V]PutObject\f[R] uploads use the same while they are in +progress. +.IP \[bu] 2 +\f[B]Metadata.\f[R] The metadata of at most +\f[V]--metadata-max-objects\f[R] objects of each user is kept, each +limited to 2 KB. +.IP \[bu] 2 +\f[B]Request bodies.\f[R] The XML bodies of requests such as +\f[V]CompleteMultipartUpload\f[R] and \f[V]DeleteObjects\f[R] are +limited to 10 MiB, and \f[V]DeleteObjects\f[R] to 1000 keys. +A browser form (\f[V]POST\f[R]) upload holds at most 1 MiB in memory, +spooling the rest to a temporary file, and is limited to 5 GB. +.IP \[bu] 2 +\f[B]Listings.\f[R] Each page of a \f[V]ListObjects\f[R] listing reads +only the directories needed to fill it, and returns at most 1000 keys. +Directory listings are cached by the VFS directory cache. +.PP +The largest of these is usually the remote\[aq]s upload buffers, which +can be up to \f[V]--multipart-max-uploads\f[R] times the buffers of one +upload for each user if clients start many uploads and send part of +each. +The limits apply to each user separately, so that one user can\[aq]t +stop others uploading, which means the memory use grows with the number +of users. +To limit it, lower \f[V]--multipart-max-uploads\f[R], the remote\[aq]s +chunk size or upload concurrency, or set \f[V]--max-buffer-memory\f[R] +to limit the memory used by the buffers of all uploads to remotes which +use rclone\[aq]s buffer pool (including \f[V]s3\f[R], +\f[V]azureblob\f[R] and \f[V]b2\f[R]). +Buffered multipart parts come from the same pool, so if you set +\f[V]--max-buffer-memory\f[R] make it comfortably bigger than +\f[V]--multipart-streaming-buffer-total\f[R] times the number of users +uploading at once, otherwise buffered parts can use up all the memory +the remote needs to upload the parts which would free them. +.PP +The number of connections is not limited, so if the server is open to +clients you don\[aq]t trust, use \f[V]--auth-key\f[R] or +\f[V]--auth-proxy\f[R] and consider putting it behind a reverse proxy +which limits connections. +.SS Design goals +.PP +These goals explain many of the limitations below. +.IP \[bu] 2 +\f[B]Objects are plain files on the remote.\f[R] A bucket is a directory +in the root and a key is a path in it, so the remote stays usable by +other tools, such as \f[V]rclone mount\f[R] or \f[V]rclone sync\f[R]. +So keys must be paths (see Object names). +.IP \[bu] 2 +\f[B]No database.\f[R] \f[V]serve s3\f[R] stores nothing but the +objects. +What the remote can\[aq]t hold, such as user metadata, tags, the MD5 +\f[V]ETag\f[R] of an object on a remote without MD5 and the directory +markers put, is kept in memory as a best effort, and lost on restart. +.IP \[bu] 2 +\f[B]Works with any rclone remote.\f[R] What \f[V]serve s3\f[R] can do +depends on what the remote supports, such as the hashes used for +\f[V]ETag\f[R]s and modification times, rather than needing a particular +backend. +.IP \[bu] 2 +\f[B]Bounded memory.\f[R] Uploads, including multipart uploads, are +streamed to the remote and the memory each request can use is limited +(see Memory use). +Nothing is written to local disk unless the VFS cache is used or the +remote can\[aq]t stream uploads (see Multipart uploads). +.IP \[bu] 2 +\f[B]Refuse rather than ignore.\f[R] Unsupported features are refused, +or answered as S3 answers when the feature isn\[aq]t configured, so a +client is never told something was done which wasn\[aq]t (see +Compatibility). +.IP \[bu] 2 +\f[B]A storage gateway, not a full S3.\f[R] \f[V]serve s3\f[R] +implements the parts of the S3 API clients use to store and fetch +objects. +Versioning, ACLs, bucket policies, lifecycle rules and the like are out +of scope. +.IP \[bu] 2 +\f[B]Compatible with rclone\[aq]s s3 backend.\f[R] This includes its +directory markers, which the tests check. .SS Bugs .PP -Multipart server side copies do not work (see -#7454 (https://github.com/rclone/rclone/issues/7454)). -These take a very long time and eventually fail. -The default threshold for multipart server side copies is 5G which is -the maximum it can be, so files above this side will fail to be server -side copied. -.PP For a current list of \f[V]serve s3\f[R] bugs see the serve s3 (https://github.com/rclone/rclone/labels/serve%20s3) bug category on GitHub. @@ -16744,25 +17831,55 @@ GitHub. .PP \f[V]serve s3\f[R] will treat all directories in the root as buckets and ignore all files in the root. -You can use \f[V]CreateBucket\f[R] to create folders under the root, but -you can\[aq]t create empty folders under other folders not in the root. +You can use \f[V]CreateBucket\f[R] to create folders under the root, and +put a directory marker to create an empty folder below them (see Object +names). .PP When using \f[V]PutObject\f[R] or \f[V]DeleteObject\f[R], rclone will automatically create or clean up empty folders. If you don\[aq]t want to clean up empty folders automatically, use -\f[V]--no-cleanup\f[R]. +\f[V]--directory-markers\f[R] (see Object names). +The deprecated \f[V]--no-cleanup\f[R] does the same. .PP -When using \f[V]ListObjects\f[R], rclone will use \f[V]/\f[R] when the -delimiter is empty. -This reduces backend requests with no effect on most operations, but if -the delimiter is something other than \f[V]/\f[R] and empty, rclone will -do a full recursive search of the backend, which can take some time. +When using \f[V]ListObjects\f[R] with the delimiter \f[V]/\f[R], rclone +lists the directory the prefix is in, showing its subdirectories as +common prefixes, including empty ones. +Without a delimiter the listing is recursive: rclone walks the directory +tree below the prefix, reading only as many directories as it needs to +fill each page, and lists empty directories as their directory markers +(see below). +Any other delimiter is supported too, but needs the whole directory tree +below the prefix walking, unless the delimiter is in the directory +names. .PP -Versioning is not currently supported. +Versioning is not supported (see Design goals). .PP -Metadata will only be saved in memory other than the rclone -\f[V]mtime\f[R] metadata which will be set as the modification time of -the file. +Conditional writes, \f[V]PutObject\f[R] and +\f[V]CompleteMultipartUpload\f[R] with \f[V]If-None-Match\f[R] or +\f[V]If-Match\f[R], are supported. +The conditions are checked before the object is written, and again as it +is moved into place when it is written to a temporary object first. +This happens for multipart uploads and, for \f[V]PutObject\f[R], with +remotes which can upload partial files (such as local disk) or with +\f[V]--vfs-cache-mode minimal\f[R] or above. +The second check is atomic against other writes through +\f[V]serve s3\f[R], but neither is atomic against changes made to the +remote some other way. +If the remote doesn\[aq]t support the \f[V]--etag-hash\f[R], objects +have no \f[V]ETag\f[R] so \f[V]If-Match\f[R] with an \f[V]ETag\f[R] +always fails. +.PP +Metadata will only be saved in memory (see Design goals) other than the +rclone \f[V]mtime\f[R] metadata which will be set as the modification +time of the file. +The metadata of at most \f[V]--metadata-max-objects\f[R] objects +(default \f[V]100000\f[R], \f[V]0\f[R] for no limit) of each user (each +access key) is kept; after that the metadata of the user\[aq]s least +recently used object is forgotten. +The metadata of an object is ignored once the object has been changed +some other way, for example by another \f[V]--auth-proxy\f[R] user or +directly on the backend. +Object tags are kept with the metadata in the same way. .SS Object names .PP \f[V]serve s3\f[R] stores objects as files in the backend, so object @@ -16770,52 +17887,273 @@ keys are mapped to file paths rather than treated as the opaque strings AWS S3 allows. Keys must be in canonical path form: keys that contain \f[V]..\f[R] or \f[V].\f[R] path segments, repeated slashes (\f[V]//\f[R]), or a leading -or trailing slash are rejected with a \f[V]400 Bad Request\f[R] +slash are rejected with a \f[V]400 Bad Request\f[R] (\f[V]InvalidArgument\f[R]) instead of being normalised, since normalising them could alias two distinct keys to the same file or resolve a key outside its bucket. This matches the behaviour of other S3 servers such as MinIO. -.SS Supported operations .PP -\f[V]serve s3\f[R] currently supports the following operations. -.IP \[bu] 2 -Bucket -.RS 2 -.IP \[bu] 2 -\f[V]ListBuckets\f[R] -.IP \[bu] 2 -\f[V]CreateBucket\f[R] -.IP \[bu] 2 -\f[V]DeleteBucket\f[R] -.RE -.IP \[bu] 2 -Object -.RS 2 -.IP \[bu] 2 -\f[V]HeadObject\f[R] -.IP \[bu] 2 -\f[V]ListObjects\f[R] -.IP \[bu] 2 -\f[V]GetObject\f[R] -.IP \[bu] 2 +A key ending in \f[V]/\f[R], such as \f[V]dir/\f[R], is a directory +marker, standing for the directory \f[V]dir\f[R]. +Putting an empty directory marker creates the directory (one with data +is rejected with \f[V]400 Bad Request\f[R]), and deleting it removes the +directory if it is empty. +Directory markers are found by \f[V]HeadObject\f[R], \f[V]GetObject\f[R] +and \f[V]CopyObject\f[R] for any directory, but only the markers of +empty directories, and of the directories a marker was put for, are +listed as objects, as other directories may not have been made by +putting a marker. +The markers put are remembered in memory with the metadata (see +Limitations), so after a restart, or once forgotten, the marker of a +directory holding other keys is no longer listed. +While a marker is remembered its directory isn\[aq]t removed when the +last key below it is deleted. +.PP +With \f[V]--directory-markers\f[R] every directory is listed as a +directory marker, so the markers are listed after a restart too, as +needed by clients which rely on them, such as rclone\[aq]s s3 backend +with \f[V]--s3-directory-markers\f[R]. +As every directory has a marker, a directory isn\[aq]t removed when the +last key below it is deleted. +Deleting the marker of a directory which holds other keys stops it being +listed, and the directory is then removed with the last key below it, +but this is only remembered in memory, like the markers put without +\f[V]--directory-markers\f[R]. +.PP +As keys are file paths, a key can\[aq]t be both an object and a +directory holding other objects, for example \f[V]a/b\f[R] and +\f[V]a/b/c\f[R]. +Writing an object which would need this fails with +\f[V]400 Bad Request\f[R] (\f[V]InvalidRequest\f[R]). +.SS Compatibility +.PP +\f[V]serve s3\f[R] implements the parts of the S3 API that S3 clients +commonly use to store and fetch objects. +Features it doesn\[aq]t support are refused with +\f[V]501 NotImplemented\f[R], or answered as AWS S3 answers for a bucket +without that feature configured, rather than being silently ignored. +.PP +.TS +tab(@); +lw(23.3n) lw(30.0n) lw(16.7n). +T{ +Feature +T}@T{ +Supported +T}@T{ +Notes +T} +_ +T{ +\f[V]ListBuckets\f[R], \f[V]CreateBucket\f[R], \f[V]DeleteBucket\f[R], +\f[V]HeadBucket\f[R], \f[V]GetBucketLocation\f[R] +T}@T{ +Yes +T}@T{ +Buckets are the directories in the root of the remote. +T} +T{ +\f[V]ListObjects\f[R], \f[V]ListObjectsV2\f[R] +T}@T{ +Yes +T}@T{ +Prefixes, delimiters, markers, \f[V]start-after\f[R], continuation +tokens, \f[V]fetch-owner\f[R] and \f[V]encoding-type=url\f[R] all work. +Delimiters other than \f[V]/\f[R] need the whole directory tree walking. +T} +T{ +\f[V]HeadObject\f[R], \f[V]GetObject\f[R] +T}@T{ +Yes +T}@T{ +Including \f[V]Range\f[R], \f[V]partNumber\f[R], the +\f[V]response-*\f[R] header overrides and the \f[V]If-Match\f[R], +\f[V]If-None-Match\f[R], \f[V]If-Modified-Since\f[R] and +\f[V]If-Unmodified-Since\f[R] conditions. +T} +T{ \f[V]PutObject\f[R] -.IP \[bu] 2 -\f[V]DeleteObject\f[R] -.IP \[bu] 2 -\f[V]DeleteObjects\f[R] -.IP \[bu] 2 -\f[V]CreateMultipartUpload\f[R] -.IP \[bu] 2 -\f[V]CompleteMultipartUpload\f[R] -.IP \[bu] 2 -\f[V]AbortMultipartUpload\f[R] -.IP \[bu] 2 +T}@T{ +Yes +T}@T{ +Including \f[V]Content-MD5\f[R], \f[V]aws-chunked\f[R] uploads and +uploads with no \f[V]Content-Length\f[R]. +T} +T{ \f[V]CopyObject\f[R] -.IP \[bu] 2 -\f[V]UploadPart\f[R] -.RE +T}@T{ +Yes +T}@T{ +Including the metadata and tagging directives and the +\f[V]x-amz-copy-source-if-*\f[R] conditions. +T} +T{ +\f[V]DeleteObject\f[R], \f[V]DeleteObjects\f[R] +T}@T{ +Yes +T}@T{ +T} +T{ +Multipart uploads +T}@T{ +Yes +T}@T{ +\f[V]CreateMultipartUpload\f[R], \f[V]UploadPart\f[R], +\f[V]UploadPartCopy\f[R], \f[V]CompleteMultipartUpload\f[R], +\f[V]AbortMultipartUpload\f[R], \f[V]ListMultipartUploads\f[R] and +\f[V]ListParts\f[R]. +The \f[V]ETag\f[R] of the object is its hash, not the \f[V]-N\f[R] +suffixed one AWS gives. +The 5 MiB minimum part size isn\[aq]t enforced. +T} +T{ +Conditional writes +T}@T{ +Partial +T}@T{ +\f[V]If-Match\f[R] and \f[V]If-None-Match\f[R] on \f[V]PutObject\f[R] +and \f[V]CompleteMultipartUpload\f[R] are checked, but not atomically +against changes made to the remote some other way (see Limitations). +T} +T{ +Authentication +T}@T{ +Partial +T}@T{ +AWS Signature Version 4, in headers, presigned URLs and browser form +(\f[V]POST\f[R]) uploads. +Signature Version 2 isn\[aq]t supported. +T} +T{ +Anonymous access +T}@T{ +Partial +T}@T{ +All requests are allowed without \f[V]--auth-key\f[R] or +\f[V]--auth-proxy\f[R], and none are with them, as buckets and objects +can\[aq]t be made public. +T} +T{ +Metadata +T}@T{ +Partial +T}@T{ +\f[V]x-amz-meta-*\f[R], the storage class and the standard headers such +as \f[V]Content-Type\f[R] are kept in memory only (see Limitations), +except the modification time. +The storage class is only recorded, so doesn\[aq]t change how the object +is stored. +T} +T{ +Directory markers +T}@T{ +Partial +T}@T{ +Keys ending in \f[V]/\f[R] are stored as directories, so can\[aq]t hold +data. +A marker put for a directory holding other keys is only listed while it +is remembered in memory, unless \f[V]--directory-markers\f[R] is set +(see Object names). +T} +T{ +Checksums +T}@T{ +Partial +T}@T{ +The \f[V]x-amz-checksum-*\f[R] of a \f[V]PutObject\f[R] (CRC32, CRC32C, +CRC64NVME, SHA1 or SHA256) is checked and returned with the metadata. +The \f[V]Content-MD5\f[R] and \f[V]x-amz-checksum-*\f[R] of the bodies +of other requests, such as \f[V]DeleteObjects\f[R], are checked. +The checksums of multipart uploads aren\[aq]t supported. +T} +T{ +\f[V]GetObjectAttributes\f[R] +T}@T{ +Partial +T}@T{ +Everything but the checksums of multipart uploads. +T} +T{ +Object tagging +T}@T{ +Partial +T}@T{ +\f[V]GetObjectTagging\f[R], \f[V]PutObjectTagging\f[R] and +\f[V]DeleteObjectTagging\f[R] work, but tags are kept in memory with the +metadata. +T} +T{ +Bucket owner +T}@T{ +No +T}@T{ +\f[V]serve s3\f[R] has no AWS account IDs, so +\f[V]x-amz-expected-bucket-owner\f[R] and +\f[V]x-amz-source-expected-bucket-owner\f[R] are ignored. +T} +T{ +ACLs +T}@T{ +Partial +T}@T{ +\f[V]GetBucketAcl\f[R] and \f[V]GetObjectAcl\f[R] give the owner full +control. +Only the \f[V]private\f[R] ACL can be set. +T} +T{ +CORS +T}@T{ +Partial +T}@T{ +Preflight (\f[V]OPTIONS\f[R]) requests are answered, allowing any +origin. +CORS configuration (\f[V]PutBucketCors\f[R]) isn\[aq]t supported. +T} +T{ +Server side encryption +T}@T{ +No +T}@T{ +SSE-S3 (\f[V]AES256\f[R]) is accepted but the data isn\[aq]t encrypted. +SSE-KMS and SSE-C are refused. +T} +T{ +Versioning +T}@T{ +No +T}@T{ +Buckets are reported as unversioned and \f[V]ListObjectVersions\f[R] +lists each object as version \f[V]null\f[R]. +Enabling versioning is refused. +T} +T{ +Object lock, retention and legal hold +T}@T{ +No +T}@T{ +T} +T{ +Bucket configuration +T}@T{ +No +T}@T{ +Bucket policies, tagging, lifecycle, logging, encryption, website, +replication, notifications and the like. +Getting them fails as for a bucket without them configured. +T} +T{ +\f[V]SelectObjectContent\f[R], \f[V]RestoreObject\f[R], torrents +T}@T{ +No +T}@T{ +T} +.TE .PP -Other operations will return error \f[V]Unimplemented\f[R]. +The ceph s3-tests (https://github.com/ceph/s3-tests) can be run against +\f[V]serve s3\f[R] to check its compatibility. +See +cmd/serve/s3/s3tests (https://github.com/rclone/rclone/tree/master/cmd/serve/s3/s3tests) +for how. .SS Authentication .PP By default this will serve files without needing a login. @@ -16851,8 +18189,21 @@ htpasswd -B htpasswd anotherUser \f[R] .fi .PP +Use the same hash format and cost for every entry in the file. +If the entries differ, the time taken to reject a wrong password can +reveal which usernames exist. +.PP The password file can be updated while rclone is running. .PP +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. +Health checks or monitoring which use unauthenticated OPTIONS requests +will need to send credentials. +The exception is browser CORS preflight requests when +\f[V]--allow-origin\f[R] is set, which are answered without +authentication as browsers never send credentials with them. +.PP Use \f[V]--realm\f[R] to set the authentication realm. .PP Use \f[V]--salt\f[R] to change the password hashing salt from the @@ -16889,6 +18240,15 @@ responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format \f[V]Header-Name: value\f[R]. .PP +\f[V]--allow-origin\f[R] enables cross-origin (CORS) requests from +browsers by setting the \f[V]Access-Control-Allow-Origin\f[R] header on +every response to the origin given, e.g. +\f[V]--allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +needing authentication as browsers never send credentials with them. +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP \f[V]--baseurl\f[R] controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used \f[V]--baseurl \[dq]/rclone\[dq]\f[R] then rclone would @@ -17029,8 +18389,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -17092,7 +18452,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -17265,8 +18626,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -17517,6 +18878,155 @@ total 1048578 If the file has no metadata it will be returned as \f[V]{}\f[R] and if there is an error reading the metadata the error will be returned as \f[V]{\[dq]error\[dq]:\[dq]error string\[dq]}\f[R]. +.SS Auth Proxy +.PP +If you supply the parameter \f[V]--auth-proxy /path/to/program\f[R] 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. +.PP +\f[B]PLEASE NOTE:\f[R] \f[V]--auth-proxy\f[R] and +\f[V]--authorized-keys\f[R] cannot be used together, if +\f[V]--auth-proxy\f[R] is set the authorized keys option will be +ignored. +.PP +There is an example program +bin/test_proxy.py (https://github.com/rclone/rclone/blob/master/bin/test_proxy.py) +in the rclone source code. +.PP +The program\[aq]s job is to take a \f[V]user\f[R] and \f[V]pass\f[R] 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\[aq]t use configuration from environment variables or command +line options - it is the job of the proxy program to make a complete +config. +.PP +This config generated must have this extra parameter +.IP \[bu] 2 +\f[V]_root\f[R] - root to use for the backend +.PP +And it may have these parameters +.IP \[bu] 2 +\f[V]_obscure\f[R] - comma separated strings for parameters to obscure +.IP \[bu] 2 +\f[V]_secret_access_key\f[R] - the secret for S3 access key auth (see +below) +.PP +If password authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]me\[dq], + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +If public-key authentication was used by the client, input to the proxy +process (on STDIN) would look similar to this: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]me\[dq], + \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +If the client authenticated with an S3 access key +(\f[V]rclone serve s3\f[R]), the client never sends its secret, only a +signature made with it, so the input contains just the access key ID as +the \f[V]user\f[R] with no \f[V]pass\f[R] or \f[V]public_key\f[R]: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]AKIAIOSFODNN7EXAMPLE\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +In this case the program must look up the secret access key for that +access key ID and return it in the \f[V]_secret_access_key\f[R] field of +the output. +Rclone then uses that secret to verify the signature on the request, +refusing the request if it does not match. +This means the proxy program is the source of truth for both the +credentials and the backend they map to. +If the program does not return \f[V]_secret_access_key\f[R] or returns +it empty the request is refused. +.PP +The program\[aq]s answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. +A rotated secret takes effect on the first request signed with it. +.PP +The \f[V]client_ip\f[R] key holds the IP address the client connected +from, without a port number. +It can be used to restrict logins to certain networks, or to log +authentication attempts centrally. +It is omitted if the client has no IP address, for example when +connecting over a unix socket. +Note that if rclone is behind a reverse proxy this will be the address +of the reverse proxy and not the original client. +.PP +And as an example return this on STDOUT +.IP +.nf +\f[C] +{ + \[dq]type\[dq]: \[dq]sftp\[dq], + \[dq]_root\[dq]: \[dq]\[dq], + \[dq]_obscure\[dq]: \[dq]pass\[dq], + \[dq]user\[dq]: \[dq]me\[dq], + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]host\[dq]: \[dq]sftp.example.com\[dq] +} +\f[R] +.fi +.PP +This would mean that an SFTP backend would be created on the fly for the +\f[V]user\f[R] and \f[V]pass\f[R]/\f[V]public_key\f[R] returned in the +output to the host given. +Note that since \f[V]_obscure\f[R] is set to \f[V]pass\f[R], rclone will +obscure the \f[V]pass\f[R] parameter before creating the backend (which +is required for sftp backends). +.PP +The program can manipulate the supplied \f[V]user\f[R] in any way, for +example to make proxy to many different sftp backends, you could make +the \f[V]user\f[R] be \f[V]user\[at]example.com\f[R] and then set the +\f[V]host\f[R] to \f[V]example.com\f[R] in the output and the user to +\f[V]user\f[R]. +For security you\[aq]d probably want to restrict the \f[V]host\f[R] to a +limited list. +.PP +An internal cache of backends is keyed on the \f[V]user\f[R], the kind +of credential presented, a hash of the \f[V]pass\f[R] or +\f[V]public_key\f[R], and the \f[V]client_ip\f[R]. +This means that if a user\[aq]s password or public-key changes, the +client connects from a new IP address, or the proxy returns different +config parameters (eg a rotated \f[V]api_key\f[R]), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. +.PP +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. +For \f[V]serve sftp\f[R] this applies to new logins - an existing +connection is not closed. +.PP +This can be used to build general purpose proxies to any kind of backend +that rclone supports. .IP .nf \f[C] @@ -17536,7 +19046,8 @@ rclone serve s3 remote:path [flags] --client-ca string Client certificate authority to verify clients with --dir-cache-time Duration Time to cache directory entries for (default 5m0s) --dir-perms FileMode Directory permissions (default 777) - --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend (see the Multipart uploads docs section) + --directory-markers List every directory as a directory marker object + --disable-multipart-streaming Buffer multipart uploads in memory instead of streaming them to the backend --etag-hash string Which hash to use for the ETag, or auto or blank for off (default \[dq]MD5\[dq]) --file-perms FileMode File permissions (default 666) --force-path-style If true use path style access if false use virtual hosted style (default true) @@ -17546,10 +19057,14 @@ rclone serve s3 remote:path [flags] --key string TLS PEM Private key --link-perms FileMode Link permissions (default 666) --max-header-bytes int Maximum size of request header (default 4096) + --metadata-max-objects int Maximum number of objects of a user whose metadata is kept in memory, 0 for unlimited (default 100000) --min-tls-version string Minimum TLS version that is acceptable (default \[dq]tls1.0\[dq]) - --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (see the Multipart uploads docs section) (default 256Mi) + --multipart-expiry Duration Abort incomplete multipart uploads idle for longer than this, 0 to keep forever (default 1d) + --multipart-max-uploads int Maximum number of streamed multipart uploads a user can have in progress at once, 0 for unlimited (default 1000) + --multipart-streaming-buffer-limit SizeSuffix Maximum memory buffered per streamed multipart upload for parts arriving out of order, 0 for unlimited (default 256Mi) + --multipart-streaming-buffer-total SizeSuffix Maximum memory buffered by all the streamed multipart uploads of a user for parts arriving out of order, 0 for unlimited (default 1Gi) --no-checksum Don\[aq]t compare checksums on up/download - --no-cleanup Not to cleanup empty folder after object is deleted + --no-cleanup Deprecated: use --directory-markers instead --no-modtime Don\[aq]t read/write the modification time (can speed things up) --no-seek Don\[aq]t allow seeking in files --pass string Password for authentication @@ -17784,8 +19299,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -17847,7 +19362,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -18020,8 +19536,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -18301,9 +19817,12 @@ This config generated must have this extra parameter .IP \[bu] 2 \f[V]_root\f[R] - root to use for the backend .PP -And it may have this parameter +And it may have these parameters .IP \[bu] 2 \f[V]_obscure\f[R] - comma separated strings for parameters to obscure +.IP \[bu] 2 +\f[V]_secret_access_key\f[R] - the secret for S3 access key auth (see +below) .PP If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -18312,7 +19831,8 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]pass\[dq]: \[dq]mypassword\[dq] + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi @@ -18324,11 +19844,51 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq] + \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi .PP +If the client authenticated with an S3 access key +(\f[V]rclone serve s3\f[R]), the client never sends its secret, only a +signature made with it, so the input contains just the access key ID as +the \f[V]user\f[R] with no \f[V]pass\f[R] or \f[V]public_key\f[R]: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]AKIAIOSFODNN7EXAMPLE\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +In this case the program must look up the secret access key for that +access key ID and return it in the \f[V]_secret_access_key\f[R] field of +the output. +Rclone then uses that secret to verify the signature on the request, +refusing the request if it does not match. +This means the proxy program is the source of truth for both the +credentials and the backend they map to. +If the program does not return \f[V]_secret_access_key\f[R] or returns +it empty the request is refused. +.PP +The program\[aq]s answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. +A rotated secret takes effect on the first request signed with it. +.PP +The \f[V]client_ip\f[R] key holds the IP address the client connected +from, without a port number. +It can be used to restrict logins to certain networks, or to log +authentication attempts centrally. +It is omitted if the client has no IP address, for example when +connecting over a unix socket. +Note that if rclone is behind a reverse proxy this will be the address +of the reverse proxy and not the original client. +.PP And as an example return this on STDOUT .IP .nf @@ -18359,12 +19919,21 @@ the \f[V]user\f[R] be \f[V]user\[at]example.com\f[R] and then set the For security you\[aq]d probably want to restrict the \f[V]host\f[R] to a limited list. .PP -An internal cache of backends is keyed on the \f[V]user\f[R] and a hash -of the \f[V]pass\f[R] or \f[V]public_key\f[R]. -This means that if a user\[aq]s password or public-key changes, or the -proxy returns different config parameters (eg a rotated -\f[V]api_key\f[R]), a fresh backend will be created on the next request -rather than the cached one being reused. +An internal cache of backends is keyed on the \f[V]user\f[R], the kind +of credential presented, a hash of the \f[V]pass\f[R] or +\f[V]public_key\f[R], and the \f[V]client_ip\f[R]. +This means that if a user\[aq]s password or public-key changes, the +client connects from a new IP address, or the proxy returns different +config parameters (eg a rotated \f[V]api_key\f[R]), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. +.PP +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. +For \f[V]serve sftp\f[R] this applies to new logins - an existing +connection is not closed. .PP This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -18597,6 +20166,15 @@ responses, will overriding existing values. The flag may be repeated to add multiple headers. Use the format \f[V]Header-Name: value\f[R]. .PP +\f[V]--allow-origin\f[R] enables cross-origin (CORS) requests from +browsers by setting the \f[V]Access-Control-Allow-Origin\f[R] header on +every response to the origin given, e.g. +\f[V]--allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +needing authentication as browsers never send credentials with them. +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP \f[V]--baseurl\f[R] controls the URL prefix that rclone serves from. By default rclone will serve from the root. If you used \f[V]--baseurl \[dq]/rclone\[dq]\f[R] then rclone would @@ -18717,6 +20295,51 @@ T}@T{ Currently unused. T} T{ +\&.Path +T}@T{ +T}@T{ +The path of the directory from the root with leading and trailing +slashes, e.g. +\[aq]/dir/\[aq]. +T} +T{ +\&.IsRoot +T}@T{ +T}@T{ +Boolean for if this is the root directory. +T} +T{ +\&.UpLink +T}@T{ +T}@T{ +The link to the parent directory. +T} +T{ +\&.Static +T}@T{ +T}@T{ +Boolean for if the listing is being written as a static page by rclone +index. +T} +T{ +\&.NumDirs +T}@T{ +T}@T{ +The number of directories in the listing. +T} +T{ +\&.NumFiles +T}@T{ +T}@T{ +The number of files in the listing. +T} +T{ +\&.TotalSize +T}@T{ +T}@T{ +The total size in bytes of the files in the listing. +T} +T{ \&.Breadcrumb T}@T{ T}@T{ @@ -18770,6 +20393,13 @@ T}@T{ T}@T{ The UTC timestamp of an entry. T} +T{ +T}@T{ +\&.MimeType +T}@T{ +The MIME type of an entry guessed from its name, or +\[aq]inode/directory\[aq]. +T} .TE .PP The server also makes the following functions available so that they can @@ -18842,8 +20472,21 @@ htpasswd -B htpasswd anotherUser \f[R] .fi .PP +Use the same hash format and cost for every entry in the file. +If the entries differ, the time taken to reject a wrong password can +reveal which usernames exist. +.PP The password file can be updated while rclone is running. .PP +When authentication is enabled every request must be authenticated, +including HTTP OPTIONS requests, as the answer to an OPTIONS request can +reveal whether a path exists. +Health checks or monitoring which use unauthenticated OPTIONS requests +will need to send credentials. +The exception is browser CORS preflight requests when +\f[V]--allow-origin\f[R] is set, which are answered without +authentication as browsers never send credentials with them. +.PP Use \f[V]--realm\f[R] to set the authentication realm. .PP Use \f[V]--salt\f[R] to change the password hashing salt from the @@ -18921,8 +20564,8 @@ at all times. The buffered data is bound to one open file and won\[aq]t be shared. .PP This flag is a upper limit for the used memory per open file. -The buffer will only use memory for data that is downloaded but not not -yet read. +The buffer will only use memory for data that is downloaded but not yet +read. If the buffer is empty, only a small amount of memory will be used. .PP The maximum memory used by rclone for buffering can be up to @@ -18984,7 +20627,8 @@ This cache flushing strategy is efficient and more relevant files are likely to remain cached. .PP The \f[V]--vfs-cache-max-age\f[R] will evict files from the cache after -the set time since last access has passed. +the set time since last access has passed; it is based on access time, +not on when the file was first added to the cache. The default value of 1 hour will start evicting files from cache that haven\[aq]t been accessed for 1 hour. When a cached file is accessed the 1 hour timer is reset to 0 and will @@ -19157,8 +20801,8 @@ Rclone reads \f[V]--vfs-read-chunk-streams\f[R] chunks of size \f[V]--vfs-read-chunk-size\f[R] concurrently. The size for each read will stay constant. .PP -This improves performance performance massively on high latency links or -very high bandwidth links to high performance object stores. +This improves performance massively on high latency links or very high +bandwidth links to high performance object stores. .PP Some experimentation will be needed to find the optimum values of \f[V]--vfs-read-chunk-size\f[R] and \f[V]--vfs-read-chunk-streams\f[R] @@ -19438,9 +21082,12 @@ This config generated must have this extra parameter .IP \[bu] 2 \f[V]_root\f[R] - root to use for the backend .PP -And it may have this parameter +And it may have these parameters .IP \[bu] 2 \f[V]_obscure\f[R] - comma separated strings for parameters to obscure +.IP \[bu] 2 +\f[V]_secret_access_key\f[R] - the secret for S3 access key auth (see +below) .PP If password authentication was used by the client, input to the proxy process (on STDIN) would look similar to this: @@ -19449,7 +21096,8 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]pass\[dq]: \[dq]mypassword\[dq] + \[dq]pass\[dq]: \[dq]mypassword\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi @@ -19461,11 +21109,51 @@ process (on STDIN) would look similar to this: \f[C] { \[dq]user\[dq]: \[dq]me\[dq], - \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq] + \[dq]public_key\[dq]: \[dq]AAAAB3NzaC1yc2EAAAADAQABAAABAQDuwESFdAe14hVS6omeyX7edc...JQdf\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] } \f[R] .fi .PP +If the client authenticated with an S3 access key +(\f[V]rclone serve s3\f[R]), the client never sends its secret, only a +signature made with it, so the input contains just the access key ID as +the \f[V]user\f[R] with no \f[V]pass\f[R] or \f[V]public_key\f[R]: +.IP +.nf +\f[C] +{ + \[dq]user\[dq]: \[dq]AKIAIOSFODNN7EXAMPLE\[dq], + \[dq]client_ip\[dq]: \[dq]192.168.1.1\[dq] +} +\f[R] +.fi +.PP +In this case the program must look up the secret access key for that +access key ID and return it in the \f[V]_secret_access_key\f[R] field of +the output. +Rclone then uses that secret to verify the signature on the request, +refusing the request if it does not match. +This means the proxy program is the source of truth for both the +credentials and the backend they map to. +If the program does not return \f[V]_secret_access_key\f[R] or returns +it empty the request is refused. +.PP +The program\[aq]s answer for an access key ID is cached (see below) but +is checked with the program again after 5 minutes even if the access key +ID is in constant use, so revoking an access key ID in the program takes +effect within 5 minutes. +A rotated secret takes effect on the first request signed with it. +.PP +The \f[V]client_ip\f[R] key holds the IP address the client connected +from, without a port number. +It can be used to restrict logins to certain networks, or to log +authentication attempts centrally. +It is omitted if the client has no IP address, for example when +connecting over a unix socket. +Note that if rclone is behind a reverse proxy this will be the address +of the reverse proxy and not the original client. +.PP And as an example return this on STDOUT .IP .nf @@ -19496,12 +21184,21 @@ the \f[V]user\f[R] be \f[V]user\[at]example.com\f[R] and then set the For security you\[aq]d probably want to restrict the \f[V]host\f[R] to a limited list. .PP -An internal cache of backends is keyed on the \f[V]user\f[R] and a hash -of the \f[V]pass\f[R] or \f[V]public_key\f[R]. -This means that if a user\[aq]s password or public-key changes, or the -proxy returns different config parameters (eg a rotated -\f[V]api_key\f[R]), a fresh backend will be created on the next request -rather than the cached one being reused. +An internal cache of backends is keyed on the \f[V]user\f[R], the kind +of credential presented, a hash of the \f[V]pass\f[R] or +\f[V]public_key\f[R], and the \f[V]client_ip\f[R]. +This means that if a user\[aq]s password or public-key changes, the +client connects from a new IP address, or the proxy returns different +config parameters (eg a rotated \f[V]api_key\f[R]), a fresh backend will +be created on the next request rather than the cached one being reused. +A backend created for a public key login is never reused for a password +login, so a public key cannot be sent as a password to skip the program. +.PP +A cached answer is checked with the program again after 5 minutes even +if the user is in constant use, so revoking a user in the program takes +effect within 5 minutes. +For \f[V]serve sftp\f[R] this applies to new logins - an existing +connection is not closed. .PP This can be used to build general purpose proxies to any kind of backend that rclone supports. @@ -19927,7 +21624,7 @@ This command runs a series of uploads and downloads to the remote, measuring and printing the speed of each test using varying file sizes and numbers of files. .PP -Test time can be innaccurate with small file caps and large files. +Test time can be inaccurate with small file caps and large files. As it uses the results of an initial test to determine how many files to use in each subsequent test. .PP @@ -19999,13 +21696,19 @@ time instead of the current time. Times may be specified as one of: .IP \[bu] 2 \[aq]YYMMDD\[aq] - e.g. -17.10.30 +171030 +.IP \[bu] 2 +\[aq]YYYY-MM-DD\[aq] - e.g. +2006-01-02 .IP \[bu] 2 \[aq]YYYY-MM-DDTHH:MM:SS\[aq] - e.g. 2006-01-02T15:04:05 .IP \[bu] 2 \[aq]YYYY-MM-DDTHH:MM:SS.SSS\[aq] - e.g. 2006-01-02T15:04:05.123456789 +.IP \[bu] 2 +\[aq]YYYY-MM-DDTHH:MM:SSZ\[aq] - e.g. +2006-01-02T15:04:05Z .PP Note that value of \f[V]--timestamp\f[R] is in UTC. If you want local time then add the \f[V]--localtime\f[R] flag. @@ -20525,6 +22228,11 @@ This is mostly a problem on Windows, where the console traditionally uses a non-Unicode character set - defined by the so-called \[dq]code page\[dq]. .PP +If you want to configure a remote using environment variables then its +name becomes part of the environment variable name, which in practice +restricts the characters you can use in it. +See the Config file section under Environment variables for details. +.PP Do not use single character names on Windows as it creates ambiguity with Windows drives\[aq] names, e.g.: remote called \f[V]C\f[R] is indistinguishable from \f[V]C\f[R] drive. @@ -20579,6 +22287,8 @@ Not all global variables make sense to be overridden like this as the config is only applied during the remote creation. Here is a non exhaustive list of ones which might be useful: .IP \[bu] 2 +\f[V]allow_https_downgrade\f[R] +.IP \[bu] 2 \f[V]bind_addr\f[R] .IP \[bu] 2 \f[V]ca_cert\f[R] @@ -21011,6 +22721,143 @@ precedence if supplied in the metadata over reading the .PP Hashes are not included in system metadata as there is a well defined way of reading those already. +.SS Performance +.PP +Rclone\[aq]s defaults are fairly conservative. +They are chosen to work on small machines, slow links and with cloud +providers which rate limit heavily. +If you have plenty of bandwidth, memory and a fast storage system then +rclone can usually be made to run a great deal faster by adjusting a few +flags. +.PP +The right values depend on the size of your files, your network and the +storage systems at each end, so treat the numbers below as starting +points. +Change one thing at a time and measure the result. +.SS Measuring +.PP +Use \f[V]rclone copy\f[R] with -P/--progress to watch the transfer rate +while you are experimenting. +For unattended runs log the stats instead, e.g. +\f[V]--stats 1m --stats-one-line --stats-log-level NOTICE\f[R]. +.PP +A transfer is always limited by something: the network bandwidth, the +rate at which the storage system will accept requests, disk IO, CPU or +memory. +Tuning is working out which limit you are hitting and raising it until +you hit the next one. +Watch the network, disk, CPU and memory use of the machine rclone is +running on as well as rclone\[aq]s stats. +.SS Lots of files +.PP +The time taken to transfer small files is dominated by the round trip +time of the requests rather than by the bandwidth, so the way to make +them go faster is to do more of them at once. +.PP +--transfers sets the number of files transferred in parallel. +The default is 4. +Double this until the transfer rate stops increasing or the storage +system starts returning errors. +Values of 32 to 64 are common and values in the hundreds work well with +the large object storage systems (e.g. +s3, azureblob, googlecloudstorage, b2) when transferring lots of small +files. +.PP +--checkers sets the number of directory listings and file comparisons +done in parallel. +The default is 8. +Raising this speeds up syncs where most of the files are already present +on the destination and stops the checking being the bottleneck when +\f[V]--transfers\f[R] is large. +16 to 64 is a reasonable range. +.PP +Not all storage systems like lots of parallel requests. +If you see rate limiting errors (e.g. +HTTP 429 or 503 errors) or lots of low level retries in the log then you +have gone too far, so reduce \f[V]--transfers\f[R] and +\f[V]--checkers\f[R] or use --tpslimit to cap the request rate. +Local disks, especially spinning ones, and network file systems may get +slower rather than faster with too much parallelism. +.SS Large files +.PP +A single stream often won\[aq]t fill a fast link, so rclone can transfer +a large file as several chunks in parallel. +These are called multi-thread transfers and are used for files bigger +than --multi-thread-cutoff on backends which support them. +.PP +The number of chunks transferred in parallel is set by +--multi-thread-streams (default 4) and this works for all backends so +increase this first to make large files transfer faster. +.PP +The size of the chunks is set by the backend, usually with a +\f[V]--backend-chunk-size\f[R] flag, e.g. +\f[V]--s3-chunk-size\f[R]. +Backends without a natural chunk size (e.g. +local, smb) use --multi-thread-chunk-size. +Larger chunks mean fewer requests which increases throughput on big +files. +See the docs for the backend you are using for details. +.PP +Chunked uploads are usually buffered in memory, so in the worst case +rclone will use +.IP +.nf +\f[C] +--transfers * upload concurrency * chunk size +\f[R] +.fi +.PP +of memory for buffers. +For example \f[V]--transfers 256\f[R] with an upload concurrency of 8 +and a chunk size of 16 MiB could use up to 32 GiB. +When you raise \f[V]--transfers\f[R] to speed up small files you may +therefore need to lower the upload concurrency, or set +--max-buffer-memory which limits the total memory used for buffers and +makes transfers wait when the limit is reached. +.PP +--use-mmap makes rclone return buffer memory to the OS as soon as it has +finished with it which is helpful when using lots of transfers or large +chunks. +.SS A mixture of large and small files +.PP +By default rclone transfers files in roughly the order it finds them. +With a mixture of file sizes this means that at times all the transfers +are large files, which fill the bandwidth but make few requests, and at +other times all the transfers are small files, which make lots of +requests but use little of the bandwidth. +.PP +Using --order-by \f[V]size,mixed,50\f[R] makes half of the transfers +take the smallest files in the backlog and half of them take the +largest. +This keeps both large and small files moving at once so the bandwidth +and the request rate are both kept full for the whole of the run. +.PP +This works best if rclone has lots of files to choose from so use it +with a big --max-backlog, e.g. +\f[V]--max-backlog 2000000\f[R]. +Each item in the backlog uses in the order of 1 KiB of memory. +.SS Doing less work +.PP +Fewer requests to the storage system means a faster transfer. +.IP \[bu] 2 +If the source and destination are on the same remote then rclone will +use server-side copy where it is supported so the data doesn\[aq]t need +to be downloaded and uploaded again. +.IP \[bu] 2 +--fast-list lists bucket-based remotes with fewer transactions at the +cost of using more memory. +This may be faster or slower than the default so it is worth testing. +.IP \[bu] 2 +--no-traverse stops rclone listing the destination which helps when +copying a small number of files into a large destination. +.IP \[bu] 2 +--size-only or --checksum avoid reading the modification time. +On some object storage systems (e.g. +s3, swift) this needs an extra request for each file. +Alternatively use --use-server-modtime with \f[V]--update\f[R]. +.IP \[bu] 2 +--no-check-dest skips checking the destination entirely. +Only use this if you know that none of the files are there already. .SS Options .PP Rclone has a number of options to control its behaviour. @@ -21098,8 +22945,8 @@ The following suffixes are valid: .IP \[bu] 2 \f[V]y\f[R] - Years .PP -Examples: \[dq]10\[dq], \[dq]300ms\[dq], \[dq]-1.5h\[dq] or -\[dq]2h45m\[dq]. +Examples: \[dq]10\[dq], \[dq]300ms\[dq], \[dq]-1.5h\[dq], +\[dq]2h45m\[dq] or \[dq]1d12h\[dq]. .SS Size options .PP Options that take a SizeSuffix parameter can be specified as an integer @@ -21113,6 +22960,21 @@ These are the binary units, e.g. .PP See also --human-readable. .SS Main options +.SS --allow-https-downgrade +.PP +By default rclone refuses to follow a redirect from an +\f[V]https://\f[R] URL to a plain \f[V]http://\f[R] URL, as any +credentials or other headers in the request would then be sent +unencrypted, and the response could be altered by anyone on the network +path. +The request fails with an error which mentions this flag. +.PP +Set \f[V]--allow-https-downgrade\f[R] to follow such redirects, for +example when downloading from a mirror which redirects to plain HTTP. +Some backends still refuse to follow them, as doing so would send their +credentials in cleartext. +.PP +This option defaults to \f[V]false\f[R]. .SS --backup-dir string .PP When using sync (https://rclone.org/commands/rclone_sync/), @@ -21270,7 +23132,7 @@ Is equivalent to this: .IP .nf \f[C] ---bwlimit \[dq]Mon-00:00,512Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off\[dq] +--bwlimit \[dq]Mon-00:00,512 Mon-12:00,1M Tue-12:00,1M Wed-12:00,1M Thu-12:00,1M Fri-12:00,1M Sat-12:00,1M Sun-12:00,1M Sun-20:00,off\[dq] \f[R] .fi .PP @@ -21333,7 +23195,8 @@ Each \f[V]--transfer\f[R] will use this much memory for buffering. .PP When using \f[V]mount\f[R] or \f[V]cmount\f[R] each open file descriptor will use this much memory for buffering. -See the mount (https://rclone.org/commands/rclone_mount/#file-buffering) +See the +mount (https://rclone.org/commands/rclone_mount/#vfs-file-buffering) documentation for more details. .PP Set to \f[V]0\f[R] to disable the buffering for the minimum memory @@ -21647,7 +23510,7 @@ See the dedupe (https://rclone.org/commands/rclone_dedupe/) command for more information as to what these options mean. .SS --default-time Time .PP -If a file or directory does have a modification time rclone can read +If a file or directory does not have a modification time rclone can read then rclone will display this fixed time instead. .PP The default is \f[V]2000-01-01 00:00:00 UTC\f[R]. @@ -21830,6 +23693,13 @@ downloads use \f[V]--header-download\f[R]. This flag is supported for all HTTP based backends even those not supported by \f[V]--header-upload\f[R] and \f[V]--header-download\f[R] so may be used as a workaround for those with care. +.PP +The headers are only sent to the host of the original request. +If the server redirects to another host (including a subdomain or a +different port), or redirects an \f[V]https\f[R] request to +\f[V]http\f[R], the headers are not sent to it, or to any further hop in +that redirect chain. +Rclone logs this at debug level (\f[V]-vv\f[R]). .IP .nf \f[C] @@ -22042,6 +23912,12 @@ Note that on the local file system if you don\[aq]t use And if you do use \f[V]--inplace\f[R] you won\[aq]t be able to update in use executables. .PP +On macOS, if rclone clones a file (see +--local-no-clone (https://rclone.org/local/#local-no-clone)) and the +destination already exists, the existing file is replaced with a new +one, even with \f[V]--inplace\f[R], so hard links to it will be broken. +Use \f[V]--local-no-clone\f[R] to keep them. +.PP Note also that versions of rclone prior to v1.63.0 behave as if the \f[V]--inplace\f[R] flag is always supplied. .SS -i, --interactive @@ -22103,7 +23979,7 @@ like symlinks under Windows). Ignored files won\[aq]t be copied, moved or deleted in a sync. .PP If you supply this flag then rclone will copy symbolic links from any -supported backend backend, and store them as text files, with a +supported backend, and store them as text files, with a \f[V].rclonelink\f[R] suffix in the destination. .PP The text file will contain the target of the symbolic link. @@ -22705,9 +24581,9 @@ overview (https://rclone.org/overview/#optional-features) as \f[V]MultithreadUpload\f[R]. (They need to implement either the \f[V]OpenWriterAt\f[R] or \f[V]OpenChunkWriter\f[R] internal interfaces). -These include include, \f[V]local\f[R], \f[V]s3\f[R], -\f[V]azureblob\f[R], \f[V]b2\f[R], \f[V]oracleobjectstorage\f[R] and -\f[V]smb\f[R] at the time of writing. +These include \f[V]local\f[R], \f[V]s3\f[R], \f[V]azureblob\f[R], +\f[V]b2\f[R], \f[V]oracleobjectstorage\f[R] and \f[V]smb\f[R] at the +time of writing. .PP On the local disk, rclone preallocates the file (using \f[V]fallocate(FALLOC_FL_KEEP_SIZE)\f[R] on unix or @@ -22736,7 +24612,7 @@ In the worst case memory usage can be at maximum \f[V]--transfers\f[R] * \f[V]--multi-thread-chunk-size\f[R] * \f[V]--multi-thread-streams\f[R] or specifically for the s3 backend \f[V]--transfers\f[R] * \f[V]--s3-chunk-size\f[R] * \f[V]--s3-concurrency\f[R]. -However you can use the the +However you can use the --max-buffer-memory (https://rclone.org/docs/#max-buffer-memory) flag to control the maximum memory used here. .PP @@ -22867,8 +24743,11 @@ The first part describes what aspect is being measured: \f[V]name\f[R] - order by the full path of the files .IP \[bu] 2 \f[V]modtime\f[R] - order by the modification date of the files +.IP \[bu] 2 +\f[V]pattern\f[R] - order by a list of path glob patterns .PP -This can have a modifier appended with a comma: +The \f[V]size\f[R], \f[V]name\f[R] and \f[V]modtime\f[R] comparisons can +have a modifier appended with a comma: .IP \[bu] 2 \f[V]ascending\f[R] or \f[V]asc\f[R] - order so that the smallest (or oldest) is processed first @@ -22892,6 +24771,15 @@ will be processed continuously. .PP If no modifier is supplied then the order is \f[V]ascending\f[R]. .PP +For \f[V]pattern\f[R], append one or more comma-separated patterns. +Patterns use the filter pattern +syntax (https://rclone.org/filtering/#patterns). +Files matching the first pattern are processed first, followed by files +matching the second pattern, and so on. +Files which do not match a pattern are processed last. +Within each group, files are ordered by full path. +Patterns cannot contain a comma. +.PP For example .IP \[bu] 2 \f[V]--order-by size,desc\f[R] - send the largest files first @@ -22900,6 +24788,9 @@ For example .IP \[bu] 2 \f[V]--order-by name\f[R] - send the files with alphabetically by path first +.IP \[bu] 2 +\f[V]--order-by \[aq]pattern,*.tar.gz,*.md5\[aq]\f[R] - send archives +before checksum files .PP If the \f[V]--order-by\f[R] flag is not supplied or it is supplied with an empty string then the default ordering will be used which is as @@ -22946,6 +24837,8 @@ If one of the arguments has a space in then enclose it in \f[V]\[dq]\f[R], if you want a literal \f[V]\[dq]\f[R] in an argument then enclose the argument in \f[V]\[dq]\f[R] and double the \f[V]\[dq]\f[R]. +This includes the command itself: if the path to the executable contains +a space, it must be quoted too. See CSV encoding (https://godoc.org/encoding/csv) for more info. .PP Eg @@ -22955,6 +24848,7 @@ Eg --password-command \[dq]echo hello\[dq] --password-command \[aq]echo \[dq]hello with space\[dq]\[aq] --password-command \[aq]echo \[dq]hello with \[dq]\[dq]quotes\[dq]\[dq] and space\[dq]\[aq] +--password-command \[aq]\[dq]/path with a space/get-password.sh\[dq]\[aq] \f[R] .fi .PP @@ -24177,9 +26071,13 @@ backend. To find the name of the environment variable, you need to set, take \f[V]RCLONE_CONFIG_\f[R] + name of remote + \f[V]_\f[R] + name of config file option and make it all uppercase. -Note one implication here is the remote\[aq]s name must be convertible -into a valid environment variable name, so it can only contain letters, -digits, or the \f[V]_\f[R] (underscore) character. +Note that the name of the remote is only converted to uppercase - +characters such as \f[V]-\f[R] and \f[V].\f[R] are not changed to +\f[V]_\f[R] - so a remote called \f[V]my-remote\f[R] needs +\f[V]RCLONE_CONFIG_MY-REMOTE_TYPE\f[R]. +Many shells only allow letters, digits and \f[V]_\f[R] (underscore) in +environment variable names, so it is best to use only those characters +in the name of a remote you want to configure this way. .PP For example, to configure an S3 remote named \f[V]mys3:\f[R] without a config file (using unix ways of setting environment variables): @@ -24489,7 +26387,7 @@ Rclone matching rules follow a glob style: * matches any sequence of non-separator (/) characters ** matches any sequence of characters including / separators ? matches any single non-separator (/) character -[ [ ! ] { character-range } ] +[ [ ! | \[ha] ] { character-range } ] character class (must be non-empty) { pattern-list } pattern alternatives @@ -25873,6 +27771,10 @@ open. .IP \[bu] 2 The URL already contains the username & password, in which case the GUI will use those values and log you in automatically. +.PP +The rc address is passed to the GUI via the \f[V]url\f[R] query +parameter (the URL printed in the terminal); append +\f[V]?url=http://...\f[R] to point it at a different rc server. .SS Security .PP It\[aq]s important to think first about what rclone has access to and @@ -26086,10 +27988,20 @@ Default Off. .PP Set the allowed Access-Control-Allow-Origin for rc requests. .PP -Can be used with --rc-web-gui if the rclone is running on different IP -than the web-gui. +This enables cross-origin (CORS) requests from browsers on the origin +given, for example \f[V]--rc-allow-origin https://app.example.com\f[R]. +Browser CORS preflight OPTIONS requests are answered by rclone without +authentication as browsers never send credentials with them. +All other requests, including other OPTIONS requests, must be +authenticated when authentication is enabled. .PP -Default is IP address on which rc is running. +The \f[V]rclone gui\f[R] command sets this automatically to the origin +the GUI is served from if it is not set explicitly. +.PP +Setting this to \f[V]*\f[R] allows any origin which is a security risk +on an authenticated server. +.PP +Default is off (no CORS). .SS --rc-web-fetch-url .PP Set the URL to fetch the rclone-web-gui files from. @@ -26133,6 +28045,9 @@ use these methods. The alternative is to use \f[V]--rc-user\f[R] and \f[V]--rc-pass\f[R] and use these credentials in the request. .PP +Without authorisation or this flag, POST request bodies are limited to +64 KiB. +.PP Default Off. .SS --rc-baseurl .PP @@ -26221,6 +28136,35 @@ Rather than rclone rc operations/list --json \[aq]{\[dq]fs\[dq]: \[dq]/tmp\[dq], \[dq]remote\[dq]: \[dq]test\[dq], \[dq]opt\[dq]: {\[dq]showHash\[dq]: true}}\[aq] \f[R] .fi +.SS Paths on Windows +.PP +Prefer forward slashes (\f[V]/\f[R]) in Windows paths passed to the rc +API, for example \f[V]C:/path1/path2\f[R]. +If you use backslashes (\f[V]\[rs]\f[R]) in a JSON string, escape each +one as \f[V]\[rs]\[rs]\f[R]. +These JSON objects contain equivalent Windows paths: +.IP +.nf +\f[C] +{\[dq]remote\[dq]: \[dq]C:/path1/path2\[dq]} +\f[R] +.fi +.IP +.nf +\f[C] +{\[dq]remote\[dq]: \[dq]C:\[rs]\[rs]path1\[rs]\[rs]path2\[dq]} +\f[R] +.fi +.PP +This applies to JSON request bodies and to JSON-encoded object +parameters, such as \f[V]parameters\f[R] in \f[V]config/create\f[R], +even when that JSON is sent in a query string or form data. +An unescaped backslash can cause a JSON parsing error or be interpreted +as an escape sequence, such as \f[V]\[rs]t\f[R] for a tab. +.PP +String parameters sent directly in a query string or form data, without +JSON encoding, do not need JSON escaping. +Use your HTTP client\[aq]s URL encoding for query strings and form data. .SS Special parameters .PP The rc interface supports some special parameters which apply to @@ -26426,6 +28370,18 @@ Or flat: If you wish to check the \f[V]_config\f[R] assignment has worked properly then calling \f[V]options/local\f[R] will show what the value got set to. +.PP +Setting \f[V]LogLevel\f[R] sets the log level for the logs made by the +rc call only, for example to debug a single call. +.IP +.nf +\f[C] +\[dq]_config\[dq]:{\[dq]LogLevel\[dq]: \[dq]DEBUG\[dq]} +\f[R] +.fi +.PP +Note that not all of rclone\[aq]s logs support this yet. +In particular the backends log at the global log level. .SS Setting filter flags with _filter .PP If you wish to set filters for the duration of an rc call only then pass @@ -27425,6 +29381,7 @@ Returns the following values: \[dq]totalTransfers\[dq]: total number of transfers in the group, \[dq]transferTime\[dq] : total time spent on running jobs, \[dq]transfers\[dq]: number of transferred files, + \[dq]updatedDirs\[dq]: number of directories updated (modtime or metadata set), \[dq]transferring\[dq]: an array of currently active file transfers: [ { @@ -27744,8 +29701,6 @@ jobids - array of integer job ids (starting at 1 on each restart) runningIds - array of integer job ids that are running .IP \[bu] 2 finishedIds - array of integer job ids that are finished -.PP -\f[B]Authentication is not required for this call.\f[R] .SS job/status: Reads the status of the job ID .PP Parameters: @@ -27779,8 +29734,6 @@ output - output of the job as would have been returned if called synchronously .IP \[bu] 2 progress - output of the progress related to the underlying job -.PP -\f[B]Authentication is not required for this call.\f[R] .SS job/stop: Stop the running job .PP Parameters: @@ -28193,6 +30146,37 @@ instead: rclone rc --loopback operations/fsinfo fs=remote: \f[R] .fi +.SS operations/getfile: Get a single file into a JSON response. +.PP +This takes the following parameters: +.IP \[bu] 2 +fs - a remote name string e.g. +\[dq]drive:path/to/file\[dq] or \[dq]drive:path/to/dir\[dq] +.IP \[bu] 2 +remote - (optional) a path within that remote e.g. +\[dq]file.txt\[dq] +.IP \[bu] 2 +offset - (optional) start reading at offset N (or from end if negative) +(default 0) +.IP \[bu] 2 +count - (optional) only read N bytes (default -1) +.IP \[bu] 2 +head - (optional) only read the first N bytes (default 0) +.IP \[bu] 2 +tail - (optional) only read the last N bytes (default 0) +.IP \[bu] 2 +maxSize - (optional) maximum size limit in bytes (can only lower the +built-in maximum) (default 2097152 / 2MiB) +.IP \[bu] 2 +base64 - (optional) if true, returns the file contents base64-encoded +(default false) +.PP +Returns: +.IP \[bu] 2 +result - contents of the file as string or base64-encoded string +.PP +For streaming file content over HTTP with Range support, use the +--rc-serve flag instead. .SS operations/hashsum: Produces a hashsum file for all the objects in the path. .PP Produces a hash file for all the objects in the path using the hash @@ -28291,6 +30275,47 @@ $ rclone rc --loopback operations/hashsumfile fs=/ remote=/bin/bash hashType=MD5 .PP See the hashsum (https://rclone.org/commands/rclone_hashsum/) command for more information on the above. +.SS operations/index: Write static directory listings into a remote +.PP +This takes the following parameters: +.IP \[bu] 2 +fs - a remote name string e.g. +\[dq]drive:\[dq] +.IP \[bu] 2 +opt - a dictionary of options to control the indexing (optional) +.RS 2 +.IP \[bu] 2 +output - list of listings to write in each directory as +\[dq]NAME=FORMAT\[dq] (default [\[dq]index.html=html\[dq]]) +.IP \[bu] 2 +rules - which directories get listings, e.g. +{\[dq]ExcludeRule\[dq]: [\[dq]/private/**\[dq]]} +.IP \[bu] 2 +maxDepth - only make listings this many directories deep (default -1 for +no limit) +.IP \[bu] 2 +linkIndex - link to \[dq]dir/NAME\[dq] rather than \[dq]dir/\[dq] +.IP \[bu] 2 +dirTime - how to work out directory times: \[dq]newest\[dq], +\[dq]dir\[dq] or \[dq]none\[dq] +.IP \[bu] 2 +noModTime - don\[aq]t show modification times +.IP \[bu] 2 +rewrite - write every listing even if it is unchanged +.IP \[bu] 2 +changed - list of changed paths for a partial run, directories ending in +\[dq]/\[dq] +.IP \[bu] 2 +changedFrom - list of files of changed paths, one per line +.IP \[bu] 2 +changedCombined - list of files in the sync --combined report format +.IP \[bu] 2 +changedMaxDirs - do a full run if a partial one would list more +directories than this +.RE +.PP +See the index (https://rclone.org/commands/rclone_index/) command for +more information on the above. .SS operations/list: List the given remote and path in JSON format .PP This takes the following parameters: @@ -28586,98 +30611,6 @@ And this sets NOTICE level logs (normal without -v) rclone rc options/set --json \[aq]{\[dq]main\[dq]: {\[dq]LogLevel\[dq]: \[dq]NOTICE\[dq]}}\[aq] \f[R] .fi -.SS pluginsctl/addPlugin: Add a plugin using url -.PP -Used for adding a plugin to the webgui. -.PP -This takes the following parameters: -.IP \[bu] 2 -url - http url of the github repo where the plugin is hosted -(http://github.com/rclone/rclone-webui-react). -.PP -Example: -.PP -rclone rc pluginsctl/addPlugin -.SS pluginsctl/getPluginsForType: Get plugins with type criteria -.PP -This shows all possible plugins by a mime type. -.PP -This takes the following parameters: -.IP \[bu] 2 -type - supported mime type by a loaded plugin e.g. -(video/mp4, audio/mp3). -.IP \[bu] 2 -pluginType - filter plugins based on their type e.g. -(DASHBOARD, FILE_HANDLER, TERMINAL). -.PP -Returns: -.IP \[bu] 2 -loadedPlugins - list of current production plugins. -.IP \[bu] 2 -testPlugins - list of temporarily loaded development plugins, usually -running on a different server. -.PP -Example: -.PP -rclone rc pluginsctl/getPluginsForType type=video/mp4 -.SS pluginsctl/listPlugins: Get the list of currently loaded plugins -.PP -This allows you to get the currently enabled plugins and their details. -.PP -This takes no parameters and returns: -.IP \[bu] 2 -loadedPlugins - list of current production plugins. -.IP \[bu] 2 -testPlugins - list of temporarily loaded development plugins, usually -running on a different server. -.PP -E.g. -.PP -rclone rc pluginsctl/listPlugins -.SS pluginsctl/listTestPlugins: Show currently loaded test plugins -.PP -Allows listing of test plugins with the rclone.test set to true in -package.json of the plugin. -.PP -This takes no parameters and returns: -.IP \[bu] 2 -loadedTestPlugins - list of currently available test plugins. -.PP -E.g. -.IP -.nf -\f[C] -rclone rc pluginsctl/listTestPlugins -\f[R] -.fi -.SS pluginsctl/removePlugin: Remove a loaded plugin -.PP -This allows you to remove a plugin using it\[aq]s name. -.PP -This takes parameters: -.IP \[bu] 2 -name - name of the plugin in the format -\f[V]author\f[R]/\f[V]plugin_name\f[R]. -.PP -E.g. -.PP -rclone rc pluginsctl/removePlugin name=rclone/video-plugin -.SS pluginsctl/removeTestPlugin: Remove a test plugin -.PP -This allows you to remove a plugin using it\[aq]s name. -.PP -This takes the following parameters: -.IP \[bu] 2 -name - name of the plugin in the format -\f[V]author\f[R]/\f[V]plugin_name\f[R]. -.PP -Example: -.IP -.nf -\f[C] -rclone rc pluginsctl/removeTestPlugin name=rclone/rclone-webui-react -\f[R] -.fi .SS rc/error: This returns an error .PP This returns an error with the input as part of its error string. @@ -28890,6 +30823,11 @@ path2 (required) - (string) a remote directory string e.g. .IP \[bu] 2 dryRun - (bool) dry-run mode .IP \[bu] 2 +maxDelete - (int) Safety check on maximum percentage of deleted files +allowed. +If exceeded, the bisync run will abort. +(default: 50%) +.IP \[bu] 2 backupDir1 - (string) --backup-dir for Path1. Must be a non-overlapping path on the same remote. .PD 0 @@ -28981,6 +30919,12 @@ ignoreListingChecksum - (bool) Do not use checksums for listings (add .P .PD .IP \[bu] 2 +maxDeleteRenamesAware - (bool) Exclude tracked renames from the +--max-delete safety check (requires --track-renames) +.PD 0 +.P +.PD +.IP \[bu] 2 maxLock - (Duration) Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) .PD 0 @@ -29054,6 +30998,45 @@ dstFs - a remote name string e.g. \[dq]drive:dst\[dq] for the destination .IP \[bu] 2 createEmptySrcDirs - create empty src directories on destination if set +.IP \[bu] 2 +combined - make a combined report of changes (default false) +.IP \[bu] 2 +missingOnSrc - report all files missing from the source (default false) +.IP \[bu] 2 +missingOnDst - report all files missing from the destination (default +false) +.IP \[bu] 2 +match - report all matching files (default false) +.IP \[bu] 2 +differ - report all non-matching files (default false) +.IP \[bu] 2 +error - report all files with errors (hashing or reading) (default +false) +.IP \[bu] 2 +destAfter - report all files that exist on the destination post-copy +(default false) +.PP +Returns: +.IP \[bu] 2 +combined - array of strings of combined report of changes +.IP \[bu] 2 +missingOnSrc - array of strings of all files missing from the source +.IP \[bu] 2 +missingOnDst - array of strings of all files missing from the +destination +.IP \[bu] 2 +match - array of strings of all matching files +.IP \[bu] 2 +differ - array of strings of all non-matching files +.IP \[bu] 2 +error - array of strings of all files with errors (hashing or reading) +.IP \[bu] 2 +destAfter - array of strings of all files that exist on the destination +post-copy +.PP +Each report is only returned if its parameter is set to true. +If the operation fails the reports are only available if it was run with +\f[V]_async\f[R], as part of the job output. .PP See the copy (https://rclone.org/commands/rclone_copy/) command for more information on the above. @@ -29070,6 +31053,45 @@ dstFs - a remote name string e.g. createEmptySrcDirs - create empty src directories on destination if set .IP \[bu] 2 deleteEmptySrcDirs - delete empty src directories if set +.IP \[bu] 2 +combined - make a combined report of changes (default false) +.IP \[bu] 2 +missingOnSrc - report all files missing from the source (default false) +.IP \[bu] 2 +missingOnDst - report all files missing from the destination (default +false) +.IP \[bu] 2 +match - report all matching files (default false) +.IP \[bu] 2 +differ - report all non-matching files (default false) +.IP \[bu] 2 +error - report all files with errors (hashing or reading) (default +false) +.IP \[bu] 2 +destAfter - report all files that exist on the destination post-move +(default false) +.PP +Returns: +.IP \[bu] 2 +combined - array of strings of combined report of changes +.IP \[bu] 2 +missingOnSrc - array of strings of all files missing from the source +.IP \[bu] 2 +missingOnDst - array of strings of all files missing from the +destination +.IP \[bu] 2 +match - array of strings of all matching files +.IP \[bu] 2 +differ - array of strings of all non-matching files +.IP \[bu] 2 +error - array of strings of all files with errors (hashing or reading) +.IP \[bu] 2 +destAfter - array of strings of all files that exist on the destination +post-move +.PP +Each report is only returned if its parameter is set to true. +If the operation fails the reports are only available if it was run with +\f[V]_async\f[R], as part of the job output. .PP See the move (https://rclone.org/commands/rclone_move/) command for more information on the above. @@ -29084,6 +31106,45 @@ dstFs - a remote name string e.g. \[dq]drive:dst\[dq] for the destination .IP \[bu] 2 createEmptySrcDirs - create empty src directories on destination if set +.IP \[bu] 2 +combined - make a combined report of changes (default false) +.IP \[bu] 2 +missingOnSrc - report all files missing from the source (default false) +.IP \[bu] 2 +missingOnDst - report all files missing from the destination (default +false) +.IP \[bu] 2 +match - report all matching files (default false) +.IP \[bu] 2 +differ - report all non-matching files (default false) +.IP \[bu] 2 +error - report all files with errors (hashing or reading) (default +false) +.IP \[bu] 2 +destAfter - report all files that exist on the destination post-sync +(default false) +.PP +Returns: +.IP \[bu] 2 +combined - array of strings of combined report of changes +.IP \[bu] 2 +missingOnSrc - array of strings of all files missing from the source +.IP \[bu] 2 +missingOnDst - array of strings of all files missing from the +destination +.IP \[bu] 2 +match - array of strings of all matching files +.IP \[bu] 2 +differ - array of strings of all non-matching files +.IP \[bu] 2 +error - array of strings of all files with errors (hashing or reading) +.IP \[bu] 2 +destAfter - array of strings of all files that exist on the destination +post-sync +.PP +Each report is only returned if its parameter is set to true. +If the operation fails the reports are only available if it was run with +\f[V]_async\f[R], as part of the job output. .PP See the sync (https://rclone.org/commands/rclone_sync/) command for more information on the above. @@ -29358,9 +31419,12 @@ status - the HTTP status code path - the path of the call .SS CORS .PP -The sever implements basic CORS support and allows all origins for that. -The response to a preflight OPTIONS request will echo the requested -\[dq]Access-Control-Request-Headers\[dq] back. +The server implements basic CORS support when +\f[V]--rc-allow-origin\f[R] is set. +Browser CORS preflight OPTIONS requests are then answered by rclone +without authentication with the \f[V]Access-Control-*\f[R] headers. +Without \f[V]--rc-allow-origin\f[R] no CORS headers are sent and a +preflight request is authenticated like any other request. .SS Using POST with URL parameters only .IP .nf @@ -30922,6 +32986,7 @@ Flags for general networking and HTTP stuff. .IP .nf \f[C] + --allow-https-downgrade Follow redirects from HTTPS to HTTP (insecure) --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 @@ -30945,7 +33010,7 @@ Flags for general networking and HTTP stuff. --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 \[dq]rclone/v1.75.0\[dq]) + --user-agent string Set the user-agent to a specified string (default \[dq]rclone/v1.76.0\[dq]) \f[R] .fi .SS Performance @@ -31126,11 +33191,6 @@ Flags to control the Remote Control API. --rc-template string User-specified template --rc-user string User name for authentication --rc-user-from-header string User name from a defined HTTP header - --rc-web-fetch-url string URL to fetch the releases for webgui (default \[dq]https://api.github.com/repos/rclone/rclone-webui-react/releases/latest\[dq]) - --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\[aq]t open the browser automatically - --rc-web-gui-update Check and update to latest version of web gui \f[R] .fi .SS Metrics @@ -31192,8 +33252,10 @@ Backend-only flags (these can be set in the config file also). --azureblob-encoding Encoding 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-hns Tristate Set if the storage account has a hierarchical namespace (default unset) --azureblob-key string Storage Account Shared Key --azureblob-list-chunk int Size of blob list (default 5000) + --azureblob-list-parallelism int Number of parallel shards to list a directory with --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 @@ -31206,6 +33268,7 @@ Backend-only flags (these can be set in the config file also). --azureblob-tenant string ID of the service principal\[aq]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-arrow-list Use the Apache Arrow listing format --azureblob-use-az Use Azure CLI tool az for authentication --azureblob-use-copy-blob Whether to use the Copy Blob API when copying to the same storage account (default true) --azureblob-use-emulator Uses local storage emulator if provided as \[aq]true\[aq] @@ -31338,6 +33401,12 @@ Backend-only flags (these can be set in the config file also). --doi-doi string The DOI or the doi.org URL --doi-doi-resolver-api-url string The URL of the DOI resolver API to use --doi-provider string DOI provider + --dosya-api-key string Your API Key, get it from https://dosya.dev/profile under \[dq]API keys\[dq] + --dosya-api-url string API base URL (default \[dq]https://api.dosya.dev\[dq]) + --dosya-description string Description of the remote + --dosya-encoding Encoding The encoding for the backend (default Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --dosya-upload-concurrency int Concurrency for multipart uploads (default 4) + --dosya-workspace-id string Your workspace ID --drime-access-token string API Access token --drime-chunk-size SizeSuffix Chunk size to use for uploading (default 5Mi) --drime-description string Description of the remote @@ -31560,6 +33629,8 @@ Backend-only flags (these can be set in the config file also). --http-headers CommaSepList Set HTTP headers for all transactions --http-no-escape Do not escape URL metacharacters in path names --http-no-head Don\[aq]t use HEAD requests + --http-no-head-size SizeSuffix Set the reported file size for --http-no-head (default off) + --http-no-head-time Time Set a default modification time for --http-no-head (default off) --http-no-slash Set this if the site doesn\[aq]t end directories with / --http-url string URL of HTTP host to connect to --huaweidrive-auth-url string Auth server URL @@ -31619,6 +33690,17 @@ Backend-only flags (these can be set in the config file also). --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\[aq]s (default 10Mi) + --kdrive-auth-url string Auth server URL + --kdrive-chunk-size SizeSuffix Files above this size are uploaded in chunks of this size (default 20Mi) + --kdrive-client-id string OAuth Client Id + --kdrive-description string Description of the remote + --kdrive-drive-id string ID of the kDrive to use + --kdrive-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot) + --kdrive-endpoint string The API endpoint to use + --kdrive-root-folder-id string The folder to use as root + --kdrive-token string OAuth Access Token as a JSON blob + --kdrive-token-url string Token server url + --kdrive-upload-concurrency int Concurrency for chunked uploads (default 4) --koofr-description string Description of the remote --koofr-encoding Encoding The encoding for the backend (default Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot) --koofr-endpoint string The Koofr API endpoint to use @@ -31704,6 +33786,7 @@ Backend-only flags (these can be set in the config file also). --onedrive-root-folder-id string ID of the root folder --onedrive-server-side-across-configs Deprecated: use --server-side-across-configs instead --onedrive-tenant string ID of the service principal\[aq]s tenant. Also called its directory ID + --onedrive-tenant-api-version string The SharePoint API version to use with tenant_url (default \[dq]v2.0\[dq]) --onedrive-tenant-url string The tenant URL for non-admin OneDrive access --onedrive-token string OAuth Access Token as a JSON blob --onedrive-token-url string Token server url @@ -31718,7 +33801,7 @@ Backend-only flags (these can be set in the config file also). --oos-decompress If set this will decompress gzip encoded objects --oos-description string Description of the remote --oos-disable-checksum Don\[aq]t store MD5 checksum with object metadata - --oos-encoding Encoding The encoding for the backend (default Slash,InvalidUtf8,Dot) + --oos-encoding Encoding The encoding for the backend (default Slash,CrLf,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) @@ -31913,7 +33996,7 @@ Backend-only flags (these can be set in the config file also). --sftp-disable-concurrent-reads If set don\[aq]t use concurrent reads --sftp-disable-concurrent-writes If set don\[aq]t use concurrent writes --sftp-disable-hashcheck Disable the execution of SSH commands to determine if remote file hashing is available - --sftp-encoding Encoding The encoding for the backend (default Slash,Del,Ctl,Dot) + --sftp-encoding Encoding The encoding for the backend (default Slash,Dot) --sftp-hashes CommaSepList Comma separated list of supported checksum types --sftp-host string SSH host to connect to --sftp-host-key-algorithms SpaceSepList Space separated list of host key algorithms, ordered by preference @@ -31928,6 +34011,7 @@ Backend-only flags (these can be set in the config file also). --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-multithread-upload Set this to use multi-thread (multi-connection) uploads --sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-path-override string Override path used by SSH shell commands --sftp-pin-host-key Pin the server host key on first connection (Trust On First Use) @@ -31990,7 +34074,8 @@ Backend-only flags (these can be set in the config file also). --smb-port int SMB port number (default 445) --smb-spn string Service principal name --smb-use-kerberos Use Kerberos authentication - --smb-user string SMB username (default \[dq]$USER\[dq]) + --smb-user string SMB username + --smb-workstation string Workstation name sent in NTLM authentication --storj-access-grant string Access grant --storj-api-key string API key --storj-description string Description of the remote @@ -32065,6 +34150,7 @@ Backend-only flags (these can be set in the config file also). --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-app-folder Use the application folder as the root --yandex-auth-url string Auth server URL --yandex-client-credentials Use client credentials OAuth flow --yandex-client-id string OAuth Client Id @@ -32969,6 +35055,7 @@ Optional Flags: --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) + --max-delete-renames-aware Exclude tracked renames from the --max-delete safety check (requires --track-renames) --max-lock Duration Consider lock files older than this to be expired (default: 0 (never expire)) (minimum: 2m) (default 0s) --no-cleanup Retain working files (useful for troubleshooting and testing). --no-slow-hash Ignore listing checksums only on backends where they are slow @@ -33049,7 +35136,7 @@ symmetrical (https://github.com/rclone/rclone/issues/5681#issuecomment-938761815 and more symmetrical options can be specified with the \f[V]--resync-mode\f[R] flag.) Carefully evaluate deltas using ---dry-run (https://rclone.org/flags/#non-backend-flags). +--dry-run (https://rclone.org/docs/#n-dry-run). .PP For a resync run, one of the paths may be empty (no files in the path tree). @@ -33441,6 +35528,30 @@ To force the sync, either set a different delete percentage limit, e.g. \f[V]--force\f[R] to bypass the check. .PP Also see the all files changed check. +.SS --max-delete-renames-aware +.PP +When \f[V]--track-renames\f[R] is in use, +\f[V]--max-delete-renames-aware\f[R] can exclude files that are +guaranteed to match as tracked renames from the deletion count. +If the initial deletion count exceeds \f[V]--max-delete\f[R], bisync +performs a rename matching preflight before starting either sync +direction. +The run still aborts if the remaining unmatched deletions exceed the +limit. +.PP +The preflight uses the selected +\f[V]--track-renames-strategy\f[R] (https://rclone.org/docs/#track-renames-strategy) +and the attributes stored in the normal bisync listings. +A hash strategy forces both listings to use a common hash and is +incompatible with \f[V]--ignore-listing-checksum\f[R]. +The option only exempts matches when the destination supports +server-side moves or copies and the selected strategy is supported by +both paths. +It requires \f[V]--track-renames\f[R] and is disabled by default because +hashing may add listing time. +\f[V]--force\f[R] bypasses both the safety check and this preflight. +The preflight is also disabled during \f[V]--resync\f[R], when rename +tracking is unavailable. .SS --filters-file .PP By using rclone filter features you can exclude file types or directory @@ -33697,8 +35808,8 @@ This is normal, and any differences will be detected and synced on the next run. .PP For a robust integrity check of the current state of the remotes (as -opposed to just their listing snapshots), consider using \f[V]check\f[R] -(or +opposed to just their listing snapshots), consider using +\f[V]check\f[R] (https://rclone.org/commands/rclone_check/) (or \f[V]cryptcheck\f[R] (https://rclone.org/commands/rclone_cryptcheck/), if at least one path is a \f[V]crypt\f[R] remote) instead of \f[V]--check-sync\f[R], keeping in mind that differences are expected if @@ -34124,7 +36235,8 @@ 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 \f[I]identical\f[R] (using the same underlying -function as \f[V]check\f[R].) +function as +\f[V]check\f[R] (https://rclone.org/commands/rclone_check/).) If bisync concludes that the files are identical, it will skip them and move on. Otherwise, it will create renamed duplicates, as before. @@ -34270,24 +36382,38 @@ The following backends have known issues that need more investigation: .IP \[bu] 2 \f[V]TestBisyncRemoteLocal/extended_filenames\f[R] (https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) .IP \[bu] 2 -\f[V]TestBisyncRemoteLocal/normalization\f[R] (https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) -.IP \[bu] 2 \f[V]TestBisyncLocalRemote/ext_paths\f[R] (https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) .IP \[bu] 2 \f[V]TestBisyncLocalRemote/extended_filenames\f[R] (https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) .IP \[bu] 2 -4 more (https://pub.rclone.org/integration-tests/current/) +\f[V]TestBisyncLocalRemote/normalization\f[R] (https://pub.rclone.org/integration-tests/current/huaweidrive-cmd.bisync-TestHuaweiDrive-1.txt) +.IP \[bu] 2 +3 more (https://pub.rclone.org/integration-tests/current/) .RE .IP \[bu] 2 \f[V]TestPcloud\f[R] (\f[V]pcloud\f[R]) .RS 2 .IP \[bu] 2 -\f[V]TestBisyncRemoteRemote/check_access\f[R] (https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) -.IP \[bu] 2 -\f[V]TestBisyncRemoteRemote/rmdirs\f[R] (https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) +\f[V]TestBisyncRemoteRemote/extended_filenames\f[R] (https://pub.rclone.org/integration-tests/current/pcloud-cmd.bisync-TestPcloud-1.txt) .RE .IP \[bu] 2 -Updated: 2026-07-31-010017 +\f[V]TestYandex\f[R] (\f[V]yandex\f[R]) +.RS 2 +.IP \[bu] 2 +\f[V]TestBisyncRemoteLocal/all_changed\f[R] (https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) +.IP \[bu] 2 +\f[V]TestBisyncRemoteLocal/backupdir\f[R] (https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) +.IP \[bu] 2 +\f[V]TestBisyncRemoteLocal/basic\f[R] (https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) +.IP \[bu] 2 +\f[V]TestBisyncRemoteLocal/changes\f[R] (https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) +.IP \[bu] 2 +\f[V]TestBisyncRemoteLocal/check_access\f[R] (https://pub.rclone.org/integration-tests/current/yandex-cmd.bisync-TestYandex-1.txt) +.IP \[bu] 2 +94 more (https://pub.rclone.org/integration-tests/current/) +.RE +.IP \[bu] 2 +Updated: 2026-11-06-010024 .PP The following backends either have not been tested recently or have known issues that are deemed unfixable for the time being: @@ -34316,6 +36442,12 @@ known issues that are deemed unfixable for the time being: .IP \[bu] 2 \f[V]TestJottacloud\f[R] (\f[V]jottacloud\f[R]) .IP \[bu] 2 +\f[V]TestKdrive\f[R] (\f[V]kdrive\f[R]) +.RS 2 +.IP \[bu] 2 +\f[V]TestBisyncRemoteRemote/normalization\f[R] +.RE +.IP \[bu] 2 \f[V]TestLinkbox\f[R] (\f[V]linkbox\f[R]) .IP \[bu] 2 \f[V]TestMailru\f[R] (\f[V]mailru\f[R]) @@ -34340,9 +36472,11 @@ known issues that are deemed unfixable for the time being: .RS 2 .IP \[bu] 2 \f[V]TestBisyncRemoteRemote/extended_filenames\f[R] -.RE .IP \[bu] 2 -\f[V]TestS3Rclone\f[R] (\f[V]s3\f[R]) +\f[V]TestBisyncRemoteLocal/extended_filenames\f[R] +.IP \[bu] 2 +\f[V]TestBisyncLocalRemote/extended_filenames\f[R] +.RE .IP \[bu] 2 \f[V]TestSFTPRsyncNet\f[R] (\f[V]sftp\f[R]) .IP \[bu] 2 @@ -34443,11 +36577,12 @@ directory is to rename it to the same name on both sides. required after doing so, as bisync will automatically detect that Path1 and Path2 are in agreement.) .PP -Note that although the flag --track-renames ensures that renamed/moved -files won\[aq]t be deleted and uploaded again, they are still counted as -deleted files for purposes of the --max-delete flag (as this check -happens before the rename detection operation). -See this issue (https://github.com/rclone/rclone/issues/8685). +By default, renamed or moved files are still counted as deleted files +for purposes of \f[V]--max-delete\f[R], because the safety check happens +before rename detection. +Use \f[V]--max-delete-renames-aware\f[R] together with +\f[V]--track-renames\f[R] to run a rename preflight and exclude +guaranteed matches from this count. .SS \f[V]--fast-list\f[R] used by default .PP Unlike most other rclone commands, bisync uses @@ -35420,151 +37555,11 @@ Also note a number of academic publications by Benjamin Pierce (http://www.cis.upenn.edu/%7Ebcpierce/papers/index.shtml#File%20Synchronization) about \f[I]Unison\f[R] and synchronization in general. .SS Changelog -.SS \f[V]v1.74.2\f[R] -.IP \[bu] 2 -Fixed an issue causing \f[V]--conflict-loser pathname\f[R] to produce -unexpected behavior if using a non-default \f[V]--conflict-resolve\f[R] -value. -.SS \f[V]v1.74\f[R] -.IP \[bu] 2 -Added several missing \f[V]rc\f[R] parameters. -.IP \[bu] 2 -Optional \f[V]rc\f[R] parameters are now truly optional. -.IP \[bu] 2 -\f[V]rc\f[R] output now provides more structured information. -.SS \f[V]v1.71\f[R] -.IP \[bu] 2 -\f[V]bisync\f[R] is now officially released from beta. -.IP \[bu] 2 -Fixed an issue causing hash type to be set incorrectly if -\f[V]path2\f[R] had slow hashes and \f[V]--no-slow-hash\f[R] or -\f[V]--slow-hash-sync-only\f[R] was in use. -.IP \[bu] 2 -Fixed an issue causing errors when running concurrent bisync runs -through the \f[V]rc\f[R]. -.SS \f[V]v1.69.1\f[R] -.IP \[bu] 2 -Fixed an issue causing listings to not capture concurrent modifications -under certain conditions -.SS \f[V]v1.68\f[R] -.IP \[bu] 2 -Fixed an issue affecting backends that round modtimes to a lower -precision. -.SS \f[V]v1.67\f[R] -.IP \[bu] 2 -Added integration tests against all backends. -.SS \f[V]v1.66\f[R] -.IP \[bu] 2 -Copies and deletes are now handled in one operation instead of two -.IP \[bu] 2 -\f[V]--track-renames\f[R] and \f[V]--backup-dir\f[R] are now supported -.IP \[bu] 2 -Partial uploads known issue on -\f[V]local\f[R]/\f[V]ftp\f[R]/\f[V]sftp\f[R] has been resolved (unless -using \f[V]--inplace\f[R]) -.IP \[bu] 2 -Final listings are now generated from sync results, to avoid needing to -re-list -.IP \[bu] 2 -Bisync is now much more resilient to changes that happen during a bisync -run, and far less prone to critical errors / undetected changes -.IP \[bu] 2 -Bisync is now capable of rolling a file listing back in cases of -uncertainty, essentially marking the file as needing to be rechecked -next time. -.IP \[bu] 2 -A few basic terminal colors are now supported, controllable with -\f[V]--color\f[R] (https://rclone.org/docs/#color) -(\f[V]AUTO\f[R]|\f[V]NEVER\f[R]|\f[V]ALWAYS\f[R]) -.IP \[bu] 2 -Initial listing snapshots of Path1 and Path2 are now generated -concurrently, using the same \[dq]march\[dq] infrastructure as -\f[V]check\f[R] and \f[V]sync\f[R], for performance improvements and -less risk of -error (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=4.%20Listings%20should%20alternate%20between%20paths%20to%20minimize%20errors). -.IP \[bu] 2 -Fixed handling of unicode normalization and case insensitivity, support -for \f[V]--fix-case\f[R] (https://rclone.org/docs/#fix-case), -\f[V]--ignore-case-sync\f[R], -\f[V]--no-unicode-normalization\f[R] (https://rclone.org/docs/#no-unicode-normalization) -.IP \[bu] 2 -\f[V]--resync\f[R] is now much more efficient (especially for users of -\f[V]--create-empty-src-dirs\f[R]) -.IP \[bu] 2 -Google Docs (and other files of unknown size) are now supported (with -the same options as in \f[V]sync\f[R]) -.IP \[bu] 2 -Equality checks before a sync conflict rename now fall back to -\f[V]cryptcheck\f[R] (when possible) or \f[V]--download\f[R], instead of -of \f[V]--size-only\f[R], when \f[V]check\f[R] is not available. -.IP \[bu] 2 -Bisync no longer fails to find the correct listing file when configs are -overridden with backend-specific flags. -.IP \[bu] 2 -Bisync now fully supports comparing based on any combination of size, -modtime, and checksum, lifting the prior restriction on backends without -modtime support. -.IP \[bu] 2 -Bisync now supports a \[dq]Graceful Shutdown\[dq] mode to cleanly cancel -a run early without requiring \f[V]--resync\f[R]. -.IP \[bu] 2 -New \f[V]--recover\f[R] flag allows robust recovery in the event of -interruptions, without requiring \f[V]--resync\f[R]. -.IP \[bu] 2 -A new \f[V]--max-lock\f[R] setting allows lock files to automatically -renew and expire, for better automatic recovery when a run is -interrupted. -.IP \[bu] 2 -Bisync now supports auto-resolving sync conflicts and customizing rename -behavior with new \f[V]--conflict-resolve\f[R], -\f[V]--conflict-loser\f[R], and \f[V]--conflict-suffix\f[R] flags. -.IP \[bu] 2 -A new \f[V]--resync-mode\f[R] flag allows more control over which -version of a file gets kept during a \f[V]--resync\f[R]. -.IP \[bu] 2 -Bisync now supports -\f[V]--retries\f[R] (https://rclone.org/docs/#retries-int) and -\f[V]--retries-sleep\f[R] (when \f[V]--resilient\f[R] is set.) -.SS \f[V]v1.64\f[R] -.IP \[bu] 2 -Fixed an -issue (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Dry%20runs%20are%20not%20completely%20dry) -causing dry runs to inadvertently commit filter changes -.IP \[bu] 2 -Fixed an -issue (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=2.%20%2D%2Dresync%20deletes%20data%2C%20contrary%20to%20docs) -causing \f[V]--resync\f[R] to erroneously delete empty folders and -duplicate files unique to Path2 -.IP \[bu] 2 -\f[V]--check-access\f[R] is now enforced during \f[V]--resync\f[R], -preventing data loss in certain user error -scenarios (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=%2D%2Dcheck%2Daccess%20doesn%27t%20always%20fail%20when%20it%20should) -.IP \[bu] 2 -Fixed an -issue (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=5.%20Bisync%20reads%20files%20in%20excluded%20directories%20during%20delete%20operations) -causing bisync to consider more files than necessary due to overbroad -filters during delete operations -.IP \[bu] 2 -Improved detection of false positive change -conflicts (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=1.%20Identical%20files%20should%20be%20left%20alone%2C%20even%20if%20new/newer/changed%20on%20both%20sides) -(identical files are now left alone instead of renamed) -.IP \[bu] 2 -Added support for -\f[V]--create-empty-src-dirs\f[R] (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=3.%20Bisync%20should%20create/delete%20empty%20directories%20as%20sync%20does%2C%20when%20%2D%2Dcreate%2Dempty%2Dsrc%2Ddirs%20is%20passed) -.IP \[bu] 2 -Added experimental \f[V]--resilient\f[R] mode to allow recovery from -self-correctable -errors (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=2.%20Bisync%20should%20be%20more%20resilient%20to%20self%2Dcorrectable%20errors) -.IP \[bu] 2 -Added new \f[V]--ignore-listing-checksum\f[R] -flag (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=6.%20%2D%2Dignore%2Dchecksum%20should%20be%20split%20into%20two%20flags%20for%20separate%20purposes) -to distinguish from \f[V]--ignore-checksum\f[R] -.IP \[bu] 2 -Performance -improvements (https://forum.rclone.org/t/bisync-bugs-and-feature-requests/37636#:~:text=6.%20Deletes%20take%20several%20times%20longer%20than%20copies) -for large remotes -.IP \[bu] 2 -Documentation and testing improvements +.PP +Changes to bisync are listed in the rclone +changelog (https://rclone.org/changelog/). +The changelog this page kept until \f[V]v1.76\f[R] is archived on +GitHub (https://github.com/rclone/rclone/blob/0891ce30606c726990c98d70812d31b555782791/docs/content/bisync.md?plain=1#L1934-L2061). .SH Release signing .PP The hashes of the binary artefacts of the rclone release are signed with @@ -35707,10 +37702,20 @@ Repeat for \f[V]MD5SUMS\f[R] and \f[V]SHA1SUMS\f[R] if desired. .PP Now that we know the signatures on the hashes are OK we can verify the binaries match the hashes, completing the verification. +.PP +Extract the signed data with: .IP .nf \f[C] -$ sha256sum -c SHA256SUMS 2>&1 | grep OK +$ gpg --output SHA256SUMS.signed --decrypt SHA256SUMS +\f[R] +.fi +.PP +Then check the binaries: +.IP +.nf +\f[C] +$ sha256sum -c --ignore-missing SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip: OK \f[R] .fi @@ -35719,11 +37724,7 @@ Or do the check with rclone .IP .nf \f[C] -$ 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 hashsum sha256 -C SHA256SUMS.signed rclone-v1.63.1-windows-amd64.zip = 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 @@ -36225,10 +38226,14 @@ Ceph .IP \[bu] 2 China Mobile Ecloud Elastic Object Storage (EOS) .IP \[bu] 2 +Clever Cloud Cellar +.IP \[bu] 2 Cloudflare R2 .IP \[bu] 2 Arvan Cloud Object Storage (AOS) .IP \[bu] 2 +Autonomys Auto Drive +.IP \[bu] 2 Bizfly Cloud Simple Storage .IP \[bu] 2 Cubbit DS3 @@ -36257,6 +38262,8 @@ IDrive e2 .IP \[bu] 2 Impossible Cloud .IP \[bu] 2 +Infomaniak Swiss Backup +.IP \[bu] 2 Intercolo Object Storage .IP \[bu] 2 IONOS Cloud @@ -36273,6 +38280,8 @@ MEGA S4 Object Storage .IP \[bu] 2 Minio .IP \[bu] 2 +Neon Object Storage +.IP \[bu] 2 Outscale .IP \[bu] 2 OVHcloud @@ -36289,6 +38298,8 @@ RackCorp Object Storage .IP \[bu] 2 Rclone Serve S3 .IP \[bu] 2 +RelAix.Storage +.IP \[bu] 2 Scaleway .IP \[bu] 2 Scality (RING / ARTESCA) @@ -37331,6 +39342,9 @@ error like below. \f[R] .fi .PP +The message shows the object\[aq]s actual storage class, for example +\f[V]DEEP_ARCHIVE\f[R]. +.PP In this case you need to restore (http://docs.aws.amazon.com/AmazonS3/latest/user-guide/restore-archived-objects.html) the object(s) in question before accessing object contents. @@ -37415,14 +39429,15 @@ Object Lock headers during PUT) .SS Standard options .PP Here are the Standard options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other). +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other). .SS --s3-provider .PP Choose your S3 provider. @@ -37458,12 +39473,24 @@ Alibaba Cloud Object Storage System (OSS) formerly Aliyun Arvan Cloud Object Storage (AOS) .RE .IP \[bu] 2 +\[dq]Autonomys\[dq] +.RS 2 +.IP \[bu] 2 +Autonomys Auto Drive +.RE +.IP \[bu] 2 \[dq]BizflyCloud\[dq] .RS 2 .IP \[bu] 2 Bizfly Cloud Simple Storage .RE .IP \[bu] 2 +\[dq]Cellar\[dq] +.RS 2 +.IP \[bu] 2 +Clever Cloud Cellar Object Storage +.RE +.IP \[bu] 2 \[dq]Ceph\[dq] .RS 2 .IP \[bu] 2 @@ -37566,6 +39593,12 @@ IDrive e2 Impossible Cloud Object Storage .RE .IP \[bu] 2 +\[dq]Infomaniak\[dq] +.RS 2 +.IP \[bu] 2 +Infomaniak Swiss Backup +.RE +.IP \[bu] 2 \[dq]Intercolo\[dq] .RS 2 .IP \[bu] 2 @@ -37620,6 +39653,12 @@ MEGA S4 Object Storage Minio Object Storage .RE .IP \[bu] 2 +\[dq]Neon\[dq] +.RS 2 +.IP \[bu] 2 +Neon Object Storage +.RE +.IP \[bu] 2 \[dq]Netease\[dq] .RS 2 .IP \[bu] 2 @@ -37668,6 +39707,12 @@ RackCorp Object Storage Rclone S3 Server .RE .IP \[bu] 2 +\[dq]RelAix\[dq] +.RS 2 +.IP \[bu] 2 +RelAix.Storage +.RE +.IP \[bu] 2 \[dq]Scaleway\[dq] .RS 2 .IP \[bu] 2 @@ -37834,7 +39879,7 @@ Config: region Env Var: RCLONE_S3_REGION .IP \[bu] 2 Provider: -AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,LyveCloud,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other +AWS,BizflyCloud,Ceph,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,LyveCloud,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Scaleway,Scality,SeaweedFS,Selectel,Servercore,Synology,Wasabi,Zadara,Zata,ZeroServices,Other .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -38177,6 +40222,14 @@ EU Central Provider: Fastly .RE .IP \[bu] 2 +\[dq]eu-central-1\[dq] +.RS 2 +.IP \[bu] 2 +EU Central 1 +.IP \[bu] 2 +Provider: Fastly +.RE +.IP \[bu] 2 \[dq]eu-south-1\[dq] .RS 2 .IP \[bu] 2 @@ -38313,6 +40366,14 @@ Nuremberg Provider: Hetzner .RE .IP \[bu] 2 +\[dq]af-north-1\[dq] +.RS 2 +.IP \[bu] 2 +AF-Cairo +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]af-south-1\[dq] .RS 2 .IP \[bu] 2 @@ -38321,6 +40382,14 @@ AF-Johannesburg Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]ap-southeast-1\[dq] +.RS 2 +.IP \[bu] 2 +CN-Hong Kong +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]ap-southeast-2\[dq] .RS 2 .IP \[bu] 2 @@ -38337,10 +40406,18 @@ AP-Singapore Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]cn-east-3\[dq] +\[dq]ap-southeast-4\[dq] .RS 2 .IP \[bu] 2 -CN East-Shanghai1 +AP-Jakarta +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]ap-southeast-5\[dq] +.RS 2 +.IP \[bu] 2 +AP-Manila .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -38353,6 +40430,30 @@ CN East-Shanghai2 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]cn-east-3\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Shanghai1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]cn-east-4\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Qingdao +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]cn-east-5\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Suzhou +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]cn-north-1\[dq] .RS 2 .IP \[bu] 2 @@ -38361,6 +40462,14 @@ CN North-Beijing1 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]cn-north-2\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Beijing2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]cn-north-4\[dq] .RS 2 .IP \[bu] 2 @@ -38369,6 +40478,30 @@ CN North-Beijing4 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]cn-north-9\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Ulanqab +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]cn-north-11\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Hebei +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]cn-north-12\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Hohhot +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]cn-south-1\[dq] .RS 2 .IP \[bu] 2 @@ -38377,26 +40510,66 @@ CN South-Guangzhou Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]ap-southeast-1\[dq] +\[dq]cn-south-2\[dq] .RS 2 .IP \[bu] 2 -CN-Hong Kong +CN South-Shenzhen .IP \[bu] 2 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]sa-argentina-1\[dq] +\[dq]cn-south-4\[dq] .RS 2 .IP \[bu] 2 -LA-Buenos Aires1 +CN South-Guangzhou-InvitationOnly .IP \[bu] 2 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]sa-peru-1\[dq] +\[dq]cn-southwest-2\[dq] .RS 2 .IP \[bu] 2 -LA-Lima1 +CN Southwest-Guiyang1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]cn-southwest-3\[dq] +.RS 2 +.IP \[bu] 2 +CN Southwest-Chongqing +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]eu-west-101\[dq] +.RS 2 +.IP \[bu] 2 +EU-Dublin +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]la-north-2\[dq] +.RS 2 +.IP \[bu] 2 +LA-Mexico City2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]la-south-2\[dq] +.RS 2 +.IP \[bu] 2 +LA-Santiago +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]me-east-1\[dq] +.RS 2 +.IP \[bu] 2 +ME-Riyadh .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -38409,10 +40582,18 @@ LA-Mexico City1 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]sa-chile-1\[dq] +\[dq]ru-northwest-2\[dq] .RS 2 .IP \[bu] 2 -LA-Santiago2 +RU-Moscow2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]sa-argentina-1\[dq] +.RS 2 +.IP \[bu] 2 +LA-Buenos Aires1 .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -38425,10 +40606,26 @@ LA-Sao Paulo1 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]ru-northwest-2\[dq] +\[dq]sa-chile-1\[dq] .RS 2 .IP \[bu] 2 -RU-Moscow2 +LA-Santiago2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]sa-peru-1\[dq] +.RS 2 +.IP \[bu] 2 +LA-Lima1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]tr-west-1\[dq] +.RS 2 +.IP \[bu] 2 +TR-Istanbul .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -38489,6 +40686,16 @@ New York, USA Provider: ImpossibleCloud .RE .IP \[bu] 2 +\[dq]us-east-1\[dq] +.RS 2 +.IP \[bu] 2 +Default region for compatibility. +.IP \[bu] 2 +All data is stored in Switzerland. +.IP \[bu] 2 +Provider: Infomaniak +.RE +.IP \[bu] 2 \[dq]de-fra\[dq] .RS 2 .IP \[bu] 2 @@ -38545,6 +40752,39 @@ Lenexa, USA Provider: IONOS .RE .IP \[bu] 2 +\[dq]us-east-1\[dq] +.RS 2 +.IP \[bu] 2 +US East (N. +Virginia) +.IP \[bu] 2 +Provider: Neon,Petabox,Rabata +.RE +.IP \[bu] 2 +\[dq]us-east-2\[dq] +.RS 2 +.IP \[bu] 2 +US East (Ohio) +.IP \[bu] 2 +Provider: Neon +.RE +.IP \[bu] 2 +\[dq]eu-central-1\[dq] +.RS 2 +.IP \[bu] 2 +Europe (Frankfurt) +.IP \[bu] 2 +Provider: Neon,Petabox +.RE +.IP \[bu] 2 +\[dq]ap-southeast-1\[dq] +.RS 2 +.IP \[bu] 2 +Asia Pacific (Singapore) +.IP \[bu] 2 +Provider: Neon,Petabox +.RE +.IP \[bu] 2 \[dq]eu-west-2\[dq] .RS 2 .IP \[bu] 2 @@ -38697,31 +40937,6 @@ Roubaix, France (Cold Archive) Provider: OVHcloud .RE .IP \[bu] 2 -\[dq]us-east-1\[dq] -.RS 2 -.IP \[bu] 2 -US East (N. -Virginia) -.IP \[bu] 2 -Provider: Petabox,Rabata -.RE -.IP \[bu] 2 -\[dq]eu-central-1\[dq] -.RS 2 -.IP \[bu] 2 -Europe (Frankfurt) -.IP \[bu] 2 -Provider: Petabox -.RE -.IP \[bu] 2 -\[dq]ap-southeast-1\[dq] -.RS 2 -.IP \[bu] 2 -Asia Pacific (Singapore) -.IP \[bu] 2 -Provider: Petabox -.RE -.IP \[bu] 2 \[dq]me-south-1\[dq] .RS 2 .IP \[bu] 2 @@ -39002,6 +41217,14 @@ Warsaw, Poland Provider: Scaleway .RE .IP \[bu] 2 +\[dq]it-mil\[dq] +.RS 2 +.IP \[bu] 2 +Milan, Italy +.IP \[bu] 2 +Provider: Scaleway +.RE +.IP \[bu] 2 \[dq]ru-1\[dq] .RS 2 .IP \[bu] 2 @@ -39163,7 +41386,7 @@ Config: endpoint Env Var: RCLONE_S3_ENDPOINT .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,Autonomys,BizflyCloud,Cellar,Ceph,ChinaMobile,Cloudflare,Cubbit,DigitalOcean,Dreamhost,Exaba,Fastly,FileLu,FlashBlade,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Neon,Netease,Outscale,OVHcloud,Petabox,Qiniu,Rabata,RackCorp,Rclone,RelAix,Scaleway,Scality,SeaweedFS,Selectel,Servercore,SpectraLogic,Storj,Synology,TencentCOS,US3,Wasabi,Zadara,Zata,ZeroServices,Other .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -39390,6 +41613,14 @@ Tabriz Iran (Shahriar) Provider: ArvanCloud .RE .IP \[bu] 2 +\[dq]s3.auto-drive.autonomys.xyz\[dq] +.RS 2 +.IP \[bu] 2 +Auto Drive mainnet S3 endpoint +.IP \[bu] 2 +Provider: Autonomys +.RE +.IP \[bu] 2 \[dq]hn.ss.bfcplatform.vn\[dq] .RS 2 .IP \[bu] 2 @@ -39406,6 +41637,14 @@ Ho Chi Minh endpoint Provider: BizflyCloud .RE .IP \[bu] 2 +\[dq]cellar-c2.services.clever-cloud.com\[dq] +.RS 2 +.IP \[bu] 2 +Paris, France +.IP \[bu] 2 +Provider: Cellar +.RE +.IP \[bu] 2 \[dq]eos-wuxi-1.cmecloud.cn\[dq] .RS 2 .IP \[bu] 2 @@ -39770,6 +42009,14 @@ EU Central Provider: Fastly .RE .IP \[bu] 2 +\[dq]eu-central-1.object.fastlystorage.app\[dq] +.RS 2 +.IP \[bu] 2 +EU Central 1 +.IP \[bu] 2 +Provider: Fastly +.RE +.IP \[bu] 2 \[dq]eu-south-1.object.fastlystorage.app\[dq] .RS 2 .IP \[bu] 2 @@ -39914,6 +42161,14 @@ Nuremberg Provider: Hetzner .RE .IP \[bu] 2 +\[dq]obs.af-north-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +AF-Cairo +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]obs.af-south-1.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 @@ -39922,6 +42177,14 @@ AF-Johannesburg Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]obs.ap-southeast-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN-Hong Kong +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]obs.ap-southeast-2.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 @@ -39938,10 +42201,18 @@ AP-Singapore Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.cn-east-3.myhuaweicloud.com\[dq] +\[dq]obs.ap-southeast-4.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -CN East-Shanghai1 +AP-Jakarta +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.ap-southeast-5.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +AP-Manila .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -39954,6 +42225,30 @@ CN East-Shanghai2 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]obs.cn-east-3.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Shanghai1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.cn-east-4.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Qingdao +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.cn-east-5.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN East-Suzhou +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]obs.cn-north-1.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 @@ -39962,6 +42257,14 @@ CN North-Beijing1 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]obs.cn-north-2.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Beijing2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]obs.cn-north-4.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 @@ -39970,6 +42273,30 @@ CN North-Beijing4 Provider: HuaweiOBS .RE .IP \[bu] 2 +\[dq]obs.cn-north-9.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Ulanqab +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.cn-north-11.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Hebei +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.cn-north-12.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN North-Hohhot +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 \[dq]obs.cn-south-1.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 @@ -39978,26 +42305,66 @@ CN South-Guangzhou Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.ap-southeast-1.myhuaweicloud.com\[dq] +\[dq]obs.cn-south-2.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -CN-Hong Kong +CN South-Shenzhen .IP \[bu] 2 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.sa-argentina-1.myhuaweicloud.com\[dq] +\[dq]obs.cn-south-4.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -LA-Buenos Aires1 +CN South-Guangzhou-InvitationOnly .IP \[bu] 2 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.sa-peru-1.myhuaweicloud.com\[dq] +\[dq]obs.cn-southwest-2.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -LA-Lima1 +CN Southwest-Guiyang1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.cn-southwest-3.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +CN Southwest-Chongqing +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.eu-west-101.myhuaweicloud.eu\[dq] +.RS 2 +.IP \[bu] 2 +EU-Dublin +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.la-north-2.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +LA-Mexico City2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.la-south-2.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +LA-Santiago +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.me-east-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +ME-Riyadh .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -40010,10 +42377,18 @@ LA-Mexico City1 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.sa-chile-1.myhuaweicloud.com\[dq] +\[dq]obs.ru-northwest-2.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -LA-Santiago2 +RU-Moscow2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.sa-argentina-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +LA-Buenos Aires1 .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -40026,10 +42401,26 @@ LA-Sao Paulo1 Provider: HuaweiOBS .RE .IP \[bu] 2 -\[dq]obs.ru-northwest-2.myhuaweicloud.com\[dq] +\[dq]obs.sa-chile-1.myhuaweicloud.com\[dq] .RS 2 .IP \[bu] 2 -RU-Moscow2 +LA-Santiago2 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.sa-peru-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +LA-Lima1 +.IP \[bu] 2 +Provider: HuaweiOBS +.RE +.IP \[bu] 2 +\[dq]obs.tr-west-1.myhuaweicloud.com\[dq] +.RS 2 +.IP \[bu] 2 +TR-Istanbul .IP \[bu] 2 Provider: HuaweiOBS .RE @@ -40586,6 +42977,38 @@ New York, USA Provider: ImpossibleCloud .RE .IP \[bu] 2 +\[dq]s3.swiss-backup01.infomaniak.com\[dq] +.RS 2 +.IP \[bu] 2 +Swiss Backup Location 01 +.IP \[bu] 2 +Provider: Infomaniak +.RE +.IP \[bu] 2 +\[dq]s3.swiss-backup02.infomaniak.com\[dq] +.RS 2 +.IP \[bu] 2 +Swiss Backup Location 02 +.IP \[bu] 2 +Provider: Infomaniak +.RE +.IP \[bu] 2 +\[dq]s3.swiss-backup03.infomaniak.com\[dq] +.RS 2 +.IP \[bu] 2 +Swiss Backup Location 03 +.IP \[bu] 2 +Provider: Infomaniak +.RE +.IP \[bu] 2 +\[dq]s3.swiss-backup04.infomaniak.com\[dq] +.RS 2 +.IP \[bu] 2 +Swiss Backup Location 04 +.IP \[bu] 2 +Provider: Infomaniak +.RE +.IP \[bu] 2 \[dq]de-fra.i3storage.com\[dq] .RS 2 .IP \[bu] 2 @@ -40862,90 +43285,114 @@ Fortaleza, CE (BR), br-ne1 Provider: Magalu .RE .IP \[bu] 2 -\[dq]s3.eu-amsterdam.megas4.com\[dq] +\[dq]s3.eu-luxembourg-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Amsterdam +Mega S4 Luxembourg 1 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.eu-luxembourg.megas4.com\[dq] +\[dq]s3.eu-luxembourg-2.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Luxembourg +Mega S4 Luxembourg 2 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.eu-paris.megas4.com\[dq] +\[dq]s3.eu-amsterdam-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Paris +Mega S4 Amsterdam 1 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.eu-barcelona.megas4.com\[dq] +\[dq]s3.eu-amsterdam-2.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Barcelona +Mega S4 Amsterdam 2 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.ca-montreal.megas4.com\[dq] +\[dq]s3.eu-paris-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Montreal +Mega S4 Paris 1 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.ca-vancouver.megas4.com\[dq] +\[dq]s3.eu-paris-2.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Vancouver +Mega S4 Paris 2 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.ap-tokyo.megas4.com\[dq] +\[dq]s3.eu-barcelona-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 Tokyo +Mega S4 Barcelona 1 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.eu-central-1.s4.mega.io\[dq] +\[dq]s3.eu-barcelona-2.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 eu-central-1 (Amsterdam, legacy) +Mega S4 Barcelona 2 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.eu-central-2.s4.mega.io\[dq] +\[dq]s3.ca-montreal-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 eu-central-2 (Bettembourg, legacy) +Mega S4 Montreal 1 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.ca-central-1.s4.mega.io\[dq] +\[dq]s3.ca-montreal-2.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 ca-central-1 (Montreal, legacy) +Mega S4 Montreal 2 .IP \[bu] 2 Provider: Mega .RE .IP \[bu] 2 -\[dq]s3.ca-west-1.s4.mega.io\[dq] +\[dq]s3.ca-vancouver-1.megas4.com\[dq] .RS 2 .IP \[bu] 2 -Mega S4 ca-west-1 (Vancouver, legacy) +Mega S4 Vancouver 1 +.IP \[bu] 2 +Provider: Mega +.RE +.IP \[bu] 2 +\[dq]s3.ca-vancouver-2.megas4.com\[dq] +.RS 2 +.IP \[bu] 2 +Mega S4 Vancouver 2 +.IP \[bu] 2 +Provider: Mega +.RE +.IP \[bu] 2 +\[dq]s3.ap-tokyo-1.megas4.com\[dq] +.RS 2 +.IP \[bu] 2 +Mega S4 Tokyo 1 +.IP \[bu] 2 +Provider: Mega +.RE +.IP \[bu] 2 +\[dq]s3.ap-tokyo-2.megas4.com\[dq] +.RS 2 +.IP \[bu] 2 +Mega S4 Tokyo 2 .IP \[bu] 2 Provider: Mega .RE @@ -41393,6 +43840,22 @@ Auckland (New Zealand) Endpoint Provider: RackCorp .RE .IP \[bu] 2 +\[dq]s3-gw1.relaix.net\[dq] +.RS 2 +.IP \[bu] 2 +Aachen-1, Germany +.IP \[bu] 2 +Provider: RelAix +.RE +.IP \[bu] 2 +\[dq]s3-gw2.relaix.net\[dq] +.RS 2 +.IP \[bu] 2 +Aachen-2, Germany +.IP \[bu] 2 +Provider: RelAix +.RE +.IP \[bu] 2 \[dq]s3.nl-ams.scw.cloud\[dq] .RS 2 .IP \[bu] 2 @@ -41417,6 +43880,14 @@ Warsaw Endpoint Provider: Scaleway .RE .IP \[bu] 2 +\[dq]s3.it-mil.scw.cloud\[dq] +.RS 2 +.IP \[bu] 2 +Milan Endpoint +.IP \[bu] 2 +Provider: Scaleway +.RE +.IP \[bu] 2 \[dq]localhost:8333\[dq] .RS 2 .IP \[bu] 2 @@ -42035,7 +44506,7 @@ Config: location_constraint Env Var: RCLONE_S3_LOCATION_CONSTRAINT .IP \[bu] 2 Provider: -AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other +AWS,ArvanCloud,Ceph,ChinaMobile,DigitalOcean,Dreamhost,Exaba,GCS,HCP,Hetzner,IBMCOS,ImpossibleCloud,Infomaniak,LyveCloud,Minio,Netease,Qiniu,Rabata,RackCorp,Scality,SeaweedFS,Synology,Wasabi,Zata,ZeroServices,Other .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43020,7 +45491,7 @@ Config: acl Env Var: RCLONE_S3_ACL .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43037,7 +45508,7 @@ Owner gets FULL_CONTROL. No one else has access rights (default). .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,US3,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]public-read\[dq] @@ -43048,7 +45519,7 @@ Owner gets FULL_CONTROL. The AllUsers group gets READ access. .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]public-read-write\[dq] @@ -43061,7 +45532,7 @@ The AllUsers group gets READ and WRITE access. Granting this on a bucket is generally not recommended. .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]authenticated-read\[dq] @@ -43072,7 +45543,7 @@ Owner gets FULL_CONTROL. The AuthenticatedUsers group gets READ access. .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]bucket-owner-read\[dq] @@ -43086,7 +45557,7 @@ If you specify this canned ACL when creating a bucket, Amazon S3 ignores it. .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]bucket-owner-full-control\[dq] @@ -43099,7 +45570,7 @@ If you specify this canned ACL when creating a bucket, Amazon S3 ignores it. .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,Scality,SeaweedFS,TencentCOS,Wasabi,Zata,ZeroServices,Other .RE .IP \[bu] 2 \[dq]private\[dq] @@ -43511,14 +45982,15 @@ Default: false .SS Advanced options .PP Here are the Advanced options specific to s3 (Amazon S3 Compliant -Storage Providers including AWS, Alibaba, ArvanCloud, BizflyCloud, Ceph, -ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, Fastly, -FileLu, FlashBlade, GCS, HCP, Hetzner, HuaweiOBS, IBMCOS, IDrive, -ImpossibleCloud, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, -Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, -Rabata, RackCorp, Rclone, Scaleway, Scality, SeaweedFS, Selectel, -Servercore, SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, -Zadara, Zata, ZeroServices, Other). +Storage Providers including AWS, Alibaba, ArvanCloud, Autonomys, +BizflyCloud, Cellar, Ceph, ChinaMobile, Cloudflare, Cubbit, +DigitalOcean, Dreamhost, Exaba, Fastly, FileLu, FlashBlade, GCS, HCP, +Hetzner, HuaweiOBS, IBMCOS, IDrive, ImpossibleCloud, Infomaniak, +Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, +Neon, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, +Rclone, RelAix, Scaleway, Scality, SeaweedFS, Selectel, Servercore, +SpectraLogic, Storj, Synology, TencentCOS, US3, Wasabi, Zadara, Zata, +ZeroServices, Other). .SS --s3-bucket-acl .PP Canned ACL used when creating buckets. @@ -43539,7 +46011,7 @@ Config: bucket_acl Env Var: RCLONE_S3_BUCKET_ACL .IP \[bu] 2 Provider: -AWS,Alibaba,ArvanCloud,BizflyCloud,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other +AWS,Alibaba,ArvanCloud,BizflyCloud,Cellar,Ceph,ChinaMobile,Cubbit,DigitalOcean,Dreamhost,Exaba,FileLu,GCS,HCP,Hetzner,HuaweiOBS,IBMCOS,IDrive,ImpossibleCloud,Infomaniak,Intercolo,IONOS,Leviia,Liara,Linode,LyveCloud,Magalu,Mega,Minio,Netease,Outscale,OVHcloud,Petabox,Qiniu,RackCorp,RelAix,Scaleway,SeaweedFS,Servercore,TencentCOS,US3,Wasabi,Zata,ZeroServices,Other .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43608,7 +46080,7 @@ Config: sse_customer_algorithm .IP \[bu] 2 Env Var: RCLONE_S3_SSE_CUSTOMER_ALGORITHM .IP \[bu] 2 -Provider: AWS,Ceph,ChinaMobile,Minio +Provider: AWS,Cellar,Ceph,ChinaMobile,Minio .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43634,7 +46106,7 @@ AES256 To use SSE-C you may provide the secret encryption key used to encrypt/decrypt your data. .PP -Alternatively you can provide --sse-customer-key-base64. +Alternatively you can provide --s3-sse-customer-key-base64. .PP Properties: .IP \[bu] 2 @@ -43642,7 +46114,7 @@ Config: sse_customer_key .IP \[bu] 2 Env Var: RCLONE_S3_SSE_CUSTOMER_KEY .IP \[bu] 2 -Provider: AWS,Ceph,ChinaMobile,Minio +Provider: AWS,Cellar,Ceph,ChinaMobile,Minio .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43662,7 +46134,7 @@ None If using SSE-C you must provide the secret encryption key encoded in base64 format to encrypt/decrypt your data. .PP -Alternatively you can provide --sse-customer-key. +Alternatively you can provide --s3-sse-customer-key. .PP Properties: .IP \[bu] 2 @@ -43670,7 +46142,7 @@ Config: sse_customer_key_base64 .IP \[bu] 2 Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_BASE64 .IP \[bu] 2 -Provider: AWS,Ceph,ChinaMobile,Minio +Provider: AWS,Cellar,Ceph,ChinaMobile,Minio .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -43699,7 +46171,7 @@ Config: sse_customer_key_md5 .IP \[bu] 2 Env Var: RCLONE_S3_SSE_CUSTOMER_KEY_MD5 .IP \[bu] 2 -Provider: AWS,Ceph,ChinaMobile,Minio +Provider: AWS,Cellar,Ceph,ChinaMobile,Minio .IP \[bu] 2 Type: string .IP \[bu] 2 @@ -45136,6 +47608,64 @@ for more info on how to pass options and arguments. .PP These can be run on a running backend using the rc command backend/command (https://rclone.org/rc/#backend-command). +.SS link +.PP +Generate a signed link with response header overrides. +.IP +.nf +\f[C] +rclone backend link remote: [options] [+] +\f[R] +.fi +.PP +This command generates a signed download link for one file, with +optional overrides for the HTTP response headers. +Pass the file path as a separate argument, relative to the remote path. +.PP +Usage examples: +.IP +.nf +\f[C] +rclone backend link s3:bucket path/to/file -o expire=1h +rclone backend link s3:bucket path/to/file -o response-expires=\[dq]Thu, 01 Jan 1970 00:00:00 GMT\[dq] +rclone backend link s3:bucket path/to/file -o response-content-disposition=\[aq]attachment; filename=\[dq]download.txt\[dq]\[aq] +\f[R] +.fi +.PP +The link expires after 7 days by default. +Use \f[V]-o expire=1h\f[R] to change its lifetime. +Durations must be at least 1 second; values above 7 days are limited to +7 days, as with \f[V]rclone link\f[R]. +.PP +The \f[V]response-expires\f[R] option sets the HTTP Expires response +header, not the lifetime of the signed link. +It must be an HTTP date, such as +\f[V]Thu, 01 Jan 1970 00:00:00 GMT\f[R]. +.PP +The overrides are included in the signature and must not be changed in +the returned URL. +They do not modify the object\[aq]s stored metadata. +.PP +Options: +.IP \[bu] 2 +\[dq]expire\[dq]: How long the link will be valid (default 7d, maximum +7d). +.IP \[bu] 2 +\[dq]response-cache-control\[dq]: Set the Cache-Control response header. +.IP \[bu] 2 +\[dq]response-content-disposition\[dq]: Set the Content-Disposition +response header. +.IP \[bu] 2 +\[dq]response-content-encoding\[dq]: Set the Content-Encoding response +header. +.IP \[bu] 2 +\[dq]response-content-language\[dq]: Set the Content-Language response +header. +.IP \[bu] 2 +\[dq]response-content-type\[dq]: Set the Content-Type response header. +.IP \[bu] 2 +\[dq]response-expires\[dq]: Set the Expires response header to an HTTP +date. .SS restore .PP Restore objects from GLACIER or INTELLIGENT-TIERING archive tier. @@ -45474,8 +48004,8 @@ From rclone v1.69 Directory Buckets (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html) are supported. .PP -You will need to set the \f[V]directory_buckets = true\f[R] config -parameter or use \f[V]--s3-directory-buckets\f[R]. +You will need to set the \f[V]directory_bucket = true\f[R] config +parameter or use \f[V]--s3-directory-bucket\f[R]. .PP Note that rclone cannot yet: .IP \[bu] 2 @@ -45483,7 +48013,7 @@ Create directory buckets .IP \[bu] 2 List directory buckets .PP -See the --s3-directory-buckets flag for more info +See the --s3-directory-bucket flag for more info .SS AWS Snowball Edge .PP AWS Snowball (https://aws.amazon.com/snowball/) is a hardware appliance @@ -45744,6 +48274,104 @@ server_side_encryption = storage_class = \f[R] .fi +.SS Autonomys Auto Drive +.PP +Auto Drive (https://ai3.storage/) is permanent storage on the Autonomys +Network, with an S3-compatible API. +Deleting an object hides it, but its data and every earlier version are +kept. +Buckets are created by the first upload into them. +.PP +Use your Auto Drive API key as the \f[V]access_key_id\f[R], and any +value as the \f[V]secret_access_key\f[R]. +.PP +Here is an example of making a configuration. +First run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.PP +This will guide you through an interactive setup process. +.IP +.nf +\f[C] +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> autodrive + +Option Storage. +Type of storage to configure. +Storage> s3 + +Option provider. +Choose your S3 provider. +provider> Autonomys + +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. +env_auth> false + +Option access_key_id. +AWS Access Key ID. +access_key_id> YOUR_API_KEY + +Option secret_access_key. +AWS Secret Access Key (password). +secret_access_key> ANY_VALUE + +Option endpoint. +Endpoint for S3 API. +Choose a number from below, or type in your own value. + 1 / Auto Drive mainnet S3 endpoint + \[rs] (s3.auto-drive.autonomys.xyz) +endpoint> 1 + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Autonomys +- access_key_id: YOUR_API_KEY +- secret_access_key: ANY_VALUE +- endpoint: s3.auto-drive.autonomys.xyz +Keep this \[dq]autodrive\[dq] remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +\f[R] +.fi +.PP +The resulting configuration file should look like: +.IP +.nf +\f[C] +[autodrive] +type = s3 +provider = Autonomys +access_key_id = YOUR_API_KEY +secret_access_key = ANY_VALUE +endpoint = s3.auto-drive.autonomys.xyz +\f[R] +.fi .SS BizflyCloud .PP Bizfly Cloud Simple Storage (https://bizflycloud.vn/simple-storage) is @@ -45810,6 +48438,14 @@ supply the parameter \f[V]--s3-upload-cutoff 0\f[R] or put this in the config file as \f[V]upload_cutoff 0\f[R] to work around a bug which causes uploading of small files to fail. .PP +Rclone defaults \f[V]sign_accept_encoding\f[R] to false for the Ceph +provider. +That avoids \f[V]SignatureDoesNotMatch\f[R] errors when a reverse proxy +(for example Cloudflare) rewrites the \f[V]Accept-Encoding\f[R] request +header. +You can override this with \f[V]--s3-sign-accept-encoding\f[R] / +\f[V]sign_accept_encoding\f[R] if needed. +.PP Note also that Ceph sometimes puts \f[V]/\f[R] in the passwords it gives users. If you read the secret access key using the command line tools you will @@ -45841,7 +48477,7 @@ it will work fine. .SS China Mobile Ecloud Elastic Object Storage (EOS) .PP Here is an example of making an China Mobile Ecloud Elastic Object -Storage (EOS) (https:///ecloud.10086.cn/home/product-introduction/eos/) +Storage (EOS) (https://ecloud.10086.cn/home/product-introduction/eos/) configuration. First run: .IP @@ -46095,6 +48731,126 @@ d) Delete this remote y/e/d> y \f[R] .fi +.SS Clever Cloud Cellar +.PP +Cellar (https://www.clever.cloud/product/cellar-object-storage/) is the +S3-compatible object storage service of Clever +Cloud (https://www.clever.cloud/), hosted in France. +Credentials and the endpoint are shown in the Cellar add-on dashboard, +or in the \f[V]CELLAR_ADDON_KEY_ID\f[R], +\f[V]CELLAR_ADDON_KEY_SECRET\f[R] and \f[V]CELLAR_ADDON_HOST\f[R] +environment variables of applications linked to it. +.PP +Cellar does not apply Object Lock headers sent when initiating a +multipart upload. +When setting Object Lock retention or legal hold options, also set +\f[V]--s3-object-lock-set-after-upload\f[R]: the lock is then applied +with separate API calls after the upload, so the object is not protected +by these settings until those calls succeed. +.PP +Cellar supports server-side encryption with customer-provided keys +(SSE-C), set with \f[V]sse_customer_algorithm\f[R] and +\f[V]sse_customer_key_base64\f[R]. +It rejects server-side copies of SSE-C objects unless they are done as +multipart copies, so use \f[V]--no-update-modtime\f[R] to avoid +modification time updates, and expect server-side moves and renames of +encrypted objects smaller than \f[V]--s3-copy-cutoff\f[R] to fail. +See the Cellar SSE-C +documentation (https://www.clever.cloud/developers/doc/deploy/storage/cellar/#server-side-encryption-with-customer-keys-sse-c). +.PP +First run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.IP +.nf +\f[C] +This will guide you through an interactive setup process: + +n) New remote +n/s/q> n + +Enter name for new remote. +name> cellar + +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, ..., Cellar, ... and others + \[rs] (s3) +Storage> s3 + +Option provider. +Choose your S3 provider. +[snip] +XX / Clever Cloud Cellar Object Storage + \[rs] (Cellar) +provider> Cellar + +Option env_auth. +Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars). + 1 / Enter AWS credentials in the next step. + \[rs] (false) + 2 / Get AWS credentials from the environment (env vars or IAM). + \[rs] (true) +env_auth> 1 + +Option access_key_id. +AWS Access Key ID. +access_key_id> ACCESS_KEY + +Option secret_access_key. +AWS Secret Access Key (password). +secret_access_key> SECRET_KEY + +Option endpoint. +Endpoint for S3 API. + 1 / Paris, France + \[rs] (cellar-c2.services.clever-cloud.com) +endpoint> 1 + +Option acl. +Canned ACL used when creating buckets and storing or copying objects. +[snip] +acl> 1 + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +bucket_object_lock_enabled> + +Edit advanced config? +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Cellar +- access_key_id: ACCESS_KEY +- secret_access_key: SECRET_KEY +- endpoint: cellar-c2.services.clever-cloud.com +- acl: private +Keep this \[dq]cellar\[dq] remote? +y/e/d> y +\f[R] +.fi +.PP +This will leave the config file looking like this. +.IP +.nf +\f[C] +[cellar] +type = s3 +provider = Cellar +access_key_id = ACCESS_KEY +secret_access_key = SECRET_KEY +endpoint = cellar-c2.services.clever-cloud.com +acl = private +\f[R] +.fi .SS Cloudflare R2 .PP Cloudflare R2 (https://blog.cloudflare.com/r2-open-beta/) Storage allows @@ -47569,6 +50325,139 @@ endpoint = eu-central-2.storage.impossibleapi.net acl = private \f[R] .fi +.SS Infomaniak Swiss Backup +.PP +Infomaniak Swiss +Backup (https://www.infomaniak.com/en/swiss-backup/cloud-storage) is a +cloud backup space in Switzerland that you can use however you want with +the script or software of your choice that is compatible with Swift, S3 +or SFTP. +.SS Prerequisites +.PP +Create and setup your Swiss Backup product following this +documentation (https://www.infomaniak.com/en/support/faq/2546/create-an-s3-location-on-swiss-backup). +Memorize the generated \f[V]Endpoint\f[R], \f[V]Access Key\f[R], and +\f[V]Secret Key\f[R]: +.SS Configuration +.PP +To configure access to an S3 location on Swiss Backup, follow the steps +below: +.IP "1." 3 +Run \f[V]rclone config\f[R] and select \f[V]n\f[R] for a new remote. +.IP +.nf +\f[C] + rclone config + No remotes found, make a new one? + n) New remote + s) Set configuration password + q) Quit config + n/s/q> n +\f[R] +.fi +.IP "2." 3 +Give the name of the configuration. +For example, name it \[aq]swissbackup\[aq]. +.IP +.nf +\f[C] + name> swissbackup +\f[R] +.fi +.IP "3." 3 +Select \f[V]s3\f[R] storage. +.IP +.nf +\f[C] + Type of storage to configure. + XX / Amazon S3 Compliant Storage Providers including AWS, ... - Tier 1 + \[rs] (s3) + Storage> s3 +\f[R] +.fi +.IP "4." 3 +Select \f[V]Infomaniak\f[R] provider. +.IP +.nf +\f[C] + Choose your S3 provider. + xx / Infomaniak Swiss Backup + \[rs] (Infomaniak) + provider> Infomaniak +\f[R] +.fi +.IP "5." 3 +Enter your Access Key and Secret Key. +\f[I]You can generate new ones by clicking \[aq]Generate new keys\[aq] +on your Swiss Backup product dashboard.\f[R] +.IP +.nf +\f[C] + Option env_auth. + 1 / Enter AWS credentials in the next step + \[rs] (false) + 2 / Get AWS credentials from the environment (env vars or IAM) + \[rs] (true) + env_auth> 1 + + AWS Access Key ID. + access_key_id> {YOUR-ACCESS-ID} + + AWS Secret Access Key (password) + secret_access_key> {YOUR-ACCESS-SECRET} +\f[R] +.fi +.IP "6." 3 +Select \f[V]us-east-1\f[R] region for compatibility. +.IP +.nf +\f[C] + Region to connect to. + / Default region for compatibility. + 1 | All data is stored in Switzerland. + \[rs] (us-east-1) + region> 1 +\f[R] +.fi +.IP "7." 3 +Select the endpoint corresponding to the one generated with your Access +and Secret Keys. +.IP +.nf +\f[C] + Endpoint for S3 API. + 1 / Swiss Backup Location 01 + \[rs] (s3.swiss-backup01.infomaniak.com) + 2 / Swiss Backup Location 02 + \[rs] (s3.swiss-backup02.infomaniak.com) + 3 / Swiss Backup Location 03 + \[rs] (s3.swiss-backup03.infomaniak.com) + 4 / Swiss Backup Location 04 + \[rs] (s3.swiss-backup04.infomaniak.com) + endpoint> 1 +\f[R] +.fi +.IP "8." 3 +Adjust other parameters and advanced config at your convenience. +Leave blank if not sure. +.IP "9." 3 +You should obtain something like this. +.IP +.nf +\f[C] + Configuration complete. + Options: + - type: s3 + - provider: Infomaniak + - access_key_id: xxxxxxxxxx + - secret_access_key: xxxxxxxxxx + - region: us-east-1 + - endpoint: s3.swiss-backup01.infomaniak.com +\f[R] +.fi +.IP "10." 4 +Press \f[V]y\f[R] to validate. +Then \f[V]q\f[R] to quit. .SS Intercolo Object Storage .PP Intercolo Object Storage (https://intercolo.de/object-storage) offers @@ -48361,6 +51250,11 @@ secret_access_key = SECRET_ACCESS_KEY endpoint = eu-central-1.linodeobjects.com \f[R] .fi +.PP +Linode Object Storage is Ceph-backed. +Rclone defaults \f[V]sign_accept_encoding\f[R] to false for this +provider so SigV4 requests do not fail with +\f[V]SignatureDoesNotMatch\f[R] (see the Ceph section). .SS Magalu .PP Here is an example of making a Magalu Object @@ -48681,6 +51575,174 @@ So once set up, for example, to copy files into a bucket rclone copy /path/to/files minio:bucket \f[R] .fi +.SS Neon Object Storage +.PP +Neon Object Storage (https://neon.com/docs/storage/overview) is S3 +compatible object storage in a Neon project. +Each branch of the project has its own copy of the buckets and its own +S3 endpoint. +The endpoint looks like +\f[V]https://.storage...aws.neon.tech\f[R]. +.PP +In the Neon Console, click \f[B]Connect\f[R], open the \f[B]Storage\f[R] +tab and choose \f[B]Parameters only\f[R]. +Use \f[V]AWS_ACCESS_KEY_ID\f[R], \f[V]AWS_SECRET_ACCESS_KEY\f[R], +\f[V]AWS_ENDPOINT_URL_S3\f[R] and \f[V]AWS_REGION\f[R] as +\f[V]access_key_id\f[R], \f[V]secret_access_key\f[R], \f[V]endpoint\f[R] +and \f[V]region\f[R]. +To make a separate credential, use \f[B]Settings\f[R] > +\f[B]Credentials\f[R] or run +\f[V]neon credentials create --scope storage:read --scope storage:write\f[R]. +.PP +A credential works on the branch it was made on and on that branch\[aq]s +child branches. +To use a child branch, change only \f[V]endpoint\f[R]. +.PP +Neon also has these limits (see the S3 compatibility +docs (https://neon.com/docs/storage/s3-compatibility)): +.IP \[bu] 2 +The maximum object size is 5 GiB for a single upload and 10 GiB for a +multipart upload. +.IP \[bu] 2 +Neon rejects object keys containing control characters with +\f[V]400 InvalidURI\f[R]. +To store files with these names, add \f[V]Ctl,Del\f[R] to the encoding, +for example \f[V]encoding = Slash,InvalidUtf8,Dot,Ctl,Del\f[R]. +.IP \[bu] 2 +Neon doesn\[aq]t support ACLs over the S3 API. +Leave \f[V]acl\f[R] and \f[V]bucket_acl\f[R] empty and set bucket access +(\f[V]private\f[R] or \f[V]public_read\f[R]) in Neon. +.IP \[bu] 2 +Neon stores versioning and lifecycle configurations but doesn\[aq]t +enforce them. +.IP \[bu] 2 +Neon may throttle heavy use with \f[V]503 SlowDown\f[R] errors. +rclone retries these. +.PP +Here is an example of making a Neon Object Storage configuration. +First run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.PP +This will guide you through an interactive setup process. +.IP +.nf +\f[C] +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> neon + +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, ... Neon, ... + \[rs] (s3) +[snip] +Storage> s3 + +Option provider. +Choose your S3 provider. +Choose a number from below, or type in your own value. +Press Enter to leave empty. +[snip] +XX / Neon Object Storage + \[rs] (Neon) +[snip] +provider> Neon + +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. + \[rs] (false) + 2 / Get AWS credentials from the environment (env vars or IAM). + \[rs] (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> NEON_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> NEON_SECRET_ACCESS_KEY + +Option region. +Region to connect to. +Leave blank if you are using an S3 clone and you don\[aq]t have a region. +Choose a number from below, or type in your own value. +Press Enter to leave empty. + 1 / US East (N. Virginia) + \[rs] (us-east-1) + 2 / US East (Ohio) + \[rs] (us-east-2) + 3 / Europe (Frankfurt) + \[rs] (eu-central-1) + 4 / Asia Pacific (Singapore) + \[rs] (ap-southeast-1) +region> us-east-2 + +Option endpoint. +Endpoint for S3 API. +Required when using an S3 clone. +Enter a value. Press Enter to leave empty. +endpoint> https://.storage...aws.neon.tech + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: Neon +- access_key_id: NEON_ACCESS_KEY_ID +- secret_access_key: NEON_SECRET_ACCESS_KEY +- region: us-east-2 +- endpoint: https://.storage...aws.neon.tech +Keep this \[dq]neon\[dq] remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +\f[R] +.fi +.PP +This will leave the config file looking like this. +.IP +.nf +\f[C] +[neon] +type = s3 +provider = Neon +access_key_id = NEON_ACCESS_KEY_ID +secret_access_key = NEON_SECRET_ACCESS_KEY +region = us-east-2 +endpoint = https://.storage...aws.neon.tech +\f[R] +.fi .SS Netease NOS .PP For Netease NOS configure as per the configurator @@ -49934,6 +52996,143 @@ use_multipart_uploads = false Note that setting \f[V]use_multipart_uploads = false\f[R] is to work around a bug (https://rclone.org/commands/rclone_serve_s3/#bugs) which will be fixed in due course. +.SS RelAix.Storage +.PP +RelAix.Storage is S3 compatible object storage from RelAix +Networks (https://www.relaix.net/), operated in its own data centres in +Aachen, Germany. +There are two locations, Aachen-1 and Aachen-2, each with its own +endpoint. +Buckets and data stay at the location of the endpoint you use. +.PP +You get an access key and a secret key from RelAix Networks. +Then run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.PP +This will guide you through an interactive setup process. +.IP +.nf +\f[C] +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> my-relaix + +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, ... + \[rs] (s3) +[snip] +Storage> s3 + +Option provider. +Choose your S3 provider. +Choose a number from below, or type in your own value. +Press Enter to leave empty. +[snip] +XX / RelAix.Storage + \[rs] (RelAix) +[snip] +provider> RelAix + +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. + \[rs] (false) + 2 / Get AWS credentials from the environment (env vars or IAM). + \[rs] (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> 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_KEY + +Option endpoint. +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 / Aachen-1, Germany + \[rs] (s3-gw1.relaix.net) + 2 / Aachen-2, Germany + \[rs] (s3-gw2.relaix.net) +endpoint> 1 + +Option acl. +Canned ACL used when creating buckets and storing or copying objects. +[snip] +acl> + +Option bucket_object_lock_enabled. +Enable Object Lock when creating new buckets. +Enter a boolean value (true or false). Press Enter for the default (false). +bucket_object_lock_enabled> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: s3 +- provider: RelAix +- access_key_id: ACCESS_KEY +- secret_access_key: SECRET_KEY +- endpoint: s3-gw1.relaix.net +Keep this \[dq]my-relaix\[dq] remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +\f[R] +.fi +.PP +This will leave the config file looking like this. +.IP +.nf +\f[C] +[my-relaix] +type = s3 +provider = RelAix +access_key_id = ACCESS_KEY +secret_access_key = SECRET_KEY +endpoint = s3-gw1.relaix.net +\f[R] +.fi +.PP +Object Lock can only be enabled when a bucket is created. +To create buckets with Object Lock, set +\f[V]bucket_object_lock_enabled = true\f[R] before running +\f[V]rclone mkdir\f[R]. +.PP +To lock objects on upload with \f[V]object_lock_mode\f[R], also set +\f[V]object_lock_set_after_upload = true\f[R]. +RelAix.Storage does not yet apply Object Lock headers sent with +multipart uploads, so rclone needs to set the lock in a separate call +after the upload. .SS Scaleway .PP Scaleway (https://www.scaleway.com/object-storage/) The Object Storage @@ -52027,6 +55226,28 @@ For example: mksquashfs 100files 100files.sqfs -comp zstd -b 1M \f[R] .fi +.SS Symlinks +.PP +Symlinks stored in an archive are skipped unless the +\f[V]-l/--links\f[R] flag is supplied, as they are on the other +backends. +With the flag they are listed with a \f[V].rclonelink\f[R] suffix and +read back as the path they point at, the same convention the +local (https://rclone.org/local/#symlinks-junction-points) backend uses, +so they can be copied back as symlinks: +.IP +.nf +\f[C] +$ rclone lsl --links :archive:/tmp/test.zip + 5 2026-09-28 14:16:59.000000000 src/file.txt + 8 2026-09-28 14:16:59.000000000 src/link.txt.rclonelink +$ rclone cat --links :archive:/tmp/test.zip/src/link.txt.rclonelink +file.txt +$ rclone copy --links :archive:/tmp/test.zip /tmp/out +$ ls -l /tmp/out/src/link.txt +lrwxr-xr-x 1 user user 8 Sep 28 14:16 /tmp/out/src/link.txt -> file.txt +\f[R] +.fi .SS Limitations .PP Files in the archive backend are read only. @@ -52885,6 +56106,11 @@ 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. .PP +Rclone will not follow a redirect from this endpoint which downgrades +HTTPS to HTTP, and will not send the \[dq]Authorization\[dq] header or +the SSE-C key headers once a redirect has left the host and port of this +endpoint. +.PP 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 \[dq]{download_url}/file/{bucket_name}/{path}\[dq]. @@ -53009,7 +56235,7 @@ Advanced Encryption Standard (256 bits key length) To use SSE-C, you may provide the secret encryption key encoded in a UTF-8 compatible string to encrypt/decrypt your data .PP -Alternatively you can provide --sse-customer-key-base64. +Alternatively you can provide --b2-sse-customer-key-base64. .PP Properties: .IP \[bu] 2 @@ -53035,7 +56261,7 @@ None To use SSE-C, you may provide the secret encryption key encoded in Base64 format to encrypt/decrypt your data .PP -Alternatively you can provide --sse-customer-key. +Alternatively you can provide --b2-sse-customer-key. .PP Properties: .IP \[bu] 2 @@ -53386,10 +56612,11 @@ just set. .SS Invalid refresh token .PP According to the box -docs (https://developer.box.com/v2.0/docs/oauth-20#section-6-using-the-access-and-refresh-tokens): +docs (https://developer.box.com/guides/authentication/tokens/refresh/): .RS .PP -Each refresh_token is valid for one use in 60 days. +A Refresh Token is valid for 60 days and can be used to obtain a new +Access Token and Refresh Token only once. .RE .PP This means that if you @@ -57109,6 +60336,16 @@ filenames with the same name will encrypt the same .IP \[bu] 2 filenames which start the same won\[aq]t have a common prefix .PP +A version string of the form \f[V]-vYYYY-MM-DD-HHMMSS-NNN\f[R] on the +end of a file name (as added by \f[V]--b2-versions\f[R] / +\f[V]--s3-versions\f[R]) is left in plain text so that versioned files +can be found. +Directory names are encrypted in full. +Rclone before v1.76 left such a suffix in plain text on directory names +too, so a directory named like this created by an older rclone will +appear in listings with a warning but can\[aq]t be opened or removed +until renamed on the underlying remote to the name given in the warning. +.PP This uses a 32 byte key (256 bits) and a 16 byte (128 bits) IV both of which are derived from the user password. .PP @@ -57823,6 +61060,356 @@ Only new parameters need be passed as the values will default to those currently in use. .PP It doesn\[aq]t return anything. +.SH dosya.dev +.PP +dosya.dev (https://dosya.dev) is a cloud file storage, sharing, and +synchronization platform with workspace-based multi-tenancy, file +versioning, and team collaboration features. +.SS Configuration +.PP +Here is an example of how to make a remote called \f[V]remote\f[R]. +First run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.PP +This will guide you through an interactive setup process: +.IP +.nf +\f[C] +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 / dosya.dev + \[rs] (dosya) +Storage> dosya + +Option api_key. +Your API Key, get it from https://dosya.dev/profile under \[dq]API keys\[dq]. +Enter a value. +api_key> dos_YOURAPIKEY + +Option workspace_id. +Your workspace ID. + +Leave this blank to use the one workspace the API key can reach, which +is what a key restricted to a single workspace does. If the key can +reach several, rclone will refuse and list their IDs for you to choose +from. +Enter a value. Press Enter to leave empty. +workspace_id> + +Edit advanced config? +y) Yes +n) No (default) +y/n> n + +Configuration complete. +Options: +- type: dosya +- api_key: dos_YOURAPIKEY +Keep this \[dq]remote\[dq] remote? +y) Yes this is OK (default) +e) Edit this remote +d) Delete this remote +y/e/d> y +\f[R] +.fi +.PP +Once configured you can then use \f[V]rclone\f[R] like this (replace +\f[V]remote\f[R] with the name you gave your remote): +.PP +List directories and files in the top level of your dosya workspace +.IP +.nf +\f[C] +rclone lsf remote: +\f[R] +.fi +.PP +To copy a local directory to a dosya directory called backup +.IP +.nf +\f[C] +rclone copy /home/source remote:backup +\f[R] +.fi +.PP +The dosya backend uploads large files in parts and stores them as single +files that remain accessible through the web app and other clients. +If you previously used a WebDAV remote with a chunker overlay for large +uploads, you can use this backend without the overlay. +.SS Getting your API key +.IP "1." 3 +Log in to dosya.dev (https://dosya.dev) +.IP "2." 3 +Go to Profile (https://dosya.dev/profile) > \f[B]API keys\f[R] +.IP "3." 3 +Create a new API key +.IP "4." 3 +Copy the key (starts with \f[V]dos_\f[R]) +.PP +A key can be restricted to a single workspace when you create it, which +is the simplest thing to do for rclone: \f[V]workspace_id\f[R] can then +be left out of the config entirely. +.SS Workspaces +.PP +Leave \f[V]workspace_id\f[R] blank and rclone asks which workspaces the +key can reach. +A key restricted to one workspace, and an account that has only one, +both resolve without any configuration. +If the key can reach several, rclone refuses and lists their IDs so you +can set the one you want: +.IP +.nf +\f[C] +this API key can reach 2 workspaces, so workspace_id must be set to one of: + ws_AAAAAAAA (Work) + ws_BBBBBBBB (Personal) +\f[R] +.fi +.PP +To access several workspaces at once, create a separate remote for each: +.IP +.nf +\f[C] +rclone config create work dosya api_key=dos_XXX workspace_id=ws_WORK +rclone config create personal dosya api_key=dos_XXX workspace_id=ws_PERSONAL +\f[R] +.fi +.PP +Then use them independently: +.IP +.nf +\f[C] +rclone ls work: +rclone copy work:docs/ personal:backup/ +\f[R] +.fi +.SS Modification times and hashes +.PP +dosya.dev supports modification times with a resolution of 1 second. +The modification time is sent with the upload, so a copied or synced +file keeps its original timestamp. +Modification times cannot be changed after upload without re-uploading +the file. +.PP +dosya.dev supports SHA-256 checksums. +The server computes the hash of a single-shot (small file) upload from +the bytes it receives, so \f[V]rclone check\f[R] and hash-based sync +work without downloading. +Large files uploaded in multiple parts have no server-side hash (the +parts are never re-read to hash the whole object), the same limitation +the S3 backend has for multipart objects; those objects report an empty +hash. +.SS Restricted filename characters +.PP +In addition to the default restricted characters +set (https://rclone.org/overview/#restricted-characters) the following +characters are also replaced: +.PP +.TS +tab(@); +l c c. +T{ +Character +T}@T{ +Value +T}@T{ +Replacement +T} +_ +T{ +\[dq] +T}@T{ +0x22 +T}@T{ +" +T} +T{ +\[aq] +T}@T{ +0x27 +T}@T{ +' +T} +T{ +< +T}@T{ +0x3C +T}@T{ +< +T} +T{ +> +T}@T{ +0x3E +T}@T{ +> +T} +T{ +\[rs] +T}@T{ +0x5C +T}@T{ +\ +T} +.TE +.PP +Invalid UTF-8 bytes will also be +replaced (https://rclone.org/overview/#invalid-utf8), as they can\[aq]t +be used in JSON strings. +.SS Public Links +.PP +dosya.dev supports \f[V]rclone link\f[R] to create public share links to +files. +You can use the \f[V]--expire\f[R] flag to specify how long the link +should be valid. +.IP +.nf +\f[C] +rclone link remote:path/to/file.txt +rclone link --expire 7d remote:path/to/file.txt +\f[R] +.fi +.SS Standard options +.PP +Here are the Standard options specific to dosya (dosya.dev). +.SS --dosya-api-key +.PP +Your API Key, get it from https://dosya.dev/profile under \[dq]API +keys\[dq]. +.PP +Properties: +.IP \[bu] 2 +Config: api_key +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_API_KEY +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: true +.SS --dosya-workspace-id +.PP +Your workspace ID. +.PP +Leave this blank to use the one workspace the API key can reach, which +is what a key restricted to a single workspace does. +If the key can reach several, rclone will refuse and list their IDs for +you to choose from. +.PP +Properties: +.IP \[bu] 2 +Config: workspace_id +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_WORKSPACE_ID +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS Advanced options +.PP +Here are the Advanced options specific to dosya (dosya.dev). +.SS --dosya-api-url +.PP +API base URL. +.PP +Properties: +.IP \[bu] 2 +Config: api_url +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_API_URL +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Default: \[dq]https://api.dosya.dev\[dq] +.SS --dosya-upload-concurrency +.PP +Concurrency for multipart uploads. +.PP +This is the number of parts of the same file that are uploaded +concurrently. +The first part is always uploaded on its own, because the server creates +the upload when it receives it. +.PP +Each part in flight is held in memory, so memory use grows with this +value times the part size the server chooses. +.PP +If you are uploading 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. +.PP +Properties: +.IP \[bu] 2 +Config: upload_concurrency +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_UPLOAD_CONCURRENCY +.IP \[bu] 2 +Type: int +.IP \[bu] 2 +Default: 4 +.SS --dosya-encoding +.PP +The encoding for the backend. +.PP +See the encoding section in the +overview (https://rclone.org/overview/#encoding) for more info. +.PP +Properties: +.IP \[bu] 2 +Config: encoding +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_ENCODING +.IP \[bu] 2 +Type: Encoding +.IP \[bu] 2 +Default: +Slash,LtGt,DoubleQuote,SingleQuote,BackSlash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot +.SS --dosya-description +.PP +Description of the remote. +.PP +Properties: +.IP \[bu] 2 +Config: description +.IP \[bu] 2 +Env Var: RCLONE_DOSYA_DESCRIPTION +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS Limitations +.PP +dosya.dev only supports filenames up to 255 characters in length. +.PP +Empty files (0 bytes) cannot be uploaded to dosya.dev. +.PP +Upload requires knowing the file size in advance, so streaming uploads +of unknown-size files are not supported. +.PP +Each workspace limits the number of uploads a user can have in flight at +once (5 by default, configurable in the workspace settings). +When \f[V]--transfers\f[R] is set higher than that limit, rclone waits +for a free upload slot rather than failing the transfer, retrying every +5 seconds for up to 10 minutes. +.SS Deleting files and directories +.PP +rclone deletes files and directories permanently, in a single request +(\f[V]DELETE ?permanent=1\f[R]), bypassing the workspace trash. +Removing a directory also asks the server whether it is empty +(\f[V]?if_empty=1\f[R]) rather than listing it first. .SH Drime .PP Drime (https://drime.cloud/) is a cloud storage and transfer service @@ -60126,6 +63713,93 @@ any excess files in the directory. rclone sync --interactive /home/local/directory remote:dir \f[R] .fi +.SS Restricted filename characters +.PP +In addition to the default restricted characters +set (https://rclone.org/overview/#restricted-characters) the following +characters are also replaced: +.PP +.TS +tab(@); +l c c. +T{ +Character +T}@T{ +Value +T}@T{ +Replacement +T} +_ +T{ +\[rs] +T}@T{ +0x5C +T}@T{ +\ +T} +.TE +.PP +File names can also not end with the following characters. +These only get replaced if they are the last character in the name: +.PP +.TS +tab(@); +l c c. +T{ +Character +T}@T{ +Value +T}@T{ +Replacement +T} +_ +T{ +SP +T}@T{ +0x20 +T}@T{ +␠ +T} +T{ +LF +T}@T{ +0x0A +T}@T{ +␊ +T} +T{ +CR +T}@T{ +0x0D +T}@T{ +␍ +T} +T{ +HT +T}@T{ +0x09 +T}@T{ +␉ +T} +T{ +VT +T}@T{ +0x0B +T}@T{ +␋ +T} +.TE +.PP +Invalid UTF-8 bytes will also be +replaced (https://rclone.org/overview/#invalid-utf8). +.PP +Files.com treats the replacements \f[V]/\f[R] and \f[V]\\f[R] as if +they were \f[V]/\f[R] and \f[V]\[rs]\f[R], and the names \f[V].\f[R] +and \f[V]..\f[R] as if they were \f[V].\f[R] and \f[V]..\f[R], and +rejects them with \f[V]Invalid path\f[R]. +This means that files with \f[V]/\f[R] or \f[V]\[rs]\f[R] in their +names, or which are called \f[V].\f[R] or \f[V]..\f[R], can\[aq]t be +stored on Files.com. .SS Hashes .PP In December 2024 \f[V]files.com\f[R] started supporting more @@ -60363,10 +64037,10 @@ although it is common to use either the password \[dq]anonymous\[dq] or \[dq]guest\[dq]. Some servers require the use of a valid e-mail address as password. .PP -Using on-the-fly or connection -string (https://rclone.org/docs/#connection-strings) remotes makes it -easy to access such servers, without requiring any configuration in -advance. +Using on-the-fly (https://rclone.org/docs/#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: .IP .nf @@ -64166,7 +67840,7 @@ usage is using the flag form --drive-size-as-quota when doing rclone ls/lsl/lsf/lsjson/etc only. .PP If you do use this flag for syncing (not recommended) then you will need -to use --ignore size also. +to use --ignore-size also. .PP Properties: .IP \[bu] 2 @@ -65385,8 +69059,8 @@ You should now see the three scopes on your Data access page. Now press save at the bottom! .RE .IP " 6." 4 -After adding scopes, click Audience Scroll down and click \[dq]+ Add -users\[dq]. +After adding scopes, click Audience. +Scroll down and click \[dq]+ Add users\[dq]. Add yourself as a test user and press save. .IP " 7." 4 Go to Overview on the left panel, click \[dq]Create OAuth client\[dq]. @@ -65404,6 +69078,19 @@ same Google Workspace.) Go to \[dq]Audience\[dq] and then click \[dq]PUBLISH APP\[dq] button and confirm. Add yourself as a test user if you haven\[aq]t already. +.RS 4 +.PP +(If the \[dq]PUBLISH APP\[dq] button is greyed out, Google now requires +a homepage URL and a privacy policy URL before publishing, even for a +personal single-user app. +Go to \[dq]Branding\[dq] in the left panel, fill in \[dq]Application +home page\[dq] and \[dq]Application privacy policy link\[dq] - a free +GitHub Pages site is fine for these if you don\[aq]t have a domain of +your own - then \[dq]Authorized domains\[dq] with the domain you used, +and click Save. +Return to \[dq]Audience\[dq] and the \[dq]PUBLISH APP\[dq] button should +now be available.) +.RE .IP "10." 4 Provide the noted client ID and client secret to rclone. .IP "11." 4 @@ -66814,15 +70501,24 @@ Preparation section in the \[dq]Huawei Account Service Development Guide\[dq]. .SS Enable Drive Application Switch .IP "1." 3 -Log in to the AppGallery Connect website and click \[dq]My -Projects\[dq]. +Log in to AppGallery Connect with your Huawei account. .IP "2." 3 -Find your project in the project list, select the application that needs -to access Drive in the project, and click \[dq]API Management\[dq]. +Create a project or select an existing project. .IP "3." 3 -In the \[dq]API Management\[dq] area of the \[dq]Project Settings\[dq] -page, click the switch on the right side of Drive Kit to ensure the -switch is in the open state. +Add a web application to the project. +.IP "4." 3 +Open \[dq]Project settings\[dq] for the application and copy the OAuth +2.0 Client ID and Client Secret from the \[dq]General\[dq] tab. +.IP "5." 3 +Open \[dq]API Management\[dq] for the project and enable \[dq]Cloud +Drive\[dq]. +.IP "6." 3 +Add \f[V]http://127.0.0.1:53682/\f[R] as a redirect URI for the OAuth +2.0 Client ID. +.PP +The older Huawei Developer Console may show some of the same credential +information, but AppGallery Connect is the place to create the project, +application, API permission, and redirect URI used by rclone. .SS Sign Huawei Cloud Drive Privacy Notice and User Agreement .PP Guide users to visit . @@ -66838,27 +70534,17 @@ Development Guide\[dq]. .PP Key steps summary: .IP "1." 3 -Log into the Huawei Developer -Console (https://developer.huawei.com/consumer/en/console) with your -Huawei account. +Create or select a project in AppGallery Connect. .IP "2." 3 -Create a new project or select an existing project. +Add a web application to the project. .IP "3." 3 -Go to \[dq]Manage APIs\[dq] and enable the \[dq]Drive Kit\[dq] API. +Enable Cloud Drive in API Management. .IP "4." 3 -Click on \[dq]Credentials\[dq] in the left side panel. +Configure \f[V]http://127.0.0.1:53682/\f[R] as the OAuth redirect URI. .IP "5." 3 -Click \[dq]Create Credentials\[dq] and choose \[dq]OAuth client ID\[dq]. +Copy the OAuth 2.0 Client ID and Client Secret from the application. .IP "6." 3 -Choose \[dq]Web application\[dq] as the application type. -.IP "7." 3 -Add \f[V]http://localhost:53682/\f[R] to the \[dq]Authorized redirect -URIs\[dq]. -.IP "8." 3 -Click \[dq]Create\[dq] and note down the Client ID and Client Secret. -.IP "9." 3 -Provide the noted client ID and client secret to rclone during -configuration. +Provide the client ID and client secret to rclone during configuration. .SS Scopes .PP Rclone uses the following OAuth2 scopes when accessing Huawei Drive: @@ -68335,11 +72021,13 @@ path \f[V]fix\f[R], the resolved URL will be \f[V]/fix\f[R] the resolved URL will be \f[V]https://beta.rclone.org/fix\f[R] as the absolute path is resolved from the root of the domain. +The path can\[aq]t change the scheme, host or user of the configured +url, so a path such as \f[V]//other.example.com/fix\f[R] is rejected. .PP If the path following the \f[V]remote:\f[R] ends with \f[V]/\f[R] it will be assumed to point to a directory. If the path does not end with \f[V]/\f[R], then a HEAD request is sent -and the response used to decide if it it is treated as a file or a +and the response used to decide if it is treated as a file or a directory (run with \f[V]-vv\f[R] to see details). When --http-no-head is specified, a path without ending \f[V]/\f[R] is always assumed to be a file. @@ -68547,6 +72235,13 @@ For example, to set a Cookie use \[aq]Cookie,name=value\[aq], or You can set multiple headers, e.g. \[aq]\[dq]Cookie\[dq],\[dq]name=value\[dq],\[dq]Authorization\[dq],\[dq]xxx\[dq]\[aq]. .PP +The headers are only sent to the host in the configured URL. +If the server redirects to another host (including a subdomain or a +different port) the headers are not sent to it, or to any further hop in +that redirect chain. +When headers are set, a redirect from https to http is refused as it +would send them in cleartext, even with --allow-https-downgrade. +.PP Properties: .IP \[bu] 2 Config: headers @@ -68610,6 +72305,51 @@ Env Var: RCLONE_HTTP_NO_HEAD Type: bool .IP \[bu] 2 Default: false +.SS --http-no-head-size +.PP +Set the reported file size for --http-no-head. +.PP +When HEAD requests are disabled, rclone normally reports an unknown file +size. +Set this option to a non-negative value to report that size for every +file, including 0. +Leave it unset (the default, shown as \[dq]off\[dq]) to keep reporting +an unknown size. +.PP +The configured size is authoritative. +If it does not match the actual file size, transfers may fail their size +check and retry unless --ignore-size is used. +It can also make multi-thread transfers request incorrect ranges and +make mounted files unreadable past the reported size. +.PP +Properties: +.IP \[bu] 2 +Config: no_head_size +.IP \[bu] 2 +Env Var: RCLONE_HTTP_NO_HEAD_SIZE +.IP \[bu] 2 +Type: SizeSuffix +.IP \[bu] 2 +Default: off +.SS --http-no-head-time +.PP +Set a default modification time for --http-no-head. +.PP +When HEAD requests are disabled, rclone normally reports an unset +modification time. +Set this option to report the specified time for every file instead. +Changing the configured time later makes every file appear modified to a +sync. +.PP +Properties: +.IP \[bu] 2 +Config: no_head_time +.IP \[bu] 2 +Env Var: RCLONE_HTTP_NO_HEAD_TIME +.IP \[bu] 2 +Type: Time +.IP \[bu] 2 +Default: off .SS --http-description .PP Description of the remote. @@ -71245,6 +74985,396 @@ 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. +.SH kDrive +.PP +Paths are specified as \f[V]remote:path\f[R] +.PP +Paths may be as deep as required, e.g. +\f[V]remote:directory/subdirectory\f[R]. +.SS Configuration +.PP +The initial setup for kDrive involves getting an OAuth2 token which you +need to do in your browser. +\f[V]rclone config\f[R] walks you through it. +.PP +kDrive uses the PKCE OAuth2 flow (RFC 7636), which means no +\f[V]client_secret\f[R] is required. +The \f[V]client_id\f[R] is optional and defaults to rclone\[aq]s +built-in application credentials. +.PP +Here is an example of how to make a remote called \f[V]remote\f[R]. +First run: +.IP +.nf +\f[C] +rclone config +\f[R] +.fi +.PP +This will guide you through an interactive setup process: +.IP +.nf +\f[C] +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 / Infomaniak kDrive + \[rs] \[dq]kdrive\[dq] +[snip] +Storage> kdrive + +Option client_id. +OAuth Client Id. +Leave blank normally. +Enter a value. Press Enter to leave empty. +client_id> + +Option drive_id. +ID of the kDrive to use. +When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... +Enter a value. Press Enter to leave empty. +drive_id> 0654321 + +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 + +Waiting for code... +Got code + +Configuration complete. +Options: +- type: kdrive +- drive_id: 0654321 + +Keep this \[dq]remote\[dq] remote? +y) Yes this is OK +e) Edit this remote +d) Delete this remote +y/e/d> y +\f[R] +.fi +.PP +Once configured you can then use \f[V]rclone\f[R] like this (replace +\f[V]remote\f[R] with the name you gave your remote): +.PP +List directories in top level of your rclone +.IP +.nf +\f[C] +rclone lsd remote: +\f[R] +.fi +.PP +\f[B]Note\f[R] that by default the top level directory of a private +kDrive storage is your \[dq]Private\[dq] folder. +When used with a Pro account, a second folder \[dq]Common documents\[dq] +is also available, which can be used as the root by setting +\f[V]root_folder_id\f[R] to \f[V]common\f[R]. +\f[I]These top-level folders cannot be modified\f[R]. +.PP +List all the files in your kDrive +.IP +.nf +\f[C] +rclone ls remote: +\f[R] +.fi +.PP +To copy a local directory to a kDrive directory called backup +.IP +.nf +\f[C] +rclone copy /home/source remote:backup +\f[R] +.fi +.SS Modification times and hashes +.PP +kDrive allows modification times to be set on objects accurate to 1 +second. +These will be used to detect whether objects need syncing or not. +.PP +kDrive supports the XXH3 checksum hash, so you can use the +\f[V]--checksum\f[R] flag. +XXH3 is only available for files uploaded as a single chunk: files +uploaded in chunks (by rclone when larger than +\f[V]--kdrive-chunk-size\f[R], or by the kDrive apps which chunk files +at their own sizes) have a \[dq]nested\[dq] hash which can\[aq]t be +compared with a plain XXH3, and rclone reports no hash for those files. +.SS Restricted filename characters +.PP +In addition to the default restricted characters +set (https://rclone.org/overview/#restricted-characters) the following +characters are also replaced: +.PP +.TS +tab(@); +l c c. +T{ +Character +T}@T{ +Value +T}@T{ +Replacement +T} +_ +T{ +LeftSpace +T}@T{ +0x20 +T}@T{ +␠ +T} +T{ +RightSpace +T}@T{ +0x20 +T}@T{ +␠ +T} +.TE +.PP +Invalid UTF-8 bytes will also be +replaced (https://rclone.org/overview/#invalid-utf8), as they can\[aq]t +be used in JSON strings. +.SS Overwriting files +.PP +When rclone overwrites an existing file, kDrive keeps the replaced +content as a new version of the file. +Old versions count against the drive quota, so repeatedly overwriting +large files grows the storage usage. +Manage old versions from the kDrive web app. +.SS Uploading files of unknown size +.PP +kDrive can\[aq]t upload files of unknown size, so \f[V]rclone rcat\f[R] +and streaming uploads are not supported. +.SS Deleting files +.PP +Deleted files will be moved to the trash. +Your subscription level will determine how long items stay in the trash. +\f[V]rclone cleanup\f[R] can be used to empty the trash. +.SS Root folder ID +.PP +You can set the \f[V]root_folder_id\f[R] for rclone. +This is the directory (identified by its numeric \f[V]Folder ID\f[R]) +that rclone considers to be the root of your kDrive drive. +.PP +Normally you will leave this blank and rclone will use your private +directory. +You can also use one of the convenience shortcuts: +.IP \[bu] 2 +\f[V]private\f[R]: your user private directory (default) +.IP \[bu] 2 +\f[V]common\f[R]: the kDrive common directory, shared among users +.PP +Or the numeric \f[V]Folder ID\f[R] of any directory in your drive. +The root of the drive only contains the \f[V]Private\f[R] and +\f[V]Common documents\f[R] folders, so a numeric ID is needed to use any +other directory as root. +In order to find the \f[V]Folder ID\f[R], list the parent directory of +the folder you wish rclone to use with \f[V]rclone lsf\f[R]; the first +column of the output is the folder ID: +.PP +Example: +.IP +.nf +\f[C] +$ rclone lsf --dirs-only -Fip --csv remote:Documents +456,Sub folder/ +789,Photos/ +\f[R] +.fi +.PP +So if the folder you want rclone to use is \[dq]Photos/\[dq], then use +the returned id from \f[V]rclone lsf\f[R] command (ex. +\f[V]789\f[R]) as the \f[V]root_folder_id\f[R] variable value in the +config file. +.SS Standard options +.PP +Here are the Standard options specific to kdrive (Infomaniak kDrive). +.SS --kdrive-client-id +.PP +OAuth Client Id. +.PP +Leave blank normally. +.PP +Properties: +.IP \[bu] 2 +Config: client_id +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_CLIENT_ID +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-drive-id +.PP +ID of the kDrive to use. +.PP +When showing a folder on kdrive, you can find the drive_id here: +https://ksuite.infomaniak.com/{account_id}/kdrive/app/drive/{drive_id}/files/... +.PP +Properties: +.IP \[bu] 2 +Config: drive_id +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_DRIVE_ID +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS Advanced options +.PP +Here are the Advanced options specific to kdrive (Infomaniak kDrive). +.SS --kdrive-token +.PP +OAuth Access Token as a JSON blob. +.PP +Properties: +.IP \[bu] 2 +Config: token +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_TOKEN +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-auth-url +.PP +Auth server URL. +.PP +Leave blank to use the provider defaults. +.PP +Properties: +.IP \[bu] 2 +Config: auth_url +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_AUTH_URL +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-token-url +.PP +Token server url. +.PP +Leave blank to use the provider defaults. +.PP +Properties: +.IP \[bu] 2 +Config: token_url +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_TOKEN_URL +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-encoding +.PP +The encoding for the backend. +.PP +See the encoding section in the +overview (https://rclone.org/overview/#encoding) for more info. +.PP +Properties: +.IP \[bu] 2 +Config: encoding +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_ENCODING +.IP \[bu] 2 +Type: Encoding +.IP \[bu] 2 +Default: Slash,Del,Ctl,LeftSpace,RightSpace,InvalidUtf8,Dot +.SS --kdrive-root-folder-id +.PP +The folder to use as root. +.PP +You may use either one of the convenience shortcuts [private or common] +or an explicit folder ID. +.IP \[bu] 2 +private: your user private directory +.IP \[bu] 2 +common: the kDrive common directory, shared among users +.PP +Properties: +.IP \[bu] 2 +Config: root_folder_id +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_ROOT_FOLDER_ID +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-chunk-size +.PP +Files above this size are uploaded in chunks of this size. +.PP +The kDrive API accepts chunks between 1 MB and 1 GB, up to 10,000 chunks +per file and a total file size of 1 TiB. +The chunk size is raised automatically for very large files to stay +within the 10,000 chunks limit. +.PP +Properties: +.IP \[bu] 2 +Config: chunk_size +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_CHUNK_SIZE +.IP \[bu] 2 +Type: SizeSuffix +.IP \[bu] 2 +Default: 20Mi +.SS --kdrive-upload-concurrency +.PP +Concurrency for chunked uploads. +.PP +Properties: +.IP \[bu] 2 +Config: upload_concurrency +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_UPLOAD_CONCURRENCY +.IP \[bu] 2 +Type: int +.IP \[bu] 2 +Default: 4 +.SS --kdrive-endpoint +.PP +The API endpoint to use. +.PP +Leave blank normally. +There is no reason to change the endpoint except for internal use or +beta-testing. +.PP +Properties: +.IP \[bu] 2 +Config: endpoint +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_ENDPOINT +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false +.SS --kdrive-description +.PP +Description of the remote. +.PP +Properties: +.IP \[bu] 2 +Config: description +.IP \[bu] 2 +Env Var: RCLONE_KDRIVE_DESCRIPTION +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false .SH Koofr .PP Paths are specified as \f[V]remote:path\f[R] @@ -71843,6 +75973,16 @@ Required: false Invalid UTF-8 bytes will also be replaced (https://rclone.org/overview/#invalid-utf8), as they can\[aq]t be used in JSON strings. +.PP +Linkbox converts file extensions to lower case on upload, so a file +uploaded as \f[V]file.TXT\f[R] is stored as \f[V]file.txt\f[R]. +.PP +Linkbox renames an uploaded file to \f[V]name(1)\f[R] if its name is the +start of the name of a file already in the same directory, for example +when uploading \f[V]apple\f[R] to a directory containing +\f[V]applebanana\f[R]. +rclone then can\[aq]t find the file it uploaded and the upload fails +with \f[V]object not found\f[R]. .SH Mail.ru Cloud .PP Mail.ru Cloud (https://cloud.mail.ru/) is a cloud storage provided by a @@ -73575,6 +77715,26 @@ ignores the override. .PP Notes: - Rclone ignores reserved \f[V]x-ms-*\f[R] keys (except \f[V]x-ms-tags\f[R]) for user metadata. +.SS Hierarchical namespace +.PP +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories. +On these accounts rclone supports empty directories, creating them with +\f[V]rclone mkdir\f[R] and removing them with \f[V]rclone rmdir\f[R], +whatever the \f[V]--azureblob-directory-markers\f[R] setting. +.PP +Note that deleting the last file in a directory leaves the directory +behind. +Use \f[V]rclone rmdirs\f[R] or \f[V]--delete-empty-src-dirs\f[R] to +remove empty directories. +.PP +Rclone reads whether the storage account has a hierarchical namespace +when it first uses the remote and saves it as the \f[V]hns\f[R] option +in the config file. +Set \f[V]--azureblob-hns\f[R] to override this. +.PP +Blob tags (\f[V]x-ms-tags\f[R] metadata) aren\[aq]t supported on these +accounts. .SS Performance .PP When uploading large files, increasing the value of @@ -73911,14 +78071,14 @@ be explicitly specified using exactly one of the \f[V]msi_mi_res_id\f[R] parameters. .PP If none of \f[V]msi_object_id\f[R], \f[V]msi_client_id\f[R], or -\f[V]msi_mi_res_id\f[R] is set, this is is equivalent to using +\f[V]msi_mi_res_id\f[R] is set, this is equivalent to using \f[V]env_auth\f[R]. .SS Federated Identity Credentials .PP If these variables are set, rclone will authenticate with federated identity. .IP \[bu] 2 -\f[V]tenant\f[R]: tenant ID of of the storage +\f[V]tenant\f[R]: tenant ID of the storage .IP \[bu] 2 \f[V]client_id\f[R]: client ID of the application the user will authenticate to storage @@ -74521,6 +78681,57 @@ Env Var: RCLONE_AZUREBLOB_LIST_CHUNK Type: int .IP \[bu] 2 Default: 5000 +.SS --azureblob-use-arrow-list +.PP +Use the Apache Arrow listing format. +.PP +If set, directory listings are fetched using the ListBlobs Apache Arrow +response format instead of XML. +Arrow responses are smaller and much cheaper to parse, making listings +of large containers several times faster. +Combine with \[dq]list_parallelism\[dq] for the biggest gains. +.PP +\[dq]Blob Listing with Apache Arrow\[dq] is in public preview at +Microsoft and is only supported on flat namespace accounts. +On accounts with a hierarchical namespace (ADLS Gen2), or where the +feature is otherwise unavailable, the server returns XML and the listing +transparently falls back to the normal XML path (logged at debug level). +.PP +Properties: +.IP \[bu] 2 +Config: use_arrow_list +.IP \[bu] 2 +Env Var: RCLONE_AZUREBLOB_USE_ARROW_LIST +.IP \[bu] 2 +Type: bool +.IP \[bu] 2 +Default: false +.SS --azureblob-list-parallelism +.PP +Number of parallel shards to list a directory with. +.PP +If set greater than 1, the blob name keyspace of each directory is split +into ranges which are listed concurrently using the Arrow +startFrom/endBefore range parameters. +This can dramatically speed up listing containers with millions of +objects, for both recursive (ListR) and single directory listings. +Speed keeps improving up to a parallelism of around 30. +.PP +This has no effect unless \[dq]use_arrow_list\[dq] is also set, as Arrow +is the only listing path that supports server-side name ranges. +If the account does not support range listing (e.g. +it has a hierarchical namespace) the listing falls back to sequential. +The default of 0 (or 1) lists sequentially. +.PP +Properties: +.IP \[bu] 2 +Config: list_parallelism +.IP \[bu] 2 +Env Var: RCLONE_AZUREBLOB_LIST_PARALLELISM +.IP \[bu] 2 +Type: int +.IP \[bu] 2 +Default: 0 .SS --azureblob-access-tier .PP Access tier of blob: hot, cool, cold or archive. @@ -74662,6 +78873,9 @@ creates an empty object ending with \[dq]/\[dq], to persist the folder. This object also has the metadata \[dq]hdi_isfolder = true\[dq] to conform to the Microsoft standard. .PP +This is not needed on storage accounts with a hierarchical namespace +(see the hns option) as these always support empty directories. +.PP Properties: .IP \[bu] 2 Config: directory_markers @@ -74671,6 +78885,25 @@ Env Var: RCLONE_AZUREBLOB_DIRECTORY_MARKERS Type: bool .IP \[bu] 2 Default: false +.SS --azureblob-hns +.PP +Set if the storage account has a hierarchical namespace. +.PP +Storage accounts with hierarchical namespace enabled (Azure Data Lake +Storage Gen2) have real directories which can be empty. +.PP +If this is unset then rclone will read it from the storage account and +save it in the config file. +.PP +Properties: +.IP \[bu] 2 +Config: hns +.IP \[bu] 2 +Env Var: RCLONE_AZUREBLOB_HNS +.IP \[bu] 2 +Type: Tristate +.IP \[bu] 2 +Default: unset .SS --azureblob-no-check-container .PP If set, don\[aq]t attempt to check the container exists or create it. @@ -75394,14 +79627,14 @@ be explicitly specified using exactly one of the \f[V]msi_mi_res_id\f[R] parameters. .PP If none of \f[V]msi_object_id\f[R], \f[V]msi_client_id\f[R], or -\f[V]msi_mi_res_id\f[R] is set, this is is equivalent to using +\f[V]msi_mi_res_id\f[R] is set, this is equivalent to using \f[V]env_auth\f[R]. .SS Federated Identity Credentials .PP If these variables are set, rclone will authenticate with federated identity. .IP \[bu] 2 -\f[V]tenant\f[R]: tenant ID of of the storage +\f[V]tenant\f[R]: tenant ID of the storage .IP \[bu] 2 \f[V]client_id\f[R]: client ID of the application the user will authenticate to storage @@ -75848,7 +80081,7 @@ Required: false Upload chunk size. .PP Note that this is stored in memory and there may be up to -\[dq]--transfers\[dq] * \[dq]--azurefile-upload-concurrency\[dq] chunks +\[dq]--transfers\[dq] * \[dq]--azurefiles-upload-concurrency\[dq] chunks stored at once in memory. .PP Properties: @@ -75872,7 +80105,7 @@ and these uploads do not fully utilize your bandwidth, then increasing this may help to speed up the transfers. .PP Note that chunks are stored in memory and there may be up to -\[dq]--transfers\[dq] * \[dq]--azurefile-upload-concurrency\[dq] chunks +\[dq]--transfers\[dq] * \[dq]--azurefiles-upload-concurrency\[dq] chunks stored at once in memory. .PP Properties: @@ -75970,6 +80203,9 @@ Paths are specified as \f[V]remote:path\f[R] .PP Paths may be as deep as required, e.g. \f[V]remote:directory/subdirectory\f[R]. +.PP +\f[B]Note\f[R]: OneDrive for Business and SharePoint users need rclone +v1.76 or later from April 1, 2027 - see Pre-authenticated URLs. .SS Configuration .PP The initial setup for OneDrive involves getting a token from Microsoft @@ -76250,7 +80486,7 @@ If you do not have admin access to your organization\[aq]s OneDrive for Business, you can still connect by manually providing the SharePoint tenant URL and drive ID. This works by overriding the base API URL from the standard Microsoft -Graph endpoint to the SharePoint v2.0 endpoint. +Graph endpoint to the SharePoint API endpoint. .SS Steps to manually obtain credentials .IP "1." 3 Open your browser and navigate to @@ -76269,6 +80505,16 @@ Extract the following information from the response: \[dq].driveAccessToken\[dq]: \[dq]access_token={access_token}\[dq] \f[R] .fi +.PP +In some guest access scenarios SharePoint may also expose a matching +v2.1 URL and token pair: +.IP +.nf +\f[C] +\[dq].driveUrlV21\[dq]: \[dq]{tenant_url}/v2.1/drives/{drive_id}\[dq], +\[dq].driveAccessTokenV21\[dq]: \[dq]access_token={access_token}\[dq] +\f[R] +.fi .RE .SS Rclone configuration .PP @@ -76284,6 +80530,17 @@ drive_type = business \f[R] .fi .PP +If you use a v2.1 token, set the matching SharePoint API version: +.IP +.nf +\f[C] +tenant_api_version = v2.1 +\f[R] +.fi +.PP +If \f[V]tenant_api_version\f[R] is omitted, rclone defaults to +\f[V]v2.0\f[R]. +.PP Since the exact expiry time cannot be determined from web traffic, set the expiry to a future date. Note that the token will eventually expire and you will need to repeat @@ -76330,11 +80587,11 @@ This can be useful with \f[V]rclone mount\f[R] and rclone rc vfs/refresh recursive=true (https://rclone.org/rc/#vfs-refresh)) to very quickly fill the mount with information about all the files. .PP -The API used for the recursive listing (\f[V]ListR\f[R]) only supports -listing from the root of the drive. -This will become increasingly inefficient the further away you get from -the root as rclone will have to discard files outside of the directory -you are using. +Rclone asks for the delta listing of the directory being listed. +Some drives only support delta listings from the root of the drive, in +which case rclone lists the whole drive and discards the files outside +of the directory you are using, which is increasingly inefficient the +further away from the root you get. .PP Some commands (like \f[V]rclone lsf -R\f[R]) will use \f[V]ListR\f[R] by default - you can turn this off with \f[V]--disable ListR\f[R] if you @@ -76663,7 +80920,7 @@ Default: off .PP The tenant URL for non-admin OneDrive access. .PP -Set this to your SharePoint tenant URL to use the SharePoint v2.0 API +Set this to your SharePoint tenant URL to use the SharePoint API endpoint instead of the standard Microsoft Graph API. This allows accessing business OneDrive without admin consent. .PP @@ -76683,6 +80940,25 @@ Env Var: RCLONE_ONEDRIVE_TENANT_URL Type: string .IP \[bu] 2 Required: false +.SS --onedrive-tenant-api-version +.PP +The SharePoint API version to use with tenant_url. +.PP +Set this to the SharePoint API version matching the browser-extracted +access token. +For example, use v2.1 with a driveAccessTokenV21 token. +.PP +This only applies when tenant_url is set. +.PP +Properties: +.IP \[bu] 2 +Config: tenant_api_version +.IP \[bu] 2 +Env Var: RCLONE_ONEDRIVE_TENANT_API_VERSION +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Default: \[dq]v2.0\[dq] .SS --onedrive-chunk-size .PP Chunk size to upload files with - must be multiple of 320k (327,680 @@ -76855,17 +81131,14 @@ Default: 1000 .PP Remove all versions on modifying operations. .PP -Onedrive for business creates versions when rclone uploads new files -overwriting an existing one and when it sets the modification time. +Onedrive creates versions when rclone uploads new files overwriting an +existing one and when it sets the modification time. .PP These versions take up space out of the quota. .PP This flag checks for versions after file upload and setting modification time and removes all but the last version. .PP -\f[B]NB\f[R] Onedrive personal can\[aq]t currently delete versions so -don\[aq]t use this flag there. -.PP Properties: .IP \[bu] 2 Config: no_versions @@ -76883,8 +81156,8 @@ Normally files will get sent to the recycle bin on deletion. Setting this flag causes them to be permanently deleted. Use with care. .PP -OneDrive personal accounts do not support the permanentDelete API, it -only applies to OneDrive for Business and SharePoint document libraries. +This works with OneDrive for Business, SharePoint document libraries, +and OneDrive personal accounts, including free accounts. .PP Properties: .IP \[bu] 2 @@ -76964,14 +81237,19 @@ Creates a read-write link to the item. .RS 2 .IP \[bu] 2 Creates an embeddable link to the item. +.IP \[bu] 2 +Only available in OneDrive personal. .RE .RE .SS --onedrive-link-password .PP Set the password for links created by the link command. .PP -At the time of writing this only works with OneDrive personal paid -accounts. +At the time of writing this works with OneDrive for Business and +OneDrive personal paid accounts. +.PP +OneDrive personal free accounts can\[aq]t set a password or an expiry +time (with --expire) on links. .PP Properties: .IP \[bu] 2 @@ -77110,24 +81388,13 @@ rclone rc vfs/refresh recursive=true \f[R] .fi .PP -\f[B]However\f[R] the delta listing API \f[B]only\f[R] works at the root -of the drive. -If you use it not at the root then it recurses from the root and -discards all the data that is not under the directory you asked for. +Rclone asks for the delta listing of the directory being listed. +If the drive only supports delta listings at the root of the drive (as +some older OneDrive for Business and SharePoint drives do) then rclone +lists from the root and discards all the data that is not under the +directory you asked for. So it will be correct but may not be very efficient. .PP -This is why this flag is not set as the default. -.PP -As a rule of thumb if nearly all of your data is under rclone\[aq]s root -directory (the \f[V]root/directory\f[R] in -\f[V]onedrive:root/directory\f[R]) then using this flag will be a big -performance win. -If your data is mostly not under the root then using this flag will be a -big performance loss. -.PP -It is recommended if you are mounting your onedrive at the root (or near -the root when using crypt) and using rclone \f[V]rc vfs/refresh\f[R]. -.PP Properties: .IP \[bu] 2 Config: delta @@ -77396,8 +81663,7 @@ _ T{ btime T}@T{ -Time of file birth (creation) with S accuracy (mS for OneDrive -Personal). +Time of file birth (creation) with S accuracy. T}@T{ RFC 3339 T}@T{ @@ -77498,7 +81764,7 @@ T} T{ mtime T}@T{ -Time of last modification with S accuracy (mS for OneDrive Personal). +Time of last modification with S accuracy. T}@T{ RFC 3339 T}@T{ @@ -77570,8 +81836,7 @@ T} T{ shared-time T}@T{ -Time when the item was shared, with S accuracy (mS for OneDrive -Personal). +Time when the item was shared, with S accuracy. T}@T{ RFC 3339 T}@T{ @@ -77582,7 +81847,7 @@ T} T{ utime T}@T{ -Time of upload with S accuracy (mS for OneDrive Personal). +Time of upload with S accuracy. T}@T{ RFC 3339 T}@T{ @@ -77692,11 +81957,6 @@ all old versions. Or you can set the \f[V]no_versions\f[R] parameter to \f[V]true\f[R] and rclone will remove versions after operations which create new versions. This takes extra transactions so only enable it if you need it. -.PP -\f[B]Note\f[R] At the time of writing Onedrive Personal creates versions -(but not for setting the modification time) but the API for removing -them returns \[dq]API not found\[dq] so cleanup and -\f[V]no_versions\f[R] should not be used on Onedrive Personal. .SS Disabling versioning .PP Starting October 2018, users will no longer be able to disable @@ -77770,9 +82030,38 @@ rclone cleanup --interactive remote:path/subdir # interactively remove all old v rclone cleanup remote:path/subdir # unconditionally remove all old version for path/subdir \f[R] .fi -.PP -\f[B]NB\f[R] Onedrive personal can\[aq]t currently delete versions .SS Troubleshooting +.SS Pre-authenticated URLs +.PP +Microsoft is retiring pre-authenticated (tempauth) +URLs (https://devblogs.microsoft.com/microsoft365dev/pre-authenticated-tempauth-urls-are-retiring-move-to-microsoft-entra-id-tokens-before-april-1-2027/) +in OneDrive for Business and SharePoint from April 1, 2027. +.PP +\f[B]Upgrade to rclone v1.76 or later before April 1, 2027.\f[R] Earlier +versions rely on pre-authenticated URLs, so after that date their +downloads, chunked uploads and server-side copies will fail with +OneDrive for Business and SharePoint. +Rclone v1.76 and later keep working with the existing configuration, +apart from the client credentials flow with a client secret (see below). +.PP +Rclone uses these URLs when downloading files, when uploading files +bigger than \f[V]--onedrive-upload-cutoff\f[R] in chunks and when doing +server-side copies. +When SharePoint returns them without pre-authentication rclone +authenticates them with a SharePoint token which it gets using the +existing login, so no reconfiguration is needed. +OneDrive Personal is not affected. +.PP +If rclone can\[aq]t get a SharePoint token, or SharePoint refuses it, +you will see the error +\f[V]SharePoint refused to authenticate a request\f[R]. +In this case rclone uploads files smaller than 250 MiB in a single +request instead and copies files by downloading and uploading them, but +bigger files can\[aq]t be uploaded and downloads may fail. +.PP +SharePoint does not accept tokens from the client credentials flow which +were got with a client secret, so this affects +\f[V]client_credentials\f[R] users. .SS Excessive throttling or blocked on SharePoint .PP If you experience excessive throttling or is being blocked on SharePoint @@ -77850,7 +82139,7 @@ You can\[aq]t do much about it, maybe write an email to your admins. .PP However, there are other ways to interact with your OneDrive account. Have a look at the WebDAV backend: - + .SS invalid_grant (AADSTS50076) .IP .nf @@ -77895,6 +82184,32 @@ The shortcut will appear in \f[V]My files\f[R], you can access it with rclone, it behaves like a normal folder/file. [IMAGE: in_my_files (https://i.imgur.com/0S8H3li.png)] [IMAGE: rclone_mount (https://i.imgur.com/2Iq66sW.png)] +.PP +Listing such a shortcut may still fail with +.IP +.nf +\f[C] +invalidRequest: The provided drive id appears to be malformed, or does not represent a valid drive. +\f[R] +.fi +.PP +as the drive it points to can\[aq]t always be read with the drive ID the +API supplies. +\f[V]Personal Vault\f[R] is a shortcut of the same kind and fails to +list in the same way, though it reports +\f[V]invalidResourceId: ObjectHandle is Invalid\f[R]. +.PP +A normal listing reports the error for that folder and carries on, so +the rest of the drive is still listed, and excluding the folder (for +example with \f[V]--exclude \[dq]/Personal Vault/**\[dq]\f[R]) avoids +the error. +.PP +A recursive listing with \f[V]--fast-list\f[R] stops at the first error, +so listing the root of a drive which has one of these shortcuts in it +will fail. +Filters don\[aq]t help here as the folder is listed by the backend +before the filters are applied - use \f[V]--disable ListR\f[R] (or +don\[aq]t use \f[V]--fast-list\f[R]) on such a drive. .SS Live Photos uploaded from iOS (small video clips in .heic files) .PP The iOS OneDrive app introduced upload and @@ -79077,7 +83392,7 @@ Env Var: RCLONE_OOS_ENCODING .IP \[bu] 2 Type: Encoding .IP \[bu] 2 -Default: Slash,InvalidUtf8,Dot +Default: Slash,CrLf,InvalidUtf8,Dot .SS --oos-leave-parts-on-error .PP If true avoid calling abort upload on a failure, leaving all @@ -80351,7 +84666,7 @@ Please follow the Get started (https://sia.tech/get-started) guide and install one. .PP rclone interacts with Sia network by talking to the Sia daemon via HTTP -API (https://sia.tech/docs/) which is usually available on port +API (https://docs.sia.tech/) which is usually available on port \f[I]9980\f[R]. By default you will run the daemon locally on the same computer so it\[aq]s safe to leave the API password blank (the API URL will be @@ -80614,6 +84929,9 @@ Blomp Cloud Storage (https://www.blomp.com/cloud-storage/) .IP \[bu] 2 IBM Bluemix Cloud ObjectStorage Swift (https://console.bluemix.net/docs/infrastructure/objectstorage-swift/index.html) +.IP \[bu] 2 +Infomaniak Swiss +Backup (https://www.infomaniak.com/en/swiss-backup/cloud-storage) .PP Paths are specified as \f[V]remote:container\f[R] (or \f[V]remote:\f[R] for the \f[V]lsd\f[R] command.) @@ -80763,8 +85081,8 @@ rclone sync --interactive /home/local/directory remote:container .fi .SS Configuration from an OpenStack credentials file .PP -An OpenStack credentials file typically looks something something like -this (without the comments) +An OpenStack credentials file typically looks something like this +(without the comments) .IP .nf \f[C] @@ -81017,6 +85335,30 @@ OVH .IP \[bu] 2 Blomp Cloud Storage .RE +.IP \[bu] 2 +\[dq]https://swiss-backup01.infomaniak.com/identity/v3\[dq] +.RS 2 +.IP \[bu] 2 +Infomaniak Swiss Backup Location 01 +.RE +.IP \[bu] 2 +\[dq]https://swiss-backup02.infomaniak.com/identity/v3\[dq] +.RS 2 +.IP \[bu] 2 +Infomaniak Swiss Backup Location 02 +.RE +.IP \[bu] 2 +\[dq]https://swiss-backup03.infomaniak.com/identity/v3\[dq] +.RS 2 +.IP \[bu] 2 +Infomaniak Swiss Backup Location 03 +.RE +.IP \[bu] 2 +\[dq]https://swiss-backup04.infomaniak.com/identity/v3\[dq] +.RS 2 +.IP \[bu] 2 +Infomaniak Swiss Backup Location 04 +.RE .RE .SS --swift-user-id .PP @@ -81480,7 +85822,7 @@ Request\[dq] error rather than a more sensible error when the authentication fails for Swift. .PP So this most likely means your username / password is wrong. -You can investigate further with the \f[V]--dump-bodies\f[R] flag. +You can investigate further with the \f[V]--dump bodies\f[R] flag. .PP This may also be caused by specifying the region when you shouldn\[aq]t have (e.g. @@ -82169,6 +86511,8 @@ Default: false Files bigger than this will be cached on disk to calculate hash if required. .PP +Files of unknown size are always cached on disk. +.PP Properties: .IP \[bu] 2 Config: hash_memory_limit @@ -84266,6 +88610,14 @@ T} Invalid UTF-8 bytes will also be replaced (https://rclone.org/overview/#invalid-utf8), as they can\[aq]t be used in JSON strings. +.PP +Seafile stores file and directory names in Unicode NFC form whatever +form they are uploaded in, so rclone normalizes names to NFC before +sending them. +Listings therefore always show NFC names, even for files created with +decomposed (NFD) names as macOS produces them. +Library names are not normalized as Seafile keeps them exactly as +entered. .SS Seafile and rclone link .PP Rclone supports generating share links for non-encrypted libraries only. @@ -84977,7 +89329,7 @@ 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 (https://rclone.org/docs/#backend-path-to-dir%5D) remote, +an on the fly (https://rclone.org/docs/#backend-path-to-dir) 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 \f[V]shell_type\f[R] option @@ -85072,6 +89424,48 @@ mod_sftp). If you are using one of these servers, you can set the option \f[V]set_modtime = false\f[R] in your RClone backend configuration to disable this behaviour. +.SS Restricted filename characters +.PP +SFTP servers on Unix-like systems can store any character in a file name +except NUL and \f[V]/\f[R], so by default only these are replaced: +.PP +.TS +tab(@); +l c c. +T{ +Character +T}@T{ +Value +T}@T{ +Replacement +T} +_ +T{ +NUL +T}@T{ +0x00 +T}@T{ +␀ +T} +T{ +/ +T}@T{ +0x2F +T}@T{ +/ +T} +.TE +.PP +If the server runs on Windows, which can\[aq]t store many more +characters, add the Windows restricted characters with +\f[V]--sftp-encoding\f[R], as in the FTP +example (https://rclone.org/overview/#encoding-example-ftp): +.IP +.nf +\f[C] +--sftp-encoding \[dq]Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot\[dq] +\f[R] +.fi .SS About command .PP The \f[V]about\f[R] command returns the total space, free space, and @@ -85573,7 +89967,7 @@ Env Var: RCLONE_SFTP_ENCODING .IP \[bu] 2 Type: Encoding .IP \[bu] 2 -Default: Slash,Del,Ctl,Dot +Default: Slash,Dot .SS --sftp-set-modtime .PP Set the modified time on the remote if set. @@ -85879,6 +90273,35 @@ Env Var: RCLONE_SFTP_DISABLE_CONCURRENT_WRITES Type: bool .IP \[bu] 2 Default: false +.SS --sftp-multithread-upload +.PP +Set this to use multi-thread (multi-connection) uploads. +.PP +Normally rclone uploads a single large file over one SFTP connection. +With this set rclone uploads large files over several SFTP connections +at once (one per chunk), which greatly improves throughput on high +latency links, the same way multi-thread downloads already work. +Each connection writes a different, non-overlapping byte range of the +file, so this requires a server that allows several handles to the same +file with writes at arbitrary offsets, which OpenSSH does. +.PP +This is off by default because many SFTP servers only accept sequential +writes (for example some object storage backed SFTP gateways) and would +fail large uploads with \[dq]truncate failed\[dq] or \[dq]invalid +offset\[dq] style errors. +.PP +This is ignored (uploads stay single-threaded) when +--sftp-disable-concurrent-writes or --sftp-connections is in use. +.PP +Properties: +.IP \[bu] 2 +Config: multithread_upload +.IP \[bu] 2 +Env Var: RCLONE_SFTP_MULTITHREAD_UPLOAD +.IP \[bu] 2 +Type: bool +.IP \[bu] 2 +Default: false .SS --sftp-idle-timeout .PP Max time before closing idle connections. @@ -86225,14 +90648,14 @@ This can be re-enabled on a per-connection basis by setting the \f[V]use_insecure_cipher\f[R] setting in the configuration file to \f[V]true\f[R]. Further details on the insecurity of this cipher can be found in this -paper (http://www.isg.rhul.ac.uk/~kp/SandPfinal.pdf). +paper (https://conferences.computer.org/sp/pdfs/sp/2009/oakland2009-01.pdf). .PP SFTP isn\[aq]t supported under plan9 until this issue (https://github.com/pkg/sftp/issues/156) is fixed. .PP Note that since SFTP isn\[aq]t HTTP based the following flags don\[aq]t -work with it: \f[V]--dump-headers\f[R], \f[V]--dump-bodies\f[R], -\f[V]--dump-auth\f[R]. +work with it: \f[V]--dump headers\f[R], \f[V]--dump bodies\f[R], +\f[V]--dump auth\f[R]. .PP Note that \f[V]--timeout\f[R] and \f[V]--contimeout\f[R] are both supported. @@ -86682,6 +91105,8 @@ Required: true .PP SMB username. .PP +Leave blank to use the current user name. +.PP Properties: .IP \[bu] 2 Config: user @@ -86690,7 +91115,7 @@ Env Var: RCLONE_SMB_USER .IP \[bu] 2 Type: string .IP \[bu] 2 -Default: \[dq]$USER\[dq] +Required: false .SS --smb-port .PP SMB port number. @@ -86780,6 +91205,26 @@ Default: false .SS Advanced options .PP Here are the Advanced options specific to smb (SMB / CIFS). +.SS --smb-workstation +.PP +Workstation name sent in NTLM authentication. +.PP +The NetBIOS name sent as the client workstation in the NTLM AUTHENTICATE +message. +Some servers (e.g. +domain-joined Windows servers with per-account workstation restrictions +or NTLM allow-lists) require this to match a specific name. +Leave blank to send no workstation name (the default). +.PP +Properties: +.IP \[bu] 2 +Config: workstation +.IP \[bu] 2 +Env Var: RCLONE_SMB_WORKSTATION +.IP \[bu] 2 +Type: string +.IP \[bu] 2 +Required: false .SS --smb-idle-timeout .PP Max time before closing idle connections. @@ -87045,8 +91490,7 @@ To make a new Storj configuration you need one of the following: .IP \[bu] 2 Access Grant that someone else shared with you. .IP \[bu] 2 -API -Key (https://documentation.storj.io/getting-started/uploading-your-first-object/create-an-api-key) +API Key (https://storj.dev/learn/concepts/access/access-grants/api-key) of a Storj project you are a member of. .PP Here is an example of how to make a remote called \f[V]remote\f[R]. @@ -88818,6 +93262,9 @@ 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. +With Nextcloud, rclone asks the server to calculate the SHA1 of uploads +which had no hash to send, such as streamed uploads, and after setting +the modification time, which discards the stored hash. .SS Standard options .PP Here are the Standard options specific to webdav (WebDAV). @@ -88999,6 +93446,13 @@ For example, to set a Cookie use \[aq]Cookie,name=value\[aq], or You can set multiple headers, e.g. \[aq]\[dq]Cookie\[dq],\[dq]name=value\[dq],\[dq]Authorization\[dq],\[dq]xxx\[dq]\[aq]. .PP +The headers are only sent to the host in the configured URL. +If the server redirects to another host (including a subdomain or a +different port) the headers are not sent to it, or to any further hop in +that redirect chain. +The exception is the directory listing and file download requests when +auth_redirect is set, as that keeps all credentials across redirects. +.PP Properties: .IP \[bu] 2 Config: headers @@ -89150,8 +93604,8 @@ ownCloud supports modified times using the \f[V]X-OC-Mtime\f[R] header. This is configured in an identical way to ownCloud. Note that Nextcloud initially did not support streaming of files (\f[V]rcat\f[R]) whereas ownCloud did, but -this (https://github.com/nextcloud/nextcloud-snap/issues/365) seems to -be fixed as of 2020-11-27 (tested with rclone v1.53.1 and Nextcloud +this (https://github.com/nextcloud-snap/nextcloud-snap/issues/365) seems +to be fixed as of 2020-11-27 (tested with rclone v1.53.1 and Nextcloud Server v19). .SS ownCloud Infinite Scale .PP @@ -89261,7 +93715,9 @@ property to compare your documents: .PP Use this option if you are hosting remotes over WebDAV provided by rclone. -Read rclone serve webdav for more details. +Read rclone serve +webdav (https://rclone.org/commands/rclone_serve_webdav/) for more +details. .PP rclone serve supports modified times using the \f[V]X-OC-Mtime\f[R] header. @@ -89489,6 +93945,16 @@ set (https://rclone.org/overview/#restricted-characters) are replaced. Invalid UTF-8 bytes will also be replaced (https://rclone.org/overview/#invalid-utf8), as they can\[aq]t be used in JSON strings. +.SS Application folder +.PP +If you registered your own OAuth application with Yandex and only +granted it the \[dq]Application Folder\[dq] permission +(\f[V]cloud_api:disk.app_folder\f[R]) instead of full disk access, then +you must set the \f[V]app_folder\f[R] option to \f[V]true\f[R]. +Yandex Disk requires paths to be addressed with an \f[V]app:/\f[R] +prefix instead of the usual \f[V]disk:/\f[R] prefix when using this +restricted scope, and rclone will return a 403 Forbidden error on every +request if this option isn\[aq]t set correctly for the token in use. .SS Standard options .PP Here are the Standard options specific to yandex (Yandex Disk). @@ -89653,6 +94119,28 @@ Env Var: RCLONE_YANDEX_UPLOAD_WAIT Type: Duration .IP \[bu] 2 Default: 0s +.SS --yandex-app-folder +.PP +Use the application folder as the root. +.PP +If you registered your own OAuth application with Yandex with only the +\[dq]Application Folder\[dq] permission (cloud_api:disk.app_folder) +instead of full disk access, then rclone needs to address paths with the +\[dq]app:/\[dq] prefix instead of the usual \[dq]disk:/\[dq] prefix, +otherwise all requests fail with a 403 Forbidden error. +.PP +Set this to true if your OAuth token only has access to the application +folder. +.PP +Properties: +.IP \[bu] 2 +Config: app_folder +.IP \[bu] 2 +Env Var: RCLONE_YANDEX_APP_FOLDER +.IP \[bu] 2 +Type: bool +.IP \[bu] 2 +Default: false .SS --yandex-description .PP Description of the remote. @@ -90741,6 +95229,9 @@ $ rclone -L ls /tmp/a 6 b/one \f[R] .fi +.PP +Symlinks which point to a parent directory would loop forever, so rclone +reports them as errors and skips them. .SS --local-links, --links, -l .PP Normally rclone will ignore symlinks or junction points (which behave @@ -90809,6 +95300,9 @@ $ tree /tmp/b \f[R] .fi .PP +A \f[V].rclonelink\f[R] file whose contents are too long to be a path +(more than 128 KiB) is refused rather than turned into a symlink. +.PP However, if copied back without \[aq]-l\[aq] .IP .nf @@ -91174,6 +95668,14 @@ However, for use cases where data redundancy is preferable, --local-no-clone can be used to disable cloning and force \[dq]deep\[dq] copies. .PP +Cloning also preserves macOS-specific metadata such as extended +attributes, which a normal copy does not, so this metadata is lost when +cloning is disabled. +.PP +If the destination file already exists, cloning replaces it with a new +file, even with --inplace, so hard links to it are broken. +Use --local-no-clone to update existing files in place. +.PP Currently, cloning is only supported when using APFS on macOS (support for other platforms may be added in the future.) .PP @@ -91278,8 +95780,9 @@ Default: false .PP Make out-of-space errors fatal during transfers. .PP -When enabled, an ENOSPC error during a write returns a fatal error so -that rclone aborts rather than retrying the operation. +When enabled, an out of space error while writing, creating a directory, +or creating a file returns a fatal error so that rclone aborts rather +than retrying the operation. Useful for backup scripts that should halt loudly on a full disk rather than spin retrying. .PP @@ -91416,6 +95919,8 @@ When restoring metadata with \f[V]--metadata\f[R] rclone applies the These come from the source remote which may not be trusted, so restoring metadata as root from an untrusted source can change file ownership and is not recommended. +A user other than root keeps its own uid and sets the gid only to a +group it is a member of, as rsync does. The setuid, setgid and sticky bits are not restored by default - see the \f[V]--local-metadata-restore-special-bits\f[R] flag. .PP @@ -91554,6 +96059,1845 @@ Options: .IP \[bu] 2 \[dq]error\[dq]: Return an error based on option value. .SH Changelog +.SS v1.76.0 - 2026-11-06 +.PP +See commits (https://github.com/rclone/rclone/compare/v1.75.0...v1.76.0) +.IP \[bu] 2 +New backends +.RS 2 +.IP \[bu] 2 +Dosya (https://rclone.org/dosya/) (Kaya) +.IP \[bu] 2 +Infomaniak kDrive (https://rclone.org/kdrive/) (Guillaume MALLERET) +.RE +.IP \[bu] 2 +New S3 Providers +.RS 2 +.IP \[bu] 2 +Autonomys Auto Drive (https://rclone.org/s3/#autonomys) (Jim Counter) +.IP \[bu] 2 +Clever Cloud Cellar (https://rclone.org/s3/#clever-cloud-cellar) (David +Legrand) +.IP \[bu] 2 +Infomaniak Swiss Backup (https://rclone.org/s3/#infomaniak) (Louis) +.IP \[bu] 2 +Neon Object Storage (https://rclone.org/s3/#neon) (Rishi Raj Jain) +.IP \[bu] 2 +RelAix.Storage (https://rclone.org/s3/#relaix) (mygrexit) +.RE +.IP \[bu] 2 +New commands +.RS 2 +.IP \[bu] 2 +index (https://rclone.org/commands/rclone_index/): Write static +directory listings into a remote (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Security +.RS 2 +.IP \[bu] 2 +build +.RS 2 +.IP \[bu] 2 +Disable Multipath TCP listeners by default to mitigate CVE-2026-98432 +(Nick Craig-Wood) +.IP \[bu] 2 +Fix multiple CVEs including CVE-2026-111943 by upgrading to go1.27.3 +(Nick Craig-Wood) +.IP \[bu] 2 +Update \f[V]golang.org/x/net\f[R] to v0.62.0 to fix multiple CVEs (Nick +Craig-Wood) +.IP \[bu] 2 +Update \f[V]github.com/andybalholm/brotli\f[R] to v1.2.7 to fix +CVE-2026-111497 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +fshttp: Refuse HTTPS to HTTP redirects unless +\f[V]--allow-https-downgrade\f[R] GHSA-m97j-7x65-wh93 CVE-PENDING (Nick +Craig-Wood) +.IP \[bu] 2 +lib/http: Stop \f[V]--htpasswd\f[R] and \f[V]--user\f[R] revealing which +usernames exist through timing GHSA-hwj7-wp9g-wrv9 CVE-PENDING (Nick +Craig-Wood) +.IP \[bu] 2 +local +.RS 2 +.IP \[bu] 2 +Fix user metadata escaping the root through a planted symlink +GHSA-r5wv-vqqh-2r9c CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +Fix MkdirMetadata finding directories outside the root through a planted +symlink (Nick Craig-Wood) +.IP \[bu] 2 +Fix Remove and Rmdir deleting outside the root through a planted symlink +(Nick Craig-Wood) +.IP \[bu] 2 +Fix DirMove creating the destination parent through a planted symlink +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +netstorage: Fix API auth headers leaking to other hosts on redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +rc +.RS 2 +.IP \[bu] 2 +Limit request size when the rc server has no authentication +GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +Reject unauthorised and unknown calls before reading the request +GHSA-f8p4-8g4j-q3m2 CVE-PENDING (Nick Craig-Wood) +.RE +.IP \[bu] 2 +seafile: Fix HTTPS to HTTP redirects leaking credentials +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +serve: Make auth proxy revocation take effect within 5 minutes +GHSA-vmgx-g9c5-669p CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +serve sftp +.RS 2 +.IP \[bu] 2 +Fix auth proxy letting a public key be used as a password +GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +Fix auth proxy running for public keys the client can\[aq]t use +GHSA-66qv-66mg-9h74 CVE-PENDING (Nick Craig-Wood) +.RE +.IP \[bu] 2 +swift +.RS 2 +.IP \[bu] 2 +Fix auth token leaking to other hosts or over plaintext on redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +Fix password being resent to another host on auth redirect +GHSA-m97j-7x65-wh93 CVE-PENDING (Nick Craig-Wood) +.RE +.IP \[bu] 2 +ulozto: Fix auth tokens leaking on redirects from download links +GHSA-3xpx-hjg2-vrjh CVE-PENDING (Nick Craig-Wood) +.RE +.IP \[bu] 2 +New Features +.RS 2 +.IP \[bu] 2 +accounting +.RS 2 +.IP \[bu] 2 +Stop \f[V]--max-transfer\f[R] overshooting the limit (Nick Craig-Wood) +.IP \[bu] 2 +Add \[dq]Updated dirs\[dq] count of directory modtime/metadata updates +to the stats (Nick Craig-Wood) +.RE +.IP \[bu] 2 +batcher: Log when committing uploads has finished (phatlc) +.IP \[bu] 2 +bisync +.RS 2 +.IP \[bu] 2 +Make \f[V]--max-delete\f[R] aware of \f[V]--track-renames\f[R] (Morax) +.IP \[bu] 2 +Fall back to \f[V]--download\f[R] when a checksum is missing (nielash) +.IP \[bu] 2 +Reject \f[V]--max-delete\f[R] above 100 (nielash) +.RE +.IP \[bu] 2 +build +.RS 2 +.IP \[bu] 2 +Update to go1.27 and make go1.26 the minimum required version (Nick +Craig-Wood) +.IP \[bu] 2 +Update all dependencies (Nick Craig-Wood) +.RE +.IP \[bu] 2 +cmd: Complete enum flag values from their choices (Demiao Huang) +.IP \[bu] 2 +config: Only run \f[V]--password-command\f[R] once when using +\f[V]--daemon\f[R] (phatlc) +.IP \[bu] 2 +doc fixes (ashwinibailangadi, ferrumclaudepilgrim, frodleTian, FTCHD, +gomitrah, Nick Craig-Wood, qodelicious, Satvik Mishra, ZainnQureshii) +.IP \[bu] 2 +docker: Make container user UID and GID configurable via build ARGs +(Vaibhav Mashal) +.IP \[bu] 2 +filter +.RS 2 +.IP \[bu] 2 +Speed up large \f[V]--include-from\f[R] lists of directories (kaii9) +.IP \[bu] 2 +Make \f[V][!...]\f[R] in globs a negated character class (kevin9327) +.IP \[bu] 2 +Make \f[V][\[ha]...]\f[R] in globs exclude \f[V]/\f[R] and document it +(kevin9327) +.RE +.IP \[bu] 2 +fs +.RS 2 +.IP \[bu] 2 +Reject sizes too large for SizeSuffix instead of silently disabling the +limit (KBS) +.IP \[bu] 2 +Stop writing config for on the fly and environment variable remotes into +the config file (Nick Craig-Wood) +.IP \[bu] 2 +Reject durations like 300y that overflow instead of wrapping (kevin9327) +.IP \[bu] 2 +Accept multi-unit relative times like 1d12h in Time options (kevin) +.IP \[bu] 2 +Reject NaN sizes and CountSuffix values that overflow (kevin9327) +.IP \[bu] 2 +Reject \f[V]--bwlimit\f[R] times without a colon or with signed digits +(kevin9327) +.IP \[bu] 2 +Reject NaN durations instead of wrapping (Soujas K) +.IP \[bu] 2 +Add MIME type for JPEG XL (.jxl) files (Seth Westphal) +.RE +.IP \[bu] 2 +gui +.RS 2 +.IP \[bu] 2 +Take the GUI out of beta (Nick Craig-Wood) +.IP \[bu] 2 +Update embedded release to 1.2.1 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +hash: Add CRC-32C (Castagnoli) support (Dirk Petersen) +.IP \[bu] 2 +index: Add partial runs which only re-index changed directories (Nick +Craig-Wood) +.IP \[bu] 2 +lib/http +.RS 2 +.IP \[bu] 2 +Return 416 for ranges \f[V]--rc-serve\f[R] and serve restic can\[aq]t +satisfy (Rohit Behera) +.IP \[bu] 2 +Replace \f[V]github.com/abbot/go-http-auth\f[R] with built in htpasswd +support (Nick Craig-Wood) +.IP \[bu] 2 +Accept the Basic auth scheme in any case (kevin) +.RE +.IP \[bu] 2 +lib/proxy: Send the decoded user and password in Proxy-Authorization +(kevin) +.IP \[bu] 2 +lib/transform: Make titlecase capitalise words instead of upper-casing +them (kevin) +.IP \[bu] 2 +ncdu: Show progress and the item count when deleting a selection (Lev +Devaev) +.IP \[bu] 2 +operations +.RS 2 +.IP \[bu] 2 +Check checksums in rcat with known size (phatlc) +.IP \[bu] 2 +Speed up checksum by hashing files in parallel (Teddy Tennant) +.IP \[bu] 2 +Fall back to a single stream when a multi-thread source ignores ranges +(Morax) +.IP \[bu] 2 +Show directory operations in the \f[V]--progress\f[R] display (Nick +Craig-Wood) +.IP \[bu] 2 +Add \f[V]operations/getfile\f[R] remote control API endpoint (Hakan +İSMAİL) +.IP \[bu] 2 +Make \f[V]--immutable\f[R] work with copyto, moveto and single file copy +(phatlc) +.IP \[bu] 2 +Respect \f[V]--backup-dir\f[R] in deletefile (Cao Yuhang) +.RE +.IP \[bu] 2 +rc +.RS 2 +.IP \[bu] 2 +Deprecate \f[V]--rc-web-gui\f[R] flag (Nick Craig-Wood) +.IP \[bu] 2 +Add sync report parameters to \f[V]sync/sync\f[R], \f[V]sync/copy\f[R] +and \f[V]sync/move\f[R] (Nick Craig-Wood) +.RE +.IP \[bu] 2 +rest: Reject negative sizes in HTTP response headers (Yousef Issa) +.IP \[bu] 2 +serve http +.RS 2 +.IP \[bu] 2 +Sort directory listings in the browser (Nick Craig-Wood) +.IP \[bu] 2 +Redesign the directory listing page (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Report the object\[aq]s modtime as Last-Modified after a PUT (kevin9327) +.IP \[bu] 2 +Support changing object tags (Nick Craig-Wood) +.IP \[bu] 2 +Quote the ETags of objects in listings (Nick Craig-Wood) +.IP \[bu] 2 +Support listing with delimiters other than \[dq]/\[dq] (Nick Craig-Wood) +.IP \[bu] 2 +Support directory markers and refuse file/directory conflicts (Nick +Craig-Wood) +.IP \[bu] 2 +Make the ETag of multipart uploads agree with HEAD and support +partNumber (Nick Craig-Wood) +.IP \[bu] 2 +Make conditional writes atomic against other writes through the server +(Nick Craig-Wood) +.IP \[bu] 2 +Make the ETag returned on upload agree with HEAD for any +\f[V]--etag-hash\f[R] (Nick Craig-Wood) +.IP \[bu] 2 +List empty directories as directory markers (Nick Craig-Wood) +.IP \[bu] 2 +Allow copying directory markers (Nick Craig-Wood) +.IP \[bu] 2 +Remove the directories made for a failed upload (Nick Craig-Wood) +.IP \[bu] 2 +Keep the MD5 ETag of objects on remotes without MD5 (Nick Craig-Wood) +.IP \[bu] 2 +Don\[aq]t read directories needlessly when listing with a delimiter +(Nick Craig-Wood) +.IP \[bu] 2 +Don\[aq]t compute the MD5 of multipart uploads unless the ETag is MD5 +(Nick Craig-Wood) +.IP \[bu] 2 +List the directory markers put for directories holding other keys (Nick +Craig-Wood) +.IP \[bu] 2 +Let a failed CompleteMultipartUpload be retried (Nick Craig-Wood) +.IP \[bu] 2 +List objects with the storage class they were put with (Nick Craig-Wood) +.IP \[bu] 2 +Add \f[V]--directory-markers\f[R] to list every directory as a marker +(Nick Craig-Wood) +.IP \[bu] 2 +Remove a directory with its last key after its marker is deleted (Nick +Craig-Wood) +.IP \[bu] 2 +Make \f[V]--no-cleanup\f[R] a deprecated alias of +\f[V]--directory-markers\f[R] (Nick Craig-Wood) +.IP \[bu] 2 +Document which S3 features are supported and the design goals (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +serve webdav +.RS 2 +.IP \[bu] 2 +Sort directory listings in the browser (Nick Craig-Wood) +.IP \[bu] 2 +Redesign the directory listing page (Nick Craig-Wood) +.RE +.IP \[bu] 2 +size: Include source in JSON output (Jiacheng Xu) +.IP \[bu] 2 +sync: Add pattern-based transfer ordering (Shurong Cao) +.IP \[bu] 2 +touch: Parse documented timestamp formats (Nicholas Velten) +.RE +.IP \[bu] 2 +Bug Fixes +.RS 2 +.IP \[bu] 2 +accounting: Fix totalBytes counting server-side copies and moves twice +(ilya lavrenov) +.IP \[bu] 2 +bisync +.RS 2 +.IP \[bu] 2 +Fix conflict winner missing from listings when Path2 wins (nielash) +.IP \[bu] 2 +Fix \f[V]--conflict-resolve\f[R] comparing a zero size or modtime +(nielash) +.IP \[bu] 2 +Fix endless retry loop for skipped files (nielash) +.IP \[bu] 2 +Fix listings ignoring a modtime less than 1s older (nielash) +.IP \[bu] 2 +Fix rc ignoring global \f[V]--dry-run\f[R] and \f[V]--max-delete\f[R] +settings (nielash) +.IP \[bu] 2 +Fix rc ignoring legacy backupdir1/2 and invalid values (nielash) +.IP \[bu] 2 +Fix internal error when a conflict rename reuses deleted names +(TastyHeadphones) +.RE +.IP \[bu] 2 +fs: Fix durations like 1d12h being rejected (Rohit Behera) +.IP \[bu] 2 +lib/encoder: Fix decoding a trailing character after an escaped quote +(kevin9327) +.IP \[bu] 2 +list: Fix ext sort error sometimes being ignored at the end of a listing +(Nick Craig-Wood) +.IP \[bu] 2 +ncdu: Update to tcell v3 which fixes duplicated keys on Windows (Nick +Craig-Wood) +.IP \[bu] 2 +operations +.RS 2 +.IP \[bu] 2 +Fix making a directory with modtime asking twice with +\f[V]--interactive\f[R] (Nick Craig-Wood) +.IP \[bu] 2 +Fix case- or Unicode-only renames deleting the file (nielash) +.IP \[bu] 2 +Fix moving a file onto its own name deleting it (nielash) +.IP \[bu] 2 +Fix cat \f[V]--offset\f[R] before the start of a file printing its end +(b84330808) +.IP \[bu] 2 +Fix oversized getfile tail requests (唐僧洗发用飘柔) +.RE +.IP \[bu] 2 +rc: Fix LogLevel in \f[V]_config\f[R] being ignored (Nick Craig-Wood) +.IP \[bu] 2 +rest: Fix retries reading the request body after the request has +finished (Nick Craig-Wood) +.IP \[bu] 2 +serve dlna: Fix crash on Browse with a negative StartingIndex or +RequestedCount (phatlc) +.IP \[bu] 2 +serve restic: Fix temporary errors confusing restic into leaving locks +behind (Azhar) +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Update to gofakes3 v0.0.8 which fixes 500 errors with go1.27 (Nick +Craig-Wood) +.IP \[bu] 2 +Upgrade gofakes3 to v0.0.11 to fix IsTruncated and Docker Distribution +Registry (DEVN) +.IP \[bu] 2 +Fix buckets being undeletable after an aborted multipart upload (Nick +Craig-Wood) +.IP \[bu] 2 +Fix CopyObject metadata including the source\[aq]s and an mtime (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +serve sftp: Fix rmdir deleting a file instead of returning an error +(phatlc) +.IP \[bu] 2 +sync +.RS 2 +.IP \[bu] 2 +Fix directory modtimes being set twice (Nick Craig-Wood) +.IP \[bu] 2 +Fix \f[V]--delete-empty-src-dirs\f[R] disabled by a prior error in a +reused stats group (ghwany) +.RE +.IP \[bu] 2 +walk: Fix duplicate directories with \f[V]--fast-list\f[R] when +directories are listed after their contents (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Mount +.RS 2 +.IP \[bu] 2 +Fix VFS instance leaks on mount failures and unmounts (Hakan İSMAİL) +.RE +.IP \[bu] 2 +VFS +.RS 2 +.IP \[bu] 2 +Preserve shrinking truncate on uncached files (47th) +.IP \[bu] 2 +Fix crash renaming a directory while the dir cache expires (Shreyansh +Jain) +.IP \[bu] 2 +Fix virtual entries leak in removed directory (Biagio Peccerillo) +.IP \[bu] 2 +Fix renamed items listed twice after a case or Unicode-only match +(nielash) +.IP \[bu] 2 +Fix uploads never starting while a dirty file keeps being read (Neil +Cawse) +.RE +.IP \[bu] 2 +Local +.RS 2 +.IP \[bu] 2 +Speed up default checksummed copies by writing in larger blocks (Dominik +Sander) +.IP \[bu] 2 +Make out of space errors fatal during multi-thread transfers +(ferrumclaudepilgrim) +.IP \[bu] 2 +Stop \f[V]--copy-links\f[R] following symlink loops (phatlc) +.IP \[bu] 2 +Limit the size of symlink targets read from .rclonelink files (Nick +Craig-Wood) +.IP \[bu] 2 +Fix server-side copy on macOS when the destination exists (Ayush Sharma) +.IP \[bu] 2 +Set only the ownership a non-root user may set (Dirk Petersen) +.RE +.IP \[bu] 2 +Crypt +.RS 2 +.IP \[bu] 2 +Fix nil pointer panic in ObjectInfo.Hash (fixfon) +.RE +.IP \[bu] 2 +Archive +.RS 2 +.IP \[bu] 2 +Read symlinks stored in zip and squashfs archives (Lev Devaev) +.IP \[bu] 2 +Fix reading an archive in the root of a remote (Oshino Penguin) +.RE +.IP \[bu] 2 +Azure Blob +.RS 2 +.IP \[bu] 2 +Enable on Solaris (acoeur) +.IP \[bu] 2 +Fix directories on storage accounts with hierarchical namespace (Nick +Craig-Wood) +.IP \[bu] 2 +Fix NewObject on a directory returning \[dq]is not a regular file\[dq] +(Nick Craig-Wood) +.IP \[bu] 2 +Fix listing a file as a directory on hierarchical namespace accounts +(Nick Craig-Wood) +.IP \[bu] 2 +Fix sync at the root failing on soft deleted containers (Ludovic Bondon) +.RE +.IP \[bu] 2 +Box +.RS 2 +.IP \[bu] 2 +Reuse multipart upload part buffers via the global pool (Nick +Craig-Wood) +.IP \[bu] 2 +Fix \[ti] and environment variables not being expanded in +\f[V]box_config_file\f[R] (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Chunker +.RS 2 +.IP \[bu] 2 +Clean stale chunks after server-side overwrite (hahahahahayesyeseys) +.RE +.IP \[bu] 2 +Compress +.RS 2 +.IP \[bu] 2 +Buffer small uploads in the global memory pool (Nick Craig-Wood) +.IP \[bu] 2 +Stop buffering the compressibility check output in memory (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Drime +.RS 2 +.IP \[bu] 2 +Fix endless listing of directories with more than 20,000 entries (Maksym +Tymoshyk) +.RE +.IP \[bu] 2 +Drive +.RS 2 +.IP \[bu] 2 +Fetch metadata permissions concurrently (Loi Nguyen) +.IP \[bu] 2 +Reuse resumable-upload chunk buffers via the global memory pool +(SillyZir) +.IP \[bu] 2 +Stop a fast-list error from hanging the sync (Sash) +.RE +.IP \[bu] 2 +Dropbox +.RS 2 +.IP \[bu] 2 +Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Filelu +.RS 2 +.IP \[bu] 2 +Reuse multipart upload buffers via the global pool and retry failed +parts (Nick Craig-Wood) +.IP \[bu] 2 +Encode multipart init paths (wjc) +.RE +.IP \[bu] 2 +FTP +.RS 2 +.IP \[bu] 2 +Discard connections that fail with non-FTP errors (Daniel Bae) +.IP \[bu] 2 +Fix ranged reads failing when the server answers 425 to an early close +(Robert Kubiś) +.RE +.IP \[bu] 2 +Hasher +.RS 2 +.IP \[bu] 2 +Keep cached hash when only the modtime changes (Aniket) +.RE +.IP \[bu] 2 +Hidrive +.RS 2 +.IP \[bu] 2 +Stop copying every upload chunk a second time (Nick Craig-Wood) +.IP \[bu] 2 +Buffer the start of each upload from the global memory pool (Nick +Craig-Wood) +.IP \[bu] 2 +Reuse chunked upload buffers via the global memory pool (Nick +Craig-Wood) +.IP \[bu] 2 +Buffer small file updates from the global memory pool (Nick Craig-Wood) +.IP \[bu] 2 +Fix truncated file left behind when an upload hits +\f[V]--max-transfer\f[R] (Nick Craig-Wood) +.RE +.IP \[bu] 2 +HTTP +.RS 2 +.IP \[bu] 2 +Add metadata defaults for \f[V]--http-no-head\f[R] (Giridhar) +.RE +.IP \[bu] 2 +Huaweidrive +.RS 2 +.IP \[bu] 2 +Build small uploads in pooled memory instead of a growing buffer (Nick +Craig-Wood) +.IP \[bu] 2 +Reuse resumable-upload chunk buffers via the global pool (Nick +Craig-Wood) +.IP \[bu] 2 +Fix creating, copying and renaming files with non-ASCII names (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Iclouddrive +.RS 2 +.IP \[bu] 2 +Mark the backend as case insensitive (berce) +.RE +.IP \[bu] 2 +Imagekit +.RS 2 +.IP \[bu] 2 +Stop multipart writers after failed uploads (Florian Josef Altendorfer) +.RE +.IP \[bu] 2 +Jottacloud +.RS 2 +.IP \[bu] 2 +Buffer MD5 pre-reads in the global memory pool (Nick Craig-Wood) +.IP \[bu] 2 +Fix server-side copy onto a trashed file failing as corrupted (Nick +Craig-Wood) +.IP \[bu] 2 +Fix server-side copy onto a trashed file keeping the old name case (Nick +Craig-Wood) +.IP \[bu] 2 +Fix authentication with whitelabel services elkjop and elko (albertony) +.IP \[bu] 2 +Fix traditional authentication failing with invalid_client (albertony) +.RE +.IP \[bu] 2 +Linkbox +.RS 2 +.IP \[bu] 2 +Buffer the hashed 10 MiB file prefix in the global memory pool (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Mailru +.RS 2 +.IP \[bu] 2 +Buffer speedup hashing in the global memory pool and fix upload retries +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +Onedrive +.RS 2 +.IP \[bu] 2 +OneDrive for Business and SharePoint users must upgrade to v1.76+ before +April 1, 2027 (Nick Craig-Wood) +.IP \[bu] 2 +Authenticate SharePoint downloads, uploads and copies after tempauth +retirement (Nick Craig-Wood) +.IP \[bu] 2 +Return an error if a ranged download doesn\[aq]t return the requested +range (Nick Craig-Wood) +.IP \[bu] 2 +Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +.IP \[bu] 2 +Allow \f[V]--onedrive-upload-cutoff\f[R] up to the documented limit of +250 MiB (Can Arslan) +.IP \[bu] 2 +Add configurable SharePoint tenant API version (Mattias Michaux) +.IP \[bu] 2 +Make \f[V]--onedrive-delta\f[R] quicker when not listing from the drive +root (Nick Craig-Wood) +.IP \[bu] 2 +Keep the delta token when a ChangeNotify poll fails (xiaozou-wine) +.IP \[bu] 2 +Show the size of directories in listings (GingerAdonis) +.IP \[bu] 2 +Poll async copy status with the configured HTTP client (Soujas K) +.RE +.IP \[bu] 2 +Opendrive +.RS 2 +.IP \[bu] 2 +Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Oracleobjectstorage +.RS 2 +.IP \[bu] 2 +Add server-side object moves (tomaszni) +.IP \[bu] 2 +Encode carriage returns and line feeds (tomaszni) +.IP \[bu] 2 +Purge objects in batches (tomaszni) +.IP \[bu] 2 +Retry 409 ConcurrentObjectUpdate errors (berce) +.RE +.IP \[bu] 2 +Pcloud +.RS 2 +.IP \[bu] 2 +Stop multipart writers after failed uploads (Florian Josef Altendorfer) +.RE +.IP \[bu] 2 +Pikpak +.RS 2 +.IP \[bu] 2 +Share upload chunk buffers with the global memory pool (Nick Craig-Wood) +.IP \[bu] 2 +Use pooled memory for the gcid hash buffer and spool unknown-size +uploads to disk (Nick Craig-Wood) +.IP \[bu] 2 +Fix downloads that return an HTTP error page as the file (Cestercian) +.IP \[bu] 2 +Stop multipart writers after failed uploads (Florian Josef Altendorfer) +.IP \[bu] 2 +Fix uploads failing when the server is slow to complete them (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Putio +.RS 2 +.IP \[bu] 2 +Reuse upload chunk buffers via the global memory pool (Nick Craig-Wood) +.RE +.IP \[bu] 2 +S3 +.RS 2 +.IP \[bu] 2 +Avoid buffering Object Lock uploads when the source MD5 is known (Nick +Craig-Wood) +.IP \[bu] 2 +Add backend link command with signed response header overrides (eliotee) +.IP \[bu] 2 +Add Fastly EU Central 1 region (Leon Brocard) +.IP \[bu] 2 +Add the MD5 of multipart chunks to the debug log (interested.tortoise) +.IP \[bu] 2 +Report the real storage class when an object needs restoring (Dirk +Petersen) +.IP \[bu] 2 +Speed up multi-thread uploads by checksumming chunks in 1 MiB reads +(Roman Butor) +.IP \[bu] 2 +Add IT-MIL region to Scaleway (Alessio Margelli) +.IP \[bu] 2 +Add missing Huawei OBS regions (Enbiya Göral) +.IP \[bu] 2 +Fix rmdir of the root directory with \f[V]--s3-directory-markers\f[R] +(Nick Craig-Wood) +.IP \[bu] 2 +Fix presigned URLs for GCS, Linode and Ceph (Leon Brocard) +.RE +.IP \[bu] 2 +Seafile +.RS 2 +.IP \[bu] 2 +Fix operations on files whose names are not in Unicode NFC form (Fred) +.IP \[bu] 2 +Stop multipart writers after failed uploads (Florian Josef Altendorfer) +.IP \[bu] 2 +Fix double slash in the URL when getting a 2FA token (Nick Craig-Wood) +.RE +.IP \[bu] 2 +SFTP +.RS 2 +.IP \[bu] 2 +Implement multi-thread uploads (Splainte) +.IP \[bu] 2 +Fix data race when using \f[V]--sftp-ssh\f[R] (Dirk Petersen) +.IP \[bu] 2 +Fix hash check for names starting with \[dq]-\[dq] with relative +\f[V]--sftp-path-override\f[R] (Dirk Einecke) +.IP \[bu] 2 +Fix sync deleting files with control characters in their names (nielash) +.IP \[bu] 2 +Fix hashing files with a newline in their name on rsync.net (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Shade +.RS 2 +.IP \[bu] 2 +Stop copying each upload chunk into a second heap buffer (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Smb +.RS 2 +.IP \[bu] 2 +Add workstation field to smb backend (Kalin Stoyanov) +.RE +.IP \[bu] 2 +Swift +.RS 2 +.IP \[bu] 2 +Add Infomaniak Swiss Backup provider (Louis) +.RE +.IP \[bu] 2 +WebDAV +.RS 2 +.IP \[bu] 2 +Reject ranged responses which ignore the range (Morax) +.IP \[bu] 2 +Retry Nextcloud chunk uploads individually (Stochastic) +.IP \[bu] 2 +Fix Nextcloud public share access by sending X-Requested-With +(drakeo338) +.IP \[bu] 2 +Fix memory leak uploading to Infinite Scale (jxj) +.RE +.IP \[bu] 2 +Yandex +.RS 2 +.IP \[bu] 2 +Add \f[V]app_folder\f[R] option to support +\f[V]cloud_api:disk.app_folder\f[R] OAuth scope (Sanjay Kanth A) +.RE +.IP \[bu] 2 +Zoho +.RS 2 +.IP \[bu] 2 +Stop multipart writers after failed uploads (Florian Josef Altendorfer) +.RE +.SS v1.75.2 - 2026-10-09 +.PP +See commits (https://github.com/rclone/rclone/compare/v1.75.1...v1.75.2) +.IP \[bu] 2 +Security +.RS 2 +.IP \[bu] 2 +b2: Fix account token and SSE-C key leaking on redirects from +\f[V]--b2-download-url\f[R] GHSA-gpw7-77cq-9f72 CVE-2026-116196 (Nick +Craig-Wood) +.IP \[bu] 2 +build +.RS 2 +.IP \[bu] 2 +Fix multiple CVEs by upgrading to go1.26.9 (Nick Craig-Wood) +.RS 2 +.IP \[bu] 2 +CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder race +.IP \[bu] 2 +CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to Trailer +headers +.IP \[bu] 2 +CVE-2026-97031: crypto/tls: reject malformed ECH outer extension +references +.IP \[bu] 2 +CVE-2026-94444: cmd/go: checksum bypass for golang.org/fips140 +.IP \[bu] 2 +CVE-2026-94447: cmd/go: checksum database bypass for +golang.org/toolchain +.IP \[bu] 2 +CVE-2026-94448: html/template: reset context tracking on consecutive +template expressions +.IP \[bu] 2 +CVE-2026-97030: html/template: recognize |yield| as regexp preceder +keyword +.IP \[bu] 2 +CVE-2026-94440: net/textproto, mime/multipart: memory limit bypass when +parsing MIME headers +.IP \[bu] 2 +CVE-2026-56866: net/http: HTTP/1 client connection desynchronization +after CONNECT rejection +.IP \[bu] 2 +CVE-2026-94439: net/http: HTTP/1 server connection desynchronization +after 2xx CONNECT response +.IP \[bu] 2 +CVE-2026-78669: net/http: excessive CPU consumption from repeated +initial window changes +.IP \[bu] 2 +CVE-2026-78660: net/http: HTTP/2 transport accepts malformed +framing-related headers +.IP \[bu] 2 +CVE-2026-56857: os: Root.Mkdir(All) can follow junctions out of the root +on Windows +.IP \[bu] 2 +CVE-2026-78667: net/http: lack of limit on size of parsed Range headers +.IP \[bu] 2 +CVE-2026-78663: net/http: double flow control refund on HTTP/2 server +streams +.RE +.IP \[bu] 2 +Update golang.org/x/net to v0.60.0 to fix multiple CVEs (Nick +Craig-Wood) +.RS 2 +.IP \[bu] 2 +CVE-2026-78659: net/http: HTTP/2 server memory exhaustion due to Trailer +headers +.IP \[bu] 2 +CVE-2026-78669: net/http: excessive CPU consumption from repeated +initial window changes +.IP \[bu] 2 +CVE-2026-78663: net/http: double flow control refund on HTTP/2 server +streams +.IP \[bu] 2 +CVE-2026-97032: net/http: HTTP/2 server crash due to HPACK encoder race +.RE +.IP \[bu] 2 +Update google.golang.org/grpc to fix CVE-2026-84445 (dependabot[bot]) +.RS 2 +.IP \[bu] 2 +CVE-2026-84445: xds: server panic on a request missing both :authority +and Host headers +.RE +.RE +.IP \[bu] 2 +fshttp: Drop \f[V]--header\f[R] values over HTTP after HTTPS downgrade +GHSA-rrwf-2qr6-p832 CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +http: Stop a path starting with // moving the remote to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) +.IP \[bu] 2 +lib/http: Require authentication for OPTIONS requests +GHSA-gj73-fh6v-92fj CVE-2026-116193 (Nick Craig-Wood) +.IP \[bu] 2 +local: Fix .rclonelink names escaping the root with \f[V]--links\f[R] +GHSA-55qp-jrwr-x827 CVE-2026-116195 (Nick Craig-Wood) +.IP \[bu] 2 +netstorage +.RS 2 +.IP \[bu] 2 +Stop a path starting with // moving the remote to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) +.IP \[bu] 2 +Stop a listing resume token moving signed requests to another host +GHSA-xqmq-v4wj-rw5m CVE-2026-116192 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +pcloud +.RS 2 +.IP \[bu] 2 +Fix OAuth config accepting callbacks without state GHSA-hvpr-p4pv-4f46 +CVE-2026-116194 (Nick Craig-Wood) +.IP \[bu] 2 +Only accept pCloud hosts from the hostname in the OAuth callback +GHSA-hvpr-p4pv-4f46 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +selfupdate +.RS 2 +.IP \[bu] 2 +Fix hash check trusting unsigned data in the signed SHA256SUMS +GHSA-w33h-3qgq-8mv8 CVE-2026-116189 (Nick Craig-Wood) +.IP \[bu] 2 +Fix release verification instructions trusting unsigned hashes +GHSA-w33h-3qgq-8mv8 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve nfs: Fix path traversal by refusing unsafe file names in the VFS +GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Fix presigned URL being turned into a copy of any object +GHSA-w3h7-jxxq-vfrp CVE-PENDING (Nick Craig-Wood) +.IP \[bu] 2 +Stop auth proxy users listing or using each other\[aq]s multipart +uploads and metadata GHSA-35g6-9fjv-rmx5 CVE-2026-116187 (Nick +Craig-Wood) +.IP \[bu] 2 +Fix multipart buffer limits being bypassed by overflowing part sizes +GHSA-qjw8-8hmp-c3m6 CVE-2026-116188 (Nick Craig-Wood) +.IP \[bu] 2 +Add \f[V]--multipart-max-uploads\f[R] to limit uploads in progress (Nick +Craig-Wood) +.IP \[bu] 2 +Add \f[V]--multipart-streaming-buffer-total\f[R] to limit memory across +uploads (Nick Craig-Wood) +.IP \[bu] 2 +Add \f[V]--metadata-max-objects\f[R] to limit the metadata kept in +memory (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve webdav: Fix path traversal above the served directory +GHSA-44pm-2q5p-fm63 CVE-2026-116191 (Nick Craig-Wood) +.IP \[bu] 2 +webdav: Fix headers option leaking to other hosts on redirect +GHSA-3rqf-7h69-gg5v CVE-2026-116190 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Bug Fixes +.RS 2 +.IP \[bu] 2 +accounting +.RS 2 +.IP \[bu] 2 +Stop averaging when the last check finishes (Kunpeng Xie) +.IP \[bu] 2 +Keep speed averaging active when transfers overlap (kaii9) +.RE +.IP \[bu] 2 +dedupe: Fix rename mode giving up after 100 names and make it faster +(Nick Craig-Wood) +.IP \[bu] 2 +doc fixes (Dhevenddra K G, enkvadrat, GhostCoder6969, James Truitt, +maximilize, n4n5, Nick Craig-Wood, PSR94, Rohit Behera, shaurya, subomi) +.IP \[bu] 2 +docker: Fix files uploaded with the wrong mime type (hsdfat) +.IP \[bu] 2 +fs +.RS 2 +.IP \[bu] 2 +Fix about showing a negative total when a quota reaches the int64 +maximum (youdie006) +.IP \[bu] 2 +Fix bandwidth limits below 1 KiB being multiplied by 1024 (Roland) +.IP \[bu] 2 +Fix \f[V]--bwlimit\f[R] timetables written out of order using the wrong +limit (Rohit Behera) +.IP \[bu] 2 +Make BwTimetable.Set replace the timetable instead of appending to it +(youdie006) +.IP \[bu] 2 +Retry \[dq]network is unreachable\[dq] and \[dq]network is down\[dq] +errors (nielash) +.RE +.IP \[bu] 2 +fserrors: Fix out of space detection on Windows (ferrumclaudepilgrim) +.IP \[bu] 2 +lib/rest: Limit the size of HTTP response bodies read into memory (Nick +Craig-Wood) +.IP \[bu] 2 +log: Fix race when adding a log output while logging (Nick Craig-Wood) +.IP \[bu] 2 +oauthutil: Fix Renew.Shutdown nil timer panic and race (TastyHeadphones) +.IP \[bu] 2 +operations +.RS 2 +.IP \[bu] 2 +Stop \f[V]--copy-dest\f[R] replacing files with \f[V]--immutable\f[R] +(phatlc) +.IP \[bu] 2 +Fix ignored error in rcat probe reads (Wang Chencheng) +.IP \[bu] 2 +Fix hang when deleting files and a fatal error occurs (Nick Craig-Wood) +.IP \[bu] 2 +Fix hang and lost context when moving a directory file by file (Nick +Craig-Wood) +.IP \[bu] 2 +Don\[aq]t sleep for a Retry-After error when the transfer is cancelled +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +rc +.RS 2 +.IP \[bu] 2 +Make job/status and job/list require authentication (Nick Craig-Wood) +.IP \[bu] 2 +Fix rc API accepting an out of range number and overflowing 64 bits +(KBS) +.IP \[bu] 2 +Reject out of range integer parameters instead of truncating them (Nick +Craig-Wood) +.IP \[bu] 2 +Fix large numeric parameters being rejected on 32 bit builds (Jeremy +Schoemaker) +.RE +.IP \[bu] 2 +selfupdate: Fix \f[V]--version X.Y\f[R] depending on ./ in the download +site links (Nick Craig-Wood) +.IP \[bu] 2 +serve +.RS 2 +.IP \[bu] 2 +Fix \f[V]--auth-proxy\f[R] stopping VFS cache uploads after 5 minutes +(Nick Craig-Wood) +.IP \[bu] 2 +Fix \f[V]--auth-proxy\f[R] backends never being shut down after +simultaneous logins (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve dlna: Log unescaped paths (phatlc) +.IP \[bu] 2 +serve docker: Fix volume path being lost when the plugin restarts +(phatlc) +.IP \[bu] 2 +serve ftp +.RS 2 +.IP \[bu] 2 +Fix transfers failing after 5 minutes with \f[V]--auth-proxy\f[R] (Nick +Craig-Wood) +.IP \[bu] 2 +Fix VFS leak when the server fails to start (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve http +.RS 2 +.IP \[bu] 2 +Fix downloads failing after 5 minutes with \f[V]--auth-proxy\f[R] (Nick +Craig-Wood) +.IP \[bu] 2 +Escape filename in zip download Content-Disposition header (Harsh Raj +Singhania) +.RE +.IP \[bu] 2 +serve restic +.RS 2 +.IP \[bu] 2 +Fix repositories named data (kaii9) +.IP \[bu] 2 +Prevent concurrent append-only overwrites (Vasek Sraier) +.RE +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Apply the multipart upload limits and \f[V]--metadata-max-objects\f[R] +to each user separately (Nick Craig-Wood) +.IP \[bu] 2 +Stream in-order multipart parts without buffering them (Nick Craig-Wood) +.IP \[bu] 2 +Start the upload to the backend on the first multipart part (Nick +Craig-Wood) +.IP \[bu] 2 +Don\[aq]t buffer re-uploads of multipart parts already streamed (Nick +Craig-Wood) +.IP \[bu] 2 +Count buffered multipart parts in whole memory pages (Nick Craig-Wood) +.IP \[bu] 2 +Time out multipart parts waiting for buffer space (Nick Craig-Wood) +.IP \[bu] 2 +Limit the memory requests can use (Nick Craig-Wood) +.IP \[bu] 2 +Forget expired multipart uploads completely (Nick Craig-Wood) +.IP \[bu] 2 +Forget the metadata of deleted objects (Nick Craig-Wood) +.IP \[bu] 2 +List objects lazily so paging a deep hierarchy is fast (Nick Craig-Wood) +.IP \[bu] 2 +Fix multipart upload corruption if the backend write of an early part +fails (Nick Craig-Wood) +.IP \[bu] 2 +Fix uploads failing when the auth proxy expires the user\[aq]s backend +(Nick Craig-Wood) +.IP \[bu] 2 +Fix stale metadata being returned for objects changed elsewhere (Nick +Craig-Wood) +.IP \[bu] 2 +Fix \f[V]--etag-hash auto\f[R] crashing or using the wrong hash with +\f[V]--auth-proxy\f[R] (Nick Craig-Wood) +.IP \[bu] 2 +Fix CopyObject of a missing object not returning NoSuchKey (Nick +Craig-Wood) +.IP \[bu] 2 +Fix log messages with bad format strings (Nick Craig-Wood) +.IP \[bu] 2 +Document memory use and bring the docs up to date (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve webdav +.RS 2 +.IP \[bu] 2 +Fix transfers failing after 5 minutes with \f[V]--auth-proxy\f[R] (Nick +Craig-Wood) +.IP \[bu] 2 +Fix crash when the server fails to start (Nick Craig-Wood) +.IP \[bu] 2 +Escape filename in zip download Content-Disposition header (Harsh Raj +Singhania) +.RE +.IP \[bu] 2 +vfscache: Fix hang when the cache cleaner is disabled +(ferrumclaudepilgrim) +.RE +.IP \[bu] 2 +Mount +.RS 2 +.IP \[bu] 2 +Fix \f[V]--daemon\f[R] failing when \f[V]--rc\f[R] is enabled (somaz) +.IP \[bu] 2 +Ignore com.apple.* xattrs on the macOS FSKit backend (Eugene) +.RE +.IP \[bu] 2 +VFS +.RS 2 +.IP \[bu] 2 +Fix reads returning zeros after a file changes during handle caching +(Neil Cawse) +.IP \[bu] 2 +Stop setting a file\[aq]s modtime from discarding its cached data (Neil +Cawse) +.IP \[bu] 2 +Fix crash reading the metadata of a file which is being written (Nick +Craig-Wood) +.IP \[bu] 2 +Fix a VFS being reused while it is being shut down (Nick Craig-Wood) +.IP \[bu] 2 +Fix AddVirtual ignoring isDir (phatlc) +.IP \[bu] 2 +Stop \f[V]--links\f[R] objects called \[dq]...rclonelink\[dq] appearing +as \[dq]..\[dq] in directory listings (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Local +.RS 2 +.IP \[bu] 2 +Fix directories named *.rclonelink being treated as links with +\f[V]--links\f[R] (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Archive +.RS 2 +.IP \[bu] 2 +Fix corrupt listings when listing a zip directory more than once (Nick +Craig-Wood) +.IP \[bu] 2 +Fix zip file entries named for a directory causing confusion (Nick +Craig-Wood) +.IP \[bu] 2 +Fix listing entries with a leading slash as if they were in the root +(Nick Craig-Wood) +.IP \[bu] 2 +Fix crash when creating archive to stdout (Vladimir Babin) +.IP \[bu] 2 +Fix a squashfs path to a single file listing its whole directory (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Azure Blob +.RS 2 +.IP \[bu] 2 +Use the released Azure SDK for Apache Arrow listing (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Box +.RS 2 +.IP \[bu] 2 +Fix log messages with bad format strings (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Chunker +.RS 2 +.IP \[bu] 2 +Fix panic listing a directory after an interrupted upload with +meta_format none (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Compress +.RS 2 +.IP \[bu] 2 +Fix crash on ranged reads when gzip metadata is corrupted (Acts1631) +.RE +.IP \[bu] 2 +Drime +.RS 2 +.IP \[bu] 2 +Fix server-side copy over an existing file leaving a \[dq]name (1)\[dq] +copy (Nick Craig-Wood) +.IP \[bu] 2 +Fix deleted files and directories still being listed with hard_delete +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +Drive +.RS 2 +.IP \[bu] 2 +Document the Branding step needed to publish your own client_id (Sanjay +Kanth A) +.RE +.IP \[bu] 2 +Dropbox +.RS 2 +.IP \[bu] 2 +Fix shared folder mount for roots nested more than one level deep +(phatlc) +.IP \[bu] 2 +Match shared-folder and received-file names case-insensitively (phatlc) +.RE +.IP \[bu] 2 +Filescom +.RS 2 +.IP \[bu] 2 +Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +.IP \[bu] 2 +Document that names with / or \ in can\[aq]t be stored (Nick Craig-Wood) +.RE +.IP \[bu] 2 +HTTP +.RS 2 +.IP \[bu] 2 +Fix crash when the server fails to start (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Iclouddrive +.RS 2 +.IP \[bu] 2 +Fix potential crash looking up items (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Imagekit +.RS 2 +.IP \[bu] 2 +Fix potential crash in rmdir and purge (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Internxt +.RS 2 +.IP \[bu] 2 +Fix lookups of files starting with a dot and dropped uploads (jzunigax2) +.IP \[bu] 2 +Fix sync with \f[V]--backup-dir\f[R] or \f[V]--suffix\f[R] deleting the +backed up file (Nick Craig-Wood) +.IP \[bu] 2 +Fix server-side moves failing with \[dq]Not Found\[dq] or \[dq]already +exists\[dq] (Nick Craig-Wood) +.IP \[bu] 2 +Fix \[dq]directory not empty\[dq] and stale directories after moves and +deletes (Nick Craig-Wood) +.IP \[bu] 2 +Fix server-side directory move failing after a gateway timeout (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Onedrive +.RS 2 +.IP \[bu] 2 +Update docs for versions, links and time precision on personal accounts +(Nick Craig-Wood) +.IP \[bu] 2 +Document that shared with me shortcuts may fail to list on personal +(Nick Craig-Wood) +.IP \[bu] 2 +Update \f[V]--onedrive-hard-delete\f[R] docs to mention personal account +support (foecmke) +.RE +.IP \[bu] 2 +Oracleobjectstorage +.RS 2 +.IP \[bu] 2 +Fix SSE-C server-side copies (tomaszni) +.IP \[bu] 2 +Upload empty streams without multipart (tomaszni) +.RE +.IP \[bu] 2 +Pixeldrain +.RS 2 +.IP \[bu] 2 +Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Premiumizeme +.RS 2 +.IP \[bu] 2 +Fix uploading files with \[dq];\[dq] in their names (Nick Craig-Wood) +.RE +.IP \[bu] 2 +S3 +.RS 2 +.IP \[bu] 2 +Disable signing Accept-Encoding for Ceph and Linode (Aditya) +.IP \[bu] 2 +Fix version-at listings with URL encoded keys (jxj) +.IP \[bu] 2 +Fix storage class missing from \f[V]--s3-versions\f[R] listings (Dirk +Petersen) +.RE +.IP \[bu] 2 +Seafile +.RS 2 +.IP \[bu] 2 +Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +.RE +.IP \[bu] 2 +SFTP +.RS 2 +.IP \[bu] 2 +Fix failed uploads leaving disk space in use on the server (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Shade +.RS 2 +.IP \[bu] 2 +Fix potential crash in directory move (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Smb +.RS 2 +.IP \[bu] 2 +Save the user name in the config even if it matches the current user +(phatlc) +.RE +.IP \[bu] 2 +WebDAV +.RS 2 +.IP \[bu] 2 +Fix duplicated listing entries after retried PROPFIND (ZRHann) +.IP \[bu] 2 +Fix \[dq]XML syntax error\[dq] on paths which don\[aq]t exist with +ownCloud 10.16 (Nick Craig-Wood) +.RE +.SS v1.75.1 - 2026-09-04 +.PP +See commits (https://github.com/rclone/rclone/compare/v1.75.0...v1.75.1) +.IP \[bu] 2 +Security +.RS 2 +.IP \[bu] 2 +archive +.RS 2 +.IP \[bu] 2 +Fix zip slip path traversal in untrusted zip files GHSA-66hp-wgxq-6f5q +CVE-2026-88014 (Nick Craig-Wood) +.IP \[bu] 2 +Hide any archive entry which escapes the directory being listed +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) +.IP \[bu] 2 +Reject unsafe entry names when mounting squashfs images +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) +.IP \[bu] 2 +Fix zip subdirectory root matching sibling directories +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) +.IP \[bu] 2 +Fix zip entry named \[dq].\[dq] hiding every other file +GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) +.IP \[bu] 2 +Fix \[dq]directory not found\[dq] for archive paths containing +\[dq]./\[dq] or \[dq]//\[dq] GHSA-66hp-wgxq-6f5q (Nick Craig-Wood) +.RE +.IP \[bu] 2 +build +.RS 2 +.IP \[bu] 2 +Fix multiple CVEs by upgrading to go1.26.6 (Nick Craig-Wood) +.RS 2 +.IP \[bu] 2 +CVE-2026-56860: net/url: quadratic complexity in resolvePath +.IP \[bu] 2 +CVE-2026-56858: html/template: JavaScript regexp context tracking +.IP \[bu] 2 +CVE-2026-56862: crypto/tls: limit handshake messages accepted +post-handshake +.IP \[bu] 2 +CVE-2026-56853: net/http: apply ReadHeaderTimeout to unencrypted HTTP/2 +check +.IP \[bu] 2 +CVE-2026-56859: encoding/xml: recursion depth guard during decode +.IP \[bu] 2 +CVE-2026-33818: encoding/asn1: enforce maximum recursion depth +.IP \[bu] 2 +CVE-2026-46600: net: panic parsing an invalid SVCB or HTTPS RR in +dnsmessage +.IP \[bu] 2 +CVE-2026-39821: net/http: reject ASCII-only Punycode-encoded labels in +idna +.RE +.IP \[bu] 2 +Update golang.org/x/crypto to v0.56.0 to fix multiple CVEs (Nick +Craig-Wood) +.RS 2 +.IP \[bu] 2 +CVE-2026-56854: ssh: source-address critical option not enforced for +non-public-key auth callbacks +.IP \[bu] 2 +CVE-2026-78662: ssh: a malicious peer could flood an undecided +channel\[aq]s incoming requests, deadlocking the connection +.IP \[bu] 2 +CVE-2026-56855: ssh: a malicious peer could send crafted messages on an +established channel, deadlocking the connection +.RE +.IP \[bu] 2 +Update golang.org/x/image to v0.45.0 to fix CVE-2026-46603 (Nick +Craig-Wood) +.RS 2 +.IP \[bu] 2 +CVE-2026-46603: excessive memory allocation during VP8L decoding +.RE +.RE +.IP \[bu] 2 +fs: Confine directory listing entries that escape the root +GHSA-3vxh-3pcx-9m8q CVE-2026-93986 GHSA-38xv-hf3p-h7mq CVE-2026-88046 +(Nick Craig-Wood) +.IP \[bu] 2 +fshttp: Don\[aq]t send \f[V]--header\f[R] values to other hosts on +redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) +.IP \[bu] 2 +http: Don\[aq]t leak configured headers to other hosts or over plaintext +on redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) +.IP \[bu] 2 +lib/rest: Check HTTPS downgrades against the original request on +redirect GHSA-486v-q2wf-fp2r CVE-2026-88013 (Nick Craig-Wood) +.IP \[bu] 2 +local +.RS 2 +.IP \[bu] 2 +Fix dir metadata escaping the root through a planted symlink +GHSA-f8g7-2xjc-7mfh CVE-2026-88016 (Nick Craig-Wood) +.IP \[bu] 2 +Fix btime escaping the root via a planted symlink GHSA-f8g7-2xjc-7mfh +CVE-2026-88016 (Nick Craig-Wood) +.IP \[bu] 2 +Fix panic on Range request past the end of a symlink GHSA-p6m2-r3w9-mpxw +CVE-2026-88015 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve docker +.RS 2 +.IP \[bu] 2 +Reject volume names that escape the base directory GHSA-p6vx-hf7p-98j6 +CVE-2026-93987 (Nick Craig-Wood) +.IP \[bu] 2 +Reject volume names resolving to the base directory itself +GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) +.IP \[bu] 2 +Re-derive volume mountpoint from name when restoring state +GHSA-p6vx-hf7p-98j6 CVE-2026-93987 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve ftp: Fix auth-proxy sessions sharing credentials by username +GHSA-c476-6w5q-jw77 CVE-2026-88017 (Nick Craig-Wood) +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Fix memory exhaustion from client-declared multipart part size +GHSA-2p48-j3qc-rx9f CVE-2026-88045 (Nick Craig-Wood) +.IP \[bu] 2 +Reject bogus multipart part sizes in the reorder buffer +GHSA-2p48-j3qc-rx9f (Nick Craig-Wood) +.IP \[bu] 2 +Fix auth proxy accepting any request signed with an empty secret +GHSA-xwwr-4h3p-r22c CVE-2026-88018 (Nick Craig-Wood) +.RS 2 +.IP \[bu] 2 +\f[B]NB\f[R] the auth proxy protocol for \f[V]serve s3\f[R] has changed +- the proxy program is now given the access key ID as \f[V]user\f[R] and +must return the secret as \f[V]_secret_access_key\f[R] +.RE +.IP \[bu] 2 +Fix each server accepting the \f[V]--auth-key\f[R] credentials of all +the others (Nick Craig-Wood) +.IP \[bu] 2 +Fix misleading anonymous access log when using an auth proxy via rc +GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +serve sftp: Fix auth proxy configured via rc being silently ignored +GHSA-p569-5gjg-9cmj CVE-2026-88044 (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Bug Fixes +.RS 2 +.IP \[bu] 2 +accounting +.RS 2 +.IP \[bu] 2 +Fix memory leak on long-running rcd (nielash) +.IP \[bu] 2 +Fix memory leak from stats groups on long-running rcd (nielash) +.IP \[bu] 2 +Fix bwlimit burst overflow (Rayan Salhab) +.RE +.IP \[bu] 2 +bisync +.RS 2 +.IP \[bu] 2 +Fix memory leak when running via the rc (nielash) +.IP \[bu] 2 +Fix failed transfers of empty files being recorded as synced (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +build: Make go1.26 the minimum required version as needed by +golang.org/x/crypto v0.56.0 (Nick Craig-Wood) +.IP \[bu] 2 +config: Redact env var config values in logs (Pastalikek65) +.IP \[bu] 2 +doc fixes (Anton Karpov, CAOShurong, Dean Chen, Nick Craig-Wood, +Recoordinate, Rodrigo Rodrigues, Shantanav Mukherjee, shaurya) +.IP \[bu] 2 +lib/batcher: Prevent commits racing shutdown (Loi Nguyen) +.IP \[bu] 2 +lib/transform: Fix panic in \f[V]truncate_keep_extension\f[R] (VXNCXNX) +.IP \[bu] 2 +multipart: Fix chunked uploads storing truncated objects when the source +ends early (Nick Craig-Wood) +.IP \[bu] 2 +operations: Fix silent truncation of streaming uploads whose source ends +early (Nick Craig-Wood) +.IP \[bu] 2 +serve +.RS 2 +.IP \[bu] 2 +Fix VFS instance leaks on server startup failures and shutdown (Hakan +İSMAİL) +.IP \[bu] 2 +Pass the client IP address to the auth proxy (am-at-enrollvb) +.RE +.IP \[bu] 2 +serve http: Prevent scrolling to the top on page reload (Sune Mølgaard) +.IP \[bu] 2 +serve nfs: Fix EIO when creating symlinks with \f[V]--vfs-links\f[R] +(SillyZir) +.IP \[bu] 2 +serve s3 +.RS 2 +.IP \[bu] 2 +Fix failed uploads deleting or corrupting the object at the key (Nick +Craig-Wood) +.IP \[bu] 2 +Fix crash when a multipart upload is aborted while a part is uploading +(Nick Craig-Wood) +.IP \[bu] 2 +Fix modtime not being set when only mtime metadata is supplied on PUT +(Nick Craig-Wood) +.IP \[bu] 2 +Upload all multipart uploads via the VFS so they obey +\f[V]--bwlimit\f[R] and show in stats (Nick Craig-Wood) +.IP \[bu] 2 +Reserve the \f[V].rclone_temp_\f[R] prefix for temporary objects (Nick +Craig-Wood) +.IP \[bu] 2 +Clean up abandoned multipart uploads after \f[V]--multipart-expiry\f[R] +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +vfscache +.RS 2 +.IP \[bu] 2 +Fix reader deadlock when the item size drops below the read offset +(Dave) +.IP \[bu] 2 +Fix log message growing without bound on repeated write errors (Vijay +Misal) +.RE +.IP \[bu] 2 +walk: Stop directory traversal when the context is cancelled (Rahman +Yilmaz) +.RE +.IP \[bu] 2 +VFS +.RS 2 +.IP \[bu] 2 +Synchronize poll updates with shutdown (Loi Nguyen) +.IP \[bu] 2 +Make poll shutdown lifecycle deterministic (Loi Nguyen) +.RE +.IP \[bu] 2 +Crypt +.RS 2 +.IP \[bu] 2 +Fix hash mismatches with \f[V]no_data_encryption\f[R] on backends which +check upload hashes (Nick Craig-Wood) +.IP \[bu] 2 +Fix directory names which look like versioned file names (TowyTowy) +.IP \[bu] 2 +Warn about directories with legacy version-like encrypted names (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Azure Blob +.RS 2 +.IP \[bu] 2 +Fix Entra ID server-side copy source authentication (Edward Klesel) +.IP \[bu] 2 +Fix spurious vfs cache corruption errors during chunked reads (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Azurefiles +.RS 2 +.IP \[bu] 2 +Fix zero padded files being created when the source ends early (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Box +.RS 2 +.IP \[bu] 2 +Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera) +.RE +.IP \[bu] 2 +Compress +.RS 2 +.IP \[bu] 2 +Fix corrupted objects being created when the source ends early (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Drive +.RS 2 +.IP \[bu] 2 +Don\[aq]t list trashed files when removing a directory into the trash +(alliasgher) +.RE +.IP \[bu] 2 +Dropbox +.RS 2 +.IP \[bu] 2 +Preserve Paper export paths on lookup (Loi Nguyen) +.IP \[bu] 2 +Fix context cancellation (e.g. +\f[V]--max-duration\f[R] limit) not stopping in-flight requests +(debaditya) +.IP \[bu] 2 +Fix chunked uploads of truncated files never finishing (Nick Craig-Wood) +.IP \[bu] 2 +Don\[aq]t retry chunked upload requests when the upload has been +cancelled (Nick Craig-Wood) +.IP \[bu] 2 +Decode received shared-file names (Sanjay Kanth A) +.IP \[bu] 2 +Fix ChangeNotify when the root\[aq]s case differs from Dropbox\[aq]s +(Loi Nguyen) +.RE +.IP \[bu] 2 +Filelu +.RS 2 +.IP \[bu] 2 +Fix truncated files being uploaded successfully when the source ends +early (Nick Craig-Wood) +.IP \[bu] 2 +Fix duplicate root path during multipart folder creation (kingston125) +.RE +.IP \[bu] 2 +Huaweidrive +.RS 2 +.IP \[bu] 2 +Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera) +.RE +.IP \[bu] 2 +Iclouddrive +.RS 2 +.IP \[bu] 2 +Fix uploads into an app container failing with 412 (Christian De Santis) +.RE +.IP \[bu] 2 +Internetarchive +.RS 2 +.IP \[bu] 2 +Fix corrupted files being created when the source ends early (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Internxt +.RS 2 +.IP \[bu] 2 +Persist rotated token returned by the user info call (0rangeSeaW0lf) +.RE +.IP \[bu] 2 +Onedrive +.RS 2 +.IP \[bu] 2 +Fix 403 Forbidden for configuration personal onedrive (machsix) +.IP \[bu] 2 +Fall back to manual drive ID entry when drive listing fails (SillyZir) +.IP \[bu] 2 +Don\[aq]t retry multipart upload chunk on 404 (upload session not found) +(water) +.RE +.IP \[bu] 2 +Overview +.RS 2 +.IP \[bu] 2 +Fix \[dq]internal error: no overview data found\[dq] on 32 bit +architectures (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Pikpak +.RS 2 +.IP \[bu] 2 +Fix truncated files being created when the source ends early (Nick +Craig-Wood) +.IP \[bu] 2 +Fix truncated single part uploads reported as ok when source ends early +(Nick Craig-Wood) +.RE +.IP \[bu] 2 +Protondrive +.RS 2 +.IP \[bu] 2 +Fix files uploaded with v1.75.0 not being readable in the Proton apps +(Nick Craig-Wood) +.IP \[bu] 2 +Fix corrupted uploads after a retried upload error (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Quatrix +.RS 2 +.IP \[bu] 2 +Fix chunk upload retries and fix memory leak (Nick Craig-Wood) +.RE +.IP \[bu] 2 +S3 +.RS 2 +.IP \[bu] 2 +Update Mega endpoints (Nick Craig-Wood) +.IP \[bu] 2 +Treat UploadPart success without ETag as retryable error (CAOShurong) +.IP \[bu] 2 +Fix server side copy failing with \f[V]--s3-no-head-object\f[R] (Anatoly +Tarnavsky) +.RE +.IP \[bu] 2 +Sia +.RS 2 +.IP \[bu] 2 +Fix corrupted files being created when the source ends early (Nick +Craig-Wood) +.RE +.IP \[bu] 2 +Smb +.RS 2 +.IP \[bu] 2 +Reuse the upload connection for SetModTime (alliasgher) +.RE +.IP \[bu] 2 +WebDAV +.RS 2 +.IP \[bu] 2 +Fix SetModTime failing and hashes missing on Nextcloud (Nick Craig-Wood) +.RE +.IP \[bu] 2 +Yandex +.RS 2 +.IP \[bu] 2 +Fix truncated files being uploaded successfully when the source ends +early (Rohit Behera) +.RE .SS v1.75.0 - 2026-07-31 .PP See commits (https://github.com/rclone/rclone/compare/v1.74.0...v1.75.0) @@ -91570,66 +97914,67 @@ Security .RS 2 .IP \[bu] 2 archive: Don\[aq]t crash on malformed squashfs images -GHSA-6jcg-q3wp-x2f4 CVE-PENDING (Nick Craig-Wood) +GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) .IP \[bu] 2 ftp: Fix ftp command injection when encoding doesn\[aq]t include CRLF -GHSA-8c48-q9wj-3w37 CVE-PENDING (Nick Craig-Wood) +GHSA-8c48-q9wj-3w37 CVE-2026-71311 (Nick Craig-Wood) .IP \[bu] 2 lib/http: Use TLS on all \f[V]--addr\f[R] listeners when \f[V]--cert\f[R] and \f[V]--key\f[R] are set GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) .IP \[bu] 2 lib/proxy: Fix unbounded HTTP CONNECT headers causing OOM -GHSA-xhf4-832v-7xcr CVE-PENDING (Nick Craig-Wood) +GHSA-xhf4-832v-7xcr CVE-2026-71310 (Nick Craig-Wood) .IP \[bu] 2 local: Stop source file names escaping the destination directory -GHSA-7p4m-qxvv-g567 CVE-PENDING (Nick Craig-Wood) +GHSA-7p4m-qxvv-g567 CVE-2026-71313 (Nick Craig-Wood) .IP \[bu] 2 rc .RS 2 .IP \[bu] 2 Don\[aq]t expose pprof debug handlers on an unauthenticated server -GHSA-mfvx-7rcj-9m5g CVE-PENDING (Nick Craig-Wood) +GHSA-mfvx-7rcj-9m5g CVE-2026-79776 (Nick Craig-Wood) .IP \[bu] 2 Require authentication to list the remotes with \f[V]--rc-serve\f[R] GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) .IP \[bu] 2 -Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv (Nick Craig-Wood) +Fix leaking stack traces on panics GHSA-gwfq-86j8-7qhv CVE-2026-79777 +(Nick Craig-Wood) .RE .IP \[bu] 2 s3 .RS 2 .IP \[bu] 2 Fix redirect credential leaks, reject HTTPS->HTTP and strip secrets -GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) +GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) .IP \[bu] 2 Strip S3 Express session token on cross-host redirects -GHSA-8mxv-9xhp-86h4 (Nick Craig-Wood) +GHSA-8mxv-9xhp-86h4 CVE-2026-79780 (Nick Craig-Wood) .RE .IP \[bu] 2 serve ftp: Use constant time comparison for password check GHSA-mfvx-7rcj-9m5g (Nick Craig-Wood) .IP \[bu] 2 serve restic: Fix path traversal above the served directory -GHSA-45pq-889g-fcgh CVE-PENDING (Nick Craig-Wood) +GHSA-45pq-889g-fcgh CVE-2026-71309 (Nick Craig-Wood) .IP \[bu] 2 serve sftp: Don\[aq]t crash the whole server on a bad request -GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) +GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) .IP \[bu] 2 sftp: Fix command injection via crafted filenames on PowerShell remotes -GHSA-2m8m-jhrm-w6j2 CVE-PENDING (Nick Craig-Wood) +GHSA-2m8m-jhrm-w6j2 CVE-2026-71312 (Nick Craig-Wood) .IP \[bu] 2 vfs: Don\[aq]t crash the process if a backend panics on a background -goroutine GHSA-6jcg-q3wp-x2f4 (Nick Craig-Wood) +goroutine GHSA-6jcg-q3wp-x2f4 CVE-2026-79775 (Nick Craig-Wood) .IP \[bu] 2 webdav .RS 2 .IP \[bu] 2 Fix HTTPS to HTTP redirects leaking credentials GHSA-h4mf-4v27-hggj -(Nick Craig-Wood) +CVE-2026-79779 (Nick Craig-Wood) .IP \[bu] 2 -Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv (Nick -Craig-Wood) +Tus: fix potential nil pointer crash GHSA-3x6r-wxxg-53vv CVE-2026-79778 +(Nick Craig-Wood) .RE .IP \[bu] 2 Update \f[V]google.golang.org/grpc\f[R] to fix multiple security @@ -92304,7 +98649,7 @@ serve s3 Fix spurious 404 on HEAD/GET during VFS writeback (max) .IP \[bu] 2 Fix path traversal letting clients see files in the root -GHSA-8v25-v8p6-qf7v (Nick Craig-Wood) +GHSA-8v25-v8p6-qf7v CVE-2026-79781 (Nick Craig-Wood) .RE .IP \[bu] 2 serve webdav: Fix MOVE overwrite failing without Overwrite header @@ -92328,7 +98673,7 @@ Stop \f[V]--links\f[R] symlinks escaping the destination directory CVE-2026-54572 (Nick Craig-Wood) .IP \[bu] 2 Don\[aq]t restore setuid/setgid/sticky bits from metadata by default -GHSA-945v-v9p3-v5xw (Nick Craig-Wood) +GHSA-945v-v9p3-v5xw CVE-2026-79783 (Nick Craig-Wood) .RE .IP \[bu] 2 Drive @@ -109997,7 +116342,7 @@ the config file. The FTP and SFTP backends have their own \f[V]http_proxy\f[R] settings to support an HTTP CONNECT proxy ( --ftp-http-proxy (https://rclone.org/ftp/#ftp-http-proxy) and ---sftp-http-proxy (https://rclone.org/ftp/#sftp-http-proxy) ) +--sftp-http-proxy (https://rclone.org/sftp/#sftp-http-proxy) ) .SS Rclone gives x509 SSL root certificates error .PP \f[V]x509: failed to load system roots and no roots provided\f[R] means @@ -112635,6 +118980,277 @@ Socialpranker <273312799+Socialpranker@users.noreply.github.com> phatlc .IP \[bu] 2 Punya Jain <4511945+punya10@users.noreply.github.com> +.IP \[bu] 2 +acoeur <7315110+forestrock@users.noreply.github.com> +.IP \[bu] 2 +SillyZir <269283839+SillyZir@users.noreply.github.com> +.IP \[bu] 2 +am-at-enrollvb +.IP \[bu] 2 +Loi Nguyen +.IP \[bu] 2 +debaditya <82204129+DebadityaHait@users.noreply.github.com> +.IP \[bu] 2 +alliasgher +.IP \[bu] 2 +Anton Karpov +.IP \[bu] 2 +Edward Klesel +.IP \[bu] 2 +Christian De Santis +<41491267+christiandesantis@users.noreply.github.com> +.IP \[bu] 2 +Rodrigo Rodrigues <191260313+MVP0TAT0@users.noreply.github.com> +.IP \[bu] 2 +Recoordinate <296084221+latent-9@users.noreply.github.com> +.IP \[bu] 2 +Jiacheng Xu <169599847+Stardust0831@users.noreply.github.com> +.IP \[bu] 2 +Teddy Tennant +.IP \[bu] 2 +Dean Chen <862469039@qq.com> +.IP \[bu] 2 +Pastalikek65 +.IP \[bu] 2 +Morax +.IP \[bu] 2 +Shurong Cao <170531907+CAOShurong@users.noreply.github.com> +.IP \[bu] 2 +Dave +.IP \[bu] 2 +max +.IP \[bu] 2 +Hakan İSMAİL +.IP \[bu] 2 +Shantanav Mukherjee +.IP \[bu] 2 +VXNCXNX +.IP \[bu] 2 +Rohit Behera <126186063+r0h1tb@users.noreply.github.com> +.IP \[bu] 2 +Rahman Yilmaz <85690773+Sudo-Rahman@users.noreply.github.com> +.IP \[bu] 2 +Sanjay Kanth A +.IP \[bu] 2 +machsix <28209092+machsix@users.noreply.github.com> +.IP \[bu] 2 +CAOShurong <3502119616@qq.com> +.IP \[bu] 2 +shaurya +.IP \[bu] 2 +water <672684719@qq.com> +.IP \[bu] 2 +Rayan Salhab +.IP \[bu] 2 +Vijay Misal +.IP \[bu] 2 +Sune Mølgaard +.IP \[bu] 2 +Anatoly Tarnavsky +.IP \[bu] 2 +cyphercodes +.IP \[bu] 2 +shaurya <19599684+no-hup@users.noreply.github.com> +.IP \[bu] 2 +no-hup +.IP \[bu] 2 +Dhevenddra +.IP \[bu] 2 +Splainte +.IP \[bu] 2 +PSR94 <88868390+PSR94@users.noreply.github.com> +.IP \[bu] 2 +Shane McCarron +.IP \[bu] 2 +Dhevenddra K G <121691114+Dhevenddra@users.noreply.github.com> +.IP \[bu] 2 +Vaibhav Mashal <110161673+vaibhavmashal@users.noreply.github.com> +.IP \[bu] 2 +Murat Topcu +.IP \[bu] 2 +tomaszni +.IP \[bu] 2 +eliotee <17210244+eliotee@users.noreply.github.com> +.IP \[bu] 2 +Aditya +.IP \[bu] 2 +Nicholas Velten +.IP \[bu] 2 +youdie006 +.IP \[bu] 2 +subomi <86053854+ubmids@users.noreply.github.com> +.IP \[bu] 2 +Can Arslan <138895927+mc2rcanarslan@users.noreply.github.com> +.IP \[bu] 2 +Can Arslan +.IP \[bu] 2 +ZRHann <2829442630@qq.com> +.IP \[bu] 2 +enkvadrat <123565769+enkvadrat@users.noreply.github.com> +.IP \[bu] 2 +Vladimir Babin +.IP \[bu] 2 +Eugene +.IP \[bu] 2 +Kunpeng Xie <68572236+pentaoa@users.noreply.github.com> +.IP \[bu] 2 +foecmke <221832573+foecmke@users.noreply.github.com> +.IP \[bu] 2 +Vasek Sraier +.IP \[bu] 2 +Kalin Stoyanov +.IP \[bu] 2 +NytePlus +.IP \[bu] 2 +Jeremy Schoemaker +.IP \[bu] 2 +solunolab +.IP \[bu] 2 +Mattias Michaux +.IP \[bu] 2 +jxj +.IP \[bu] 2 +Harsh Raj Singhania +<40535627+HarshRajSinghania@users.noreply.github.com> +.IP \[bu] 2 +Roland +.IP \[bu] 2 +interested.tortoise +.IP \[bu] 2 +hsdfat <118717478+hsdfat@users.noreply.github.com> +.IP \[bu] 2 +Dirk Petersen +.IP \[bu] 2 +TastyHeadphones <76083688+TastyHeadphones@users.noreply.github.com> +.IP \[bu] 2 +Neil Cawse <8085959+neilcawse@users.noreply.github.com> +.IP \[bu] 2 +Lev Devaev <102860715+Exxxxpo@users.noreply.github.com> +.IP \[bu] 2 +GhostCoder6969 +.IP \[bu] 2 +bounty-agent +.IP \[bu] 2 +mygrexit <33792951+mygrexit@users.noreply.github.com> +.IP \[bu] 2 +Kaya +.IP \[bu] 2 +somaz +.IP \[bu] 2 +xiaozou-wine <243062178+xiaozou-wine@users.noreply.github.com> +.IP \[bu] 2 +Roman Butor +.IP \[bu] 2 +kaii9 <107882135+kaii9@users.noreply.github.com> +.IP \[bu] 2 +Stochastic <138764723+Asthenia0412@users.noreply.github.com> +.IP \[bu] 2 +James Truitt <80006053+jtruitt1@users.noreply.github.com> +.IP \[bu] 2 +firatkaya +.IP \[bu] 2 +kevin9327 <5299031+kevin9327@users.noreply.github.com> +.IP \[bu] 2 +drakeo338 +.IP \[bu] 2 +Alessio Margelli +.IP \[bu] 2 +Ludovic Bondon +.IP \[bu] 2 +fmterrors +.IP \[bu] 2 +GingerAdonis <2751672+GingerAdonis@users.noreply.github.com> +.IP \[bu] 2 +Satvik Mishra +.IP \[bu] 2 +wjc <2821296948@qq.com> +.IP \[bu] 2 +Maksym Tymoshyk +.IP \[bu] 2 +Aniket +.IP \[bu] 2 +Oshino Penguin +.IP \[bu] 2 +Yousef Issa +.IP \[bu] 2 +ghwany <9hwany@gmail.com> +.IP \[bu] 2 +DEVN +.IP \[bu] 2 +47th <161213233+flcrom@users.noreply.github.com> +.IP \[bu] 2 +Sash +.IP \[bu] 2 +Shreyansh Jain +.IP \[bu] 2 +Biagio Peccerillo +.IP \[bu] 2 +gomitrah +.IP \[bu] 2 +Jim Counter +.IP \[bu] 2 +Dirk Einecke +.IP \[bu] 2 +ASRodrigo1 <45823308+asrodrigo1@users.noreply.github.com> +.IP \[bu] 2 +chaogeshuodiannao +.IP \[bu] 2 +David Legrand +.IP \[bu] 2 +Azhar +.IP \[bu] 2 +Daniel Bae +.IP \[bu] 2 +frodleTian <16165444+tianhaotian@users.noreply.github.com> +.IP \[bu] 2 +Cestercian +.IP \[bu] 2 +Ayush Sharma <175855728+DurdensDream@users.noreply.github.com> +.IP \[bu] 2 +Dirk Petersen <1427719+dirkpetersen@users.noreply.github.com> +.IP \[bu] 2 +Codex +.IP \[bu] 2 +bunnysayzz +.IP \[bu] 2 +hahahahahayesyeseys <1145018948@qq.com> +.IP \[bu] 2 +qodelicious <162776175+qodelicious@users.noreply.github.com> +.IP \[bu] 2 +fixfon <12512757+fixfon@users.noreply.github.com> +.IP \[bu] 2 +berce <75228263+bercedev@users.noreply.github.com> +.IP \[bu] 2 +Fred <24314560+creativeprojects@users.noreply.github.com> +.IP \[bu] 2 +Florian Josef Altendorfer +.IP \[bu] 2 +ashwinibailangadi +.IP \[bu] 2 +ilya lavrenov <17838283+ilyalavrenov@users.noreply.github.com> +.IP \[bu] 2 +Soujas K +.IP \[bu] 2 +Robert Kubiś +.IP \[bu] 2 +b84330808 +.IP \[bu] 2 +Guillaume MALLERET +.IP \[bu] 2 +Louis +.IP \[bu] 2 +唐僧洗发用飘柔 <2906266135@qq.com> +.IP \[bu] 2 +Seth Westphal +.IP \[bu] 2 +ZainnQureshii <43629888+ZainnQureshii@users.noreply.github.com> +.IP \[bu] 2 +Rishi Raj Jain +.IP \[bu] 2 +Enbiya Göral <100806254+enbiyagoral@users.noreply.github.com> +.IP \[bu] 2 +Florian Josef Altendorfer +<341419330+florianaltendorfer@users.noreply.github.com> .SH Contact the rclone project .SS Forum .PP