Is there any way I can use rclone to restore deleted files?

What is the problem you are having with rclone?

Is there any way I can use rclone to restore deleted files? I accidentally deleted a folder in RCX and now want to restore it. I can see the files from the deleted folder after running rclone ls mydrive: --drive-trashed-only.

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

rclone v1.72.0
- os/version: Microsoft Windows 10 Pro 22H2 22H2 (64 bit)
- os/kernel: 10.0.19045.6575 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.25.4
- go/linking: static
- go/tags: cmount

This is the latest version available currently at Rclone downloads.

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)

Looking up whether it was possible to restore deleted files using rclone, I stumbled onto a post on this forum that suggested I create a copy of my Google Drive remote (named “mydrive:”) and add trashed_only = true to it (naming it “idrive:”). After doing that, I ran rclone move "idrive:Name of the folder that appeared afer adding the above string to it" "mydrive:Name of the folder that appeared afer adding the above string to it"which I assume was bad because while the command ran for quite a while when I checked the newly created folder, it was still empty and going back and checking the original folder that appeared after adding trashed_only = trueto the newly created remote also seems empty. But running rclone ls mydrive: --drive-trashed-onlystill displays the contents of the accidentally deleted folder.

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

[5d44cd8d-397c-4107-b79b-17f2b6a071e8]
type = alias
remote = /storage/emulated/0

[idrive]
type = drive
scope = drive
token = XXX
trashed_only = true

[mydrive]
type = drive
scope = drive
token = XXX

[mydropbox]
type = dropbox
token = XXX

[mymega]
type = mega
user = XXX
pass = XXX

[myonedrive]
type = onedrive
region = global
token = XXX
drive_id = XXX
drive_type = personal

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

2025/11/30 21:26:31 DEBUG : rclone: Version "v1.72.0" starting with parameters ["C:\\Users\\User\\AppData\\Local\\Microsoft\\WinGet\\Links\\rclone.exe" "move" "idrive:Name of the folder" "mydrive:Name of the folder" "-vv"]
2025/11/30 21:26:31 DEBUG : Creating backend with remote "idrive:Name of the folder"
2025/11/30 21:26:31 DEBUG : Using config file from "C:\\Users\\User\\AppData\\Roaming\\rclone\\rclone.conf"
2025/11/30 21:26:32 DEBUG : Google drive root 'Name of the folder': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/11/30 21:26:33 DEBUG : Creating backend with remote "mydrive:Name of the folder"
2025/11/30 21:26:33 DEBUG : Google drive root 'Name of the folder': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/11/30 21:26:34 DEBUG : Sub folder inside the accidentally deleted folder: Directory modification time the same (differ by 0s, within tolerance 1ms)
2025/11/30 21:26:34 DEBUG : Added delayed dir = "Sub folder inside the accidentally deleted folder", newDst=Sub folder inside the accidentally deleted folder
2025/11/30 21:26:35 DEBUG : Google drive root 'Name of the folder': Waiting for checks to finish
2025/11/30 21:26:35 DEBUG : Google drive root 'Name of the folder': Waiting for transfers to finish
2025/11/30 21:26:35 INFO  : There was nothing to transfer
2025/11/30 21:26:35 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Checks:                 0 / 0, -, Listed 2
Elapsed time:         1.1s

2025/11/30 21:26:35 DEBUG : 6 go routines active

might test to download the files to local.

rclone copy idrive: c:\path\to\local -vv --dry-run

Thank you for your response! What am I supposed to be looking for after running this command?

welcome.
well run the command, see what happens.

I did when I replied to your post. It just outputed a lot of stuff with DEBUG : 17 go routines activeat the end.

please understand, we cannot see into your machine.
need to post the full output or at least top 30 lines.

