2014-04-30 4 views
1

rsync를 사용하여 주어진 디렉토리에서 .c 파일 만 복사하려고했습니다.rsync가 내 파일을 복사하지 않음

rsync -nrv --include="*.c" --exclude="*" test/ temp/ 

출력 : 그러므로 내가이 명령을 시도 내가 복사하고 싶었다 데이터가 발견 된

sending incremental file list 
test1.c 
test2.c 

sent 63 bytes received 18 bytes 162.00 bytes/sec 

을,하지만 난 '온도'를 확인할 때, 그것은 비어 있습니다. 는 또한 rsync를 디렉토리를 만들 수 있도록 노력하고, 출력은 다음과 같다 :

sending incremental file list 
created directory temp 
./ 
test1.c 
test2.c 

sent 66 bytes received 21 bytes 174.00 bytes/sec 

을하지만 디렉토리 '온도'를 확인하면, 그것은 존재하지 않습니다. 내가 뭘 잘못하고 있니?

답변

8

-n은 "드라이 런"을 의미합니다.

-n, --dry-run    perform a trial run with no changes made 
+0

관련 * man 페이지 * : ['남자 rsync'] (HTTP

최소한, 당신이 사용되는 옵션에 대한 man 페이지를 확인해야합니다 -n

(가) 의미를 이해하기 위해 제거 : //linux.die.net/man/1/rsync) – Kamiccolo

관련 문제