What is the problem you are having with rclone?
**What I am really trying to do **: I am backing up a crypt remote to another with identical passwords but (a) I need to use filters and (b) I don't want it to rencrypt (breaks some later deduplication). Trying to see if --crypt-server-side-across-configs
would work for me but in testing, I hit what I think is a bug (or user error)
What I am talking about here: Simple test to play and understand. I created a two crypt remotes with the same password and tried to copy with --crypt-server-side-across-configs
. It does not seem to work.
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: darwin 13.4 (64 bit)
- os/kernel: 22.5.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.20.2
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
crypt with local and webdav to test
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
I've tried a few different permutations but
rclone copy cA: cB: --crypt-server-side-across-configs -vv
was my main test but then I thought that maybe it didn't like that I didn't change name encryption type so I did it again.
rclone copy cA: cB: --crypt-server-side-across-configs -vv
I tested both with local and then again webDAV. I thought that maybe an issue with local and server-side copy. (the WebDAV server is also rclone but that is not important)
Finally, I had the thought that maybe it was that I was doing a copy and not a move. The documentation doesn't say anything about that but it talks about name changes.
rclone move cA: cB: --crypt-server-side-across-configs -vv
rclone move cA: cC: --crypt-server-side-across-configs -vv
The rclone config contents with secrets removed.
[base]
type = webdav
url = http://127.0.0.1:8080
vendor = other
[base1]
type = alias
remote = /Users/***/rclone_play/
[cA]
type = crypt
remote = base:A
password = o-z8EnU6EoXfxtPtQGJbReVYnQ
password2 = mEkC41K1u3NjXGyHOuXVLd96LA
[cB]
type = crypt
remote = base:B
password = o-z8EnU6EoXfxtPtQGJbReVYnQ
password2 = mEkC41K1u3NjXGyHOuXVLd96LA
[cC]
type = crypt
remote = base:C
filename_encryption = off
directory_name_encryption = false
password = o-z8EnU6EoXfxtPtQGJbReVYnQ
password2 = mEkC41K1u3NjXGyHOuXVLd96LA
A log from the command with the -vv
flag
2023/06/10 11:05:28 DEBUG : Setting --config "/Users/***/rclone_play/config.cfg" from environment variable RCLONE_CONFIG="/Users/***/rclone_play/config.cfg"
2023/06/10 11:05:28 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "copy" "cA:" "cC:" "--crypt-server-side-across-configs" "-vv"]
2023/06/10 11:05:28 DEBUG : Creating backend with remote "cA:"
2023/06/10 11:05:28 DEBUG : Using config file from "/Users/***/rclone_play/config.cfg"
2023/06/10 11:05:28 DEBUG : cA: detected overridden config - adding "{Db_Y9}" suffix to name
2023/06/10 11:05:28 DEBUG : Creating backend with remote "base:A"
2023/06/10 11:05:28 DEBUG : found headers:
2023/06/10 11:05:28 DEBUG : fs cache: renaming cache item "cA:" to be canonical "cA{Db_Y9}:"
2023/06/10 11:05:28 DEBUG : Creating backend with remote "cC:"
2023/06/10 11:05:28 DEBUG : cC: detected overridden config - adding "{Db_Y9}" suffix to name
2023/06/10 11:05:28 DEBUG : Creating backend with remote "base:C"
2023/06/10 11:05:28 DEBUG : found headers:
2023/06/10 11:05:28 DEBUG : fs cache: renaming cache item "cC:" to be canonical "cC{Db_Y9}:"
2023/06/10 11:05:28 DEBUG : Encrypted drive 'cC{Db_Y9}:': Waiting for checks to finish
2023/06/10 11:05:28 DEBUG : testfile.txt: Sizes identical
2023/06/10 11:05:28 DEBUG : testfile.txt: Unchanged skipping
2023/06/10 11:05:28 DEBUG : Encrypted drive 'cC{Db_Y9}:': Waiting for transfers to finish
2023/06/10 11:05:28 INFO : There was nothing to transfer
2023/06/10 11:05:28 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 0.1s
2023/06/10 11:05:28 DEBUG : 7 go routines active
Am I missing something? I think I am using this properly but I could be wrong
Additional Question (or Feature Request)
It would be great, once this is figured out, if --crypt-server-side-across-configs
worked across any two identical-passwords crypt remotes. So you could do a backup with filtering and not re-encrypt.