system_administration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
system_administration [2022/07/08 17:48] – [디스크] hyjeong | system_administration [2024/02/23 15:02] (current) – [일반적인 방법] hyjeong | ||
---|---|---|---|
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.txt · Last modified: 2024/02/23 15:02 by hyjeong