From owner-freebsd-questions Mon Jan 14 8:21:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web20101.mail.yahoo.com (web20101.mail.yahoo.com [216.136.226.38]) by hub.freebsd.org (Postfix) with SMTP id 1303637B430 for ; Mon, 14 Jan 2002 08:17:16 -0800 (PST) Message-ID: <20020114161715.86067.qmail@web20101.mail.yahoo.com> Received: from [24.100.124.207] by web20101.mail.yahoo.com via HTTP; Mon, 14 Jan 2002 08:17:15 PST Date: Mon, 14 Jan 2002 08:17:15 -0800 (PST) From: ann kok Subject: crontab to backup mail in date format To: questions@FreeBSD.ORG 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 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