system_administration
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| system_administration [2021/04/07 20:23] – [tar over ssh] hyjeong | system_administration [2024/02/23 15:02] (current) – [일반적인 방법] hyjeong | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| 32 | 32 | ||
| ==== 디스크 ==== | ==== 디스크 ==== | ||
| - | 파티션, 포맷, RAID 구성 등에는 [[https:// | + | 파티션, 포맷, RAID 구성 등에는 [[https:// |
| # lspci | grep RAID | # lspci | grep RAID | ||
| Line 32: | Line 32: | ||
| | | ||
| 파일 이름에 오늘 날짜를 yyyy-mm-dd로 넣고 싶으면 아카이브 명을 microbe-backup-`date +%Y-%m-%d`.tar.gz라고 지정하면 된다. | 파일 이름에 오늘 날짜를 yyyy-mm-dd로 넣고 싶으면 아카이브 명을 microbe-backup-`date +%Y-%m-%d`.tar.gz라고 지정하면 된다. | ||
| + | |||
| + | === 디렉토리만 골라서 tar를 실행하고 원본은 지우기 === | ||
| + | |||
| + | $ ls -d */ | while read f | ||
| + | > do | ||
| + | > tar -cf ${f}.tar --remove-files ${f} | ||
| + | > done | ||
| + | |||
| ==== tar over ssh ==== | ==== tar over ssh ==== | ||
system_administration.1617794636.txt.gz · Last modified: by hyjeong
