. rsync
원본 디렉터리와 대상 디렉터리의 전체 파일 크기를 비교하여 진행 상황을 모니터링하고 싶습니다. du
파일 크기가 아닌 디스크 사용량을 측정하고 디스크 사용량은 파일 시스템마다 다르기 때문에 정확하지 않습니다.
전체 디렉터리 구조의 파일 크기를 어떻게 요약할 수 있나요?
답변1
아마도 --apparent-size
옵션은 du
다음과 같은 작업을 수행할 것입니다.
--apparent-size
print apparent sizes, rather than disk usage; although the
apparent size is usually smaller, it may be larger due to holes
in (`sparse') files, internal fragmentation, indirect blocks,
and the like
이는 파일 시스템 블록 크기나 기타 메타데이터에 대한 의존성을 제거해야 합니다.