Solved

Sybase - How to edit cron schedule for sybase backups

Posted on 2013-12-12
3
850 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now