From owner-freebsd-questions Wed Aug 21 14: 8:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D53E37B405 for ; Wed, 21 Aug 2002 14:08:18 -0700 (PDT) Received: from cypress.adhesivemedia.com (cypress.adhesivemedia.com [207.202.159.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2377443E75 for ; Wed, 21 Aug 2002 14:08:17 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from cypress.adhesivemedia.com (localhost [127.0.0.1]) by cypress.adhesivemedia.com (8.12.3/8.12.3) with ESMTP id g7LL8G2q074818; Wed, 21 Aug 2002 14:08:16 -0700 (PDT) (envelope-from philip@adhesivemedia.com) Received: from localhost (philip@localhost) by cypress.adhesivemedia.com (8.12.3/8.12.3/Submit) with ESMTP id g7LL8GU5074815; Wed, 21 Aug 2002 14:08:16 -0700 (PDT) X-Authentication-Warning: cypress.adhesivemedia.com: philip owned process doing -bs Date: Wed, 21 Aug 2002 14:08:16 -0700 (PDT) From: Philip Hallstrom To: MET Cc: "'freebsd-questions-en'" Subject: Re: Forcing an Overwrite In-Reply-To: <004201c24951$a6e6d700$6901a8c0@SURVIVAL> Message-ID: <20020821140754.H70939-100000@cypress.adhesivemedia.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 add "-f" to gzip. man gzip for more info. On Wed, 21 Aug 2002, MET wrote: > Here is my shell script: > > ====================================== > > #!/bin/sh > > DATE=`date +%m-%d-%Y`; > ARCHIVED="MP_Site_Files-$DATE.tar"; > > cd /usr/local/webroot/; > > tar -cvf $ARCHIVED mp_stable; > > yes|gzip -9 $ARCHIVED; > > ====================================== > > Here is what I get spitted out. > > gzip: MP_Site_Files-08-21-2002.tar.gz already exists; not > overwritten > > > Any ideas on how to make it over-write without flaw? > > ~ Matthew > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message