From owner-freebsd-questions@FreeBSD.ORG Sun Oct 17 13:24:59 2004 Return-Path: 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 6B3B616A4CE for ; Sun, 17 Oct 2004 13:24:59 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B5C43D5F for ; Sun, 17 Oct 2004 13:24:58 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.179] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CJB1u-00075A-00 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 15:24:58 +0200 Received: from [217.246.201.49] (helo=oliverfuchs.ath.cx) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1CJB1s-0005cV-00 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 15:24:57 +0200 Received: from oliverfuchs.ath.cx (localhost [127.0.0.1]) i9HDOkcq002675verify=FAIL) for ; Sun, 17 Oct 2004 15:24:48 +0200 Received: (from oliverfuchs1@localhost) by oliverfuchs.ath.cx (8.12.3/8.12.3/Debian-7.1) id i9HDOj7k002605 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 15:24:45 +0200 Date: Sun, 17 Oct 2004 15:24:45 +0200 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20041017132420.GA1896@oliverfuchs.ath.cx> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: tar a complete drive excluding one directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Oct 2004 13:24:59 -0000 Hi, I want in FreeBSD RELEASE 5.2.1 tar a complete / system except one directory e.g. /mnt where I want to store the tar archive. In linux I do: cd / tar cvzf /mnt/root.bak-$(date +%Y%m%d).tar.gz . --exclude=proc --exclude=mnt Trying this in FreeBSD is not accepted because tar is still trying to tar the /mnt directory and the to be made archive. What I am doing wrong? Oliver -- ... don't touch the bang bang fruit