Sync from MacOS files Dropbox to local folder - how to deal with special characters

What is the problem you are having with rclone?

I am trying to using rclone sync to sync files originating in MacOS from Dropbox to a local folder on Raspberry PI. However some of the original file names contain characters such as / or * . These files are not synced. How can I sync these files

Run the command 'rclone version' and share the full output of the command.

rclone v1.68.1

  • os/version: raspbian 12.7 (64 bit)
  • os/kernel: 6.6.51+rpt-rpi-v8 (aarch64)
  • os/type: linux
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.23.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync dropbox:/Test/ /media/iain/DATA/Test/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[dropbox]
type = dropbox
token = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/11/05 15:52:03 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "sync" "dropbox:/Test/" "/media/iain/DATA/Test/" "-vv"]
2024/11/05 15:52:03 DEBUG : Creating backend with remote "dropbox:/Test/"
2024/11/05 15:52:03 DEBUG : Using config file from "/home/iain/.config/rclone/rclone.conf"
2024/11/05 15:52:03 DEBUG : Dropbox root '': Using root namespace "14490682"
2024/11/05 15:52:04 DEBUG : fs cache: renaming cache item "dropbox:/Test/" to be canonical "dropbox:Test"
2024/11/05 15:52:04 DEBUG : Creating backend with remote "/media/iain/DATA/Test/"
2024/11/05 15:52:04 DEBUG : fs cache: renaming cache item "/media/iain/DATA/Test/" to be canonical "/media/iain/DATA/Test"
2024/11/05 15:52:04 DEBUG : po*ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:04 DEBUG : po<ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:04 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for checks to finish
2024/11/05 15:52:04 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for transfers to finish
2024/11/05 15:52:04 ERROR : po*ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po*ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:05 ERROR : po<ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:05 ERROR : Local file system at /media/iain/DATA/Test: not deleting files as there were IO errors
2024/11/05 15:52:05 ERROR : Local file system at /media/iain/DATA/Test: not deleting directories as there were IO errors
2024/11/05 15:52:05 ERROR : Attempt 1/3 failed with 2 errors and: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:05 DEBUG : po*ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:05 DEBUG : po<ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:05 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for checks to finish
2024/11/05 15:52:05 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for transfers to finish
2024/11/05 15:52:06 ERROR : po<ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:06 ERROR : po*ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po*ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:06 ERROR : Local file system at /media/iain/DATA/Test: not deleting files as there were IO errors
2024/11/05 15:52:06 ERROR : Local file system at /media/iain/DATA/Test: not deleting directories as there were IO errors
2024/11/05 15:52:06 ERROR : Attempt 2/3 failed with 2 errors and: open /media/iain/DATA/Test/po*ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:06 DEBUG : po*ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:06 DEBUG : po<ppy.jpg: Need to transfer - File not found at Destination
2024/11/05 15:52:06 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for checks to finish
2024/11/05 15:52:06 DEBUG : Local file system at /media/iain/DATA/Test: Waiting for transfers to finish
2024/11/05 15:52:07 ERROR : po*ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po*ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:07 ERROR : po<ppy.jpg: Failed to copy: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:07 ERROR : Local file system at /media/iain/DATA/Test: not deleting files as there were IO errors
2024/11/05 15:52:07 ERROR : Local file system at /media/iain/DATA/Test: not deleting directories as there were IO errors
2024/11/05 15:52:07 ERROR : Attempt 3/3 failed with 2 errors and: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument
2024/11/05 15:52:07 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 2 (retrying may help)
Elapsed time:         4.3s

2024/11/05 15:52:07 DEBUG : 9 go routines active
2024/11/05 15:52:07 INFO  : Dropbox root 'Test': Committing uploads - please wait...
2024/11/05 15:52:07 NOTICE: Failed to sync with 2 errors: last error was: open /media/iain/DATA/Test/po<ppy.jpg.52ce18cf.partial: invalid argument

welcome to the forum,

https://rclone.org/local/#local-encoding
the default for local is Slash,Dot

for testing, rclone copy on a single file with an asterisk character
and try --local-encoding=Slash,Dot,Asterisk

Thank you. I have experimented with other characters as well. All works as expected now.

ok, good​​​​