`backend untrash` fails with `directory not found`

Please, why this command is failing?

$ rclone lsd drive:crypt_backup --drive-trashed-only

-1 2023-08-30 23:03:44 -1 6ps3djbl0tmank5t0g7gacf404
-1 2023-08-30 23:03:51 -1 sgbkehl3bccnjpo2opfidbciac
-1 2023-03-26 21:41:49 -1 uri604ck9ip3bgvig9cifhb3bk

$ rclone lsd drive:crypt_backup

-1 2023-08-30 23:03:44 -1 6ps3djbl0tmank5t0g7gacf404
-1 2023-08-30 23:03:51 -1 sgbkehl3bccnjpo2opfidbciac

$ rclone backend untrash drive:crypt_backup/uri604ck9ip3bgvig9cifhb3bk -i
2023/08/30 23:11:08 Failed to backend: command "untrash" failed: directory not found

Where drive: is a google drive non encrypted backend.

What I'm doing wrong? Thanks!

--- please answer all the questions in the help and support template so we can help you?
--- for testing, instead of -i, use --dry-run -vv

Try adding --drive-trashed-only to this command.

Thanks ncw for your answer.

rclone backend untrash drive:crypt_backup/uri604ck9ip3bgvig9cifhb3bk --drive-trashed-only -vv 8:50 [0]
2023/08/31 08:50:18 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "backend" "untrash" "drive:crypt_backup/uri604ck9ip3bgvig9cifhb3bk" "--drive-trashed-only" "-vv"]
2023/08/31 08:50:18 DEBUG : Using config file from ".config/rclone/rclone.conf"
2023/08/31 08:50:18 DEBUG : : finding trash to restore in directory "1CuOih1c7tLg-1blOHsA79wkLaiTFMaXS"
{
"Untrashed": 0,
"Errors": 0
}
2023/08/31 08:50:19 DEBUG : 7 go routines active

Hmm, untrash doesn't untrash the root of the tree which is why it isn't working I think.

Try this

rclone backend untrash drive:crypt_backup  --include /uri604ck9ip3bgvig9cifhb3bk --drive-trashed-only -vv

yea, I've had sometimes better lock copy/move files with

--drive-trashed-only 

than by using untrash to recover (and then copy/move), never quite figured out why, but perhaps ncw's explanation above is the reason.

As an aside, it be nice if untrash could work through a crypt remote (i.e. --drive-trashed-only does)

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