Hey, has anyone else had an issue where they can't sync because the folder contains files with spaces in the filenames?
I have no idea how to work around this one. I mean, I can't wrap quotes around it, because the problem arises when RClone gets the list of files to be synced...
rclone version
rclone v1.67.0
- os/version: endeavouros (64 bit)
- os/kernel: 6.6.39-1-lts (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.5
- go/linking: dynamic
- go/tags: none
Storage platform:
Backblaze B2
Command:
rclone sync
--metadata
--verbose
--progress
--track-renames
--color ALWAYS
--b2-encoding "Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot,RightSpace,LeftSpace"
--human-readable
~/Audiobooks bblaze:Media/Audiobooks;
Also tried it without verbose
, progress
, track-renames
human-readable
, and without RightSpace,LeftSpace
added to b2-encoding
.
Source content:
ls -R ~/Audiobooks/
/home/nomad/Audiobooks/:
'Count_of_Monte Cristo'/ .stfolder/
'/home/nomad/Audiobooks/Count_of_Monte Cristo':
001-010/ 020-030/ 040-050/ 060-070/ 080-090/ 100-110/ Count_of_Monte_Cristo_1308.jpg
010-020/ 030-040/ 050-060/ 070-080/ 090-100/ 110-117/
'/home/nomad/Audiobooks/Count_of_Monte Cristo/001-010':
countofmontecristo_001_dumas_64kb.mp3 countofmontecristo_005_dumas_64kb.mp3 countofmontecristo_009_dumas_64kb.mp3
countofmontecristo_002_dumas_64kb.mp3 countofmontecristo_006_dumas_64kb.mp3 countofmontecristo_010_dumas_64kb.mp3
countofmontecristo_003_dumas_64kb.mp3 countofmontecristo_007_dumas_64kb.mp3
countofmontecristo_004_dumas_64kb.mp3 countofmontecristo_008_dumas_64kb.mp3
'/home/nomad/Audiobooks/Count_of_Monte Cristo/010-020':
countofmontecristo_011_dumas_64kb.mp3 countofmontecristo_015_dumas_64kb.mp3 countofmontecristo_019_dumas_64kb.mp3
countofmontecristo_012_dumas_64kb.mp3 countofmontecristo_016_dumas_64kb.mp3 countofmontecristo_020_dumas_64kb.mp3
countofmontecristo_013_dumas_64kb.mp3 countofmontecristo_017_dumas_64kb.mp3
countofmontecristo_014_dumas_64kb.mp3 countofmontecristo_018_dumas_64kb.mp3
# yadda yadda you get the idea.
// I tried renaming it, worked, changed it back, broke. It's definitely the space in the file path.
rclone config:
[bblaze]
type = b2
account = XXX
key = XXX
lifecycle = 30
Verbose log:
[nomad][~] $ rclone sync -MvvP --track-renames --color ALWAYS --b2-encoding "Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot,RightSpace,LeftSpace" --human-readable ~/Audiobooks bblaze:Media/Audiobooks;
2024/07/15 13:20:42 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "sync" "-MvvP" "--track-renames" "--color" "ALWAYS" "--b2-encoding" "Slash,BackSlash,Del,Ctl,InvalidUtf8,Dot,RightSpace,LeftSpace" "--human-readable" "/home/nomad/Audiobooks" "bblaze:Media/Audiobooks"]
2024/07/15 13:20:42 DEBUG : Creating backend with remote "/home/nomad/Audiobooks"
2024/07/15 13:20:42 DEBUG : Using config file from "/home/nomad/.config/rclone/rclone.conf"
2024/07/15 13:20:42 DEBUG : Creating backend with remote "bblaze:Media/Audiobooks"
2024/07/15 13:20:42 DEBUG : bblaze: detected overridden config - adding "{4NwYq}" suffix to name
2024/07/15 13:20:43 DEBUG : fs cache: renaming cache item "bblaze:Media/Audiobooks" to be canonical "bblaze{4NwYq}:Media/Audiobooks"
2024/07/15 13:20:43 INFO : B2 bucket Media path Audiobooks: Making map for --track-renames
2024/07/15 13:20:43 INFO : B2 bucket Media path Audiobooks: Finished making map for --track-renames
2024/07/15 13:20:43 DEBUG : B2 bucket Media path Audiobooks: Waiting for checks to finish
2024/07/15 13:20:43 DEBUG : B2 bucket Media path Audiobooks: Waiting for renames to finish
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/Count_of_Monte_Cristo_1308.jpg: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 ERROR : Count_of_Monte Cristo/Count_of_Monte_Cristo_1308.jpg: Failed to copy: failed to create bucket: bucketName must be at least 6 characters long (400 bad_request)
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_071_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_076_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 ERROR : Count_of_Monte Cristo/070-080/countofmontecristo_071_dumas_64kb.mp3: Failed to copy: failed to create bucket: bucketName must be at least 6 characters long (400 bad_request)
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_072_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_074_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_075_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
2024/07/15 13:20:43 ERROR : Count_of_Monte Cristo/070-080/countofmontecristo_076_dumas_64kb.mp3: Failed to copy: failed to create bucket: bucketName must be at least 6 characters long (400 bad_request)
2024/07/15 13:20:43 ERROR : Count_of_Monte Cristo/070-080/countofmontecristo_072_dumas_64kb.mp3: Failed to copy: failed to create bucket: bucketName must be at least 6 characters long (400 bad_request)
2024/07/15 13:20:43 DEBUG : Count_of_Monte Cristo/070-080/countofmontecristo_077_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
# ... repetition redacted.
2024/07/15 13:20:44 DEBUG : Count_of_Monte Cristo/001-010/countofmontecristo_006_dumas_64kb.mp3: Need to transfer - No matching file found at Destination
Transferred: 0 B / 209.795 MiB, 0%, 0 B/s, ETA -
Errors: 13 (retrying may help)
Transferred: 0 / 16, 0%
Elapsed time: 1.4s
Transferring:
* Count_of_Monte Cristo/…sto_041_dumas_64kb.mp3: 0% /15.251Mi, 0/s, -
* Count_of_Monte Cristo/…sto_048_dumas_64kb.mp3: 0% /15.082Mi, 0/s, -
* Count_of_Monte Cristo/…sto_049_dumas_64kb.mp3: 0% /6.170Mi, 0/s, -
* Count_of_Monte Cristo/…sto_050_dumas_64kb.mp3: 0% /11.499Mi, 0/s, -^C^C^C^C
OH by the way it does work as expected if I try synching a different folder that does NOT contain files with spaces in the title.