![Rsync는 디렉터리 시작 부분에 "?"를 추가합니다.](https://linux55.com/image/30033/Rsync%EB%8A%94%20%EB%94%94%EB%A0%89%ED%84%B0%EB%A6%AC%20%EC%8B%9C%EC%9E%91%20%EB%B6%80%EB%B6%84%EC%97%90%20%22%3F%22%EB%A5%BC%20%EC%B6%94%EA%B0%80%ED%95%A9%EB%8B%88%EB%8B%A4..png)
현재 다음과 같은 파일에서 여러 명령을 실행하고 있습니다 .sh
.
rsync -avz -e ssh --rsh='ssh -p1337' --bwlimit=10000 root@DestinationIP:/home/backup /home/localbackup
rsync -avz -e ssh --rsh='ssh -p1337' --bwlimit=10000 root@DestinationIP:/home/backup2 /home/localbackup2
이 프로그램을 실행하면 대상에 올바르게 도달하지만 로컬 디렉터리의 시작 부분에 "?"가 추가되어 하드 드라이브가 빨리 채워집니다.
제가 실수로 표시를 한 걸까요? rsync
디렉토리는 복사하기보다는 동기화해야 한다고 생각합니다 .
답변1
매뉴얼 페이지를 확인하고 싶을 수도 있습니다 rsync
.
다음을 포함하는 섹션이 있습니다.
X를 대체하는 파일 유형은 파일의 경우 f, 디렉터리의 경우 ad, 심볼릭 링크의 경우 L, 장치의 경우 D, 특수 파일(예: 명명된 소켓 및 fifos)의 경우 S입니다.
The other letters in the string above are the actual letters that will be output if the associated attribute for the item is being updated or a "." for no change. Three exceptions to this are: (1) a newly created item replaces each letter with a "+", (2) an identical item replaces the dots with spaces, and (3) an unknown attribute replaces each letter with a "?" (this can hap- pen when talking to an older rsync).
거기에서 시작해서 다시 보고하세요!