ROBOCOPY 명령을 사용하고 두 폴더 간의 동기화를 수행하는 명령 줄을 만들었습니다 (증분 동기화) 내 명령은 다음과 같습니다
ROBOCOPY "Source_Folder" "Destination_Folder" /E /ZB /XJ /XF "~*.*" "*~.*" "desktop.ini" "Thumbs.db" "*.torrent" ".lock" ".Sync*" /xd "Rubbish" ".Sync*" ".Box Sync" "_private" "Outlook Files" /FFT /MT /R:2 /W:5 /V /MON:1 /TEE
(파일 "~*.*" "*~.*" "desktop.ini" "Thumbs.db" "*.torrent" ".lock" ".Sync*"
제외 :) (이 폴더에있는 파일을 포함하는 폴더 제외 :) "Rubbish" ".Sync*" ".Box Sync" "_private" "Outlook Files"
또한 매분마다 및 / 또는 파일 / 폴더의 단일 변경이 반복됩니다.
감사합니다, 리즈 완
깃발
/E Copy subdirectories, including empty ones.
/ZB Use restartable mode; if access denied use backup mode.
/XJ Exclude junction points. (normally included by default).
/FFT Assume FAT file times (2-second granularity).
/MT Do multi-threaded copies with 8 threads.
/R:2 Number of retries on failed copies.
/W:5 Wait time between retries.
/V Produce verbose output, showing skipped files.
/TEE Output to console window, as well as the log file.
/MON:1 Monitor source; run again when more than 1 change seen.
/XF [files] Exclude files matching given names/paths/wildcards.
/XD [dirs] Exclude directories matching given names/paths.