현재 폴더에 .ctagsignore 파일을 만들고 무시할 디렉토리 경로들을 줄 단위로 써준다. 한줄에 하나씩 쓰면되고, 무시할 경로를 모두 적어주어야 한다. 특정 폴더 전체를 무시하고 싶으면 하위 폴더들도 나열해 주어야 한다.


dirA

dirA/subA

dirA/subB

dirA/subB/subC

dirB

....


그리고 아래 명령을 실행한다.


ctags -R --exclude=@.ctagsignore .



http://stackoverflow.com/questions/25819649/exuberant-ctags-exclude-directories




728x90
반응형
rsync는 리눅스에서 백업을 할때 유용한 툴입니다.
서버단에서 특정 폴더나 파일을 제외하는 방법입니다.

rsyncd.conf 파일에 아래와 같이 설정 합니다.(ubuntu는 /etc/rsyncd.conf)

[mywork]
path = path_to_source_directory
exclude from = exclude_file
......

path는 백업을 원하는 원본 디렉토리에 대한 절대경로입니다.
exclude_file은 제외할 파일들에 대한 정보가 있는 파일의 위치입니다.

exclude_file은 아래와 같이 path_to_source_directory 에 대한 상대 경로로 파일이나 디렉토리를 줄 단위로 나열합니다.

README.secret
hidden.*
private/*


클라이언트 단에서 하려면 아래 링크를 참조하세요.

http://articles.slicehost.com/2007/10/10/rsync-exclude-files-and-folders
728x90
반응형

'Linux > rsync' 카테고리의 다른 글

[펌] How To Use Rsync to Sync Local and Remote Directories on a VPS  (0) 2015.05.20

+ Recent posts