I am using gsutil combined with the "rsync" command to upload a business critical files to google storage as a backup. Unfortunately most of the archives and filenames are Greek for example "αντιγραφο.txt". On english files, rsync is ok, but when gsutil tries to sync greek files, it encounters an exception.
The command is:
gsutil -m rsync -d -r H:\Test gs://myserver.com/data
Building synchronization state...
Caught non-retryable exception while listing file://H:\Test: CommandException: Invalid Unicode path encountered
('H:\Test\\xe1\xed\xf4\xe9\xe3\xf1\xe1\xf6\xef (1).txt'). gsutil
cannot proceed with such files present. Please remove or rename this
file and try again. NOTE: the path printed above replaces the
problematic characters with a hex-encoded printable representation.
For more details (including how to convert to a gsutil-compatible
encoding) see gsutil help encoding
.
CommandException: Caught non-retryable exception - aborting rsync
I tried to convert the filenames to UTF-8 but I can't find anything that works on my windows cmd. I've searched many sites for iconv native2asciii but I can't locate something useful. The server is Windows 2012 so I cannot use "convmv" to convert filenames to UTF-8.Is there another way to convert all filenames to utf8 in an automated manner before I upload the to the cloud? The archive is 600GB so i can't just zip it and send it, i also want this to run automaticaly through task scheduler.
Thank you very much!