Sorry. The reason I didn’t post the full output is that I can’t see the initial lines, probably because the output is too long. Here is a very small part of the output when scrolling to the topmost line.:
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 0s
2025/11/30 22:13:41 DEBUG : Added delayed dir = "TV Shows/Empresses in the Palace (TV 2011)/metadata", newDst=
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 76.0278ms
2025/11/30 22:13:41 DEBUG : Added delayed dir = "Movies/Before Trilogy/Before Sunrise (1995)/Featurettes", newDst=
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 68.8387ms
2025/11/30 22:13:41 DEBUG : Added delayed dir = "Movies/Better Days (2019)/Featurettes", newDst=
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 104.3831ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 149.6181ms
2025/11/30 22:13:41 DEBUG : Added delayed dir = "Music/SUGAR BABE/Assets", newDst=
2025/11/30 22:13:41 DEBUG : Added delayed dir = "Music/SUGAR BABE/SONGS", newDst=
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 156.6929ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 58.3105ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 24.104ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 105.7167ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 154.9368ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 126.6537ms
2025/11/30 22:13:41 DEBUG : pacer: Reducing sleep to 195.509ms
2025/11/30 22:13:41 DEBUG : Added delayed dir = "TV Shows/Doctor Who (TV 2005)/Season 4/Featurettes", newDst=
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 174.281ms
2025/11/30 22:13:42 DEBUG : Added delayed dir = "TV Shows/English Teacher (TV 2024)/Season 1", newDst=
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 130.474ms
2025/11/30 22:13:42 DEBUG : Added delayed dir = "Movies/Before Trilogy/Before Sunset (2004)/Featurettes", newDst=
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 76.556ms
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 108.0046ms
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 75.6353ms
2025/11/30 22:13:42 DEBUG : Added delayed dir = "Music/Sunny Day Real Estate/Diary", newDst=
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 77.0512ms
2025/11/30 22:13:42 DEBUG : pacer: Reducing sleep to 0s
2025/11/30 22:13:43 DEBUG : Added delayed dir = "TV Shows/Doctor Who (TV 2005)/Season 5/Featurettes", newDst=
2025/11/30 22:13:43 DEBUG : Added delayed dir = "TV Shows/Fallen Angels (TV 1993)/Season 1", newDst=
2025/11/30 22:13:43 DEBUG : Added delayed dir = "TV Shows/Fallen Angels (TV 1993)/Season 2", newDst=
2025/11/30 22:13:43 DEBUG : pacer: Reducing sleep to 64.8366ms
2025/11/30 22:13:43 DEBUG : pacer: Reducing sleep to 91.3375ms
2025/11/30 22:13:43 DEBUG : pacer: Reducing sleep to 0s
2025/11/30 22:13:43 DEBUG : Added delayed dir = "Music/Tangerine Dream/Phaedra (Deluxe Version)", newDst=
2025/11/30 22:13:43 DEBUG : pacer: Reducing sleep to 31.3392ms
2025/11/30 22:13:43 DEBUG : pacer: Reducing sleep to 4.0404ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 29.0861ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 85.8459ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 129.7655ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 191.0314ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 252.5546ms
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 88.3244ms
2025/11/30 22:13:44 DEBUG : Added delayed dir = "TV Shows/Doctor Who (TV 2005)/Season 6/Featurettes", newDst=
2025/11/30 22:13:44 DEBUG : pacer: Reducing sleep to 151.2432ms

use a debug log.
--log-file=c:\path\to\rclonelog.txt

Top 30 lines:
2025/11/30 23:07:10 DEBUG : rclone: Version "v1.72.0" starting with parameters ["C:\Users\User\AppData\Local\Microsoft\WinGet\Links\rclone.exe" "copy" "idrive:" "c:\path\to\local" "-vv" "--dry-run" "--log-file=c:\path\to\rclonelog.txt"]
2025/11/30 23:07:10 DEBUG : Creating backend with remote "idrive:"
2025/11/30 23:07:10 DEBUG : Using config file from "C:\Users\User\AppData\Roaming\rclone\rclone.conf"
2025/11/30 23:07:11 DEBUG : Google drive root '': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/11/30 23:07:11 DEBUG : Creating backend with remote "c:\path\to\local"
2025/11/30 23:07:11 DEBUG : fs cache: renaming cache item "c:\path\to\local" to be canonical "//?/c:/path/to/local"
2025/11/30 23:07:12 DEBUG : Added delayed dir = "A Confucian Confusion (1994)", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "A History of Violence (2005)", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Audiobooks", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "DS", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Directors Label", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Documents", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Games", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Mahjong (1996)", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MCT-Config", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Monster (TV 2004)", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "Movies", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI2874e.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI28751.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI418c2.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI41d58.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI41d81.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI41d84.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI41e08.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI41e0b.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI69398.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI6982e.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI6b17b.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI7273b.tmp", newDst=
2025/11/30 23:07:12 DEBUG : Added delayed dir = "MSI72740.tmp", newDst=

