Copy on a crypt mount downloads and uploads the files

What is the problem you are having with rclone?

I have a crypt remote that uses a google drive remote. If I do an rclone mount,

rclone -vvv mount --allow-other GDrive-crypt:/ ./00-ENCRYPTED_MOUNT/

When I move a file, it moves it "instantly". If I do a copy, it takes a while.

After mounting, I'm doing,

mkdir new-folder
cp some-folder/ new-folder/

Looking, I see a lot of transfers and lots of offsets being mentioned on it on the output.

Looking at Overview of cloud storage systems
Google drive supports copy

Looking at

https://rclone.org/commands/rclone_cryptdecode/
https://rclone.org/crypt/#crypt-show-mapping
https://rclone.org/crypt/#backend-commands

It looks like all the pieces are there. Move works, so I'm not sure what it could be.

What is your rclone version (output from rclone version)

$ rclone --version
rclone v1.57.0
- os/version: unknown
- os/kernel: 4.4.59+ (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Crypt on top of Google Drive.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone -vvv mount --allow-other GDrive-crypt:/ ./00-ENCRYPTED_MOUNT/

The rclone config contents with secrets removed.

[GDrive]
type = drive
scope = drive
token = 
root_folder_id =
client_id = 
client_secret = 

[GDrive-crypt]
type = crypt
remote = GDrive:/Encrypted
filename_encryption = standard
directory_name_encryption = true
password =
password2 =

A log from the command with the -vv flag

Here I add a new directory, mkdir test and then do a cp -r test-data/ test/

There's multiple files, I stopped it a bit after it started.
With bmon running, I also see the traffic go up

The move happens server side so no upload is needed.

If I'm not mistaken, I don't think a mount can do server side copies which you are wanting (I think) and it just does a copy.

If you want to copy, you'd find it easier to do that via the remote via rclone copy to the remote directly.

You'll still get the normal 750GB upload limit though as well.

Interesting. Do you by any chance know why?

It's a lot of files that I'm trying to move around and organize. I might need to rethink this. See if maybe downloading the directory, organizing and reuploading is an alternative. Or maybe come up with a way to issue a bunch of copy/move commands

I do not know specifically why offhand.

You should be able to rename/move all server side without much issue.

I'd probably guess it's not as simple as you or I would think.

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