2014-07-17 21:03:11 +02:00
---
title: "Google Cloud Storage"
description: "Rclone docs for Google Cloud Storage"
2022-11-17 18:56:24 +01:00
versionIntroduced: "v1.02"
2014-07-17 21:03:11 +02:00
---
2021-07-20 20:45:41 +02:00
# {{< icon "fab fa-google" >}} Google Cloud Storage
2014-07-17 21:03:11 +02:00
Paths are specified as `remote:bucket` (or `remote:` for the `lsd`
2020-10-13 23:49:58 +02:00
command.) You may put subdirectories in too, e.g. `remote:bucket/path/to/dir` .
2014-07-17 21:03:11 +02:00
2021-10-14 15:40:18 +02:00
## Configuration
2014-07-17 21:03:11 +02:00
The initial setup for google cloud storage involves getting a token from Google Cloud Storage
which you need to do in your browser. `rclone config` walks you
through it.
Here is an example of how to make a remote called `remote` . First run:
rclone config
This will guide you through an interactive setup process:
```
n) New remote
d) Delete remote
q) Quit config
e/n/d/q> n
name> remote
2016-02-21 14:39:04 +01:00
Type of storage to configure.
Choose a number from below, or type in your own value
2019-08-26 11:47:17 +02:00
[snip]
XX / Google Cloud Storage (this is not Google Drive)
2016-02-21 14:39:04 +01:00
\ "google cloud storage"
2019-08-26 11:47:17 +02:00
[snip]
Storage> google cloud storage
2015-10-03 15:23:12 +02:00
Google Application Client Id - leave blank normally.
2017-01-09 06:09:19 +01:00
client_id>
2015-10-03 15:23:12 +02:00
Google Application Client Secret - leave blank normally.
2017-01-09 06:09:19 +01:00
client_secret>
2014-07-17 21:03:11 +02:00
Project number optional - needed only for list/create/delete buckets - see your developer console.
project_number> 12345678
2016-04-20 16:40:40 +02:00
Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
2017-01-09 06:09:19 +01:00
service_account_file>
2014-07-17 21:03:11 +02:00
Access Control List for new objects.
Choose a number from below, or type in your own value
2017-01-09 06:09:19 +01:00
1 / Object owner gets OWNER access, and all Authenticated Users get READER access.
\ "authenticatedRead"
2 / Object owner gets OWNER access, and project team owners get OWNER access.
\ "bucketOwnerFullControl"
3 / Object owner gets OWNER access, and project team owners get READER access.
\ "bucketOwnerRead"
4 / Object owner gets OWNER access [default if left blank].
\ "private"
5 / Object owner gets OWNER access, and project team members get access according to their roles.
\ "projectPrivate"
6 / Object owner gets OWNER access, and all Users get READER access.
\ "publicRead"
2014-07-17 21:03:11 +02:00
object_acl> 4
Access Control List for new buckets.
Choose a number from below, or type in your own value
2017-01-09 06:09:19 +01:00
1 / Project team owners get OWNER access, and all Authenticated Users get READER access.
\ "authenticatedRead"
2 / Project team owners get OWNER access [default if left blank].
\ "private"
3 / Project team members get access according to their roles.
\ "projectPrivate"
4 / Project team owners get OWNER access, and all Users get READER access.
\ "publicRead"
5 / Project team owners get OWNER access, and all Users get WRITER access.
\ "publicReadWrite"
2014-07-17 21:03:11 +02:00
bucket_acl> 2
2017-07-18 16:15:29 +02:00
Location for the newly created buckets.
Choose a number from below, or type in your own value
1 / Empty for default location (US).
\ ""
2 / Multi-regional location for Asia.
\ "asia"
3 / Multi-regional location for Europe.
\ "eu"
4 / Multi-regional location for United States.
\ "us"
5 / Taiwan.
\ "asia-east1"
6 / Tokyo.
\ "asia-northeast1"
7 / Singapore.
\ "asia-southeast1"
8 / Sydney.
\ "australia-southeast1"
9 / Belgium.
\ "europe-west1"
10 / London.
\ "europe-west2"
11 / Iowa.
\ "us-central1"
12 / South Carolina.
\ "us-east1"
13 / Northern Virginia.
\ "us-east4"
14 / Oregon.
\ "us-west1"
location> 12
The storage class to use when storing objects in Google Cloud Storage.
Choose a number from below, or type in your own value
1 / Default
\ ""
2 / Multi-regional storage class
\ "MULTI_REGIONAL"
3 / Regional storage class
\ "REGIONAL"
4 / Nearline storage class
\ "NEARLINE"
5 / Coldline storage class
\ "COLDLINE"
6 / Durable reduced availability storage class
\ "DURABLE_REDUCED_AVAILABILITY"
storage_class> 5
2014-07-17 21:03:11 +02:00
Remote config
2022-12-07 20:44:28 +01:00
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.
2015-09-12 15:17:39 +02:00
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
2024-08-16 12:05:43 +02:00
Configuration complete.
Options:
- type: google cloud storage
- client_id:
- client_secret:
- token: {"AccessToken":"xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","RefreshToken":"x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx","Expiry":"2014-07-17T20:49:14.929208288+01:00","Extra":null}
- project_number: 12345678
- object_acl: private
- bucket_acl: private
Keep this "remote" remote?
2014-07-17 21:03:11 +02:00
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d> y
```
2022-12-07 20:44:28 +01:00
See the [remote setup docs ](/remote_setup/ ) for how to set it up on a
machine with no Internet browser available.
2015-09-12 15:17:39 +02:00
Note that rclone runs a webserver on your local machine to collect the
2022-12-07 20:44:28 +01:00
token as returned from Google if using web browser to automatically
authenticate. This only
2015-09-12 15:17:39 +02:00
runs from the moment it opens your browser to the moment you get back
the verification code. This is on `http://127.0.0.1:53682/` and this
it may require you to unblock it temporarily if you are running a host
firewall, or use manual mode.
2014-07-17 21:03:11 +02:00
This remote is called `remote` and can now be used like this
See all the buckets in your project
rclone lsd remote:
Make a new bucket
rclone mkdir remote:bucket
List the contents of a bucket
rclone ls remote:bucket
Sync `/home/local/directory` to the remote bucket, deleting any excess
files in the bucket.
2023-01-20 21:47:36 +01:00
rclone sync --interactive /home/local/directory remote:bucket
2014-07-17 21:03:11 +02:00
2021-05-21 12:05:45 +02:00
### Service Account support
2016-04-20 16:40:40 +02:00
You can set up rclone with Google Cloud Storage in an unattended mode,
i.e. not tied to a specific end-user Google account. This is useful
when you want to synchronise files onto machines that don't have
actively logged-in users, for example build machines.
To get credentials for Google Cloud Platform
[IAM Service Accounts ](https://cloud.google.com/iam/docs/service-accounts ),
please head to the
[Service Account ](https://console.cloud.google.com/permissions/serviceaccounts )
section of the Google Developer Console. Service Accounts behave just
like normal `User` permissions in
[Google Cloud Storage ACLs ](https://cloud.google.com/storage/docs/access-control ),
so you can limit their access (e.g. make them read only). After
creating an account, a JSON file containing the Service Account's
credentials will be downloaded onto your machines. These credentials
are what rclone will use for authentication.
2016-04-22 20:58:52 +02:00
To use a Service Account instead of OAuth2 token flow, enter the path
to your Service Account credentials at the `service_account_file`
prompt and rclone won't use the browser based authentication
2018-04-27 17:07:37 +02:00
flow. If you'd rather stuff the contents of the credentials file into
the rclone config file, you can set `service_account_credentials` with
the actual contents of the file instead, or set the equivalent
environment variable.
2016-04-20 16:40:40 +02:00
2021-05-21 12:05:45 +02:00
### Anonymous Access
2020-06-30 17:01:02 +02:00
For downloads of objects that permit public access you can configure rclone
to use anonymous access by setting `anonymous` to `true` .
With unauthorized access you can't write or create files but only read or list
those buckets and objects that have public read access.
2021-05-21 12:05:45 +02:00
### Application Default Credentials
2019-03-01 18:05:31 +01:00
If no other source of credentials is provided, rclone will fall back
to
[Application Default Credentials ](https://cloud.google.com/video-intelligence/docs/common/auth#authenticating_with_application_default_credentials )
this is useful both when you already have configured authentication
for your developer account, or in production when running on a google
compute host. Note that if running in docker, you may need to run
additional commands on your google compute machine -
[see this page ](https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud_as_a_docker_credential_helper ).
Note that in the case application default credentials are used, there
is no need to explicitly configure a project number.
2021-05-21 12:05:45 +02:00
### --fast-list
2017-06-06 17:40:00 +02:00
This remote supports `--fast-list` which allows you to use fewer
transactions in exchange for more memory. See the [rclone
docs](/docs/#fast-list) for more details.
2021-05-21 12:05:45 +02:00
### Custom upload headers
2020-05-02 10:15:28 +02:00
You can set custom upload headers with the `--header-upload`
flag. Google Cloud Storage supports the headers as described in the
[working with metadata documentation ](https://cloud.google.com/storage/docs/gsutil/addlhelp/WorkingWithObjectMetadata )
- Cache-Control
- Content-Disposition
- Content-Encoding
- Content-Language
- Content-Type
2020-12-03 09:52:12 +01:00
- X-Goog-Storage-Class
2020-05-02 10:15:28 +02:00
- X-Goog-Meta-
Eg `--header-upload "Content-Type text/potato"`
Note that the last of these is for setting custom metadata in the form
`--header-upload "x-goog-meta-key: value"`
2023-11-18 13:36:46 +01:00
### Modification times
2014-07-17 21:03:11 +02:00
2021-05-21 12:05:45 +02:00
Google Cloud Storage stores md5sum natively.
Google's [gsutil ](https://cloud.google.com/storage/docs/gsutil ) tool stores modification time
with one-second precision as `goog-reserved-file-mtime` in file metadata.
2018-10-01 19:36:15 +02:00
2021-05-21 12:05:45 +02:00
To ensure compatibility with gsutil, rclone stores modification time in 2 separate metadata entries.
`mtime` uses RFC3339 format with one-nanosecond precision.
`goog-reserved-file-mtime` uses Unix timestamp format with one-second precision.
To get modification time from object metadata, rclone reads the metadata in the following order: `mtime` , `goog-reserved-file-mtime` , object updated time.
Note that rclone's default modify window is 1ns.
Files uploaded by gsutil only contain timestamps with one-second precision.
If you use rclone to sync files previously uploaded by gsutil,
rclone will attempt to update modification time for all these files.
To avoid these possibly unnecessary updates, use `--modify-window 1s` .
### Restricted filename characters
2019-05-19 17:54:46 +02:00
| Character | Value | Replacement |
| --------- |:-----:|:-----------:|
| NUL | 0x00 | ␀ |
| LF | 0x0A | ␊ |
| CR | 0x0D | ␍ |
| / | 0x2F | / |
Invalid UTF-8 bytes will also be [replaced ](/overview/#invalid-utf8 ),
as they can't be used in JSON strings.
2020-05-22 13:22:52 +02:00
{{< rem autogenerated options start " - DO NOT EDIT - instead edit fs . RegInfo in backend / googlecloudstorage / googlecloudstorage . go then run make backenddocs " > }}
2021-11-01 16:42:05 +01:00
### Standard options
2018-10-01 21:48:54 +02:00
2022-07-09 19:08:20 +02:00
Here are the Standard options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
2018-10-01 21:48:54 +02:00
#### --gcs-client-id
2021-11-01 16:42:05 +01:00
OAuth Client Id.
2018-10-01 21:48:54 +02:00
Leave blank normally.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: client_id
- Env Var: RCLONE_GCS_CLIENT_ID
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
#### --gcs-client-secret
2021-11-01 16:42:05 +01:00
OAuth Client Secret.
2018-10-01 21:48:54 +02:00
Leave blank normally.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: client_secret
- Env Var: RCLONE_GCS_CLIENT_SECRET
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
#### --gcs-project-number
Project number.
2021-11-01 16:42:05 +01:00
2018-10-01 21:48:54 +02:00
Optional - needed only for list/create/delete buckets - see your developer console.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: project_number
- Env Var: RCLONE_GCS_PROJECT_NUMBER
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
2023-06-30 15:11:17 +02:00
#### --gcs-user-project
User project.
Optional - needed only for requester pays.
Properties:
- Config: user_project
- Env Var: RCLONE_GCS_USER_PROJECT
- Type: string
- Required: false
2018-10-01 21:48:54 +02:00
#### --gcs-service-account-file
2021-11-01 16:42:05 +01:00
Service Account Credentials JSON file path.
2018-10-01 21:48:54 +02:00
Leave blank normally.
Needed only if you want use SA instead of interactive login.
2020-09-02 17:59:04 +02:00
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}` .
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: service_account_file
- Env Var: RCLONE_GCS_SERVICE_ACCOUNT_FILE
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
#### --gcs-service-account-credentials
2021-11-01 16:42:05 +01:00
Service Account Credentials JSON blob.
2018-10-01 21:48:54 +02:00
Leave blank normally.
Needed only if you want use SA instead of interactive login.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: service_account_credentials
- Env Var: RCLONE_GCS_SERVICE_ACCOUNT_CREDENTIALS
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
2020-09-02 17:59:04 +02:00
#### --gcs-anonymous
2021-11-01 16:42:05 +01:00
Access public buckets and objects without credentials.
2020-09-02 17:59:04 +02:00
Set to 'true' if you just want to download files and don't configure credentials.
2022-03-18 13:29:54 +01:00
Properties:
2020-09-02 17:59:04 +02:00
- Config: anonymous
- Env Var: RCLONE_GCS_ANONYMOUS
- Type: bool
- Default: false
2018-10-01 21:48:54 +02:00
#### --gcs-object-acl
Access Control List for new objects.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: object_acl
- Env Var: RCLONE_GCS_OBJECT_ACL
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
- Examples:
- "authenticatedRead"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- All Authenticated Users get READER access.
2018-10-01 21:48:54 +02:00
- "bucketOwnerFullControl"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- Project team owners get OWNER access.
2018-10-01 21:48:54 +02:00
- "bucketOwnerRead"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- Project team owners get READER access.
2018-10-01 21:48:54 +02:00
- "private"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- Default if left blank.
2018-10-01 21:48:54 +02:00
- "projectPrivate"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- Project team members get access according to their roles.
2018-10-01 21:48:54 +02:00
- "publicRead"
2021-11-01 16:42:05 +01:00
- Object owner gets OWNER access.
- All Users get READER access.
2018-10-01 21:48:54 +02:00
#### --gcs-bucket-acl
Access Control List for new buckets.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: bucket_acl
- Env Var: RCLONE_GCS_BUCKET_ACL
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
- Examples:
- "authenticatedRead"
2021-11-01 16:42:05 +01:00
- Project team owners get OWNER access.
- All Authenticated Users get READER access.
2018-10-01 21:48:54 +02:00
- "private"
2021-11-01 16:42:05 +01:00
- Project team owners get OWNER access.
- Default if left blank.
2018-10-01 21:48:54 +02:00
- "projectPrivate"
- Project team members get access according to their roles.
- "publicRead"
2021-11-01 16:42:05 +01:00
- Project team owners get OWNER access.
- All Users get READER access.
2018-10-01 21:48:54 +02:00
- "publicReadWrite"
2021-11-01 16:42:05 +01:00
- Project team owners get OWNER access.
- All Users get WRITER access.
2018-10-01 21:48:54 +02:00
2019-03-04 15:52:54 +01:00
#### --gcs-bucket-policy-only
Access checks should use bucket-level IAM policies.
If you want to upload objects to a bucket with Bucket Policy Only set
then you will need to set this.
When it is set, rclone:
- ignores ACLs set on buckets
- ignores ACLs set on objects
- creates buckets with Bucket Policy Only set
Docs: https://cloud.google.com/storage/docs/bucket-policy-only
2022-03-18 13:29:54 +01:00
Properties:
2019-03-04 15:52:54 +01:00
- Config: bucket_policy_only
- Env Var: RCLONE_GCS_BUCKET_POLICY_ONLY
- Type: bool
- Default: false
2018-10-01 21:48:54 +02:00
#### --gcs-location
Location for the newly created buckets.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: location
- Env Var: RCLONE_GCS_LOCATION
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
- Examples:
- ""
2021-11-01 16:42:05 +01:00
- Empty for default location (US)
2018-10-01 21:48:54 +02:00
- "asia"
2021-11-01 16:42:05 +01:00
- Multi-regional location for Asia
2018-10-01 21:48:54 +02:00
- "eu"
2021-11-01 16:42:05 +01:00
- Multi-regional location for Europe
2018-10-01 21:48:54 +02:00
- "us"
2021-11-01 16:42:05 +01:00
- Multi-regional location for United States
2018-10-01 21:48:54 +02:00
- "asia-east1"
2021-11-01 16:42:05 +01:00
- Taiwan
2019-02-09 11:42:57 +01:00
- "asia-east2"
2021-11-01 16:42:05 +01:00
- Hong Kong
2018-10-01 21:48:54 +02:00
- "asia-northeast1"
2021-11-01 16:42:05 +01:00
- Tokyo
2022-03-18 13:29:54 +01:00
- "asia-northeast2"
- Osaka
- "asia-northeast3"
- Seoul
2019-02-09 11:42:57 +01:00
- "asia-south1"
2021-11-01 16:42:05 +01:00
- Mumbai
2022-03-18 13:29:54 +01:00
- "asia-south2"
- Delhi
2018-10-01 21:48:54 +02:00
- "asia-southeast1"
2021-11-01 16:42:05 +01:00
- Singapore
2022-03-18 13:29:54 +01:00
- "asia-southeast2"
- Jakarta
2018-10-01 21:48:54 +02:00
- "australia-southeast1"
2021-11-01 16:42:05 +01:00
- Sydney
2022-03-18 13:29:54 +01:00
- "australia-southeast2"
- Melbourne
2019-02-09 11:42:57 +01:00
- "europe-north1"
2021-11-01 16:42:05 +01:00
- Finland
2018-10-01 21:48:54 +02:00
- "europe-west1"
2021-11-01 16:42:05 +01:00
- Belgium
2018-10-01 21:48:54 +02:00
- "europe-west2"
2021-11-01 16:42:05 +01:00
- London
2019-02-09 11:42:57 +01:00
- "europe-west3"
2021-11-01 16:42:05 +01:00
- Frankfurt
2019-02-09 11:42:57 +01:00
- "europe-west4"
2021-11-01 16:42:05 +01:00
- Netherlands
2022-03-18 13:29:54 +01:00
- "europe-west6"
- Zürich
- "europe-central2"
- Warsaw
2018-10-01 21:48:54 +02:00
- "us-central1"
2021-11-01 16:42:05 +01:00
- Iowa
2018-10-01 21:48:54 +02:00
- "us-east1"
2021-11-01 16:42:05 +01:00
- South Carolina
2018-10-01 21:48:54 +02:00
- "us-east4"
2021-11-01 16:42:05 +01:00
- Northern Virginia
2018-10-01 21:48:54 +02:00
- "us-west1"
2021-11-01 16:42:05 +01:00
- Oregon
2019-02-09 11:42:57 +01:00
- "us-west2"
2021-11-01 16:42:05 +01:00
- California
2022-03-18 13:29:54 +01:00
- "us-west3"
- Salt Lake City
- "us-west4"
- Las Vegas
- "northamerica-northeast1"
- Montréal
- "northamerica-northeast2"
- Toronto
- "southamerica-east1"
- São Paulo
- "southamerica-west1"
- Santiago
- "asia1"
- Dual region: asia-northeast1 and asia-northeast2.
- "eur4"
- Dual region: europe-north1 and europe-west4.
- "nam4"
- Dual region: us-central1 and us-east1.
2018-10-01 21:48:54 +02:00
#### --gcs-storage-class
The storage class to use when storing objects in Google Cloud Storage.
2022-03-18 13:29:54 +01:00
Properties:
2018-10-01 21:48:54 +02:00
- Config: storage_class
- Env Var: RCLONE_GCS_STORAGE_CLASS
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2018-10-01 21:48:54 +02:00
- Examples:
- ""
- Default
- "MULTI_REGIONAL"
- Multi-regional storage class
- "REGIONAL"
- Regional storage class
- "NEARLINE"
- Nearline storage class
- "COLDLINE"
- Coldline storage class
2020-04-27 02:16:57 +02:00
- "ARCHIVE"
- Archive storage class
2018-10-01 21:48:54 +02:00
- "DURABLE_REDUCED_AVAILABILITY"
- Durable reduced availability storage class
2023-03-14 13:16:30 +01:00
#### --gcs-env-auth
Get GCP IAM credentials from runtime (environment variables or instance meta data if no env vars).
Only applies if service_account_file and service_account_credentials is blank.
Properties:
- Config: env_auth
- Env Var: RCLONE_GCS_ENV_AUTH
- Type: bool
- Default: false
- Examples:
- "false"
- Enter credentials in the next step.
- "true"
- Get GCP IAM credentials from the environment (env vars or IAM).
2021-11-01 16:42:05 +01:00
### Advanced options
2020-02-01 11:31:42 +01:00
2022-07-09 19:08:20 +02:00
Here are the Advanced options specific to google cloud storage (Google Cloud Storage (this is not Google Drive)).
2020-02-01 11:31:42 +01:00
2020-09-02 17:59:04 +02:00
#### --gcs-token
OAuth Access Token as a JSON blob.
2022-03-18 13:29:54 +01:00
Properties:
2020-09-02 17:59:04 +02:00
- Config: token
- Env Var: RCLONE_GCS_TOKEN
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2020-09-02 17:59:04 +02:00
#### --gcs-auth-url
Auth server URL.
2021-11-01 16:42:05 +01:00
2020-09-02 17:59:04 +02:00
Leave blank to use the provider defaults.
2022-03-18 13:29:54 +01:00
Properties:
2020-09-02 17:59:04 +02:00
- Config: auth_url
- Env Var: RCLONE_GCS_AUTH_URL
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2020-09-02 17:59:04 +02:00
#### --gcs-token-url
Token server url.
2021-11-01 16:42:05 +01:00
2020-09-02 17:59:04 +02:00
Leave blank to use the provider defaults.
2022-03-18 13:29:54 +01:00
Properties:
2020-09-02 17:59:04 +02:00
- Config: token_url
- Env Var: RCLONE_GCS_TOKEN_URL
- Type: string
2022-03-18 13:29:54 +01:00
- Required: false
2020-09-02 17:59:04 +02:00
2023-06-30 15:11:17 +02:00
#### --gcs-directory-markers
Upload an empty object with a trailing slash when a new directory is created
Empty folders are unsupported for bucket based remotes, this option creates an empty
object ending with "/", to persist the folder.
Properties:
- Config: directory_markers
- Env Var: RCLONE_GCS_DIRECTORY_MARKERS
- Type: bool
- Default: false
2022-07-09 19:08:20 +02:00
#### --gcs-no-check-bucket
If set, don't attempt to check the bucket exists or create it.
This can be useful when trying to minimise the number of transactions
rclone does if you know the bucket exists already.
Properties:
- Config: no_check_bucket
- Env Var: RCLONE_GCS_NO_CHECK_BUCKET
- Type: bool
- Default: false
#### --gcs-decompress
If set this will decompress gzip encoded objects.
It is possible to upload objects to GCS with "Content-Encoding: gzip"
2022-08-14 04:56:32 +02:00
set. Normally rclone will download these files as compressed objects.
2022-07-09 19:08:20 +02:00
If this flag is set then rclone will decompress these files with
"Content-Encoding: gzip" as they are received. This means that rclone
can't check the size and hash but the file contents will be decompressed.
Properties:
- Config: decompress
- Env Var: RCLONE_GCS_DECOMPRESS
- Type: bool
- Default: false
2022-10-21 16:06:08 +02:00
#### --gcs-endpoint
Endpoint for the service.
Leave blank normally.
Properties:
- Config: endpoint
- Env Var: RCLONE_GCS_ENDPOINT
- Type: string
- Required: false
2020-02-01 11:31:42 +01:00
#### --gcs-encoding
2022-03-18 13:29:54 +01:00
The encoding for the backend.
2020-02-01 11:31:42 +01:00
2021-11-01 16:42:05 +01:00
See the [encoding section in the overview ](/overview/#encoding ) for more info.
2020-02-01 11:31:42 +01:00
2022-03-18 13:29:54 +01:00
Properties:
2020-02-01 11:31:42 +01:00
- Config: encoding
- Env Var: RCLONE_GCS_ENCODING
2023-11-26 16:59:12 +01:00
- Type: Encoding
2020-02-01 11:31:42 +01:00
- Default: Slash,CrLf,InvalidUtf8,Dot
2024-03-10 12:22:43 +01:00
#### --gcs-description
2024-06-14 17:04:51 +02:00
Description of the remote.
2024-03-10 12:22:43 +01:00
Properties:
- Config: description
- Env Var: RCLONE_GCS_DESCRIPTION
- Type: string
- Required: false
2020-05-22 13:22:52 +02:00
{{< rem autogenerated options stop > }}
2021-10-14 15:40:18 +02:00
## Limitations
2020-11-27 15:08:52 +01:00
`rclone about` is not supported by the Google Cloud Storage backend. Backends without
this capability cannot determine free space for an rclone mount or
use policy `mfs` (most free space) as a member of an rclone union
remote.
2022-05-14 00:06:45 +02:00
See [List of backends that do not support rclone about ](https://rclone.org/overview/#optional-features ) and [rclone about ](https://rclone.org/commands/rclone_about/ )
2020-11-27 15:08:52 +01:00