728x90

xcopy 의 진화버전인 robocopy !! Windows Server 2008 부터 지원이 된다.

 

우선 직접 사용해보자!

 

예제 1


robocopy d:\A d:\B 


A폴더에서 B폴더로 복사합니다. 


예제 2


robocopy d:\A d:\B /E 


A폴더에서 B폴더로 비어 있는 디렉토리를 포함하여 하위 디렉토리를 복사합니다. 


예제3


robocopy d:\A d:\B /E /MIR 


A폴더와 B폴더를 하위 디렉토리 포함하여 비어 있는 디렉토리를 동기화 합니다. 


예제4


robocopy d:\A d:\B /E /MIR /LOG:COPY.log 


A폴더와 B폴더를 하위 디렉토리 포함하여 비어 있는 디렉토리를 동기화하고 그 기록을 COPY.log 파일로 로그를 남깁니다. 


예제5 


robocopy d:\A d:\B /E /MIR /MON:3 /LOG:COPY.log 


1분안에 파일의 변동사항이 3개 이상이면 A폴더와 B폴더를 하위 디렉토리 포함하여 비어 있는 디렉토리를 동기화하고 그 기록을 COPY.log 파일로 로그를 남깁니다. 


/S : 비어 있는 디렉터리는 제외하고 하위 디렉터리를 복사합니다. 

/E : 비어 있는 디렉터리를 포함하여 하위 디렉터리를 복사합니다. 

/MOT:m -> m 분안에 변동이 있으면 복사합니다. 

/MON:n -> n 개 이상의 변동이 있으면 복사합니다 

/MIR -> 동기화 합니다. 

/LOG:filename.log -> filename.log 파일로 복사한 기록을 기록합니다.




아래는 작업 스케줄러에서 robocopy 관련 에러입니다!


ERROR 0 (0x00000000) No errors occurred, and no copying was done. The source and destination directory trees are completely synchronized.

ERROR 1 (0x00000001) One or more files were copied successfully (that is, new files have arrived).

ERROR 2 (0x00000002) The system cannot find the file specified.

ERROR 3 (0x00000003) The system cannot find the path specified.

or

ERROR 3 (0x00000003) Getting File System Type of Source

ERROR 5 (0x00000005) Access is denied.

ERROR 6 (0x00000006) The handle is invalid.

ERROR 10 (0x00000010) Serious error has occurred.

ERROR 32 (0x00000020) The process cannot access the file because it is being used by another process.

ERROR 51 (0x00000033) Scanning Destination Directory: Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.

ERROR 53 (0x00000035) The network path was not found.

ERROR 58 (0x0000003A) Copying NTFS Security to Destination File: The specified server cannot perform the requested operation

ERROR 64 (0x00000040) The specified network name is no longer available.

ERROR 112 (0x00000070) There is not enough space on the disk.

ERROR 121 (0x00000079) The semaphore timeout period has expired.

ERROR 1359 (0x0000054F) Scanning Source Directory: An internal error occurred.

ERROR 1359 (0x0000054F) Copying File: An internal error occurred.

728x90

+ Recent posts