Solved

Sybase - How to edit cron schedule for sybase backups

Posted on 2013-12-12
3
831 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
Comment Utility
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
Comment Utility
Hi,
Do you have the step how to edit the cronjob above ?
0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 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

18 Experts available now in Live!

Get 1:1 Help Now