Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2002 16:30:55 -0400
From:      "MET" <met@uberstats.com>
To:        "'freebsd-questions-en'" <freebsd-questions@FreeBSD.org>
Subject:   Forcing an Overwrite
Message-ID:  <004201c24951$a6e6d700$6901a8c0@SURVIVAL>
In-Reply-To: <NCBBIAMNAKDKFJIIGNPKMEAEJFAA.barry.byrne@wbtsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004201c24951$a6e6d700$6901a8c0>