LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2012, 05:00 AM   #1
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Rep: Reputation: Disabled
Mondo Cron Job not running


Hi All

I have installed Mondo Rescue on one of my Centos 5.8 servers and it works perfectly from command line with the following command:

mondoarchive -Oi -d /home/mondo -E "/home/mondo"

when i add this to crontab -e it will not run!

in the cron logs it displays the following:

Apr 12 10:53:01 backuptest crond[7036]: (root) CMD (root cd "/home/mondo"; ./backup.sh)
Apr 12 10:53:01 backuptest crond[7035]: (root) MAIL (mailed 81 bytes of output but got status 0x0001 )
Apr 12 10:53:59 backuptest crontab[7255]: (root) LIST (root)
Apr 12 10:55:01 backuptest crond[7370]: (root) CMD (root /home/mondo/backup.sh)

there are no messages sent and all of the above is being run as root.

I tried creating a simple script in /home/mondo but the script also doesnt run in cron, it does run manually:

#!/bin/sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
mondoarchive -Oi -d /home/mondo -E "/home/mondo"


Could anyone please shed some light on what it is im doing wrong please?

Many thanks

Dave
 
Old 04-12-2012, 06:40 PM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
What's the entry you made in crontab?
 
Old 04-12-2012, 07:10 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
For this, it looks like the mailer has issues
Code:
Apr 12 10:53:01 backuptest crond[7035]: (root) MAIL (mailed 81 bytes of output but got status 0x0001 )
Have a look in /var/log/messages, maillog
 
Old 04-13-2012, 03:53 AM   #4
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi Chris

There are no logs in /var/log/maillog

I also copied the script to /etc/cron.daily however still does not run, is there anything else I could try?

Many thanks

Dave
 
Old 04-15-2012, 08:27 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As above, show the exact crontab entry, also check /var/log/messages.
also, try

mailx

as root and see what if anything is in there
 
Old 04-16-2012, 03:16 AM   #6
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi Chris

Thanks for the reply, the exact crontab entry is:

[root@backuptest ~]# crontab -l
40 12 * * * root cd "/home/mondo"; ./backup.sh
42 12 * * * root /home/mondo/backup.sh
44 12 * * * root mondoarchive -Oi -d /home/mondo -E "/home/mondo"

The times the job is run is not really in the equation I would like to run the job at midnight it was just to test during the day. Also the command mailx shows:

[root@backuptest ~]# mailx
-bash: mailx: command not found
[root@backuptest ~]#

I have tried all combinations of running the script and the actual command via cron, it seems to start the job but not actually execute it:

Apr 15 12:40:01 backuptest crond[23695]: (root) CMD (root cd "/home/mondo"; ./backup.sh)
Apr 15 12:40:01 backuptest crond[23694]: (root) MAIL (mailed 81 bytes of output but got status 0x0001 )
Apr 15 12:42:01 backuptest crond[23940]: (root) CMD (root /home/mondo/backup.sh)

please dont pay much attention to the times as i keep changing the times in cron to try something else.

I have also tried doing the "at" command as referenced:

http://www.mondorescue.org/docs/mond...-solution.html

however the at command followed by my normal command does not work as it doesnt like the -Oi or the -E in my command so im at a bit of a loss....

Many thanks

Dave
 
Old 04-16-2012, 03:30 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
[root@backuptest ~]# crontab -l
40 12 * * * root cd "/home/mondo"; ./backup.sh
42 12 * * * root /home/mondo/backup.sh
44 12 * * * root mondoarchive -Oi -d /home/mondo -E "/home/mondo"
I think you've made wrong entries in crontab, if I'm not wrong. Do you want to run the backup.sh script? And do you want to run this mondoarchive -Oi -d /home/mondo -E "/home/mondo" command?
 
Old 04-16-2012, 03:34 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
The correct entry would be -

Quote:
42 12 * * * sh /home/mondo/backup.sh
44 12 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"
 
Old 04-16-2012, 04:39 AM   #9
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi Satyaveer

Firstly thanks for the reply. To answer your questions:

