The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Duplicate crontab entries vikashtulsiyan SUN Solaris 2 05-06-2008 02:07 AM
how to change crontab entries kittusri9 Shell Programming and Scripting 2 04-25-2008 12:32 AM
script to extract crontab entries raj@au Shell Programming and Scripting 5 03-09-2008 10:34 AM
which file is updated after modified the crontab entries. krishna176 SUN Solaris 1 03-25-2007 11:42 AM
crontab deleted accidently unisam UNIX for Dummies Questions & Answers 3 05-27-2004 01:51 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2002
minazk
Guest
 

Posts: n/a
crontab entries deleted !!

Hi all,

A friend of mine accidently erased all crontab entries by typing crontab -r.
Can anyone pls. help me on this.
Is it possible that a backup file is available other than files from the backup tape. Or is it retrievable ???

Thnx,
MK
Forum Sponsor
  #2 (permalink)  
Old 11-20-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
What OS?


(I doubt it will help but there are differences in OS's) Probably better off warming up that tape drive!
  #3 (permalink)  
Old 11-20-2002
minazk
Guest
 

Posts: n/a
My OS is HP-UX 11 .....

Regds,
Minaz
  #4 (permalink)  
Old 11-21-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You would need to restore from tape unless someone has saved the crontab entries to another file or have some type script collecting this type of info.
  #5 (permalink)  
Old 11-21-2002
minazk
Guest
 

Posts: n/a
Hey... Lucky ME !!!!

Another friend of mine had saved it in his directory.Restored it.. works fine now..

Thanx anyways !!

~MK
  #6 (permalink)  
Old 11-22-2002
Kelam_Magnus's Avatar
Unix does a body good.
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
If you have HPUX, I would strongly suggest making an Ignite tape at least 2x month. At work we all do this weekly, as a precaution for Disaster Recovery.

You can make tarballs and store them on your system for important files. However, if your system is down you can't get to those. So, make that tape as often as you can.

You can automate it in cron Here is a script that I use.

CRON ENTRY:
# This is to create Weekly IGNITE tape backups.
29 10 * * 5 /usr/local/bin/mkignite 2> /dev/console 1> /dev/console

****************cut here ***********************
# cat /usr/local/bin/mkignite
echo "Beginning Ignite Tape Creation" > /dev/console
echo "Rewinding Tape" > /dev/console
mt -f /dev/rmt/0mn rew # Make sure that tape is rewound

sleep 30

echo "Make recovery in progress" > /dev/console
/opt/ignite/bin/make_recovery -C -A -v -d /dev/rmt/0mn 2> /dev/console 1> /deve

echo `uname -n` "mkignite" > /tmp/ignite.comp
tail -2 /var/opt/ignite/logs/makrec.log1 >> /tmp/ignite.comp

mailx -s "Weekly tape backup" root < /tmp/ignite.comp
cp /tmp/ignite.comp /root/backups/ignite.comp.`date +%m%d%y`
**************cut here *************************

If you are already doing this great, but you must be concious of Disaster recovery. It is your responsibility as the SA.

__________________
My brain is your brain
  #7 (permalink)  
Old 11-22-2002
minazk
Guest
 

Posts: n/a
Hey, thanx !!!

I'll take care in future.

Thanks to all

~MK
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0