After uploading a few TBs to a crypt remote, I learned that I should have set password2 and also used a better filename_encoding than default (from default base32 to base32768).
So I created a new crypt remote with the better configs and started moving my data. It went without warnings, supposedly fine, but gladly I tested opening a file from new remote to check if it was OK, because it wasn't. Files are corrupted.
Thinking about what happened, I guess this is expected because by using --server-side-across-configs the server only re-encodes filename, not re-encrypt file data.
But what worried me was that I saw no warning or error. If my understanding is correct, this could cause important issues like even data loss if user doesn't have a proper backup.
Then I tried moving back the files from new remote to old remote and they are still readable in old remote.
So I'm wondering if rclone should warn users that --server-side-across-configs breaks everything when moving/coping across different crypt remotes, of even discard this option in this case unless password is the same for both remote (supposing this would produce identical files, I don't know).
Run the command 'rclone version' and share the full output of the command.
You are right that --server-side-across-configs can break stuff when using crypt with two different configs.
That kind of thing is the reason it isn't the default.
However people do use this for copying between different crypts to change the filename encoding so I can't disable it completely.
I guess the crypt remote could do a check in its Copy / Move / MoveDir routines before it passes the operation down the chain to the actual backend.
I guess it would need to check that the data is encrypted the same, so these parameters would need to be the same in order for it to allow the server side copy:
--crypt-no-data-encryption Option to either encrypt file data or leave it unencrypted
--crypt-password string Password or pass phrase for encryption (obscured)
--crypt-password2 string Password or pass phrase for salt (obscured)
Does that sound right to you?
If so please open a new issue on Github about this - thank you! (Can you put a link to the forum post in).
Sometimes rclone sets --server-side-across-configs automatically, right? Yesterday I ran a rclone copy without this option, with the same remote in source and dest, and it was done very quickly due to Server Side Copies.