Rsync

wwiki
Jhkim (토론 | 기여)님의 2019년 5월 21일 (화) 08:49 판 (옵션)
이동: 둘러보기, 검색

데몬모드(rsyncd)

[section]
comment = comment
path = path
uid = uid
gid = gid
use chroot = yes
read only = no
hosts allow = ip_address(192.168.0.1/24 127.0.0.1/8)
max connections = 5
timeout = 60

sudo systemctl start rsync.service

명령모드(rsync)

src path 끝에 / 가 있거나 . 이면 목적지에 src의 마지막 디렉토리명으로 디렉토리를 생성하지 않는다.

옵션

-z, --compress compress file data during the transfer

--progress show progress during transfer

-a : archive mode

   -r : 재귀 복사
   -t : 타입스탬프 보존
   -l :  파일이나 디렉터리의 심볼릭 링크 보존
   -p : 권한 보존
   -g : 그룹 보존
   -o : 소유자 보존 - root 만 가능하다.
   -D : device 파일이나 special 파일 보존