Rsync

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

rsync 내용 정리

Basic

rsync 는 빠르고, 효과적인 원격(내부) 파일 동기화 툴이다.

Local:  rsync [OPTION...] SRC... [DEST]

Access via remote shell:
  Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]
  Push: rsync [OPTION...] SRC... [USER@]HOST:DEST

Access via rsync daemon:
  Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST]
	rsync [OPTION...] rsync://[USER@]HOST[:PORT]/SRC... [DEST]
  Push: rsync [OPTION...] SRC... [USER@]HOST::DEST
	rsync [OPTION...] SRC... rsync://[USER@]HOST[:PORT]/DEST

Options

-n, --dry-run

실제로 수행하지 않고, 테스트만 수행한다.

--progress

진행률을 표시한다.

Examples

Local directory copy

<source lang=bash> $ rsync -avzh /tmp /home/test </source>

See also