From owner-freebsd-questions@FreeBSD.ORG Sun Oct 17 18:45:46 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 5965316A4CF for ; Sun, 17 Oct 2004 18:45:46 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id E621C43D2D for ; Sun, 17 Oct 2004 18:45:45 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CJG2L-0006vL-00 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 20:45:45 +0200 Received: from [217.246.200.244] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1CJG2I-0000v2-00 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 20:45:44 +0200 Received: from oliverfuchs.onlinehome.de (localhost.bob.de [127.0.0.1]) i9HIjbAj001546 for ; Sun, 17 Oct 2004 20:45:37 +0200 (CEST) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost)i9HIjaDD001545 for freebsd-questions@freebsd.org; Sun, 17 Oct 2004 20:45:36 +0200 (CEST) (envelope-from oliverfuchs1) Date: Sun, 17 Oct 2004 20:45:35 +0200 From: Oliver Fuchs To: freebsd-questions@freebsd.org Message-ID: <20041017183349.GA1021@oliverfuchs.onlinehome.de> Mail-Followup-To: freebsd-questions@freebsd.org References: <20041017132420.GA1896@oliverfuchs.ath.cx> <20041017141525.GB37640@werd> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20041017141525.GB37640@werd> User-Agent: Mutt/1.4.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c Subject: Re: tar a complete drive excluding one directory (solved) 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 18:45:46 -0000 On Sun, 17 Oct 2004, Radek Kozlowski wrote: > On Sun, Oct 17, 2004 at 03:24:45PM +0200, Oliver Fuchs wrote: > > 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. > > Try: > > # tar --exclude=proc --exclude=proc -cvzf \ > /mnt/root.bak-$(date +%Y%m%d).tar.gz . > > -Radek Yes, thanx - that did the trick. I only wonder why tar is on one side accepting this order and on the other side it isn't. What I did was: I copied the whole drive via: cd / tar cf - bin | ( cd /mnt/freebsd ; tar xvf) tar cf - boot | ( cd /mnt/freebsd ; tar xvf) ... Until know (I rebooted the new drive with the copied system) no errors occured except one that the file modes/permissions of directories /tmp and /var/tmp seemed to have changed because e.g. kde could not start anymore saying that it has no permissions to use tmp. So thanx again for helping and answering Oliver -- ... don't touch the bang bang fruit