새소식

서버관련/Command

tar 압축관련

  • -
SMALL

tar  czvf   [압축파일명.tgz] --exclude=[제외폴더1] --exclude=[제외폴더2] [압축할 경로]

제외폴더의 마지막 / 슬래쉬는 뺄것!!

 

--ignore-failed-read

권한오류해결

 

 tar -czvfp --ignore-failed-read admin.tar.gz --exclude=data  --exclude  =dbcon.php admin 

이 글은 스프링노트에서 작성되었습니다.

LIST
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.