Solved

Sybase - How to edit cron schedule for sybase backups

Posted on 2013-12-12
3
949 Views
Last Modified: 2014-01-14
I have a following cron schedule for sybase log backups. My questions iw how do I edit this cron job so that the cron schedule will run every  6 hrs daily


10,40 * * * * /opt/sybase/home/edt_local/bin/backup_sybase Instance_1_S -trans
15,45 * * * * /opt/sybase/home/edt_local/bin/backup_sybase Instance_2_S -trans
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 500 total points
ID: 39715748
So the first entry is for minutes and the second entry is for hour.

You may need minutes to be 0 and hours to be */6

So your first entry would be like

0 */6 * * * /opt/sybase/home/edt_local/bin/backup_sybase Instance_1_S -trans

Open in new window

0
 

Author Comment

by:motioneye
ID: 39715874
Hi,
Do you have the step how to edit the cronjob above ?
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
ID: 39716026
First you have to have permission to use crontab or you have to be a root user.

So you need to figure out the user who would run the crontab.

Become that user using

su -  username

Open in new window


or

su -

Open in new window


for becoming a root user.


Then you issue command

visudo

Open in new window


This should open the crontab in vi editor.  You also will be able to see all the cron entries this user has.

Press i for insert mode.

Type your entry.

Esc for command mode.

:x
To save changes and exit.

crontab -l would list all the cron entries the user has.

Done
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question