Restore Specific Files From Trash

What is the problem you are having with rclone?

Hello Good people
So last night i was organizing my Team drive and found that i have a lot of files (almost around 400k)
I use my Team drive for Medias mainly..i had cloned files from different sources
So i decided to clean my Team drive ie,reduce the number of files by deleting all files under 50 M
I t was meant for deleting txt files srt files jpg etc
But i had forgotten that i had some flac files in there too..So now all my flacs under 50M is deleted
Thankfully everything is in my Trash
So what i wanted to was is ther any way to restore only the flac files From Trash
Thank you

PS: I know about --include flag..but in this case i dont know how to use it

What is your rclone version (output from rclone version)

rclone v1.51.0

  • os/arch: windows/amd64
  • go version: go1.13.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10
64 bits

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)

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

You should be able to just the flag --trashed-only and copy them using that filter

rclone move s: s: --trashed-only -vv --dry-run --include=**.flac

Test because I can't say I've restored from the trash much.

1 Like

Thank you
I will try and update here

Adding --drive-server-side-across-configs should make the move almost instantaneous and not involve local bandwidth.

Error: unknown flag: --trashed-only

got this error

It's --drive-trashed-only

1 Like

Thank you..let me try

I think you are going to need to set up a new remote - make a copy of your existing one and add the trashed_only = true flag. Say this one is called trashed: then the move should work fine I think.......

1 Like

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