1752815 Members
6171 Online
108789 Solutions
New Discussion

Re: crontab relation

 
CKI
Occasional Contributor

crontab 관련

안녕하세요.

crontab 으로 os백업을 받을려고 하는데 잘 안되서 질문올립니다.

sh 로 실행하면 os에 존재하는 profile을 다 읽어들여서 실행이 잘 되는것 까지는 이해했는데여.

제가 설정한 crontab -e 로 등록했을 시 log 보면 이상없이 실행되던데 막상 백업서버 가면 백업이 안되어있어서 질문드려여

 

set -x
make_net_recovery -s 131.120.200.200 -a 131.120.200.200:/OS_BACKUP/cki01 -x inc_entire=vg00

백업스크립트는 위와 같이 구성되어 있구요

env
_=/usr/bin/env
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/VRTS/vxfs5.0/man:/opt/ipf/man:/opt/ldapux/share/man/%L:/opt/ldapux/share/man:/opt/ldapux/ypldapd/man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man/%L:/opt/wbem/share/man:/opt/wli/man:/opt/graphics/common/man:/opt/hpvm/share/man/%L:/opt/amgr/man/%L:/opt/amgr/man:/opt/sec_mgmt/share/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/caliper/man/%L:/opt/caliper/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/perf/man/%L:/opt/perf/man:/usr/contrib/kwdb/share/man:/opt/perl_32/man:/opt/perl_64/man:/opt/prm/man/%L:/opt/prm/man:/opt/propplus/share/man:/opt/psb/healthtest/share/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/wlm/share/man/%L:/opt/wlm/share/man:/opt/openssl/fips/0.9.7/man:/opt/openssl/fips/0.9.8/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/icod/man/%L:/opt/icod/man:/opt/aCC/share/man/%L:/opt/aCC/share/man:/opt/cadvise/share/man/%L:/opt/cadvise/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/imake/man:/usr/dt/share/man
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/wli/bin:/opt/graphics/common/bin:/opt/hpvm/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/perf/bin:/usr/contrib/kwdb/bin:/etc/cmcluster/scripts/tkit/vtn:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/propplus/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/wlm/bin:/opt/gwlm/bin:/opt/aCC/bin:/opt/cadvise/bin:/opt/ignite/bin:/tmp:/opt/os_backup_sr:/sbin:/home/root

환경파일은 위와 같이 설정되어 있는데 어떤 부분을 수정해야 정상적으로 백업이 받아질까여.?

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: crontab relation

goggle translate of Korean:
I am trying to get an os backup with crontab, but I am not able to upload the question.

When I run it with sh, I understand that it runs well by reading all the profiles that exist in os.

When I register crontab -e I set it up, it runs without any abnormality. If it is a backup server, I can not backup it.

set -x
make_net_recovery -s 131.120.200.200 -a 131.120.200.200:/OS_BACKUP/cki01 -x inc_entire = vg00

The backup script is configured as above.
The environment file is set up as above. Which part need to be modified to get normal backup?