From owner-freebsd-questions Mon Jan 14 8:33:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-american.com (sage-american.com [216.122.141.44]) by hub.freebsd.org (Postfix) with ESMTP id 397FD37B402 for ; Mon, 14 Jan 2002 08:33:49 -0800 (PST) Received: from SAGEONE (adsl-64-219-30-196.dsl.crchtx.swbell.net [64.219.30.196]) by sage-american.com (8.9.3/8.9.3) with SMTP id KAA20862; Mon, 14 Jan 2002 10:33:46 -0600 (CST) Message-Id: <3.0.5.32.20020114103343.017908f8@mail.sage-american.com> X-Sender: jacks@mail.sage-american.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 14 Jan 2002 10:33:43 -0600 To: ann kok , questions@FreeBSD.ORG From: jacks@sage-american.com Subject: Re: crontab to backup mail in date format In-Reply-To: <20020114161715.86067.qmail@web20101.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 Might be best to place those in a script and call the script from cron... the script could also contain an email to notice you of the event..... At 08:17 AM 1.14.2002 -0800, ann kok wrote: >Hi all > >I have problem about crontab to backup mail in date >format > >error from root: >/bin/sh: unexpected EOF while looking for ``' > >/bin/sh: -c: line 2: syntax erro > > >My contrab is as follows: > >5 21 * * * tar czvf /backup/`date >"+%Y-%m-%d"`home.tar.gz /home > /dev/null 2>&1 >59 23 * * * tar cvf /backup/`date >"+%Y-%m-%d"`backupmail.tar /mail > /dev/null 2>&1 > > >But I don't have problem when not using the date >format > >TIA > > >__________________________________________________ >Do You Yahoo!? >Send FREE video emails in Yahoo! Mail! >http://promo.yahoo.com/videomail/ > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Best regards, Jack L. Stone, Server Admin =================================================== Sage-American http://www.sage-american.com jacks@sage-american.com "My center is giving way, my right is in retreat; ....situation excellent! ....I shall attack!" =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message