How can I upload to Google Drive and cache on a external drive?

What is the problem you are having with rclone?

Hey all! I am attempting to use rclone copy to copy files from my external drive (D:) to my encrypted google drive (TEST:).

In total, the files I am trying to upload are about 25 GB, and when copying, it seems rclone is caching the files I am trying to upload to C:\Users\UserNameHere\AppData\Local\rclone. This would be okay if I had space on my local disk drive (C:) but I unfortunately don't.

As a result, I was wondering if there's any way for me to change the cache location to another external drive of mine (E:)? I tried looking at rclone mount, but since this is for mounting, I don't think it'd apply to me (since I'm copying), either way I tried using the command "rclone copy D: TEST: --cache-dir E:", but unluckily for me, rclone would still cache the files I tried to upload to my local disk drive (C:). I simply need to upload files to my encrypted google drive and be able to download them to access them later, so I have a couple of questions.
#1 - Is it possible for me to directly upload from my external drive (D:) to my encrypted google drive (TEST:), without ever using up my local disk's/external drive's space (I believe this has to do with cache)?
#2 - If #1 isn't possible, how would I directly upload from my external drive (D:) to my encrypted google drive (TEST:), and have the cache be stored on another external drive of mine (E:)?

What is your rclone version (output from rclone version)

rclone v1.55.0
os/type: windows
os/arch: amd64 go/version: go1.16.2
go/linking: dynamic
go/tags: cmount

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

I am running Windows 10 with 64 bits

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

I am using Google Drive as my cloud storage system

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

rclone copy D: TEST: --cache-dir E:\

The rclone config contents with secrets removed.

[TEST]
type = crypt
remote = URSA2:
filename_encryption = standard
directory_name_encryption = true
password = 
password2 =

A log from the command with the -vv flag

2021/04/10 16:28:04 DEBUG : Using config file from "C:\\Users\\UserNameHere\\Desktop\\rclone-v1.55.0-windows-amd64.zip\\rclone.conf"
2021/04/10 16:28:04 DEBUG : rclone: Version "v1.55.0" starting with parameters ["rclone" "copy" "D:" "TEST:" "--cache-dir" "E:\\" "-vv"]
2021/04/10 16:28:04 DEBUG : Creating backend with remote "D:"
2021/04/10 16:28:04 DEBUG : fs cache: renaming cache item "D:" to be canonical "//?/D:/"
2021/04/10 16:28:04 DEBUG : Creating backend with remote "TEST:"
2021/04/10 16:28:04 DEBUG : Creating backend with remote "URSA2:"
2021/04/10 16:28:04 DEBUG : ob20k7egpsgg8d19gupgb8elss: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : 2tikj0rr14r0kqbea4m5qgp95o3u54odr7ubfvmbbo13tah08dpg: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : 2tikj0rr14r0kqbea4m5qgp95o3u54odr7ubfvmbbo13tah08dpg: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : ob20k7egpsgg8d19gupgb8elss: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : ispdlejjfhmimehgj1sruvi4ro: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : fglt71htnbgfss9jln1mq0lsbo: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : dota80b7656nslutvslikse3s0: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : gfcld9irffahi25hlg0eio1260: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : khe9frqilsji7q2afrhnadplc8: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : a8s6ah9vq29k72974hsm4uov64: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : gq6d5cl5osca7ilm5fbnjsk3ns: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : g604kti6hcgned91pn74p1abl4: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : punfb05906vdu6sfj9tg6f316o: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : j1n2hs1d1u61preh8llp05m654: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : iac00n495q92k7ki800cdggrh8: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : 94fbidratb1jihq784phijnq7o: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : 10ilbuhpldu9ret9679ig00sqs: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2021/04/10 16:28:04 DEBUG : URSA2: Skipping undecryptable file name: illegal base32 data at input byte 0
2021/04/10 16:28:05 DEBUG : Rausa/.Sosa/.nomedia: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:05 DEBUG : Rausa/.Sosa/.nomedia: Unchanged skipping
2021/04/10 16:28:05 DEBUG : Rausa/.Sosa/.database_uuid: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:05 DEBUG : Rausa/.Sosa/.database_uuid: Unchanged skipping
2021/04/10 16:28:06 DEBUG : System Volume Information/IndexerVolumeGuid: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:06 DEBUG : System Volume Information/IndexerVolumeGuid: Unchanged skipping
2021/04/10 16:28:06 DEBUG : System Volume Information/WPSettings.dat: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:06 DEBUG : System Volume Information/WPSettings.dat: Unchanged skipping
2021/04/10 16:28:07 DEBUG : Dosa/.Sosa/.nomedia: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:07 DEBUG : Dosa/.Sosa/.nomedia: Unchanged skipping
2021/04/10 16:28:07 DEBUG : Dosa/.Sosa/.database_uuid: Size and modification time the same (differ by 0s, within tolerance 1ms)
2021/04/10 16:28:07 DEBUG : Dosa/.Sosa/.database_uuid: Unchanged skipping

Sorry for the lack of a log, if I let rclone run for too long it'll use up all of my local disk space.

Any help would be much appreciated, thanks!

If you are using

rclone copy D: TEST:

Then it shouldn't be using any cache directory at all.

You don't appear to have a definition for the backend URSA2? Can you show the (redacted) config for that? My guess is that somehow that is pointing to the local disk.

Thank you for your reply ncw!

I apologize for my stupidity, it turns out that rclone had no effect on my local disk's space. I had just checked the space of my local disk and noticed it had been going down even though rclone wasn't in usage.

My bad, thank you again!

1 Like

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