Superkkt Blog

rsync exclude list

2010/02/17 22:15

rsync로 백업할 때 제외하고 싶은 파일 또는 디렉토리를 아래와 같이 등록할 수 있다.

# rsync -avz --exclude 'mysql' /data 211.111.111.111::backup

위 명령은 /data 디렉토리를 211.111.111.111 서버로 백업하는데, /data/mysql 디렉토리는 제외하라는 뜻이다. 즉, exclude list는 백업 대상 디렉토리를 기준으로 하는 상대경로를 사용해야 한다.

참고: http://articles.slicehost.com/2007/10/10/rsync-exclude-files-and-folders

2010/02/17 22:15 2010/02/17 22:15

trackbacks

trackbacks rss

http://superkkt.com/trackback/475

Leave a Comment