업무/업무 가이드

폴더 구조까지 그대로 원하는 파일만 복사하는 방법 (rsync)

2025. 5. 14. 18:42

1. 복사할 파일들을 메모장에 경로까지 작성

boot/src/main/webapps/file1.ts
boot/src/main/webapps/file2.ts
boot/src/main/webapps/app/fileApp1.ts

 

2. 메모장 파일이 있는 경로에서 rsync 명령어 실행

 rsync -av --files-from=files.txt ./ 원하는경로/