What is the problem you are having with rclone?
Is it possible to recover files that were deleted from a mount in macOS Finder?
What is your rclone version (output from
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Which cloud storage system are you using? (eg Google Drive)
Google Drive crypt
The command you were trying to run (eg
rclone copy /tmp remote:tmp)
My mount command:
rclone cmount gdrive_crypt: /Users/macgyver/gdrive_mount --buffer-size 128M --vfs-cache-mode full --dir-cache-time 1h --vfs-cache-max-age 3h --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit=2G --log-level INFO --log-file=mylog.txt
You should find deleted files in the gdrive trash if you are using the default setting in the google drive remote. Take a look on the web interface and see if you can see them.
You could also mount with --drive-use-trash temporarily to see the trash - though don't mount with
--vfs-cache-mode full use
--vfs-cache-mode off if you want to try this as it will confuse rclone otherwise. You could mount this on a different directory,
Actually I think this will do the trick:
I believe you can put it into your rclone.conf
[felix@gemini rclone]$ rclone config file
Configuration file is stored at:
Shows you where your file is to modify.
Whew, this seems like it will work great. One question, I tried setting
--drive-server-side-across-configs in both mount commands hoping it would do a server-side move as I move files from trash back to their original locations but it isn't. I set the flag on both mount commands. Is there a way to do this or does it only work usingrclone commands?
Server side moves won't work between mounts I'm afraid.
Probably the easiest way of untrashing stuff is using the
rclone backend untrash command
Untrash files and directories
rclone backend untrash remote: [options] [<arguments>+]
This command untrashes all the files and directories in the directory
passed in recursively.
This takes an optional directory to trash which make this easier to
use via the API.
rclone backend untrash drive:directory
rclone backend -i untrash drive:directory subdir
Use the -i flag to see what would be restored before restoring it.
Thanks! Is it true this won't work yet for crypt? Checking this thread I didn't know if it was available to work on crypt in 1.53.3.
Perfect! Thanks for the quick implementation. I'm running it now on the mount with --drive-trashed-only and it's going nicely, got the same one mounted without --drive-trashed-only and you can see the dir size going down on the one with --drive-trashed-only and going up on the one without --drive-trashed-only.
While it's always better to make sure nothing catastrophic can happen to your data, a way to easily undelete it via rclone is a godsend.
And last tip: ALWAYS check your variables and tes…
rclone backend -i untrash gdrive_crypt:/directory_to_untrash
2021/01/08 15:08:36 Failed to backend: command "untrash" failed: command not found
You'll have to do a bit more work to get it to work with crypt, something like
$ rclone backend encode gdrive_crypt: directory_to_untrash
Then use that random string in the underlying remote which I've assumed is
gdrive:secrets - substitute what it really is!
rclone backend -i untrash gdrive:secrets/ng66h7sg71tdkit192cabn9qjo
Thank you so much for your help! I will aim to never delete something accidentally from a remote again, although this was fun to dig in to
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.