pick just one single folder and try to download it.
or better yet, pick just one single file and download it.

2025/11/30 23:42:40 DEBUG : rclone: Version "v1.72.0" starting with parameters ["C:\Users\User\AppData\Local\Microsoft\WinGet\Links\rclone.exe" "copy" "idrive:TGC/BaBV" "c:\path" "-vv" "--dry-run" "--log-file=c:\path\to\dlog.txt"]
2025/11/30 23:42:40 DEBUG : Creating backend with remote "idrive:TGC/BaBV"
2025/11/30 23:42:40 DEBUG : Using config file from "C:\Users\User\AppData\Roaming\rclone\rclone.conf"
2025/11/30 23:42:41 DEBUG : Google drive root 'TGC/BaBV': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/11/30 23:42:43 DEBUG : Creating backend with remote "c:\path"
2025/11/30 23:42:43 DEBUG : fs cache: renaming cache item "c:\path" to be canonical "//?/c:/path"
2025/11/30 23:42:43 DEBUG : Local file system at //?/c:/path: Waiting for checks to finish
2025/11/30 23:42:43 DEBUG : Local file system at //?/c:/path: Waiting for transfers to finish
2025/11/30 23:42:43 INFO : There was nothing to transfer
2025/11/30 23:42:43 NOTICE:
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 0, -, Listed 1
Elapsed time: 0.5s

2025/11/30 23:42:43 DEBUG : 5 go routines active

well, there were no files to copy in that folder

need to copy a file...

According to the previous log file, there are files in the folder, but perhaps they cannot be transferred because they are from the accidentally trashed folder.

ok, then copy one of those files from the trash to local.

or use the gdrive web interface to move the files out of the trash.

2025/12/01 00:15:09 DEBUG : rclone: Version "v1.72.0" starting with parameters ["C:\Users\User\AppData\Local\Microsoft\WinGet\Links\rclone.exe" "copy" "idrive:Movies/Battle Royale (2000)/Featurettes/Filming on Set.mkv" "c:\path" "-vv" "--log-file=c:\path\to\dlog.txt"]
2025/12/01 00:15:09 DEBUG : Creating backend with remote "idrive:Movies/Battle Royale (2000)/Featurettes/Filming on Set.mkv"
2025/12/01 00:15:09 DEBUG : Using config file from "C:\Users\User\AppData\Roaming\rclone\rclone.conf"
2025/12/01 00:15:09 DEBUG : Google drive root 'Movies/Battle Royale (2000)/Featurettes/Filming on Set.mkv': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/12/01 00:15:13 DEBUG : fs cache: renaming child cache item "idrive:Movies/Battle Royale (2000)/Featurettes/Filming on Set.mkv" to be canonical for parent "idrive:Movies/Battle Royale (2000)/Featurettes"
2025/12/01 00:15:13 DEBUG : Creating backend with remote "c:\path"
2025/12/01 00:15:13 DEBUG : fs cache: renaming cache item "c:\path" to be canonical "//?/c:/path"
2025/12/01 00:15:14 DEBUG : Filming on Set.mkv: Need to transfer - File not found at Destination
2025/12/01 00:15:33 DEBUG : Filming on Set.mkv.6c7e7b43.partial: size = 76124827 OK
2025/12/01 00:15:33 DEBUG : Filming on Set.mkv: md5 = 49c42f0ea9f628846004ee0e48ea1626 OK
2025/12/01 00:15:33 DEBUG : Filming on Set.mkv.6c7e7b43.partial: renamed to: Filming on Set.mkv
2025/12/01 00:15:33 INFO : Filming on Set.mkv: Copied (new)
2025/12/01 00:15:33 INFO :
Transferred: 72.598 MiB / 72.598 MiB, 100%, 3.761 MiB/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 19.2s

