본문 바로가기

crontab3

crontab / delete / send mail [oracle@localhost ~]$ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.XXXXNWtSJ7 installed on Wed Feb 3 00:59:50 2016) # (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) #backup start every day 2:10 0 1 * * * /data/oracle/backup/cronbackup.sh #delete start every day 4 hours 0 4 * * * find /data/oracle/backup/dump/ -print -atime +2 -.. 2023. 9. 6.
NAS / freenas / cron job 으로 백업(sftp 서버로접속) 1. freenas에 backup 유저생성 -root계정으로 /root/.ssh 경로에 인증키 저장이 안되므로 MENU > Account > Users > Add User Home Directory 지정할것(해당 경로의 권한확인) groups 지정(백업파일저장할 경로의 권한확인) 2. 인증키 생성 [backup@freenas ~]$ whoami backup [backup@freenas ~]$ [backup@freenas ~]$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/mnt/disk2/.ssh/id_dsa): 인증키가 저장되는경로 Created directory '/mnt/d.. 2020. 4. 24.
crontab / crond 1. OS version [root@instance-1 ~]# cat /etc/*release* CentOS Linux release 7.9.2009 1. crond 프로세스 확인 [root@instance-1 ~]# service crond status Redirecting to /bin/systemctl status crond.service● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: active (running) ... [root@instance-1 ~]# 2. crond 시작/정지/재시작 [root@instan.. 2020. 4. 17.
반응형