Do you want to run the backup.sh script? And do you want to run this mondoarchive -Oi -d /home/mondo -E "/home/mondo" command?

Yes i want to run the command: mondoarchive -Oi -d /home/mondo -E "/home/mondo"

I have already created the entries in crontab:

44 12 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"

however it does not work - i added the root before just in case it was a permissions thing even though the crontab entry was made under root, just a precaution really. Also just for reference, I only wrote the script as the command option wasnt working.

I just tried the other cron entry you posted however still yet again nothing:
(33 10 * * * sh /home/mondo/backup.sh)

Apr 16 10:28:26 backuptest crontab[9916]: (root) LIST (root)
Apr 16 10:28:33 backuptest crontab[9933]: (root) BEGIN EDIT (root)
Apr 16 10:28:47 backuptest crontab[9933]: (root) REPLACE (root)
Apr 16 10:28:47 backuptest crontab[9933]: (root) END EDIT (root)
Apr 16 10:28:50 backuptest crontab[9983]: (root) LIST (root)
Apr 16 10:29:01 backuptest crond[14639]: (root) RELOAD (cron/root)
Apr 16 10:33:02 backuptest crond[10557]: (root) CMD (sh /home/mondo/backup.sh)

Still no messages in /var/log/messages or in /var/log/maillog

Totally stumped now and to be honest a tad annoying! :s

Many thanks

Dave
 
Old 04-16-2012, 05:28 AM   #10
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
First-of-all you please use CODE and QUOTE tags to differentiate the command and entries used by you, so that it looks meaningful, understandable and nice.

Now to your question -

Quote:
I have already created the entries in crontab:

44 12 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"

however it does not work - i added the root before just in case it was a permissions thing even though the crontab entry was made under root, just a precaution really.
Try to run this mondoarchive -Oi -d /home/mondo -E "/home/mondo" manually on command line, and see what output you get and share that output with us.

Also same is the case with backup.sh script, run this script also on command line and see what you get.
 
Old 04-16-2012, 09:30 AM   #11
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi Again

sorry for the QUOTE/CODE thing i didnt realise....

ok ran the command from the cli and got the following:

Code:
mondoarchive -Oi -d /home/mondo -E "/home/mondo"
Initializing...
See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Done.
BusyBox's sources are available from http://www.busybox.net
Making catalog of files to be backed up
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [**..................]   8% done;  0:11 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [*****...............]  23% done;  0:06 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [********............]  38% done;  0:04 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [***********.........]  54% done;  0:03 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [**************......]  69% done;  0:02 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [*****************...]  85% done;  0:01 to go
---evalcall---E---
Done.
Dividing filelist into sets
Dividing filelist into sets. Please wait.
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [****................]  16% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [******..............]  27% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******.............]  32% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******.............]  33% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******.............]  34% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******.............]  35% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [********............]  36% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [********............]  39% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******************.]  93% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [********************]  99% done;  0:00 to go
---evalcall---E---
Your backup will probably occupy a single ISO. Maybe two.
Done.
Copying Mondo's core files to the scratch directory
Done.
Calling MINDI to create boot+data disks
Your boot loader is GRUB and it boots from /dev/sda
Boot+data disks were created OK
Done.
Preparing to archive your data
Done.
Archiving regular files to media          
Archiving regular files
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- Please wait. This may take a couple of hours.
---progress-form---3--- Working...
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   1% done;  0:00 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 6% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   1% done; 17:48 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 7% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   2% done; 11:44 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 9% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---4--- TASK:  [******************..]  90% done;  0:37 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********************] 96% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  91% done;  0:32 to go
Please be patient. Do not be alarmed by on-screen inactivity.
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [*****...............]  25% done;  0:03 to go
---evalcall---E---
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [*************.......]  65% done;  0:08 to go
---evalcall---E---
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [******************..]  89% done;  0:02 to go
---evalcall---E---
Call to mkisofs to make ISO (ISO #1) ...OK
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********************] 98% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  92% done;  0:30 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [*...................] 5% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  93% done;  0:26 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [**..................] 7% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************]  97% done;  0:08 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [****................] 16% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************]  98% done;  0:04 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [****................] 19% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************] 100% done;  0:00 to go
Your regular files have been archived successfully.
Done.
Archiving large files to media           
Done.
Writing any remaining data to media         
Please be patient. Do not be alarmed by on-screen inactivity.
Call to mkisofs to make ISO (ISO #2) ...OK
Done.
Done.
Backup and/or verify ran to completion. Everything appears to be fine.
/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it
Data archived OK. 
Mondoarchive ran OK.
See /var/log/mondoarchive.log for details of backup run.
Execution run ended; result=0
Type 'less /var/log/mondoarchive.log' to see the output log
]0;root@backuptest:~[root@backuptest ~]#
so that ran fine.....

