Hello everyone I am syncing files onto my drive on Raspberry Pi OS (Debian Distribution) using rclone. I am getting a lot of ERRORs saying mdir: invalid argument when the source folder contains "/", ":" or "?" or other specialities. I know that these are probably invalid characters for Linux directories but even after reading the docs its not clear to me what I would do in such a case. I prefer not to rename the source folders and I would be okay if those characters are replaced with something else in the destination directory.
rclone v1.53.3-DEV
os/arch: linux/arm64
go version: go1.15.9
Which cloud storage system are you using?
Google Drive
The command you were trying to run
rclone sync GDrive:Music Music -v
How would I formulate this command in a way all directories are successfully created in the destination even when invalid characters are included such as "/", ":" or "?" ...
A log error example from the command with the -v flag
ERROR : Eartheater/Phoenix: Flames Are Dew Upon My Skin/10. Eartheater - Goodbye Diamond.flac: Failed to copy: mkdir /media/chris/T7/Music/Eartheater/Phoenix: Flames Are Dew Upon My Skin: invalid argument
I realized that this is only happening on my external SSD that is connected to the raspberry pi. If I run the same command inside my linux home folder it runs without issues
chris@raspberrypi:/media/chris/T7 $ rclone sync GDrive:Books Books -vv
2023/03/08 21:02:16 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "sync" "GDrive:Books" "Books" "-vv"]
2023/03/08 21:02:16 DEBUG : Creating backend with remote "GDrive:Books"
2023/03/08 21:02:16 DEBUG : Using config file from "/home/chris/.config/rclone/rclone.conf"
2023/03/08 21:02:16 DEBUG : Google drive root 'Books': 'root_folder_id = 0ACFW6UbMtMimUk9PVA' - save this in the config to speed up startup
2023/03/08 21:02:16 DEBUG : Creating backend with remote "Books"
2023/03/08 21:02:16 DEBUG : fs cache: renaming cache item "Books" to be canonical "/media/chris/T7/Books"
2023/03/08 21:02:17 DEBUG : Local file system at /media/chris/T7/Books: Waiting for checks to finish
2023/03/08 21:02:17 DEBUG : Local file system at /media/chris/T7/Books: Waiting for transfers to finish
2023/03/08 21:02:22 ERROR : 2013/Books: 2013/tumblr.zip: Failed to copy: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:22 ERROR : Local file system at /media/chris/T7/Books: not deleting files as there were IO errors
2023/03/08 21:02:22 ERROR : Local file system at /media/chris/T7/Books: not deleting directories as there were IO errors
2023/03/08 21:02:22 ERROR : Attempt 1/3 failed with 1 errors and: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:23 DEBUG : Local file system at /media/chris/T7/Books: Waiting for checks to finish
2023/03/08 21:02:23 DEBUG : Local file system at /media/chris/T7/Books: Waiting for transfers to finish
2023/03/08 21:02:28 ERROR : 2013/Books: 2013/tumblr.zip: Failed to copy: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:28 ERROR : Local file system at /media/chris/T7/Books: not deleting files as there were IO errors
2023/03/08 21:02:28 ERROR : Local file system at /media/chris/T7/Books: not deleting directories as there were IO errors
2023/03/08 21:02:28 ERROR : Attempt 2/3 failed with 1 errors and: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:29 DEBUG : Local file system at /media/chris/T7/Books: Waiting for checks to finish
2023/03/08 21:02:29 DEBUG : Local file system at /media/chris/T7/Books: Waiting for transfers to finish
2023/03/08 21:02:30 ERROR : 2013/Books: 2013/tumblr.zip: Failed to copy: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:30 ERROR : Local file system at /media/chris/T7/Books: not deleting files as there were IO errors
2023/03/08 21:02:30 ERROR : Local file system at /media/chris/T7/Books: not deleting directories as there were IO errors
2023/03/08 21:02:30 ERROR : Attempt 3/3 failed with 1 errors and: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument
2023/03/08 21:02:30 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 14.0s
2023/03/08 21:02:30 DEBUG : 3 go routines active
2023/03/08 21:02:30 Failed to sync: mkdir /media/chris/T7/Books/2013/Books: 2013: invalid argument