cron backup shell
페이지 정보
작성자
본문
cron backup shell |
![]() |
글쓴이 :
![]() ![]() ![]() |
![]() |
1.
/backup 디렉토리를 만듭니다.
2.
첨부해 드린 mysql.cron 파일을 아래 코드를 수정하여 /root/backup_script 디렉토리로 업로드 합니다.
reportmailto="root@your-domain.com"
mysql_host="localhost" mysql_rootpasswd='root-password' not_dump_db="test|information_schema|mysql|perfomance_schema" 3.
crontab 에 아래와 같이 설정합니다.
40 4 * * * su - root -c '/root/backup_script/mysql.cron'
|
관련링크
댓글목록
등록된 댓글이 없습니다.