What is the problem you are having with rclone?
When uploading to onedrive I get the error pathIsTooLong. As a solution I want to change the file name encryption to obfuscation.
My question is how this affects the already successfully uploaded files that were uploaded with filename encryption.
- Will this cause problems if I just change the config to obfuscation?
- Can I still access the encrypted filenames?
- Can I also have them changed automatically to obfuscation?
What is your rclone version (output from rclone version
)
rclone v1.45
//Edit: Updated to 1.53.3, Question not affected.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Raspbian 2020-12-02-raspios-buster-armhf-lite
- os/arch: linux/arm
- go version: go1.15.5
Which cloud storage system are you using? (eg Google Drive)
OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy C:\X\X CryptRemote123: -P
The rclone config contents with secrets removed.
[OneDrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = business
[CryptRemote123]
type = crypt
remote = OneDrive:CryptRemote123
filename_encryption = standard
directory_name_encryption = true
password = XXX
password2 = XXX
A log from the command with the -vv
flag
2020/12/17 18:59:28 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020-12-17 18:59:30 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:30 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:30 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:30 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:30 ERROR : Attempt 1/3 failed with 1 errors and: pathIsTooLong: Path is too long
2020-12-17 18:59:30 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:30 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:30 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:31 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:31 ERROR : Attempt 2/3 failed with 1 errors and: pathIsTooLong: Path is too long
2020-12-17 18:59:31 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for checks to finish
2020-12-17 18:59:31 INFO : Encrypted drive 'CryptRemote123:1234/abcdefghijklmnopqrstuvwxyzabcdef/abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw/': Waiting for transfers to finish
2020-12-17 18:59:31 DEBUG : hlkjvvdekmdks6i8gteli7mou2olp23i58vi5nlhc83hon3rfe7l79a8r3vdfvcktn38pp8a99krorr7hvia651so09lat8bo981n0e7i0jl6tubre2lbarng6q0v4g1: Starting multipart upload
2020-12-17 18:59:31 ERROR : abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw.mkv: Failed to copy: pathIsTooLong: Path is too long
2020-12-17 18:59:31 ERROR : Attempt 3/3 failed with 1 errors and: pathIsTooLong: Path is too long
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 3.3s
2020/12/17 18:59:31 Failed to copy: pathIsTooLong: Path is too long