2025/12/01 00:15:33 DEBUG : 7 go routines active

ok, that worked.

But only this trashed file was able to download. When I try any of the files from the accidentally deleted folder, those return this:

2025/12/01 00:20:50 DEBUG : rclone: Version "v1.72.0" starting with parameters ["C:\Users\User\AppData\Local\Microsoft\WinGet\Links\rclone.exe" "copy" "idrive:The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf" "c:\path" "-vv" "--log-file=c:\path\to\dlog.txt"]
2025/12/01 00:20:50 DEBUG : Creating backend with remote "idrive:The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf"
2025/12/01 00:20:50 DEBUG : Using config file from "C:\Users\User\AppData\Roaming\rclone\rclone.conf"
2025/12/01 00:20:51 DEBUG : Google drive root 'The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf': 'root_folder_id = 0AF2Z4ovewR-YUk9PVA' - save this in the config to speed up startup
2025/12/01 00:20:53 DEBUG : Creating backend with remote "c:\path"
2025/12/01 00:20:53 DEBUG : fs cache: renaming cache item "c:\path" to be canonical "//?/c:/path"
2025/12/01 00:20:53 ERROR : Google drive root 'The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf': error reading source root directory: directory not found
2025/12/01 00:20:53 DEBUG : Local file system at //?/c:/path: Waiting for checks to finish
2025/12/01 00:20:53 DEBUG : Local file system at //?/c:/path: Waiting for transfers to finish
2025/12/01 00:20:54 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2025/12/01 00:20:54 ERROR : Google drive root 'The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf': error reading source root directory: directory not found
2025/12/01 00:20:54 DEBUG : Local file system at //?/c:/path: Waiting for checks to finish
2025/12/01 00:20:54 DEBUG : Local file system at //?/c:/path: Waiting for transfers to finish
2025/12/01 00:20:54 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2025/12/01 00:20:54 ERROR : Google drive root 'The Great Courses/Argumentation - The Study of Effective Reasoning/Argumentation - The Study of Effective Reasoning (Guidebook).pdf': error reading source root directory: directory not found
2025/12/01 00:20:54 DEBUG : Local file system at //?/c:/path: Waiting for checks to finish
2025/12/01 00:20:54 DEBUG : Local file system at //?/c:/path: Waiting for transfers to finish
2025/12/01 00:20:54 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2025/12/01 00:20:54 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Checks: 0 / 0, -, Listed 6
Elapsed time: 1.4s

2025/12/01 00:20:54 DEBUG : 5 go routines active
2025/12/01 00:20:54 NOTICE: Failed to copy: directory not found

here are simple examples of restoring a folder and its file from trash

  1. note: only one remote is required
rclone ls    gdrive,trashed_only: 
        0 zork/file.ext

rclone ls    gdrive: 

rclone copy  gdrive,trashed_only: gdrive: -v 
2025/11/30 14:20:03 INFO  : zork/file.ext: Copied (new)
2025/11/30 14:20:03 INFO  : zork: Set directory modification time (using SetModTime)
2025/11/30 14:20:03 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:                 0 / 0, -, Listed 4
Transferred:            1 / 1, 100%
Elapsed time:         2.5s

rclone ls    gdrive: 
        0 zork/file.ext
  1. note: using two remotes, as per your use-case.
rclone ls     idrive: 
        0 zork/file.ext

rclone ls     mydrive: 

rclone copy   idrive: mydrive: -v 
2025/11/30 14:40:38 INFO  : zork/file.ext: Copied (new)
2025/11/30 14:40:39 INFO  : zork: Set directory modification time (using SetModTime)
2025/11/30 14:40:39 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Checks:                 0 / 0, -, Listed 4
Transferred:            1 / 1, 100%
Elapsed time:         1.7s

rclone ls     mydrive: 
        0 zork/file.ext

  1. note: there might be a third option of rclone backend untrash

Thank you very much! It's a bit funny that I could have run this command at the start, though. We didn't need to go through all that.

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