What is the problem you are having with rclone?
On a google drive remote, when using --drive-trashed-only
via CLI, I have the expected output with only trashed content. When placing trashed_only = true
into the config file, trashed files are not shown, only the regular non-trashed contents are shown.
Run the command 'rclone version' and share the full output of the command.
root@debian:~/.config/rclone# rclone --version
rclone v1.62.2
- os/version: debian 11.6 (64 bit)
- os/kernel: 6.1.0-7-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: none
Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
-->
Yes; I ran rclone selfupdate
and was updated to the above version. Same result
Which cloud storage system are you using? (eg Google Drive)
Google drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone ls trash:
The rclone config contents with secrets removed.
[gsuite]
type = drive
client_id = redacted
client_secret = redacted
scope = drive
token = redacted
team_drive =
[gcrypt]
type = crypt
remote = gsuite:crypt
password = redacted
password2 = redacted
[trash]
type = crypt
remote = gsuite:crypt
password = redacted
password2 = redacted
trashed_only = true
A log from the command with the -vv
flag
root@debian:~/.config/rclone# rclone ls trash: -vv
2023/04/16 18:23:15 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "ls" "trash:" "-vv"]
2023/04/16 18:23:15 DEBUG : Creating backend with remote "trash:"
2023/04/16 18:23:15 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/16 18:23:15 DEBUG : Creating backend with remote "gsuite:crypt"
2023/04/16 18:23:15 DEBUG : Google drive root 'crypt': 'root_folder_id = redacted - save this in the config to speed up startup
8696799232 file1
8284929153 file2
...
...
...
The above are all files that are NOT deleted (not the expected output, as the trash remote has the trashed_only
option. If I instead run the command
root@debian:~/.config/rclone# rclone ls gcrypt: --drive-trashed-only -vv
2023/04/16 18:53:18 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "ls" "gcrypt:" "--drive-trashed-only" "-vv"]
2023/04/16 18:53:18 DEBUG : Creating backend with remote "gcrypt:"
2023/04/16 18:53:18 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/04/16 18:53:18 DEBUG : Creating backend with remote "gsuite:crypt"
2023/04/16 18:53:18 DEBUG : gsuite: detected overridden config - adding "{txBp-}" suffix to name
2023/04/16 18:53:19 DEBUG : Google drive root 'crypt': 'root_folder_id = redacted - save this in the config to speed up startup
2023/04/16 18:53:19 DEBUG : fs cache: renaming cache item "gsuite:crypt" to be canonical "gsuite{txBp-}:crypt"
2023/04/16 18:53:20 DEBUG : Google drive root 'crypt': Disabling ListR to work around bug in drive as multi listing (5) returned no entries
2023/04/16 18:53:20 DEBUG : Google drive root 'crypt': Recycled 5 entries
2023/04/16 18:53:20 DEBUG : Google drive root 'crypt': Re-enabling ListR as previous detection was in error
2023/04/16 18:53:21 DEBUG : Google drive root 'crypt': Disabling ListR to work around bug in drive as multi listing (50) returned no entries
2023/04/16 18:53:21 DEBUG : Google drive root 'crypt': Recycled 50 entries
2023/04/16 18:53:21 DEBUG : Google drive root 'crypt': Recycled 50 entries
9879384859 deletedfile1
2023/04/16 18:53:25 DEBUG : pacer: Reducing sleep to 25.722014ms
2023/04/16 18:53:25 DEBUG : pacer: Reducing sleep to 60.81426ms
2023/04/16 18:53:25 DEBUG : pacer: Reducing sleep to 159.369229ms
2023/04/16 18:53:25 DEBUG : pacer: Reducing sleep to 245.861389ms
...
...
...
2023/04/16 18:54:48 DEBUG : pacer: Reducing sleep to 187.139253ms
278016125 deletedfile2
269075006 deletedfile3
...
All of the files are trash files as expected. Since the CLI flag works but not the config file option, it must be something wrong with trashed_only = true
? I attempted other variations such as trashed_only = "true"
however this did not work.
Any insight into my misstep would be appreciated.
CC