Thread View: comp.sys.next.sysadmin
1 messages
1 total messages
Started by Steen H Hviid
Thu, 12 Nov 1992 19:06
Problem using 'dump' from cron
Author: Steen H Hviid
Date: Thu, 12 Nov 1992 19:06
Date: Thu, 12 Nov 1992 19:06
49 lines
2289 bytes
2289 bytes
Thanks for all the responses on my plead for help on getting the cron to run my backup script using the dump command. It turned out to be very simple, I just needed to supply the full path to the dump command, i.e. /etc/dump, I ought to have though of that. My other problem with not being able to redirect the output from the dump command to a file was solved by doing the redirection in the entry in the /etc/crontab, as in: 0 23 * * 1-5 root /usr/local/bin/daily.backup >/tmp/backup.last 2>&2 why that worked while I couldn't do redirect on the dump command itself, is strange, but the above suits me fine. Some responses wondered whether my dump parameters were ok, specifically that I didn't specify the filesystem parameter. The manpages states which fileystem is the default (/dev/rsd0a) under the FILES header. The working 'dump' command is thus after several experiments: /etc/dump 0fsd /dev/rst0 2750 640000 By the way, I am using an HP6400/2000 DAT drive, which is device /dev/rst0 Original message: >Hi Everybody, >I have a problem, my script works absolutely fine when run interactively, and >even in the background using nohup, but it fails when run by cron (as root). >It tells me that 'dump' terminated with error code 1. >Also, I wanted to redirect the output from the dump command into a file, >which I would have the script mail to me if anything went wrong, but it doesn't >like that either. If I redirect standard output, nothing appears there, if I >redirect error output, it complains about ambiguos redirection. >I have tried in the crontab entry to redirect the output of the script to both >a file and null with to no avail. Thanks for the responses Steen Computer Specialist The Ohio State University
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads