Rsync from Windows share to FreeNAS

Status
Not open for further replies.

IanPractichem

Dabbler
Joined
Apr 1, 2015
Messages
13
I have a bunch of files in a windows share that I would like to migrate into my FreeNAS ZFS pool. I have been using mount_cifs and rsync to migrate the files. However, when the filenames contain special characters, rsync fails saying that the files vanished. Does anyone have a workaround? I tried mounting the share with -E utf-8:cp437, but that didn't help.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Have you tried robocopy? It's often faster than rsync. I use this batch file to copy shares between servers:

Code:
if "%1"=="" goto ERROR
if "%2"=="" goto ERROR
xcopy %1\*.* %2  /D /V /Y /C /H
robocopy %1 %2 /E /V /TEE /DST /FFT /XO /XD $RECYCLE.BIN /XD "System Volume Information" /XD temp /XD Users /XD .TemporaryItems /XD Thumbs.db
goto END
:ERROR
echo Missing source or destination argument
:END
 
Status
Not open for further replies.
Top