개발/Linux

[Linux] - 특정 폴더 제외하고 복사하는법

dongdev 2021. 12. 4. 21:45

rsync 사용

rsync -av --progress (원본폴더) (대상폴더) --exclude (제외할폴더)

ex) rsync -av --progress /root/ori /root/test --exclude testExclude

 

추가) --exclude를 여러번사용하여 추가 제외가능