Sponsored Content
Full Discussion: crontab file
Special Forums Hardware Filesystems, Disks and Memory crontab file Post 81273 by RTM on Wednesday 17th of August 2005 10:21:03 PM
Old 08-17-2005
Only if you already set up backups - either through a monthly/weekly cron job or normal backups (you ARE backing up your server, right?).

I use a script to collect data like crontab entries, routing tables, DNS service being used, system info (/etc/system, /etc/inittab, ... Solaris related), etc.
Collected monthly on all servers and saved to a server that does normal backups. 2 copies kept so I can tell if something is up when someone starts complaining.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help to write crontab file

hello Unix Guru's I need help to write crontab .. i want to run my script everyday . It should start after 12:00 midnight everyday . But on Friday i dont want to start that script at 12:00 midnight but want to start after 3:00 a.m . any way to write cronttab like this .. my... (4 Replies)
Discussion started by: deepa20
4 Replies

2. Shell Programming and Scripting

Reformat Crontab file

I need help writing a script that will reformat a crontab file. The first thing the script is doing is a crontab -l > crontab.txt. I need the crontab.txt file to read "8.00 PM every weekday (Mon-Fri) only in Oct." instead of the orig format "0 20 * 10 1-5" (1 Reply)
Discussion started by: alnita
1 Replies

3. Shell Programming and Scripting

How to edit the crontab file

Hi All, There are some cron jobs scheduled already by someone, now I have to make some changes to the schedule timings. Please advise me. thanks, Raju (2 Replies)
Discussion started by: rajus19
2 Replies

4. UNIX for Advanced & Expert Users

Crontab file

Hi All, I created a crontab entry in a cron.txt file accidentally entered crontab cron.txt. Now my previous crontab -l entries are not showing up, that means i removed the scheduling of the previous jobs by running this command "crontab cron.txt" How do I revert back to previously schedule... (7 Replies)
Discussion started by: mradsus
7 Replies

5. UNIX for Dummies Questions & Answers

Problem with crontab file

I have a crontab file called /var/spool/cron/root with these contents. When I use the command, crontab -l, these are the contents which are displayed. HOME=/ MAILTO=maintenance@mycompany.com; robl@mycompany.com PATH=/sbin:/bin:/usr/sbin:/usr/bin SHELL=/bin/bash ##run-parts... (2 Replies)
Discussion started by: bobble14988
2 Replies

6. Shell Programming and Scripting

Shell Script to grep Job File name and Log File name from crontab -l

Hello, I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l. #51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1 #40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
Discussion started by: guptra
1 Replies

7. UNIX for Dummies Questions & Answers

crontab and calling a .sh file

Hey out there. I have a .sh file I am calling from cron that I am trying to use to shut down the app at midnight. I have a file that does it and works just fine if I run it by typing "bash crontabstop.sh" from a command prompt. But if I call the file from a crontab I get this output.... (5 Replies)
Discussion started by: vsekvsek
5 Replies

8. Solaris

Crontab file issue

Hi guys, I edited my crontab file and entered this enter: * * * * * w >> `date +%F`.who Then I later deleted the above entry and entered : * * * * * w >> /rpool/who/w.txt when I login and ran : crontab -e I get this entry: * * * * * w >> `date +%F`.who Instead of this entry: *... (3 Replies)
Discussion started by: cjashu
3 Replies

9. UNIX for Dummies Questions & Answers

Not able to edit crontab file

Hi, I have a solaris 10 box. And I want to schedule a cronjob.But it gives the following error bash-3.2$ crontab -l crontab: can't open your crontab file. bash-3.2$ EDITOR=vi bash-3.2$ export EDITOR bash-3.2$ crontab -e crontab: can't open your crontab file. I checked in... (12 Replies)
Discussion started by: Rossdba
12 Replies

10. UNIX for Advanced & Expert Users

Crontab No such file or directory

I keep getting the crontab No such file or directory error message. 0,30,31,32,33,34,35,36,37,38,39,40 * * * * "/bin/ps aux --sort -\%mem >> /home/m/bob/cookies" I have made sure my directory exists. find /home/m/bob -iname 'cookies' 2>/dev/null /home/m/bob/cookies I am using the full... (3 Replies)
Discussion started by: cokedude
3 Replies
AMDUMP(8)						      System Manager's Manual							 AMDUMP(8)

NAME
amdump - back up all disks in an Amanda configuration SYNOPSIS
amdump config [ host [ disk ]* ]* DESCRIPTION
Amdump switches to the appropriate Amanda configuration directory, e.g. /etc/amanda/config, then attempts to back up every disk specified by the amanda.conf file. Amdump is normally run by cron. You can specify many host/disk expression, only disks that match an expression will be dumped. All disk are dumped if no expression are given. If file /etc/amanda/config/hold exists, amdump will wait until it is removed before starting the backups. This allows scheduled backups to be delayed when circumstances warrant, for example, if the tape device is being used for some other purpose. While waiting, amdump checks for the hold file every minute. See the amanda(8) man page for more details about Amanda. EXAMPLE
Here is a typical crontab entry. It runs amdump every weeknight at 1 a.m. as user bin: 0 1 * * 1-5 bin /usr/sbin/amdump DailySet1 Please see the crontab(5) or crontab(1) manual page for the correct crontab format for your system. MESSAGES
amdump: waiting for hold file to be removed The "hold" file exists and amdump is waiting for it to be removed before starting backups. amdump: amdump or amflush is already running, or you must run amcleanup Amdump detected another amdump or amflush running, or the remains of a previous incomplete amdump or amflush run. This run is ter- minated. If the problem is caused by the remains of a previous run, you must execute amcleanup(8) and then rerun amdump. AUTHOR
James da Silva <jds@cs.umd.edu> University of Maryland, College Park SEE ALSO
amanda(8), amcheck(8), amcleanup(8), amrestore(8), amflush(8), cron(8) AMDUMP(8)
All times are GMT -4. The time now is 05:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy