Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2002 14:08:16 -0700 (PDT)
From:      Philip Hallstrom <philip@adhesivemedia.com>
To:        MET <met@uberstats.com>
Cc:        "'freebsd-questions-en'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Forcing an Overwrite
Message-ID:  <20020821140754.H70939-100000@cypress.adhesivemedia.com>
In-Reply-To: <004201c24951$a6e6d700$6901a8c0@SURVIVAL>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020821140754.H70939-100000>