Can I list a S3 bucket using backend flags only with no remote in config

What is the problem you are having with rclone?

Is it possible to perform rclone commands using backend global flags only? I can set up the config file with remotes and issue ls on the remote with no problems. However, if I want to run the rclone command w/o a remote set up using only the backend flags, how would I specify the target remote in the command if it doesn't exist in the configuration file? Or is that even possible?

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

rclone v1.64.2

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.15.90.1-microsoft-standard-WSL2 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

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

S3

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

rclone lsf --dirs-only --s3-env-auth --s3-provider AWS --s3-region us-west-2 *

rclone lsd --s3-env-auth --s3-provider AWS --s3-region us-west-2 *:

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[tsiu-local]
type = local

A log from the command that you were trying to run with the -vv flag

Output from first command above:

2023/10/31 10:09:48 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "lsd" "-vv" "--s3-env-auth" "--s3-provider" "AWS" "--s3-region" "us-west-2" "rclone.conf"]
2023/10/31 10:09:48 DEBUG : Creating backend with remote "rclone.conf"
2023/10/31 10:09:48 DEBUG : Using config file from "/home/tsiu/.config/rclone/rclone.conf"
2023/10/31 10:09:48 DEBUG : fs cache: adding new entry for parent of "rclone.conf", "/home/tsiu/.config/rclone"
2023/10/31 10:09:48 DEBUG : 4 go routines active

Output from second command above:

2023/10/31 10:11:51 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "lsd" "-vv" "--s3-env-auth" "--s3-provider" "AWS" "--s3-region" "us-west-2" "*:*"]
2023/10/31 10:11:51 Failed to create file system for "*:*": config name contains invalid characters - may only contain numbers, letters, `_`, `-`, `.`, `+`, `@` and space, while not start with `-` or space, and not end with space

welcome to the forum,

yes, can use flags, can use connection strings, can use environment variables.
should be many examples in the forum.

using connection strings

rclone ls :s3,access_key_id=xxx,endpoint="https://s3.us-east-2.wasabisys.com",secret_access_key=xxx:bucketName

thx for the response!! I dug deeper in the docs and found the Documentation for remotes on the fly and can now list my S3 bucket. Thank you for the connection string example!

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