Combine
In CloudMount
Section titled “In CloudMount”- Needs Pro. See Wrapping and combining drives.
At a glance
Section titled “At a glance”rclone support tier: Tier 1: Core
This is a wrapping drive: it stores nothing itself and works on top of other drives, so checksums, modification times, server-side operations and free space mostly follow the drives it wraps. The sections below say where it differs.
The combine backend joins remotes together into a single directory
tree.
For example you might have a remote for images on one provider:
$ rclone tree s3:imagesbucket/├── image1.jpg└── image2.jpgAnd a remote for files on another:
$ rclone tree drive:important/files/├── file1.txt└── file2.txtThe combine backend can join these together into a synthetic
directory structure like this:
$ rclone tree combined:/├── files│ ├── file1.txt│ └── file2.txt└── images ├── image1.jpg └── image2.jpgYou’d do this by specifying an upstreams parameter in the config
like this
upstreams = images=s3:imagesbucket files=drive:important/filesDuring 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.
Setup notes
Section titled “Setup notes”In CloudMount you add this drive from the Add drive screen, and the wizard asks for the options listed under Options. The notes below come from rclone’s setup guide.
Configuring for Google Drive Shared Drives
Section titled “Configuring for Google Drive Shared Drives”Rclone has a convenience feature for making a combine backend for all the shared drives you have access to.
Assuming your main (non shared drive) Google drive remote is called
drive: you would run
rclone backend -o config drives drive:This would produce something like this:
[My Drive]type = aliasremote = drive,team_drive=0ABCDEF-01234567890,root_folder_id=:
[Test Drive]type = aliasremote = drive,team_drive=0ABCDEFabcdefghijkl,root_folder_id=:
[AllDrives]type = combineupstreams = "My Drive=My Drive:" "Test Drive=Test Drive:"If you then add that config to your config file (find it with rclone config file) then you can access all the shared drives in one place
with the AllDrives: remote.
See the Google Drive docs for full info.
Options
Section titled “Options”Standard options
Section titled “Standard options”The wizard asks for these when you add the drive.
upstreams
Section titled “upstreams”Upstreams for combining
These should be in the form
dir=remote:path dir2=remote2:pathWhere before the = is specified the root directory and after is the remote to put there.
Embedded spaces can be added using quotes
"dir=remote:path with space" "dir2=remote2:path with space"Type: SpaceSepList
Advanced options
Section titled “Advanced options”The wizard shows these under Advanced options. Most drives work without changing any of them.
description
Section titled “description”Description of the remote.
Type: string