Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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?
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)
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
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.
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.
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....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.