next for the running of the script:

Code:
cd /home/mondo
root@backuptest:/home/mondo[root@backuptest mondo]# backup.sh
Initializing...
See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Done.
BusyBox's sources are available from http://www.busybox.net
Making catalog of files to be backed up
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [***.................]  12% done;  0:07 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [******..............]  26% done;  0:05 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [*****************...]  84% done;  0:01 to go
---evalcall---E---
---evalcall---1---          Making catalog of /       
---evalcall---2--- TASK:  [********************]  98% done;  0:00 to go
---evalcall---E---
Done.
Dividing filelist into sets
Dividing filelist into sets. Please wait.
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [****................]  16% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [******..............]  27% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [******************..]  89% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******************.]  91% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******************.]  92% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [*******************.]  93% done;  0:00 to go
---evalcall---E---
---evalcall---1---      Dividing filelist into sets   
---evalcall---2--- TASK:  [********************]  99% done;  0:00 to go
---evalcall---E---
Your backup will probably occupy a single ISO. Maybe two.
Done.
Copying Mondo's core files to the scratch directory
Done.
Calling MINDI to create boot+data disks
Your boot loader is GRUB and it boots from /dev/sda
Boot+data disks were created OK
Done.
Preparing to archive your data
Done.
Archiving regular files to media          
Archiving regular files
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- Please wait. This may take a couple of hours.
---progress-form---3--- Working...
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   1% done;  0:00 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 6% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   1% done; 17:48 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 7% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   2% done; 11:44 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 9% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   3% done; 14:01 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [**..................] 10% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   4% done; 10:23 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [***.................] 12% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*...................]   5% done;  9:55 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [***.................] 13% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [**..................]   6% done;  9:06 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [***.................] 14% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [**..................]   7% done;  8:53 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [***.................] 14% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [**..................]   8% done;  8:12 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [****................] 16% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [**..................]  10% done;  7:57 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [****................] 17% used
---progress-form---3--- Please wait. This may take a couple of hours.

---progress-form---4--- TASK:  [*****...............]  25% done;  4:01 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [******..............] 29% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---4--- TASK:  [******************..]  90% done;  0:37 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********************] 96% used
---progress-form---3--- Please wait. This may take a couple of hours.
Please be patient. Do not be alarmed by on-screen inactivity.
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [********............]  36% done;  0:01 to go
---evalcall---E---
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [**************......]  70% done;  0:00 to go
---evalcall---E---
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [*****************...]  85% done;  0:03 to go
---evalcall---E---
---evalcall---1---    Running mkisofs to make ISO #1  
---evalcall---2--- TASK:  [*******************.]  94% done;  0:01 to go
---evalcall---E---
Call to mkisofs to make ISO (ISO #1) ...OK
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 1: [********************] 98% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  92% done;  0:31 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [*...................] 5% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  93% done;  0:26 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [**..................] 7% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  94% done;  0:22 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [**..................] 9% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [*******************.]  95% done;  0:18 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [***.................] 11% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************]  96% done;  0:13 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [***.................] 14% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************]  97% done;  0:08 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [****................] 16% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************]  98% done;  0:04 to go
---progress-form---1--- I am backing up your live filesystem now.
---progress-form---2--- ISO 2: [****................] 19% used
---progress-form---3--- Please wait. This may take a couple of hours.
---progress-form---E---
---progress-form---4--- TASK:  [********************] 100% done;  0:00 to go
Your regular files have been archived successfully.
Done.
Archiving large files to media           
Done.
Writing any remaining data to media         
Please be patient. Do not be alarmed by on-screen inactivity.
---evalcall---1---    Running mkisofs to make ISO #2  
---evalcall---2--- TASK:  [****************....]  77% done;  0:00 to go
---evalcall---E---
Call to mkisofs to make ISO (ISO #2) ...OK
Done.
Done.
Backup and/or verify ran to completion. Everything appears to be fine.
/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it
Data archived OK. 
Mondoarchive ran OK.
See /var/log/mondoarchive.log for details of backup run.
Execution run ended; result=0
Type 'less /var/log/mondoarchive.log' to see the output log
]0;root@backuptest:/home/mondo[root@backuptest mondo]#
Again ran fine!!! I had to remove some progress lines due to the text limits on posts....

