posted by 귀염둥이채원 2018. 11. 27. 11:33

# rsync 특정 파일 제외하기

password.txt 파일은 rsync 동기화 시에 제외하기


$ rsync -avz --delete --exclude="password.txt" root@192.168.1.1:/var/www/html/ /var/www/html/


rsync 특정 폴더 제외하기

.svn 폴더는 rsync 동기화 시에 제외하기


$ rsync -avz --delete --exclude=".svn" root@192.168.1.1:/var/www/html/ /var/www/html/



# rsync 특정 파일&폴더 제외하기

$ rsync -avz --delete --exclude="password.txt" --exclude=".svn" root@192.168.1.1:/var/www/html/ /var/www/html/