# Revert filename encryption method

**URL:** <https://forum.rclone.org/t/revert-filename-encryption-method/17454>\
**Category:** Help and Support\
**Created:** [June 26, 2020, 4:50am UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454 "2020-06-26T04:50:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckyluke](https://forum.rclone.org/user_avatar/forum.rclone.org/luckyluke/32/5288_2.png) [@luckyluke](https://forum.rclone.org/u/luckyluke)\
**Post date:** [June 26, 2020, 4:50am UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/1 "2020-06-26T04:50:44Z")

</div>

Same question as [Revert standard filename encryption to simple obfuscated](https://forum.rclone.org/t/revert-standard-filename-encryption-to-simple-obfuscated/9899). But I did not find a solution so far.

od:--onedrive  
ods: --encrypted onedrive(standard)

I found I cannot upload some of my files to ods:.  
I tested serveral times and found the encrypted filename under standard method is too long for onedrive. So I decide to use the obfuscate method.  
To keep the consistency, I need the files on drive with the same filename encryption method.

I setup a new remote with the same encryption password.  
ods2:--encryted onedrive(obfuscate)  
I tested the command

`rclone move ods: ods2 -vv --dry-run`  
And the output tells all files are RENAMED.

```auto

2020/06/26 06:52:34 INFO : There was nothing to transfer
2020/06/26 06:52:34 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 13093 / 13093, 100%
Renamed: 13093
Elapsed time: 1.5s

2020/06/26 06:52:34 DEBUG : 5 go routines active

```

But when I run the command directly, the output shows rclone is downloading to local and then uploading.

Is there a way just to rename the files on drive without downloading?

I have enabled server side across configs

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 26, 2020, 10:28am UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/2 "2020-06-26T10:28:39Z")

</div>

> [@luckyluke](#):
>
> I have enabled server side across configs

Can you paste your config without secrets/tokens so we can check it looks OK?

I think what you are doing sounds correct, I can't think why it doesn't work.

Can you do a small transfer with `-vv` and paste the log?

---

<div class="post-metadata">

**Author:** ![luckyluke](https://forum.rclone.org/user_avatar/forum.rclone.org/luckyluke/32/5288_2.png) [@luckyluke](https://forum.rclone.org/u/luckyluke)\
**Post date:** [June 26, 2020, 3:16pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/3 "2020-06-26T15:16:18Z")

</div>

It's gdrive. Sorry for the mistake. The problem still occurs.

Config file as followed:  
[gd]  
type = drive  
client\_id = **[HIDDEN]**  
client\_secret = **[HIDDEN]**  
scope = drive  
service\_account\_file =  
token = **[HIDDEN]**  
server\_side\_across\_configs = true  
shared\_with\_me = false  
acknowledge\_abuse = true  
root\_folder\_id = 0AP44J\_**[HIDDEN]**

[gds]  
type = crypt  
remote = gd:crypt  
filename\_encryption = standard  
directory\_name\_encryption = false  
password = 3B36AvCLLUZ **[HIDDEN]**

[gds2]  
type = crypt  
remote = gd:crypt2  
filename\_encryption = obfuscate  
directory\_name\_encryption = false  
password = HuBKAjs6mbH **[HIDDEN]**

This is the output with --dry-run:  
This time I used another VPS with Ubuntu (Archlinux as former). The output seems a litte different.

```auto
2020/06/26 08:07:34 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 15349 / 15349, 100%
Transferred: 0 / 0, -
Elapsed time: 2.1s

2020/06/26 08:07:34 DEBUG : 5 go routines active
2020/06/26 08:07:34 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "move" "gds:folder_A" "gds2:folder_A" "-vv" "--dry-run"]

```

This is output without --dry-run:

```auto
2020/06/26 08:10:25 DEBUG : [***FILENAME1***]: Sending chunk 0 length 8388608
2020/06/26 08:10:25 DEBUG : [***FILENAME2***]: Sending chunk 0 length 8388608
.
.
.

```

---

<div class="post-metadata">

**Author:** ![luckyluke](https://forum.rclone.org/user_avatar/forum.rclone.org/luckyluke/32/5288_2.png) [@luckyluke](https://forum.rclone.org/u/luckyluke)\
**Post date:** [June 26, 2020, 3:45pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/4 "2020-06-26T15:45:25Z")

</div>

More test result as below:

1. Initial upload:

```auto
 rclone copy testdir gds:testdir -vv
2020/06/26 08:43:28 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "copy" "testdir" "gds:testdir" "-vv"]
2020/06/26 08:43:28 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/06/26 08:43:32 INFO : Encrypted drive 'gds:testdir': Waiting for checks to finish
2020/06/26 08:43:32 INFO : Encrypted drive 'gds:testdir': Waiting for transfers to finish
2020/06/26 08:43:34 DEBUG : gpab3sfh8frq9l0tf3r8kutha7548iatopemoa46n9qhgd6b232g: Sending chunk 0 length 8388608
2020/06/26 08:43:34 DEBUG : qj4bmjjhougp3f0ah7e4ljlofpp7664nhpt3l2921kl3fj8gq0o0: Sending chunk 0 length 8388608
2020/06/26 08:43:35 DEBUG : gpab3sfh8frq9l0tf3r8kutha7548iatopemoa46n9qhgd6b232g: Sending chunk 8388608 length 5278325
2020/06/26 08:43:35 DEBUG : jbmk4m5m8ptf78rpngub70evlscg60itlqg7b9abhbttqmp02jvg: Sending chunk 0 length 8388608
2020/06/26 08:43:35 DEBUG : qj4bmjjhougp3f0ah7e4ljlofpp7664nhpt3l2921kl3fj8gq0o0: Sending chunk 8388608 length 4454842
2020/06/26 08:43:35 DEBUG : jbmk4m5m8ptf78rpngub70evlscg60itlqg7b9abhbttqmp02jvg: Sending chunk 8388608 length 4084464
2020/06/26 08:43:36 DEBUG : 7ng6kidsdohnvukb1gn5nc9mn40m48ttp1v6dlfpc3bclvtaj1e9idq7is5l1frvais071e1nbhmc: Sending chunk 0 length 8388608
2020/06/26 08:43:36 DEBUG : 7ng6kidsdohnvukb1gn5nc9mn40m48ttp1v6dlfpc3bclvtaj1e9idq7is5l1frvais071e1nbhmc: Sending chunk 8388608 length 4903856
2020/06/26 08:43:38 INFO : rclone-v1.52.2-windows-386.zip: Copied (new)
2020/06/26 08:43:39 INFO : rclone-v1.52.2-linux-amd64.zip: Copied (new)
2020/06/26 08:43:39 INFO : rclone-v1.52.2-linux-386.zip: Copied (new)
2020/06/26 08:43:40 INFO : rclone-v1.52.2-windows-amd64.zip: Copied (new)
2020/06/26 08:43:40 INFO :
Transferred: 49.854M / 49.854 MBytes, 100%, 6.195 MBytes/s, ETA 0s
Errors: 0
Checks: 0 / 0, -
Transferred: 4 / 4, 100%
Elapsed time: 8s

2020/06/26 08:43:40 DEBUG : 13 go routines active
2020/06/26 08:43:40 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "copy" "testdir" "gds:testdir" "-vv"]

```

1. Test with dry-run

```auto
rclone move gds:testdir gds2:testdir -vv --dry-run
2020/06/26 08:43:47 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "move" "gds:testdir" "gds2:testdir" "-vv" "--dry-run"]
2020/06/26 08:43:47 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/06/26 08:43:54 NOTICE: rclone-v1.52.2-linux-amd64.zip: Not moving as --dry-run
2020/06/26 08:43:54 NOTICE: rclone-v1.52.2-windows-386.zip: Not moving as --dry-run
2020/06/26 08:43:54 NOTICE: rclone-v1.52.2-windows-amd64.zip: Not moving as --dry-run
2020/06/26 08:43:54 INFO : Encrypted drive 'gds2:testdir': Waiting for checks to finish
2020/06/26 08:43:54 INFO : Encrypted drive 'gds2:testdir': Waiting for transfers to finish
2020/06/26 08:43:54 NOTICE: rclone-v1.52.2-linux-386.zip: Not moving as --dry-run
2020/06/26 08:43:54 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 4 / 4, 100%
Transferred: 0 / 0, -
Elapsed time: 0s

2020/06/26 08:43:54 DEBUG : 11 go routines active
2020/06/26 08:43:54 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "move" "gds:testdir" "gds2:testdir" "-vv" "--dry-run"]

```

1. Then move between configs:

```auto
rclone move gds:testdir gds2:testdir -vv
2020/06/26 08:44:13 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "move" "gds:testdir" "gds2:testdir" "-vv"]
2020/06/26 08:44:13 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/06/26 08:44:19 INFO : Encrypted drive 'gds2:testdir': Waiting for checks to finish
2020/06/26 08:44:19 INFO : Encrypted drive 'gds2:testdir': Waiting for transfers to finish
2020/06/26 08:44:23 DEBUG : 248.JuDGFw-N8.29.9-DAFMP-053.RAH: Sending chunk 0 length 8388608
2020/06/26 08:44:23 DEBUG : 243.EpyBAr-I3.74.4-yvAHK-nzq86.MvC: Sending chunk 0 length 8388608
2020/06/26 08:44:23 DEBUG : 206.sdmpof-w2.63.3-xjoepxt-bne75.Ajq: Sending chunk 0 length 8388608
2020/06/26 08:44:23 DEBUG : 211.xirutk-B7.18.8-CotjuCy-942.Fov: Sending chunk 0 length 8388608
2020/06/26 08:44:23 DEBUG : 248.JuDGFw-N8.29.9-DAFMP-053.RAH: Sending chunk 8388608 length 4454842
2020/06/26 08:44:23 DEBUG : 243.EpyBAr-I3.74.4-yvAHK-nzq86.MvC: Sending chunk 8388608 length 5278325
2020/06/26 08:44:24 DEBUG : 211.xirutk-B7.18.8-CotjuCy-942.Fov: Sending chunk 8388608 length 4084464
2020/06/26 08:44:24 DEBUG : 206.sdmpof-w2.63.3-xjoepxt-bne75.Ajq: Sending chunk 8388608 length 4903856
2020/06/26 08:44:25 INFO : rclone-v1.52.2-linux-386.zip: Copied (new)
2020/06/26 08:44:25 INFO : rclone-v1.52.2-linux-amd64.zip: Copied (new)
2020/06/26 08:44:26 INFO : rclone-v1.52.2-windows-386.zip: Copied (new)
2020/06/26 08:44:26 INFO : rclone-v1.52.2-linux-386.zip: Deleted
2020/06/26 08:44:26 INFO : rclone-v1.52.2-windows-amd64.zip: Copied (new)
2020/06/26 08:44:26 INFO : rclone-v1.52.2-windows-386.zip: Deleted
2020/06/26 08:44:27 INFO : rclone-v1.52.2-linux-amd64.zip: Deleted
2020/06/26 08:44:27 INFO : rclone-v1.52.2-windows-amd64.zip: Deleted
2020/06/26 08:44:27 INFO :
Transferred: 49.854M / 49.854 MBytes, 100%, 6.052 MBytes/s, ETA 0s
Errors: 0
Checks: 8 / 8, 100%
Transferred: 4 / 4, 100%
Elapsed time: 8.2s

2020/06/26 08:44:27 DEBUG : 23 go routines active
2020/06/26 08:44:27 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "move" "gds:testdir" "gds2:testdir" "-vv"]

```

---

<div class="post-metadata">

**Author:** ![luckyluke](https://forum.rclone.org/user_avatar/forum.rclone.org/luckyluke/32/5288_2.png) [@luckyluke](https://forum.rclone.org/u/luckyluke)\
**Post date:** [June 26, 2020, 3:53pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/5 "2020-06-26T15:53:51Z")

</div>

@ncw test log posted.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 27, 2020, 10:43am UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/6 "2020-06-27T10:43:09Z")

</div>

Ahh, I see what is going on.

This adds a new flag --crypt-server-side-across-configs - I think if you use that then it should work properly.

[https://beta.rclone.org/branch/v1.52.2-136-g61ff7306-fix-crypt-server-side-beta/](https://beta.rclone.org/branch/v1.52.2-136-g61ff7306-fix-crypt-server-side-beta/) (uploaded in 15-30 mins)

---

<div class="post-metadata">

**Author:** ![luckyluke](https://forum.rclone.org/user_avatar/forum.rclone.org/luckyluke/32/5288_2.png) [@luckyluke](https://forum.rclone.org/u/luckyluke)\
**Post date:** [June 27, 2020, 2:26pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/7 "2020-06-27T14:26:45Z")

</div>

Works well till now.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 28, 2020, 4:38pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/8 "2020-06-28T16:38:40Z")

</div>

Thanks for testing. I've merged this to master now which means it will be in [the latest beta](https://beta.rclone.org) in 15-30 mins and released in v1.53

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [July 1, 2020, 4:38pm UTC](https://forum.rclone.org/t/revert-filename-encryption-method/17454/9 "2020-07-01T16:38:40Z")

</div>

Closed on July 1, 2020, 4:38pm UTC

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