- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SAM deleted crontab, possible recovery?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 10:57 PM
09-21-2004 10:57 PM
SAM deleted crontab, possible recovery?
Looking at the SAM log and /usr/sam/lbin/cron_change I don't see if the crontab was backed up before doing these changes. Is there any possibility of restoring the crontab file?
I also have a very recent make_tape_recovery backup so if its possible to get the crontab file from there it would be great.
Quick responses will be greatly appreciated. ty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 11:01 PM
09-21-2004 11:01 PM
Re: SAM deleted crontab, possible recovery?
you can use tape from make_tape_recovery
mt -f /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0m var/spool/cron/crontabs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 11:01 PM
09-21-2004 11:01 PM
Re: SAM deleted crontab, possible recovery?
Check /var/cron/backup
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 11:03 PM
09-21-2004 11:03 PM
Re: SAM deleted crontab, possible recovery?
mt -f /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0mn var/spool/cron/crontabs
You will have to user no rewind device on tar command.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 11:18 PM
09-21-2004 11:18 PM
Re: SAM deleted crontab, possible recovery?
there is no need to use /dev/rmt/0mn by tar insted of /dev/rmt/0m :)
Important is to use "mn" by mt command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 11:57 PM
09-21-2004 11:57 PM
Re: SAM deleted crontab, possible recovery?
Robert-Jan - there is no /var/cron/ or /var/adm/cron/backup.
Is it possible that SAM (or rather cron_change) executes "crontab -r" without backuping the crontab file?!? :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 12:27 AM
09-22-2004 12:27 AM
Re: SAM deleted crontab, possible recovery?
on my tape there is var/spool/cron
look at directory:
/var/opt/ignite/recovery
and check file
grep "/var/spool/cron" arch.include
try to check tape by:
mt -f /dev/rmt/0mn fsf 1
tar tvf /dev/rmt/0mn | grep "var/spool/cron"
don't use /var/spool/cron but var/spool/cron
Ps,
I have cloned a lot of servers by make_recovery
and there was no problem with corntab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 06:37 PM
09-22-2004 06:37 PM
Re: SAM deleted crontab, possible recovery?
Slawomir - ty, I will check why make_tape_recovery didn't backup the crontab file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 06:49 PM
09-22-2004 06:49 PM
Re: SAM deleted crontab, possible recovery?
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 12:50 AM
09-23-2004 12:50 AM
Re: SAM deleted crontab, possible recovery?
I have a paper copy of the main crontabs on my boxes.
crontab -l
vgdisplay -v
bdf
cat /etc/fstab
cat /etc/hosts
netstat -in
netstat -i
ioscan -fun
lvlnboot -v
....and many more.
This can be very VERY useful on a maintenance day.
steve
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2004 01:53 AM
09-23-2004 01:53 AM
Re: SAM deleted crontab, possible recovery?
Install cfg2html
http://come.to/cfg2html
It documents your server, inculding root's crontab.
Run it from cron:
# Run the cfg2html scripts,
35 6 1 * * cd /opt/cfg2html ; /opt/cfg2html/cfg2html_hpux.sh >/dev/null 2>&1
Then copy the html file to a central location...
Rgds...Geoff