Hope this is in a better format.

Many thanks

Dave
 
Old 04-16-2012, 09:39 AM   #12
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You ran both the commands and that worked properly without any errors, right?

This time again try to schedule your cronjob with correct entries and see what happens.

Last edited by Satyaveer Arya; 04-16-2012 at 09:41 AM.
 
Old 04-16-2012, 09:44 AM   #13
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
For backup.sh script you can make this entry as well -

Quote:
42 12 * * * /home/mondo/backup.sh
 
Old 04-16-2012, 10:05 AM   #14
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi Satyaveer

Ok so created a new crontab:

Code:
[root@backuptest mondo]# crontab -l
52 15 * * * /home/mondo/backup.sh
54 15 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"
56 15 * * * /usr/sbin/mondoarchive -Oi -d /home/mondo -E "/home/mondo"
and yet again noting!

cron messages state:
Code:
Apr 16 15:47:18 backuptest crontab[13869]: (root) BEGIN EDIT (root)
Apr 16 15:49:07 backuptest crontab[13869]: (root) REPLACE (root)
Apr 16 15:49:07 backuptest crontab[13869]: (root) END EDIT (root)
Apr 16 15:49:33 backuptest crontab[14144]: (root) LIST (root)
Apr 16 15:50:01 backuptest crond[14639]: (root) RELOAD (cron/root)
Apr 16 15:52:01 backuptest crond[14512]: (root) CMD (/home/mondo/backup.sh)
Apr 16 15:54:01 backuptest crond[12132]: (root) CMD (mondoarchive -Oi -d /home/mondo -E "/home/mondo")
Apr 16 15:56:01 backuptest crond[19974]: (root) CMD (/usr/sbin/mondoarchive -Oi -d /home/mondo -E "/home/mondo")
also changed the last one just in case it didnt like the path i referenced to:
Code:
[root@backuptest mondo]# crontab -l
02 16 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"
and again didnt run and nothing in the logs:
Code:
Apr 16 15:59:01 backuptest crond[14639]: (root) RELOAD (cron/root)
Apr 16 15:59:34 backuptest crontab[21279]: (root) LIST (root)
Apr 16 16:01:01 backuptest crond[21520]: (root) CMD (run-parts /etc/cron.hourly)
Apr 16 16:02:01 backuptest crond[21806]: (root) CMD (mondoarchive -Oi -d /home/mondo -E "/home/mondo")
I just seriously see why it will not run it :s

Many thanks

Dave
 
Old 04-16-2012, 10:08 AM   #15
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Is the crond service running?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 is not running akshathajagadish Linux - Newbie 2 10-15-2009 07:21 PM
Running a Cron Job landysaccount Linux - Newbie 6 02-04-2009 05:29 PM
cron job not running vincebs Linux - Software 34 10-30-2004 01:27 PM
Cron job not running? james_cwy Linux - Newbie 6 12-14-2003 08:24 PM
Cron Job Not Running pzorn Linux - General 4 10-02-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 AM.

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