Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
0 1 * * 0 /bin/sh /home/orasup/scripts/rman_weekly_full_bkp.sh (full backup every Sunday at 01:00 am)
30 2 * * 2,4,6 /bin/sh /home/orasup/scripts/rman_daily_incr_bkp.sh (Incremental level 1 backup every Tuesday, Thursday, Saturday at 01:00 am)
0 3 * * 3,5 /bin/sh /home/orasup/scripts/rman_daily_cumulative_bkp.sh(Cumulative backup every Wednesday, Friday at 01:00 am)
1) Make sure you list the full paths to every script/executable within your backup shell scripts.
2) Remove the comments like (full backup every Sunday at 01:00 am) after the script, unless they are arguments, which I don't think is the case.
Please look at the below output, i sceduled cronjob by the user other than root user.
Should it by root user only..? If not what settings can be done at other user promp..?
[root@prod ~]# service crond status
crond (pid 5046) is running....
[root@prod ~]# su - orasup
[orasup@prod ~]$ service crond status
-bash: service: command not found
[root@prod ~]# crontab -l
no crontab for root
[orasup@prod ~]$ crontab -l
# full backup every Sunday at 01:00 am
0 1 * * 0 /bin/sh /home/orasup/scripts/rman_weekly_full_bkp.sh
# Incremental level 1 backup every Tuesday, Thursday, Saturday at 01:00 am
30 2 * * 2,4,6 /bin/sh /home/orasup/scripts/rman_daily_incr_bkp.sh
# Cumulative backup every Wednesday, Friday at 01:00 am
0 3 * * 3,5 /bin/sh /home/orasup/scripts/rman_daily_cumulative_bkp.sh
How do you know they're not running? During this kind of debugging phase you should probably be redirecting the output if each script into a log file so you can see what's happening.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.