Rclone with google cloud storage in single command line possible?

What is the problem you are having with rclone?

In trying to list a google cloud storage in a single command line, but unable to figure how to do it.

Run the command 'rclone version' and share the full output of the command.

rclone v1.61.1

  • os/version: darwin 12.6 (64 bit)
  • os/kernel: 21.6.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Cloud Storage

The command you were trying to run (eg rclone copy /tmp remote:tmp)

Ok i will give an example of which kind of command i am trying to do, as i do with for example an ftp

rclone lsjson :ftp,host=ftp.dlptest.com,port=21,user=dlpuser,pass=obscuredpasshere:/path/to/list -R

So, is this kind of command line possible with a google cloud storage?

rclone lsjson :gcs,???:/path/to/list -R

The rclone config contents with secrets removed.

Non aplicable since i am trying to run without storing credentials in any config file.

A log from the command with the -vv flag

Non applicable, since i cannot figure out yet how to run the command

So is this kind of command possinble with google cloud storage? Again, i don't want to store any information in the config file, and don't even want to save the json file in the system, i just want to do it totally non-interactive, my idea is to create a small app, which will connect to a service to retrieve credentials and launch the command internally, so the user won't ever know and won't have access to any credentials

hello and welcome to the forum,

sure, connections strings work with any remote.
the hard part is crafting the string itself.

my advice is to create a normal remote using rclone config
and based on that, craft that connections string.

yes, that is possible, i have done that but with gdrive but same concept as gcs.
so with gcs, you will need to use
https://rclone.org/googlecloudstorage/#gcs-service-account-credentials

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.