Date: Mon, 14 Jan 2002 10:33:43 -0600 From: jacks@sage-american.com To: ann kok <annkok2001@yahoo.com>, questions@FreeBSD.ORG Subject: Re: crontab to backup mail in date format Message-ID: <3.0.5.32.20020114103343.017908f8@mail.sage-american.com> In-Reply-To: <20020114161715.86067.qmail@web20101.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020114103343.017908f8>