LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2010, 10:55 AM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
cron backup failing, need to browse tape


we have a server that runs a backup (cron job) at 9:15 every night. When I log on in the morning I have mail message that gives me a long list of all the files that were backed up the night before. For a couple of weeks now, the mail message gives me an empty list. Yet, when I run the same job manually from a #prompt, it runs. I am not able to run this job with cron in the daytime because too many users are in it. I wanted to browse the tape to see if the backup is really failing to copy the files or if they are on the tape and the mail message is bogus.

The job in the crontab is this:
15 21 * * 1-5 cd /usr/rtdhome ; find . -print | cpio -ovcB > /dev/rmt/1

I have tried 'restore -i' for an interactive restore session, but that tries to read /dev/rmt/0 which is an old tape device that's not used. 'restore -i /dev/rmt/1' also wants to look at /dev/rmt/0. How can I get restore -i to read /dev/rmt/1 instead of /0 ?

Since the backkup was done with cpio instead of tar, I'm not sure if I can browse the tape with restore -i anyway.

What would be the best way to browse the tape on /dev/rmt/1 without actually restoring anything ?

This is an ancient DGUX system, not Linux, and I'm not a unix expert I just inherited this server recently, but a lot of things are very similar to Linux and it looked like this might be a good place to ask. Thanks
 
Old 02-09-2010, 06:22 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Well, ignoring the DG-UX bit for the moment, I'd usually check the mailbox for the user running the cron job. If there's an issue with cron, either the cronjob owner or root usually gets an email.
Try

mail

or

mailx

from the cmd line as root and the cronjob owner.
Also look at the log dir (in Linux /var/log...)
Check the default env in cron; usually its minimal, which means you need full absolute paths to cmds/files; not sure about DG-UX.
 
Old 02-09-2010, 08:28 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by chrism01 View Post
Well, ignoring the DG-UX bit for the moment, I'd usually check the mailbox for the user running the cron job. If there's an issue with cron, either the cronjob owner or root usually gets an email.
Try

mail

or

mailx

from the cmd line as root and the cronjob owner.
Also look at the log dir (in Linux /var/log...)
Check the default env in cron; usually its minimal, which means you need full absolute paths to cmds/files; not sure about DG-UX.
Thanks Chris. everything is done as root on this machine. Why ? Not sure but that's the way it was setup years ago. The machine is not on the network but users connect via an ancient array of serial cabling and hubs in the building using an old version of procomm - The users use their own usernames and passwords to log in to and run the application and never actually see UNIX. I know I know....as I said, it's an ancient system but it's going away in about 6 months (hopefully). The only mail message root gets is from cron about the backup job and that message is deleted daily. The system commands used (find, cpio are all available to root from anywhere in the file system.) Also - the cron job ran fine forever until about 2 weeks ago.

Mike

Last edited by explorer; 02-09-2010 at 08:34 PM.
 
Old 02-09-2010, 09:38 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Can you find out what changed 2 weeks ago. Can you read the email before being deleted so you can see what's happening . (temp block the delete if you have to).
What about the log files, should be something in there.?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job keeps failing ifeatu Linux - Newbie 7 02-04-2010 01:04 PM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 06:54 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
Failing to locate tape Drive ndovi Linux - Networking 1 01-06-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration