`lsd -R` excludes subdirectories

What is the problem you are having with rclone?

Neither
rclone lsd s3c:bucket/backup/device/
or
rclone lsd -R s3c:bucket/backup/device/
or
rclone lsd --max-depth=0 s3c:bucket/backup/device/

Lists the /home directory under this path s3c:bucket/backup/device/home

This debug message during -vv is peculiar. Is this the issue?
2023/04/08 17:37:00 DEBUG : device: Excluded

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

rclone v1.62.2

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

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

Wasabi S3

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

rclone lsd -d -R s3c:bucket/backup/device/

The rclone config contents with secrets removed.

[s3]
type = s3
provider = Wasabi
access_key_id = ...
secret_access_key = ...
endpoint = s3.eu-central-2.wasabisys.com

[s3c]
type = crypt
remote = s3:bucket
password = ...

A log from the command with the -vv flag

2023/04/08 17:36:59 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "lsd" "-R" "s3c:bucket/backup/device/" "-vv"]
2023/04/08 17:36:59 DEBUG : Creating backend with remote "s3c:bucket/backup/device/"
2023/04/08 17:36:59 DEBUG : Using config file from "/home/dza/.config/rclone/rclone.conf"
2023/04/08 17:36:59 DEBUG : Creating backend with remote "s3:bucket/backup/device/.../..."
2023/04/08 17:36:59 DEBUG : Resolving service "s3" region "us-east-1"
2023/04/08 17:36:59 DEBUG : fs cache: adding new entry for parent of "s3:bucket/.../...", "s3:bucket/.../..."
2023/04/08 17:37:00 DEBUG : device: Excluded
2023/04/08 17:37:00 DEBUG : 1 go routines active

Hi Christoffer,

Looks like you may be confusing yourself by mixing s3 and s3c.

Try this:

rclone lsd s3:bucket

and these:

rclone lsd s3c:
rclone lsd s3c:backup/
rclone lsd s3c:backup/device/
1 Like

You are correct I forgot the ´c in these example commands (edited), however it still does not show the directory that I can display with rclone lsd -R 's3c:bucket/device/home', rclone lsd -R 's3c:bucket/device/' simply does not show /home

Still looks like you are mixing them, your shouldn't use the bucket part of the path when using s3c. The remote defined in the crypt already contains bucket, so the encrypted part starts just below the bucket.

So

should be

rclone lsd -R 's3c:device/

I suggest you start by rclone lsf s3c: and then slowly descends one folder at the time.

1 Like

You are correct, I missed that detail, now I have an extra folder..

I still can't get it to list the subdirectory.

I solved it.

I had a file named with the same name as the directory due to some scripting tests.

Thanks a lot for the help @Ole I should use rclone more often :slight_smile:

1 Like

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