From owner-freebsd-questions Fri Apr 5 6:46:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from fat_man.ascendency.net (12-250-130-72.client.attbi.com [12.250.130.72]) by hub.freebsd.org (Postfix) with ESMTP id 1AFB137B404 for ; Fri, 5 Apr 2002 06:46:12 -0800 (PST) Received: from mike (gateway [192.168.1.1]) by fat_man.ascendency.net (8.11.6/8.11.6) with ESMTP id g35EiaI10933 for ; Fri, 5 Apr 2002 08:44:37 -0600 (CST) (envelope-from mike@ascendency.net) Reply-To: From: "Mike Loiterman" To: Subject: cron job Date: Fri, 5 Apr 2002 08:39:27 -0600 Message-ID: <004b01c1dcaf$b36bab90$0301a8c0@mike> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I forgot to mention that the backup is in fact working as verified by /etc/dumpdates. Mike Loiterman mike@ascendency.net PGP Key 0xD1B9D18E > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd- > > questions@FreeBSD.ORG] On Behalf Of Mike Loiterman > > Sent: Friday, April 05, 2002 1:18 AM > > To: freebsd-questions@FreeBSD.ORG > > Subject: cron job > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > I have set up a cron job to do a dump every morning at 5am. The > > first night I had an error in the script. The dump worked but > > one of the other commands I had included in the script, > > unmounting and remounting samba shares, had the wrong path. I > > was emailed the output of the dump including the path error. > > > > I subsequently fixed the errors in the mounting and unmounting of > > the samba shares, but last night I didn't receive the email I was > > previously getting before I fixed the errors that listed the > > results of the dump. > > > > The cron entries look like this: > > 30 5 * * 0 root > > /usr/local/sbin/fullback > > 30 5 * * 1-6 root > > /usr/local/sbin/incbackup > > > > fullback is the same as incback except fullback does a level 0 > > dump and incback does a level 9 dump. > > > > incbackup looks like this: > > #!/bin/sh > > > > /usr/local/sbin/um > > mt rewind > > dump 9uaf /dev/nrsa0 / # backs up the root filesystem > > dump 9uaf /dev/nrsa0 /usr # backs up /usr > > dump 9uaf /dev/nrsa0 /var # backs up /var > > /usr/local/sbin/md > > > > um simply unmounts a few samba shares and md remounts them. > > Originally, I just put um and md without the path, which caused > > problems. I put the path in and everything worked, minus the > > email I think I'm supposed to get. > > > > My questions are: > > 1. If the dump runs normally, shouldn't I receive the output of > > the dump via an email sent to root? > > 2. If I am supposed to be receiving this email, why aren't I? > > 3. If I'm not supposed to receive this email, how can I force > > the cron job to email the results to me? > > > > Mike Loiterman > > mike@ascendency.net > > PGP Key 0xD1B9D18E > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: PGP 7.0.4 > > Comment: Message digitally signed by Mike Loiterman > > > > > iQA/AwUBPK1PrGjZbUnRudGOEQIHqACeOIK5pieVcPq+RMPlbnKDJ3ToWAcAoKbN > > iwY9n15Mwi/rXrXbAnk4i1BA > > =19gm > > -----END PGP SIGNATURE----- > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -----BEGIN PGP SIGNATURE----- > Version: PGP 7.0.4 > Comment: Message digitally signed by Mike Loiterman > > iQA/AwUBPK2zCWjZbUnRudGOEQIrAACfRmaa3GX6Bzlt9gizl+RjX86WGBEAn3M4 > sx4f4+kHpq70MkkMgx+8OJVx > =/XZk > -----END PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPK23HmjZbUnRudGOEQJs6QCg6MRuXzpP4OanTpVHUAmfPFGX2XMAnApk fpz4CFuX/ljT5Jruk6wYq/HD =mQzX -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message