문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
wiki:programming:shell [2022/03/14 13:56] dhan 만듦 |
wiki:programming:shell [2023/02/10 18:23] (현재) dhan |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== 쉘 프로그래밍 ====== | ====== 쉘 프로그래밍 ====== | ||
<WRAP left notice 80%> | <WRAP left notice 80%> | ||
- | * description : 주레피 현황(서명) | + | * description : 쉘 프로그래밍 예정 |
* author | * author | ||
* email : dhan@repia.com | * email : dhan@repia.com | ||
줄 9: | 줄 9: | ||
===== Case Study ===== | ===== Case Study ===== | ||
+ | * [[wiki: | ||
+ | |||
+ | * [[https:// | ||
+ | |||
==== 백업 스크립트 ==== | ==== 백업 스크립트 ==== | ||
<code sh> | <code sh> | ||
줄 24: | 줄 28: | ||
mv " | mv " | ||
- | #2. 200일 이전 데이터 삭제 | + | #2. 180일 이전 데이터 삭제 |
- | echo "find ${WIKI_BACKUP_TARGET} -name dw*tar -mtime +200 -exec rm -f {} \;" >> backup.log | + | echo "find ${WIKI_BACKUP_TARGET} -name dw*tar -mtime +180 -exec rm -f {} \;" >> backup.log |
find " | find " | ||
#find " | #find " | ||
</ | </ | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
{{tag> | {{tag> | ||